-
Notifications
You must be signed in to change notification settings - Fork 110
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
openstack: Support config drive without EC2 metadata #1155
Conversation
561d646
to
ea62546
Compare
@olljanat sorry if this is a misplaced question, but looking at the supported platforms, and the code base Nutanix is not listed. If Nutanix ATH works with open stack settings, It might make sense to make a provider based off of the open stack provider as a template? |
@prestist That is valid question. The part which I don’t know well enough is that what actually is relationship between Openstack and Amazon EC2? Because it is those EC2 parts which fails without this. Are those expected to be always available in all OpenStack environments? I would guess not because they were not part of original implementation so this would be actually bugfix to incorrect fallback logic in #462 |
@olljanat, ah, I see. Yeah I guess in that case we can probably update the commit to drop the details about Nutanix ATH, In some limited research it could be turned off and in those cases it will error as you have shown. Then we should be falling back on the network service. |
Signed-off-by: Olli Janatuinen <[email protected]>
ea62546
to
33a93ef
Compare
@prestist That works for me. PR updated. |
Can you reply in #1131 to #1131 (comment)? But that said, for Nutanix specifically note that at least in Ignition, it is a registered provider. Initially the Afterburn piece was not added because it was originally said that no metadata was provided. Possibly this changed in more recent versions. Regardless, this patch is fine, but it might make sense in the future to indeed have a dedicated |
Your approach is fine. Approved that and closing this one.
I see that those patches was written by Red Hat employees so it might be related to Nutanix + Red Hat partnership. However, only very small number of Linux distros actually publishes Nutanix AHV specific images so it easier for everyone if we can keep using OpenStack based images. |
Nutanix AHV uses cloud-init/Ignition which is based on OpenStack implemention.
However it provides only OpenStack metadata without EC2 metadata which why current logic added by #462 fails to error:
So this PR simply adds logic which allow OpenStack metadata to be returned even when EC2 metadata is not available.
Tested with this custom build in Flatcar Linux:
# journalctl -u coreos-metadata Jan 10 10:35:22 localhost systemd[1]: Starting coreos-metadata.service - Flatcar Metadata Agent... Jan 10 10:35:23 localhost systemd[1]: Finished coreos-metadata.service - Flatcar Metadata Agent.