-
Notifications
You must be signed in to change notification settings - Fork 884
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cloud-init upgrade causes vultr init networking to fail. #5092
Comments
Can you please perform a cloud-init collect-logs on the system and attach the .tgz to this bug to give us a bit more information. Also are there any other files in /etc/cloud/cloud.cfg at play here? |
Generally speaking, we'd expect Vultr datasource to be discovered here if we are using Latest cloud-init on Mantic. So, I'm presuming we have an issue earlier in logs that lead to Ec2 being detected instead of Vultr. The |
Yes something else is going on here besides just upgrade path. I launched a Vultr mantic 23.10 instance w/ cloud-init 23.3.3 and upgraded to latest cloud-init 23.4.4 and rebooted with no issues in Vultr datasource detection. I did recognize a known small bug dealing a warning about scripts/vendor which has already landed in #4986. But that issue would not have cause Vultr datasource to go undiscovered.
|
CC: @eb3095 just FYI as I don't see a problem at the moment, but we'll wait on logs. |
Please find attached the logs, as well, I've not changed any config in /etc/cloud. |
Thanks a lot for the logs @pnearing. Near as I can tell something between 03/09 and the reboot after 03/23 somehow altered the list of datasources that cloud-init tried to discover on this system from Normally /usr/lib/cloud-init/ds-identify would filter this list of datasources to only what could be viable, but there is configuration on this Vultr instance that is setting Normally I expect to see , the file |
No config change needed. The python version changed (presumably on upgrade) causing the cache to clear. |
Yeah this sounds like an extension of one of the issues I was dealing with in IRC. I'de be happy to reopen this issue and find a more amicable solution so we did not need to do that. |
@eb3095 I did see the provided /etc/cloud/cloud.cfg in your images which does limit
The reason being that cloud-init upstream(and |
Fantastic, I will get right on that. Thanks for the advice. |
On upgrading an Ubuntu Mantic server on Vultr I started getting an error on boot:
2024-03-23 15:02:27,710 - url_helper.py[WARNING]: Calling 'None' failed [119/120s]: request error [HTTPConnectionPool(host='fd00:ec2::254', port=80): Max retries exceeded with url: /2
009-04-04/meta-data/instance-id (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7aefa0738690>: Failed to establish a new connection: [Errno 101] Network
is unreachable'))]
And now this message appears on login:
This system is using the EC2 Metadata Service, but does not appear to
be running on Amazon EC2 or one of cloud-init's known platforms that
provide a EC2 Metadata service. In the future, cloud-init may stop
reading metadata from the EC2 Metadata Service unless the platform can
be identified.
If you are seeing this message, please file a bug against
cloud-init at
https://github.com/canonical/cloud-init/issues
Make sure to include the cloud provider your instance is
running on.
For more information see
#2795
After you have filed a bug, you can disable this warning by
launching your instance with the cloud-config below, or
putting that content into
/etc/cloud/cloud.cfg.d/99-ec2-datasource.cfg
cloud-config
datasource:
Ec2:
strict_id: false
Disable the warnings above by:
touch /root/.cloud-warnings.skip
or
touch /var/lib/cloud/instance/warnings/.skip
Any more information you might require please let me know.
The text was updated successfully, but these errors were encountered: