[queens][config_drive] not working for ubuntu bionic

Ignazio Cassano ignaziocassano at gmail.com
Fri Feb 14 19:14:55 UTC 2020


Hello, attaced here thera are the cloud-init logs form ubuntu 18 instance.
Note I can mount /dev/cdrom and see metadata:
mount -o ro /dev/cdrom /mnt
ls -laR /mnt
total 10
dr-xr-xr-x  4 root root 2048 Feb 14 17:05 .
drwxr-xr-x 24 root root 4096 Feb 14 17:08 ..
dr-xr-xr-x  4 root root 2048 Feb 14 17:05 ec2
dr-xr-xr-x 11 root root 2048 Feb 14 17:05 openstack

/mnt/ec2:
total 8
dr-xr-xr-x 4 root root 2048 Feb 14 17:05 .
dr-xr-xr-x 4 root root 2048 Feb 14 17:05 ..
dr-xr-xr-x 2 root root 2048 Feb 14 17:05 2009-04-04
dr-xr-xr-x 2 root root 2048 Feb 14 17:05 latest

/mnt/ec2/2009-04-04:
total 5
dr-xr-xr-x 2 root root 2048 Feb 14 17:05 .
dr-xr-xr-x 4 root root 2048 Feb 14 17:05 ..
-r--r--r-- 1 root root  963 Feb 14 17:05 meta-data.json

/mnt/ec2/latest:
total 5
dr-xr-xr-x 2 root root 2048 Feb 14 17:05 .
dr-xr-xr-x 4 root root 2048 Feb 14 17:05 ..
-r--r--r-- 1 root root  963 Feb 14 17:05 meta-data.json

/mnt/openstack:
total 22
dr-xr-xr-x 11 root root 2048 Feb 14 17:05 .
dr-xr-xr-x  4 root root 2048 Feb 14 17:05 ..
dr-xr-xr-x  2 root root 2048 Feb 14 17:05 2012-08-10
dr-xr-xr-x  2 root root 2048 Feb 14 17:05 2013-04-04
dr-xr-xr-x  2 root root 2048 Feb 14 17:05 2013-10-17
dr-xr-xr-x  2 root root 2048 Feb 14 17:05 2015-10-15
dr-xr-xr-x  2 root root 2048 Feb 14 17:05 2016-06-30
dr-xr-xr-x  2 root root 2048 Feb 14 17:05 2016-10-06
dr-xr-xr-x  2 root root 2048 Feb 14 17:05 2017-02-22
dr-xr-xr-x  2 root root 2048 Feb 14 17:05 2018-08-27
dr-xr-xr-x  2 root root 2048 Feb 14 17:05 latest

/mnt/openstack/2012-08-10:
total 6
dr-xr-xr-x  2 root root 2048 Feb 14 17:05 .
dr-xr-xr-x 11 root root 2048 Feb 14 17:05 ..
-r--r--r--  1 root root 1056 Feb 14 17:05 meta_data.json

/mnt/openstack/2013-04-04:
total 6
dr-xr-xr-x  2 root root 2048 Feb 14 17:05 .
dr-xr-xr-x 11 root root 2048 Feb 14 17:05 ..
-r--r--r--  1 root root 1759 Feb 14 17:05 meta_data.json

/mnt/openstack/2013-10-17:
total 7
dr-xr-xr-x  2 root root 2048 Feb 14 17:05 .
dr-xr-xr-x 11 root root 2048 Feb 14 17:05 ..
-r--r--r--  1 root root 1759 Feb 14 17:05 meta_data.json
-r--r--r--  1 root root    2 Feb 14 17:05 vendor_data.json

/mnt/openstack/2015-10-15:
total 7
dr-xr-xr-x  2 root root 2048 Feb 14 17:05 .
dr-xr-xr-x 11 root root 2048 Feb 14 17:05 ..
-r--r--r--  1 root root 1809 Feb 14 17:05 meta_data.json
-r--r--r--  1 root root  397 Feb 14 17:05 network_data.json
-r--r--r--  1 root root    2 Feb 14 17:05 vendor_data.json

/mnt/openstack/2016-06-30:
total 7
dr-xr-xr-x  2 root root 2048 Feb 14 17:05 .
dr-xr-xr-x 11 root root 2048 Feb 14 17:05 ..
-r--r--r--  1 root root 1824 Feb 14 17:05 meta_data.json
-r--r--r--  1 root root  397 Feb 14 17:05 network_data.json
-r--r--r--  1 root root    2 Feb 14 17:05 vendor_data.json

/mnt/openstack/2016-10-06:
total 8
dr-xr-xr-x  2 root root 2048 Feb 14 17:05 .
dr-xr-xr-x 11 root root 2048 Feb 14 17:05 ..
-r--r--r--  1 root root 1824 Feb 14 17:05 meta_data.json
-r--r--r--  1 root root  397 Feb 14 17:05 network_data.json
-r--r--r--  1 root root    2 Feb 14 17:05 vendor_data.json
-r--r--r--  1 root root   14 Feb 14 17:05 vendor_data2.json

/mnt/openstack/2017-02-22:
total 8
dr-xr-xr-x  2 root root 2048 Feb 14 17:05 .
dr-xr-xr-x 11 root root 2048 Feb 14 17:05 ..
-r--r--r--  1 root root 1824 Feb 14 17:05 meta_data.json
-r--r--r--  1 root root  397 Feb 14 17:05 network_data.json
-r--r--r--  1 root root    2 Feb 14 17:05 vendor_data.json
-r--r--r--  1 root root   14 Feb 14 17:05 vendor_data2.json

/mnt/openstack/2018-08-27:
total 8
dr-xr-xr-x  2 root root 2048 Feb 14 17:05 .
dr-xr-xr-x 11 root root 2048 Feb 14 17:05 ..
-r--r--r--  1 root root 1824 Feb 14 17:05 meta_data.json
-r--r--r--  1 root root  397 Feb 14 17:05 network_data.json
-r--r--r--  1 root root    2 Feb 14 17:05 vendor_data.json
-r--r--r--  1 root root   14 Feb 14 17:05 vendor_data2.json

/mnt/openstack/latest:
total 8
dr-xr-xr-x  2 root root 2048 Feb 14 17:05 .
dr-xr-xr-x 11 root root 2048 Feb 14 17:05 ..
-r--r--r--  1 root root 1824 Feb 14 17:05 meta_data.json
-r--r--r--  1 root root  397 Feb 14 17:05 network_data.json
-r--r--r--  1 root root    2 Feb 14 17:05 vendor_data.json
-r--r--r--  1 root root   14 Feb 14 17:05 vendor_data2.json

Thanks
Ignazio

Il giorno ven 14 feb 2020 alle ore 19:16 Jeremy Stanley <fungi at yuggoth.org>
ha scritto:

> On 2020-02-14 17:51:01 +0100 (+0100), Ignazio Cassano wrote:
> > Hello, I configured config drive and centos instances works fine
> > with it. Ubuntu bionic tries to get metadata from network and
> > cloud-init does not set hostname and does not insert keys for ssh.
>
> The cloud-init changelog indicates that initial support for
> configdrive first appeared in 0.6.3, so the versions in Ubuntu
> Bionic (and even Xenial) should be new enough to make use of it. In
> fact, the official Ubuntu bionic-updates package suite includes
> cloud-init 19.4 (the most recent release), so missing
> features/support seem unlikely. Detailed log entries from cloud-init
> running at boot might help in diagnosing the problem.
> --
> Jeremy Stanley
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-discuss/attachments/20200214/76fba16e/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cloud-init.log
Type: text/x-log
Size: 106195 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack-discuss/attachments/20200214/76fba16e/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cloud-init-output.log
Type: text/x-log
Size: 6403 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack-discuss/attachments/20200214/76fba16e/attachment-0003.bin>


More information about the openstack-discuss mailing list