datasources for is: ['None'] when the datasource used was: OpenStack

Bug #1687425 reported by Vincenzo Di Somma
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-init
New
Undecided
Unassigned

Bug Description

On serverstack I did:

$ juju deploy ubuntu
Located charm "cs:ubuntu-10".
Deploying charm "cs:ubuntu-10".

$ juju ssh 1

And the prompt had this warning:

**************************************************************************
# A new feature in cloud-init identified possible datasources for #
# this system as: #
# ['None'] #
# However, the datasource used was: OpenStack #
# #
# In the future, cloud-init will only attempt to use datasources that #
# are identified or specifically configured. #
# For more information see #
# https://bugs.launchpad.net/bugs/1669675 #
# #
# 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. #
# #
# 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-warnings.cfg #
# #
# #cloud-config #
# warnings: #
# dsid_missing_source: off #
**************************************************************************

Disable the warnings above by:
  touch /home/ubuntu/.cloud-warnings.skip
or
  touch /var/lib/cloud/instance/warnings/.skip

Tags: dsid
Revision history for this message
Vincenzo Di Somma (vds) wrote :

ubuntu@juju-d294bf-attic-1:~$ cat /run/cloud-init/cloud.cfg
di_report:
  datasource_list: [ None ]

ubuntu@juju-d294bf-attic-1:~$ cat /run/cloud-init/cloud-init-generator.log
/lib/systemd/system-generators/cloud-init-generator normal=/run/systemd/generator early=/run/systemd/generator.early late=/run/systemd/generator.late
kernel command line (container[lxc]: pid 1 cmdline): /lib/systemd/systemd --system --deserialize 24
kernel_cmdline found unset
etc_file found unset
default found enabled
checking for datasource
ds-identify rc=0
ds-identify _RET=found
enabled via /run/systemd/generator.early/multi-user.target.wants/cloud-init.target -> /lib/systemd/system/cloud-init.target

ubuntu@juju-d294bf-attic-1:~$ cat /run/cloud-init/cloud.cfg
di_report:
  datasource_list: [ None ]
ubuntu@juju-d294bf-attic-1:~$ cat /run/cloud-init/
cloud.cfg ds-identify.log enabled network-config-ready status.json
cloud-init-generator.log .ds-identify.result .instance-id result.json
ubuntu@juju-d294bf-attic-1:~$ cat /run/cloud-init/ds-identify.log
[up 0.0s] ds-identify
policy loaded: mode=report report=false found=all maybe=all notfound=enabled
/etc/cloud/cloud.cfg.d/90_dpkg.cfg set datasource_list: [ NoCloud, ConfigDrive, OpenNebula, DigitalOcean, Azure, AltCloud, OVF, MAAS, GCE, OpenStack, CloudSigma, SmartOS, Ec2, CloudStack, None ]
DMI_PRODUCT_NAME=ProLiant DL360p Gen8
DMI_SYS_VENDOR=HP
DMI_PRODUCT_SERIAL=unavailable
DMI_PRODUCT_UUID=unavailable
PID_1_PLATFORM=unavailable
FS_LABELS=unavailable:container
KERNEL_CMDLINE=/sbin/init
VIRT=lxc
UNAME_KERNEL_NAME=Linux
UNAME_KERNEL_RELEASE=4.4.0-72-generic
UNAME_KERNEL_VERSION=#93-Ubuntu SMP Fri Mar 31 14:07:41 UTC 2017
UNAME_MACHINE=x86_64
UNAME_NODENAME=ubuntu
UNAME_OPERATING_SYSTEM=GNU/Linux
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=41 ppid=32
is_container=true
No ds found [mode=report, notfound=enabled]. Would enable cloud-init [0]
[up 0.0s] returning 0

ubuntu@juju-d294bf-attic-1:~$ cat /run/cloud-init/.ds-identify.result
0

ubuntu@juju-d294bf-attic-1:~$ cat /run/cloud-init/.instance-id
b1dbb096-1a5b-45d5-91e1-deea85f77975

ubuntu@juju-d294bf-attic-1:~$ cat /run/cloud-init/result.json
{
 "v1": {
  "datasource": "DataSourceOpenStack [net,ver=2]",
  "errors": []
 }
}

ubuntu@juju-d294bf-attic-1:~$ cat /run/cloud-init/status.json
{
 "v1": {
  "datasource": "DataSourceOpenStack [net,ver=2]",
  "init": {
   "errors": [],
   "finished": 1493648703.3603625,
   "start": 1493648691.240055
  },
  "init-local": {
   "errors": [],
   "finished": 1493648690.396511,
   "start": 1493648690.1082807
  },
  "modules-config": {
   "errors": [],
   "finished": 1493648707.8611922,
   "start": 1493648703.9919927
  },
  "modules-final": {
   "errors": [],
   "finished": 1493648744.3461225,
   "start": 1493648708.2839196
  },
  "stage": null
 }
}

Revision history for this message
Vincenzo Di Somma (vds) wrote :
Download full text (118.3 KiB)

ubuntu@juju-d294bf-attic-1:~$ cat /var/log/cloud-init.log
2017-05-01 14:24:50,173 - util.py[DEBUG]: Cloud-init v. 0.7.9 running 'init-local' at Mon, 01 May 2017 14:24:50 +0000. Up 1.0 seconds.
2017-05-01 14:24:50,173 - main.py[DEBUG]: No kernel command line url found.
2017-05-01 14:24:50,174 - main.py[DEBUG]: Closing stdin.
2017-05-01 14:24:50,179 - util.py[DEBUG]: Writing to /var/log/cloud-init.log - ab: [420] 0 bytes
2017-05-01 14:24:50,180 - util.py[DEBUG]: Changing the ownership of /var/log/cloud-init.log to 104:4
2017-05-01 14:24:50,181 - util.py[DEBUG]: Attempting to remove /var/lib/cloud/instance/boot-finished
2017-05-01 14:24:50,181 - util.py[DEBUG]: Attempting to remove /var/lib/cloud/data/no-net
2017-05-01 14:24:50,181 - handlers.py[DEBUG]: start: init-local/check-cache: attempting to read from cache [check]
2017-05-01 14:24:50,181 - util.py[DEBUG]: Reading from /var/lib/cloud/instance/obj.pkl (quiet=False)
2017-05-01 14:24:50,194 - stages.py[DEBUG]: no cache found
2017-05-01 14:24:50,194 - handlers.py[DEBUG]: finish: init-local/check-cache: SUCCESS: no cache found
2017-05-01 14:24:50,194 - util.py[DEBUG]: Attempting to remove /var/lib/cloud/instance
2017-05-01 14:24:50,198 - stages.py[DEBUG]: Using distro class <class 'cloudinit.distros.ubuntu.Distro'>
2017-05-01 14:24:50,199 - __init__.py[DEBUG]: Looking for for data source in: ['NoCloud', 'ConfigDrive', 'OpenNebula', 'DigitalOcean', 'Azure', 'AltCloud', 'OVF', 'MAAS', 'GCE', 'OpenStack', 'CloudSigma', 'SmartOS', 'Ec2', 'CloudStack', 'None'], via packages ['', 'cloudinit.sources'] that matches dependencies ['FILESYSTEM']
2017-05-01 14:24:50,296 - __init__.py[DEBUG]: Searching for local data source in: ['DataSourceNoCloud', 'DataSourceConfigDrive', 'DataSourceOpenNebula', 'DataSourceDigitalOcean', 'DataSourceOVF', 'DataSourceCloudSigma', 'DataSourceSmartOS']
2017-05-01 14:24:50,296 - handlers.py[DEBUG]: start: init-local/search-NoCloud: searching for local data from DataSourceNoCloud
2017-05-01 14:24:50,296 - __init__.py[DEBUG]: Seeing if we can get any data from <class 'cloudinit.sources.DataSourceNoCloud.DataSourceNoCloud'>
2017-05-01 14:24:50,296 - util.py[DEBUG]: Reading from /var/lib/cloud/seed/nocloud/user-data (quiet=False)
2017-05-01 14:24:50,296 - util.py[DEBUG]: Reading from /var/lib/cloud/seed/nocloud/meta-data (quiet=False)
2017-05-01 14:24:50,297 - util.py[DEBUG]: Reading from /var/lib/cloud/seed/nocloud/vendor-data (quiet=False)
2017-05-01 14:24:50,297 - util.py[DEBUG]: Reading from /var/lib/cloud/seed/nocloud/network-config (quiet=False)
2017-05-01 14:24:50,297 - util.py[DEBUG]: Reading from /var/lib/cloud/seed/nocloud-net/user-data (quiet=False)
2017-05-01 14:24:50,297 - util.py[DEBUG]: Reading from /var/lib/cloud/seed/nocloud-net/meta-data (quiet=False)
2017-05-01 14:24:50,297 - util.py[DEBUG]: Reading from /var/lib/cloud/seed/nocloud-net/vendor-data (quiet=False)
2017-05-01 14:24:50,298 - util.py[DEBUG]: Reading from /var/lib/cloud/seed/nocloud-net/network-config (quiet=False)
2017-05-01 14:24:50,298 - util.py[DEBUG]: Running command ['blkid', '-odevice', '/dev/sr0'] with allowed return codes [0, 2] (shell=False, capture=True)
2017-05-01 14:24:50,300 - util.py[DE...

Revision history for this message
Vincenzo Di Somma (vds) wrote :

This is a KVM machine on Openstack - Ocata.

Revision history for this message
Vincenzo Di Somma (vds) wrote :

It was actually nova-lxd so this is a duplicate of #1661797

$ ubuntu@juju-d294bf-attic-1:~$ systemd-detect-virt
lxc

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.