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

FIX: adjust packet metadata url and apiVersion for new equinix api #28

Merged
merged 1 commit into from
Aug 19, 2024

Conversation

RiRa12621
Copy link
Contributor

adjust packet metadata url and apiVersion for new equinix api

The equinix metadata API changed since they acquired packet, causing issues during boot.

How to use

  • build
  • run on equinix
    To test an out of stream change on equinix, you'll have to start a machine using ipxe boot, as equinix only allows stable and beta channels

Testing done

  • Changelog entries added in the respective changelog/ directory (user-facing change, bug fix, security fix, update)
  • Inspected CI output for image differences: /boot and /usr size, packages, list files for any missing binaries, kernel modules, config files, kernel modules, etc.
  • ensure instance with image completely starts up on equinix

Notes

Since we're making heavy use of this, we're happy to help testing this out, by ie providing an instance on Equinix for testing

@RiRa12621
Copy link
Contributor Author

related conversation from k8s-slack --> https://kubernetes.slack.com/archives/C03GQ8B5XNJ/p1723144757084059

@jepio
Copy link
Member

jepio commented Aug 19, 2024

Tested this:

# Before:
$ ./coreos-cloudinit --oem=packet
2024/08/19 09:19:32 Checking availability of "packet-metadata-service"
2024/08/19 09:19:32 Checking availability of "packet-metadata-service"
2024/08/19 09:19:32 Checking availability of "packet-metadata-service"
2024/08/19 09:19:33 Checking availability of "packet-metadata-service"
2024/08/19 09:19:33 Checking availability of "packet-metadata-service"
^C
# After:
$ ./coreos-cloudinit --oem=packet
2024/08/19 09:21:29 Checking availability of "packet-metadata-service"
2024/08/19 09:21:29 Fetching meta-data from datasource of type "packet-metadata-service"
2024/08/19 09:21:29 Fetching data from https://metadata.packet.net/metadata. Attempt #1
2024/08/19 09:21:30 Fetching user-data from datasource of type "packet-metadata-service"
2024/08/19 09:21:30 Fetching data from https://metadata.packet.net/userdata. Attempt #1
2024/08/19 09:21:31 Failed to set hostname: error setting hostname: exit status 1
2024/08/19 09:21:31 Authorized SSH keys for core user

Failures are due to running as non-root, so all looks good.

@jepio jepio merged commit f3aaab9 into flatcar:flatcar-master Aug 19, 2024
1 check passed
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.

2 participants