datasources for is: ['None'] when the datasource used was: OpenStack
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:/
# #
# 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_
*******
Disable the warnings above by:
touch /home/ubuntu/
or
touch /var/lib/
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 system- generators/ cloud-init- generator normal= /run/systemd/ generator early=/ run/systemd/ generator. early late=/run/ systemd/ generator. late systemd --system --deserialize 24 generator. early/multi- user.target. wants/cloud- init.target -> /lib/systemd/ system/ cloud-init. target
/lib/systemd/
kernel command line (container[lxc]: pid 1 cmdline): /lib/systemd/
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/
ubuntu@ juju-d294bf- attic-1: ~$ cat /run/cloud- init/cloud. cfg juju-d294bf- attic-1: ~$ cat /run/cloud-init/ config- ready status.json generator. log .ds-identify.result .instance-id result.json juju-d294bf- attic-1: ~$ cat /run/cloud- init/ds- identify. log cloud.cfg. d/90_dpkg. cfg set datasource_list: [ NoCloud, ConfigDrive, OpenNebula, DigitalOcean, Azure, AltCloud, OVF, MAAS, GCE, OpenStack, CloudSigma, SmartOS, Ec2, CloudStack, None ] NAME=ProLiant DL360p Gen8 SERIAL= unavailable UUID=unavailabl e unavailable unavailable: container CMDLINE= /sbin/init NAME=Linux RELEASE= 4.4.0-72- generic VERSION= #93-Ubuntu SMP Fri Mar 31 14:07:41 UTC 2017 x86_64 ubuntu _SYSTEM= GNU/Linux
di_report:
datasource_list: [ None ]
ubuntu@
cloud.cfg ds-identify.log enabled network-
cloud-init-
ubuntu@
[up 0.0s] ds-identify
policy loaded: mode=report report=false found=all maybe=all notfound=enabled
/etc/cloud/
DMI_PRODUCT_
DMI_SYS_VENDOR=HP
DMI_PRODUCT_
DMI_PRODUCT_
PID_1_PLATFORM=
FS_LABELS=
KERNEL_
VIRT=lxc
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=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 1a5b-45d5- 91e1-deea85f779 75
b1dbb096-
ubuntu@ juju-d294bf- attic-1: ~$ cat /run/cloud- init/result. json Stack [net,ver=2]",
{
"v1": {
"datasource": "DataSourceOpen
"errors": []
}
}
ubuntu@ juju-d294bf- attic-1: ~$ cat /run/cloud- init/status. json Stack [net,ver=2]",
{
"v1": {
"datasource": "DataSourceOpen
"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
}
}