Skip to content
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: Add Nutanix AHV support #1155

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

olljanat
Copy link

@olljanat olljanat commented Jan 10, 2025

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:

# journalctl -u coreos-metadata
Jan 10 06:39:45 localhost systemd[1]: Starting coreos-metadata.service - Flatcar Metadata Agent...
Jan 10 06:39:45 localhost coreos-metadata[1423]: Error: failed to run
Jan 10 06:39:45 localhost coreos-metadata[1423]: Caused by:
Jan 10 06:39:45 localhost coreos-metadata[1423]:     0: writing metadata attributes
Jan 10 06:39:45 localhost coreos-metadata[1423]:     1: failed to open file '"/tmp/afterburn-EZcXvr/ec2/latest/meta-data.json"'
Jan 10 06:39:45 localhost coreos-metadata[1423]:     2: No such file or directory (os error 2)
Jan 10 06:39:45 localhost systemd[1]: coreos-metadata.service: Main process exited, code=exited, status=1/FAILURE
Jan 10 06:39:45 localhost systemd[1]: coreos-metadata.service: Failed with result 'exit-code'.
Jan 10 06:39:45 localhost systemd[1]: Failed to start coreos-metadata.service - Flatcar Metadata Agent.

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.

@olljanat olljanat force-pushed the feat/nutanix-support branch 2 times, most recently from bdf9b71 to 561d646 Compare January 10, 2025 11:27
It provides only OpenStack metadata without EC2 metadata

Signed-off-by: Olli Janatuinen <[email protected]>
@olljanat olljanat force-pushed the feat/nutanix-support branch from 561d646 to ea62546 Compare January 10, 2025 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant