When creating snapshots, the compute API now omits disk format and container format details from the image API request. This helps ensure that the driver will use the correct snapshot image format. This, in turn, prevents snapshots from failing with a BadRequest if its image is converted to a format other than what the base image uses.
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://rhn.redhat.com/errata/RHEA-2016-1597.html
Verified as follows, ************ VERSION ************ [root@serverA ~(keystone_admin)]# yum list installed | grep openstack-nova openstack-nova-api.noarch 1:13.0.0-4.el7ost @rhelosp-9.0-puddle openstack-nova-cert.noarch 1:13.0.0-4.el7ost @rhelosp-9.0-puddle openstack-nova-common.noarch 1:13.0.0-4.el7ost @rhelosp-9.0-puddle openstack-nova-compute.noarch 1:13.0.0-4.el7ost @rhelosp-9.0-puddle openstack-nova-conductor.noarch 1:13.0.0-4.el7ost @rhelosp-9.0-puddle openstack-nova-console.noarch 1:13.0.0-4.el7ost @rhelosp-9.0-puddle openstack-nova-novncproxy.noarch 1:13.0.0-4.el7ost @rhelosp-9.0-puddle openstack-nova-scheduler.noarch 1:13.0.0-4.el7ost @rhelosp-9.0-puddle [root@serverA ~(keystone_admin)]# ********* LOGS ********* [root@serverA ~(keystone_admin)]# grep "use_cow_images" /etc/nova/nova.conf use_cow_images=False # VM Images format. If default is specified, then use_cow_images flag is used [root@serverA ~(keystone_admin)]# grep "force_raw_images" /etc/nova/nova.conf #force_raw_images=true force_raw_images=True [root@serverA ~(keystone_admin)]# grep "disk_format" /etc/glance/glance-api.conf # Supported values for the 'disk_format' image attribute (list value) # Deprecated group/name - [DEFAULT]/disk_formats #disk_formats = ami,ari,aki,vhd,vmdk,raw,qcow2,vdi,iso disk_formats = ami,ari,aki,raw,iso [root@serverA ~(keystone_admin)]# [root@serverA ~(keystone_admin)]# glance image-list +--------------------------------------+--------+ | ID | Name | +--------------------------------------+--------+ | 5a2803b6-eb55-4f31-b0df-52410f8e5074 | cirros | +--------------------------------------+--------+ [root@serverA ~(keystone_admin)]# glance image-show 5a2803b6-eb55-4f31-b0df-52410f8e5074 +------------------+--------------------------------------+ | Property | Value | +------------------+--------------------------------------+ | checksum | ee1eca47dc88f4879d8a229cc70a07c6 | | container_format | bare | | created_at | 2016-05-18T18:35:59Z | | disk_format | qcow2 | | id | 5a2803b6-eb55-4f31-b0df-52410f8e5074 | | min_disk | 0 | | min_ram | 0 | | name | cirros | | owner | dc569ef373a748ad9d9c88fb5f3c2f9c | | protected | False | | size | 13287936 | | status | active | | tags | [] | | updated_at | 2016-05-18T18:36:27Z | | virtual_size | None | | visibility | public | +------------------+--------------------------------------+ [root@serverA ~(keystone_admin)]# neutron net-list +--------------------------------------+----------------------------+------------------------------------------------------+ | id | name | subnets | +--------------------------------------+----------------------------+------------------------------------------------------+ | 01ed1df6-10e2-4d09-bb6d-3312e8532189 | test-port-security-disable | 2af4eec5-ea95-4162-8b3a-174271ef3d3e 172.28.0.0/24 | | 41afa174-f29d-47f5-80f5-ea16818f0a3e | private | 254ee6e6-6e6d-4db6-8492-e8e47a68118b 10.0.0.0/24 | | 1dc45895-c93e-41bc-b06f-e8f8f026a52e | public | 19b9fa13-2926-4d70-90b1-211c0790adfc 172.24.4.224/28 | +--------------------------------------+----------------------------+------------------------------------------------------+ [root@serverA ~(keystone_admin)]# nova boot --flavor 1 --image cirros --nic net-id=41afa174-f29d-47f5-80f5-ea16818f0a3e vm1 +--------------------------------------+-----------------------------------------------+ | Property | Value | +--------------------------------------+-----------------------------------------------+ | OS-DCF:diskConfig | MANUAL | | OS-EXT-AZ:availability_zone | | | OS-EXT-SRV-ATTR:host | - | | OS-EXT-SRV-ATTR:hypervisor_hostname | - | | OS-EXT-SRV-ATTR:instance_name | instance-00000006 | | OS-EXT-STS:power_state | 0 | | OS-EXT-STS:task_state | scheduling | | OS-EXT-STS:vm_state | building | | OS-SRV-USG:launched_at | - | | OS-SRV-USG:terminated_at | - | | accessIPv4 | | | accessIPv6 | | | adminPass | iLgZkQaMX8sN | | config_drive | | | created | 2016-05-18T19:41:56Z | | flavor | m1.tiny (1) | | hostId | | | id | 16acfbd8-571f-4a39-b269-cc2715653012 | | image | cirros (5a2803b6-eb55-4f31-b0df-52410f8e5074) | | key_name | - | | metadata | {} | | name | vm1 | | os-extended-volumes:volumes_attached | [] | | progress | 0 | | security_groups | default | | status | BUILD | | tenant_id | f26351a310404d62bc33af8ee8ce39b7 | | updated | 2016-05-18T19:41:56Z | | user_id | 4efa7a9b2626458fa8c58af588b572e7 | +--------------------------------------+-----------------------------------------------+ [root@serverA ~(keystone_admin)]# nova list +--------------------------------------+------+--------+------------+-------------+------------------+ | ID | Name | Status | Task State | Power State | Networks | +--------------------------------------+------+--------+------------+-------------+------------------+ | 16acfbd8-571f-4a39-b269-cc2715653012 | vm1 | ACTIVE | - | Running | private=10.0.0.3 | +--------------------------------------+------+--------+------------+-------------+------------------+ [root@serverA ~(keystone_admin)]# [root@serverA ~(keystone_admin)]# [root@serverA ~(keystone_admin)]# nova image-create vm1 vm1_snapshot [root@serverA ~(keystone_admin)]# nova image-list +--------------------------------------+--------------+--------+--------------------------------------+ | ID | Name | Status | Server | +--------------------------------------+--------------+--------+--------------------------------------+ | 5a2803b6-eb55-4f31-b0df-52410f8e5074 | cirros | ACTIVE | | | 94db5493-f35b-47a5-a566-8a136c7c2088 | vm1_snapshot | ACTIVE | 16acfbd8-571f-4a39-b269-cc2715653012 | +--------------------------------------+--------------+--------+--------------------------------------+ [root@serverA ~(keystone_admin)]#