Open ubuntu-server-builder opened 1 year ago
Launchpad user Scott Moser(smoser) wrote on 2020-10-22T17:21:47.127111+00:00
It is only cloud-init on CloudStack that depends on wget.
And that is surrounded with a message:
# The password server was in the past, a broken HTTP server, but is now
# fixed. wget handles this seamlessly, so it's easier to shell out to
# that rather than write our own handling code.
so... it seems like the smartest thing to do is replace it with python code.
Launchpad user Paride Legovini(paride) wrote on 2020-10-27T14:15:00.287372+00:00
Thanks Peter for reporting this bug and Scott for the pointer to the only code snippet that actually depends on wget. I think the problem is fully understood, so I'm marking this report as Triaged with with Low importance.
This bug was originally filed in Launchpad as LP: #1901054
Launchpad details
Launchpad user Peter M.(jdoe666) wrote on 2020-10-22T15:51:09.953541+00:00
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:
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?