Comment 4 for bug 1187629

Revision history for this message
Attila Fazekas (afazekas) wrote :

$ 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

It seams still empty.

Keeping test in the repo which referencing to not exiting directory is not good.
Implementing the https://bugs.launchpad.net/tempest/+bug/893843 would be better test for injections.

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.