Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1335835 - image-create does not respect the force_raw_images setting
image-create does not respect the force_raw_images setting
Status: CLOSED ERRATA
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-nova (Show other bugs)
9.0 (Mitaka)
All All
medium Severity medium
: ga
: 9.0 (Mitaka)
Assigned To: Sahid Ferdjaoui
Prasanth Anbalagan
:
Depends On: 1316147
Blocks:
  Show dependency treegraph
 
Reported: 2016-05-13 06:36 EDT by Sahid Ferdjaoui
Modified: 2016-08-17 01:41 EDT (History)
16 users (show)

See Also:
Fixed In Version: openstack-nova-13.0.0-4.el7ost
Doc Type: Bug Fix
Doc Text:
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.
Story Points: ---
Clone Of: 1316147
Environment:
Last Closed: 2016-08-11 08:19:56 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
OpenStack gerrit 226069 None None None 2016-05-13 06:36 EDT
Red Hat Product Errata RHEA-2016:1597 normal SHIPPED_LIVE Red Hat OpenStack Platform 9 Release Candidate Advisory 2016-08-11 12:06:52 EDT

  None (edit)
Comment 2 Prasanth Anbalagan 2016-05-18 15:46:28 EDT
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)]#
Comment 3 Charles Crouch 2016-05-18 15:59:08 EDT
Removing ciscoosp8bt/ciscoosp8bugs from Blocks list since this Mitaka targeted bug doesn't impact our RHELOSP8 deployment.
Comment 5 errata-xmlrpc 2016-08-11 08:19:56 EDT
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

Note You need to log in before you can comment on or make changes to this bug.