$ glance image-list
+--------------------------------------+---------------------------------+-------------+------------------+----------+--------+
| ID | Name | Disk Format | Container Format | Size | Status |
+--------------------------------------+---------------------------------+-------------+------------------+----------+--------+
| befba0fb-4e69-4051-b488-9f140c5325fa | cirros-0.3.1-x86_64-uec | ami | ami | 25165824 | active |
| c91697db-6dab-404f-bccd-5d9ad10e208b | cirros-0.3.1-x86_64-uec-kernel | aki | aki | 4955792 | active |
| eb042039-c4d4-4f49-85ab-dc3de687dc90 | cirros-0.3.1-x86_64-uec-ramdisk | ari | ari | 3714968 | active |
+--------------------------------------+---------------------------------+-------------+------------------+----------+--------+
$ glance image-download befba0fb-4e69-4051-b488-9f140c5325fa >image.img
$ file image.img
image.img: Linux rev 1.0 ext3 filesystem data, UUID=74251bb8-3a28-4a46-9a78-064497b26b9d, volume name "cirros-rootfs"
$ mkdir /tmp/loop
$ sudo mount -o loop image.img /tmp/loop/
$ ls /tmp/loop/
lost+found
The other possible solution on the nova side, is creating the directories automatically, but I am not sure what will be the correct permission -- owner/group and/or security label for new directory.
$ glance image-list ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ---+--- ------- ---+--- ------- ------- -+----- -----+- ------- + ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ---+--- ------- ---+--- ------- ------- -+----- -----+- ------- + 4e69-4051- b488-9f140c5325 fa | cirros- 0.3.1-x86_ 64-uec | ami | ami | 25165824 | active | 6dab-404f- bccd-5d9ad10e20 8b | cirros- 0.3.1-x86_ 64-uec- kernel | aki | aki | 4955792 | active | c4d4-4f49- 85ab-dc3de687dc 90 | cirros- 0.3.1-x86_ 64-uec- ramdisk | ari | ari | 3714968 | active | ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ---+--- ------- ---+--- ------- ------- -+----- -----+- ------- + 4e69-4051- b488-9f140c5325 fa >image.img 3a28-4a46- 9a78-064497b26b 9d, volume name "cirros-rootfs"
+------
| ID | Name | Disk Format | Container Format | Size | Status |
+------
| befba0fb-
| c91697db-
| eb042039-
+------
$ glance image-download befba0fb-
$ file image.img
image.img: Linux rev 1.0 ext3 filesystem data, UUID=74251bb8-
$ mkdir /tmp/loop
$ sudo mount -o loop image.img /tmp/loop/
$ ls /tmp/loop/
lost+found
It seams still empty.
Keeping test in the repo which referencing to not exiting directory is not good. /bugs.launchpad .net/tempest/ +bug/893843 would be better test for injections.
Implementing the https:/
The other possible solution on the nova side, is creating the directories automatically, but I am not sure what will be the correct permission -- owner/group and/or security label for new directory.