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

Bug #1745920 reported by Adam Fields on 2018-01-29
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
cloud-init
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.

Scott Moser (smoser) on 2018-02-05
Changed in cloud-init:
status: New → Confirmed
importance: Undecided → Medium
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?

Hey Scott,

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

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

Scott Moser (smoser) wrote :
Simos Xenitellis  (simosx) wrote :

Any updates on this one?

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.

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

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

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.

Darrel O'Pry (darrel.opry) wrote :

would trying to query the metadata url work?

Darrel O'Pry (darrel.opry) wrote :

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

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers