Comment 6 for bug 1685810

Revision history for this message
Chad Smith (chad.smith) wrote :

Validated yakkety and zesty discovered single OpenStack datasource:
ref=yakkety-proposed
$ lxc image export $ref .
Output is in a....tar.gz
$ imagefile=`ls -tr *gz | tail -n 1`
$ mkdir $ref; cd $ref; tar -zxvf ../$imagefile; cd rootfs; tar zcvf /tmp/$ref.tar.gz *;
$ openstack image create --disk-format raw --container-format bare --file /tmp/$ref.tar.gz bbsw/$ref.tar.gz
...
| name | bbsw/yakkety-proposed.tar.gz |
...
$ openstack server create --image bbsw/yakkety-proposed.tar.gz --flavor m1.tiny lxd-yakkety --user-data user-data.txt --key-name chad-smith
...
| image | bbsw/zesty-proposed.tar.gz (97d35b90-ff04-478e-ae77-89c3b5c86a41) |
| key_name | chad-smith |
| name | lxd-zesty
$ nova floating-ip-associate lxd-yakkety 10.245.162.112
$ ssh ubuntu@10.245.162.112
The authenticity of host '10.245.162.112 (10.245.162.112)' can't be established.
ECDSA key fingerprint is SHA256:IwlHdz1zqPh2m4fWOkSLxMm82GAFZ6KNzPo2fnHjM3g.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '10.245.162.112' (ECDSA) to the list of known hosts.

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
### no warning
ubuntu@lxd-yakkety:~$ grep VERSION= /etc/os-release
VERSION="16.10 (Yakkety Yak)"
ubuntu@lxd-yakkety:~$ dpkg -l cloud-init
ii cloud-init 0.7.9-113-g513e99e0-0ub all Init scripts for cloud instances

$ubuntu@lxd-yakkety:~$ sudo DEBUG_LEVEL=2 DI_LOG=stderr /usr/lib/cloud-init/ds-identify --force 2>&1 | grep Found
Found single datasource: OpenStack

----zesty
ref=zesty-proposed
$ lxc image export $ref .
Output is in a....tar.gz
$ imagefile=`ls -tr *gz | tail -n 1`
$ mkdir $ref; cd $ref; tar -zxvf ../$imagefile; cd rootfs; tar zcvf /tmp/$ref.tar.gz *;
$ openstack image create --disk-format raw --container-format bare --file /tmp/$ref.tar.gz bbsw/$ref.tar.gz
...
| name | bbsw/zesty-proposed.tar.gz |
...
$ openstack server create --image bbsw/zesty-proposed.tar.gz --flavor m1.tiny lxd-zesty --user-data user-data.txt --key-name chad-smith
...
| image | bbsw/zesty-proposed.tar.gz (97d35b90-ff04-478e-ae77-89c3b5c86a41) |
| key_name | chad-smith |
| name | lxd-zesty
$ nova floating-ip-associate lxd-zesty 10.245.162.145
$ ssh ubuntu@10.245.162.145
The authenticity of host '10.245.162.145 (10.245.162.145)' can't be established.
ECDSA key fingerprint is SHA256:IwlHdz1zqPh2m4fWOkSLxMm82GAFZ6KNzPo2fnHjM3g.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '10.245.162.145' (ECDSA) to the list of known hosts.

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

ubuntu@lxd-zesty:~$ grep VERSION= /etc/os-release
VERSION="17.04 (Zesty Zapus)"
ubuntu@lxd-zesty:~$ dpkg -l cloud-init
ii cloud-init 0.7.9-113-g513e99e0-0ub all Init scripts for cloud instances

$ubuntu@lxd-zesty:~$ sudo DEBUG_LEVEL=2 DI_LOG=stderr /usr/lib/cloud-init/ds-identify --force 2>&1 | grep Found
Found single datasource: OpenStack