yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #92238
[Bug 1901054] Re: CloudStack: cloud-init at sles and ubuntu depends on wget but does not seem to validate this causing late runtime error
Tracked in Github Issues as https://github.com/canonical/cloud-
init/issues/3798
** Bug watch added: github.com/canonical/cloud-init/issues #3798
https://github.com/canonical/cloud-init/issues/3798
** Changed in: cloud-init
Status: Triaged => Expired
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1901054
Title:
CloudStack: cloud-init at sles and ubuntu depends on wget but does not
seem to validate this causing late runtime error
Status in cloud-init:
Expired
Bug description:
This might be a subtle error which is neither a direct package
dependency nor explicitedly an error in the cloud-init software, but
this in fact leads to problems. Also, it does not seem to be a distro-
specific problem.
Scenario:
1. User of cloud-init is not aware it will use wget to download meta-data
2. There is no direct dependency in the cloud-init package to wget (checked for Ubuntu and SLES 15)
3. Cloud-init will not work properly as wget is missing
Error output from /etc/cloud-init.log (observed with lastest patch
level for version 19.4 on SLES 15)
2020-10-22 14:08:05,095 - util.py[DEBUG]: Running command ['wget', '--quiet', '--tries', '3', '--timeout', '20', '--output-document', '-', '--header', 'DomU_Request: send_my_password', '192.168.1.1:8080'] with allowed return codes [0] (shell=False, capture=True)
FileNotFoundError: [Errno 2] No such file or directory: b'wget': b'wget'
Command: ['wget', '--quiet', '--tries', '3', '--timeout', '20', '--output-document', '-', '--header', 'DomU_Request: send_my_password', '192.168.1.1:8080']
Reason: [Errno 2] No such file or directory: b'wget': b'wget'
Suggestion: possibly, cloud-init should exit immediately if wget not
detected in the system, and/or have it as a dependency in distro
packages?
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1901054/+subscriptions
References