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

EC2 Metadata Service cloud-init warning on Packet.net bare-metal server #3106

Open
ubuntu-server-builder opened this issue May 11, 2023 · 12 comments
Labels
bug Something isn't working correctly launchpad Migrated from Launchpad

Comments

@ubuntu-server-builder
Copy link
Collaborator

This bug was originally filed in Launchpad as LP: #1745920

Launchpad details
affected_projects = []
assignee = None
assignee_name = None
date_closed = None
date_created = 2018-01-29T05:35:16.376201+00:00
date_fix_committed = None
date_fix_released = None
id = 1745920
importance = medium
is_complete = False
lp_url = https://bugs.launchpad.net/cloud-init/+bug/1745920
milestone = None
owner = adam-elliot-fields
owner_name = Adam Fields
private = False
status = confirmed
submitter = adam-elliot-fields
submitter_name = Adam Fields
tags = ['dsid']
duplicates = []

Launchpad user Adam Fields(adam-elliot-fields) wrote on 2018-01-29T05:35:16.376201+00:00

This is most likely an issue with the cloud provider (Packet), but I'm filing the issue per the message:


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://bugs.launchpad.net/cloud-init/+filebug?field.tags=dsid

Make sure to include the cloud provider your instance is

running on.

For more information see

https://bugs.launchpad.net/bugs/1660385

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


Feel free to close as this isn't likely a bug with cloud-init itself.

@ubuntu-server-builder ubuntu-server-builder added bug Something isn't working correctly launchpad Migrated from Launchpad labels May 11, 2023
@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Scott Moser(smoser) wrote on 2018-02-05T21:45:12.944896+00:00

Hi,
Thanks for taking the time to file a bug.

I'd like to get packet.net identified correctly.

Is there any way that we can do that?

@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Adam Fields(adam-elliot-fields) wrote on 2018-02-05T22:00:43.845609+00:00

Hey Scott,

What can I do to help? Do you need to be connected to somebody at Packet?

@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Scott Moser(smoser) wrote on 2018-02-28T02:48:42.537587+00:00

Adam,
Sorry for the slow reply.

Sure. Send an email to me (scott.moser@canonical.com).

I'd love to talk to someone. We can probably get something worked out.

Scott

@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Scott Moser(smoser) wrote on 2018-03-01T16:32:24.558505+00:00

Launchpad attachments: debug info collected from a packet.net system

@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Simos Xenitellis (simosx) wrote on 2018-07-09T11:34:40.231488+00:00

Any updates on this one?

@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Scott Moser(smoser) wrote on 2018-07-09T15:22:28.588922+00:00

@simos,
As for current status here, there is nothing that cloud-init can do to "detect"
that it is running on packet.net. At least not that I can see. As a work
around, you can run:
dpkg-reconfigure cloud-init
then remove ec2 from the list, and :
rm -Rf /var/lib/cloud/instance/warnings

If anyone from packet.io is listening, I'd love to get cloud-init working properly there, please reach out.

@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Edward Vielmetti(edward-vielmetti) wrote on 2018-11-30T14:52:41.117413+00:00

I am listening @smoser - drop me a note at ed@packet.com and I can help get this sorted out.

@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Edward Vielmetti(edward-vielmetti) wrote on 2018-11-30T15:56:57.067978+00:00

Our internal ticket on this issue says in part:

"To better support cloud-init (and probably other things) we need to include a unique identifier available within the OS for 3rd party software to use in order to recognize they are running on a Packet.net environment."

@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Scott Moser(smoser) wrote on 2018-12-04T16:04:16.740005+00:00

Just for reference for anyone reading along. I've had some email exchange with Ed and we are making progress on this. We'll probably end up with some sort of filesystem path that contains information indicatingi the system is running on packet.

its not the best, but in lieu of non-image based solutions this is what we can do.

@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Darrel O'Pry(darrel.opry) wrote on 2019-02-08T02:09:19.473855+00:00

would trying to query the metadata url work?

@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Darrel O'Pry(darrel.opry) wrote on 2019-02-08T02:13:36.026558+00:00

the metadata url for packet is https://metadata.packet.net/metadata

@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Marques Johansson(marques) wrote on 2021-06-02T16:52:23.893456+00:00

#680 is a PR that began work towards bringing Equinix Metal (formerly Packet) support to cloud-init. There is more discussion in that PR. Although it is currently closed by staleness, this work can be continued.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working correctly launchpad Migrated from Launchpad
Projects
None yet
Development

No branches or pull requests

1 participant