Runs on OpenStack, doesn't use OpenStack metadata, then complains
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
Getting this on a Xenial image running 0.7.9-48-
*******
# A new feature in cloud-init identified possible datasources for #
# this system as: #
# ['OpenStack', 'None'] #
# However, the datasource used was: Ec2 #
# #
# In the future, cloud-init will only attempt to use datasources that #
# are identified or specifically configured. #
# For more information see #
# https:/
# #
# If you are seeing this message, please file a bug against #
# cloud-init at #
# https:/
# Make sure to include the cloud provider your instance is #
# running on. #
# #
# 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-config #
# warnings: #
# dsid_missing_
*******
*******
# 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:/
# Make sure to include the cloud provider your instance is #
# running on. #
# #
# For more information see #
# https:/
# #
# 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-config #
# datasource: #
# Ec2: #
# strict_id: false #
*******
Disable the warnings above by:
touch /home/ubuntu/
or
touch /var/lib/
However:
# /usr/lib/
# cat /run/cloud-
[up 1999.73s] ds-identify --force
policy loaded: mode=report report=false found=all maybe=all notfound=enabled
/etc/cloud/
DMI_PRODUCT_
DMI_SYS_
DMI_PRODUCT_
DMI_PRODUCT_
PID_1_PLATFORM=
FS_LABELS=
KERNEL_
VIRT=kvm
UNAME_KERNEL_
UNAME_KERNEL_
UNAME_KERNEL_
UNAME_MACHINE=
UNAME_NODENAME=
UNAME_OPERATING
DSNAME=
DSLIST=NoCloud ConfigDrive OpenNebula DigitalOcean Azure AltCloud OVF MAAS GCE OpenStack CloudSigma SmartOS Ec2 CloudStack None
MODE=report
ON_FOUND=all
ON_MAYBE=all
ON_NOTFOUND=enabled
pid=1583 ppid=1560
is_container=false
check for 'OpenStack' returned found
ec2 platform is 'Unknown'.
check for 'Ec2' returned maybe
Found single datasource: OpenStack
[up 1999.74s] returning 0
So what gives? ds-identify detects that it's running on OpenStack, and identifies that as the only available datasource. Why does it use EC2 and spit out that warning?
Hi,
Florian,
Thanks for filing the bug.
I'm kind of confused also.
Some questions: 90-g61eb03fe- 0ubuntu1~ 16.04.1 in xenial)
a.) please collect /var/log/cloud* in a tarball and attach
b.) Then, after doing so:
# you should get a new cloud-init (0.7.9-
sudo apt-get update && sudo apt-get install cloud-init
sudo mv /var/lib/cloud var-lib-cloud.old
reboot
Does it still show up?