Revision history [back]

click to hide/show revision 1
initial version

Glance docker images not created, always in SAVING state

Hi,

I have installed Openstack Kilo on Ubuntu 14.04 and integrated glance with docker. but when I run glance image-create command, images are always in saving state.

root@controller:~# docker save cirros | glance image-create --visibility public --container-format=docker --disk-format=raw --name cirros --progress
+------------------+--------------------------------------+
| Property         | Value                                |
+------------------+--------------------------------------+
| checksum         | None                                 |
| container_format | docker                               |
| created_at       | 2015-07-14T08:36:52Z                 |
| disk_format      | raw                                  |
| id               | 3edeb153-252f-4065-af61-f9628c3c5873 |
| min_disk         | 0                                    |
| min_ram          | 0                                    |
| name             | cirros                               |
| owner            | b48769b527734606a42bf9e69e8e9b14     |
| protected        | False                                |
| size             | None                                 |
| status           | queued                               |
| tags             | []                                   |
| updated_at       | 2015-07-14T08:36:52Z                 |
| virtual_size     | None                                 |
| visibility       | public                               |
+------------------+--------------------------------------+
write /dev/stdout: broken pipe

root@controller:~# nova image-list
+--------------------------------------+---------------------+--------+--------+
| ID                                   | Name                | Status | Server |
+--------------------------------------+---------------------+--------+--------+
| 24a1275d-ffa1-487a-aef0-0b79a6808e58 | Ubuntu-Trusty       | ACTIVE |        |
| ed5a37a3-717d-41e6-a073-88b6037f10dd | cirros              | SAVING |        |
| fa543735-28a8-4445-899c-e00747e88478 | cirros              | SAVING |        |
| 14954dd5-bc42-4f70-be59-c8c839ed72dc | cirros-0.3.4-x86_64 | ACTIVE |        |
+--------------------------------------+---------------------+--------+--------+

There is no error in logs of glance api and registry.

I have below configure in glance-api.conf:

[image_format]
container_formats = ami,ari,aki,bare,ovf,docker

[glance_store]
default_store = file
filesystem_store_datadir = /var/lib/glance/images/

If I create normal images it works fine but when I create images with docker save, it gives error 'write /dev/stdout: broken pipe' and images are always in saving state.

Please suggest.