+++ This bug was initially created as a clone of Bug #1470217 +++ $ qemu-img create -f qcow2 testqcow2.img 1G $ glance image-create --file ./testqcow2.img --disk-format raw --container-format bare $ cinder create 1 --image-id <image> This fails with: ImageUnacceptable: Image e020e664-fe3a-40a0-8d32-928fbc7b4a75 is unacceptable: Converted to raw, but format is now qcow2 This is because Cinder does a "qemu-img info" check to determine the file format, which is detected as qcow2. Raw images from Glance need to do this check differently because they could contain any header/format.
Verified on openstack-cinder-10.0.6-1.el7ost.noarch Repro steps work without error, volume is created from image. qemu-img create -f qcow2 testqcow2.img 1G Formatting 'testqcow2.img', fmt=qcow2 size=1073741824 encryption=off cluster_size=65536 lazy_refcounts=off refcount_bits=16 [stack@undercloud-0 ~]$ glance image-create --file ./testqcow2.img --disk-format raw --container-format bare +------------------+-----------------------------------------------------------------+ | Property | Value | +------------------+-----------------------------------------------------------------+ | checksum | 8810863346314775e74ae12bc2228ef1 | | container_format | bare | | created_at | 2017-10-15T19:33:20Z | | direct_url | swift+config://ref1/glance/0b8d3abc-72cd-4341-9547-eb234f5e203b | | disk_format | raw | | id | 0b8d3abc-72cd-4341-9547-eb234f5e203b | | min_disk | 0 | | min_ram | 0 | | name | None | | owner | 83d18c34b9b34a7e8eb9707e8b315306 | | protected | False | | size | 196624 | | status | active | | tags | [] | | updated_at | 2017-10-15T19:33:20Z | | virtual_size | None | | visibility | shared | +------------------+-----------------------------------------------------------------+ [stack@undercloud-0 ~]$ cinder create 1 --image-id 0b8d3abc-72cd-4341-9547-eb234f5e203b +--------------------------------+--------------------------------------+ | Property | Value | +--------------------------------+--------------------------------------+ | attachments | [] | | availability_zone | nova | | bootable | false | | consistencygroup_id | None | | created_at | 2017-10-15T19:33:51.000000 | | description | None | | encrypted | False | | id | 0c736fab-e373-44da-b5fa-8dda9d21f4d4 | | metadata | {} | | migration_status | None | | multiattach | False | | name | None | | os-vol-host-attr:host | None | | os-vol-mig-status-attr:migstat | None | | os-vol-mig-status-attr:name_id | None | | os-vol-tenant-attr:tenant_id | 83d18c34b9b34a7e8eb9707e8b315306 | | replication_status | None | | size | 1 | | snapshot_id | None | | source_volid | None | | status | creating | | updated_at | None | | user_id | 2e034e7699db454cbe2e415dad80565c | | volume_type | None | +--------------------------------+--------------------------------------+ [stack@undercloud-0 ~]$ cinder list +--------------------------------------+-----------+------+------+-------------+----------+-------------+ | ID | Status | Name | Size | Volume Type | Bootable | Attached to | +--------------------------------------+-----------+------+------+-------------+----------+-------------+ | 0c736fab-e373-44da-b5fa-8dda9d21f4d4 | available | - | 1 | - | true | | +--------------------------------------+-----------+------+------+-------------+----------+-------------+
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2017:3103