Bug 1481809
| Summary: | create from image fails if glance image is raw with qcow2 header | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Eric Harney <eharney> |
| Component: | openstack-cinder | Assignee: | Eric Harney <eharney> |
| Status: | CLOSED ERRATA | QA Contact: | Avi Avraham <aavraham> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 11.0 (Ocata) | CC: | aavraham, eharney, mariel, mzheng, pgrist, pmorey, slinaber, srevivo, tshefi |
| Target Milestone: | z3 | Keywords: | Triaged, ZStream |
| Target Release: | 11.0 (Ocata) | Flags: | tshefi:
automate_bug+
|
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | openstack-cinder-10.0.4-4.el7ost | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1470217 | Environment: | |
| Last Closed: | 2017-10-31 17:44:20 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1470217 | ||
|
Description
Eric Harney
2017-08-15 19:06:30 UTC
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 |