[Openstack] Can't create image w/ glance.

xu cai jeffreycai at gmail.com
Thu Dec 31 07:02:31 UTC 2015


 stack at ubuntu:~/workspace/devstack/files/images$ glance image-create --name
test --disk-format qcow2 --container-format bare --visibility public
--progress <cirros-0.3.2-x86_64-disk.img
+------------------+--------------------------------------+
| Property         | Value                                |
+------------------+--------------------------------------+
| checksum         | None                                 |
| container_format | bare                                 |
| created_at       | 2015-12-31T06:55:27Z                 |
| disk_format      | qcow2                                |
| id               | 7938704e-74e5-4034-b502-1a0a633ec695 |
| min_disk         | 0                                    |
| min_ram          | 0                                    |
| name             | test                                 |
| owner            | 549133f74d044c47a8efaf37708de53d     |
| protected        | False                                |
| size             | None                                 |
| status           | queued                               |
| tags             | []                                   |
| updated_at       | 2015-12-31T06:55:27Z                 |
| virtual_size     | None                                 |
| visibility       | public                               |
+------------------+--------------------------------------+
must be string or buffer, not generator
stack at ubuntu:~/workspace/devstack/files/images$
stack at ubuntu:~/workspace/devstack/files/images$ glance image-list
+--------------------------------------+------+
| ID                                   | Name |
+--------------------------------------+------+
| 7938704e-74e5-4034-b502-1a0a633ec695 | test |
+--------------------------------------+------+
stack at ubuntu:~/workspace/devstack/files/images$
stack at ubuntu:~/workspace/devstack/files/images$ glance image-show
7938704e-74e5-4034-b502-1a0a633ec695
+------------------+--------------------------------------+
| Property         | Value                                |
+------------------+--------------------------------------+
| checksum         | d41d8cd98f00b204e9800998ecf8427e     |
| container_format | bare                                 |
| created_at       | 2015-12-31T06:55:27Z                 |
| disk_format      | qcow2                                |
| id               | 7938704e-74e5-4034-b502-1a0a633ec695 |
| min_disk         | 0                                    |
| min_ram          | 0                                    |
| name             | test                                 |
| owner            | 549133f74d044c47a8efaf37708de53d     |
| protected        | False                                |
| size             | 0                                    |
| status           | active                               |
| tags             | []                                   |
| updated_at       | 2015-12-31T06:55:27Z                 |
| virtual_size     | None                                 |
| visibility       | public                               |
+------------------+--------------------------------------+
stack at ubuntu:~/workspace/devstack/files/images$ glance --version
1.2.0
stack at ubuntu:~/workspace/devstack/files/images$ uname -a
Linux ubuntu 3.19.0-33-generic #38~14.04.1-Ubuntu SMP Fri Nov 6 18:17:28
UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

stack at ubuntu:~/workspace/devstack/files/images$ file
cirros-0.3.2-x86_64-disk.img
cirros-0.3.2-x86_64-disk.img: QEMU QCOW Image (v2), 41126400 bytes

any hint how to resolve this ?

regards
jeffrey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20151231/357e4c60/attachment.html>


More information about the Openstack mailing list