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

Bug #1745920 reported by Adam Fields
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
cloud-init
Expired
Medium
Unassigned

Bug Description

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.

Tags: dsid
Scott Moser (smoser)
Changed in cloud-init:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Scott Moser (smoser) wrote :

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?

Revision history for this message
Adam Fields (adam-elliot-fields) wrote :

Hey Scott,

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

Revision history for this message
Scott Moser (smoser) wrote :

Adam,
Sorry for the slow reply.

Sure. Send an email to me (<email address hidden>).

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

Scott

Revision history for this message
Scott Moser (smoser) wrote :
Revision history for this message
Simos Xenitellis  (simosx) wrote :

Any updates on this one?

Revision history for this message
Scott Moser (smoser) wrote :

@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.

Revision history for this message
Edward Vielmetti (edward-vielmetti) wrote :

I am listening @smoser - drop me a note at <email address hidden> and I can help get this sorted out.

Revision history for this message
Edward Vielmetti (edward-vielmetti) wrote :

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."

Revision history for this message
Scott Moser (smoser) wrote :

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.

Revision history for this message
Darrel O'Pry (darrel.opry) wrote :

would trying to query the metadata url work?

Revision history for this message
Darrel O'Pry (darrel.opry) wrote :

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

Revision history for this message
Marques Johansson (marques) wrote :

https://github.com/canonical/cloud-init/pull/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.

Revision history for this message
James Falcon (falcojr) wrote :
Changed in cloud-init:
status: Confirmed → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.