Bug 1323654

Summary: Flavor %(id)d extra spec cannot be updated
Product: Red Hat OpenStack Reporter: Martin Pavlásek <mpavlase>
Component: openstack-novaAssignee: Diana Clarke <dclarke>
Status: CLOSED ERRATA QA Contact: Prasanth Anbalagan <panbalag>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0 (Kilo)CC: berrange, dasmith, dclarke, eglynn, jruzicka, kchamart, mwitt, sbauza, sferdjao, sgordon, srevivo, vromanso
Target Milestone: ---Keywords: ZStream
Target Release: 7.0 (Kilo)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-nova-2015.1.3-12.el7ost Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-26 16:54:59 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:

Description Martin Pavlásek 2016-04-04 11:07:34 UTC
Description of problem:
Strings in error message are not substituted by values.

Version-Release number of selected component (if applicable):
rhel 7.2, puddle 2016-03-11.1
python-novaclient-2.23.0-2.el7ost.noarch
python-openstackclient-1.0.3-3.el7ost.noarch
openstack-nova-compute-2015.1.2-18.2.el7ost.noarch
openstack-nova-api-2015.1.2-18.2.el7ost.noarch

How reproducible:
100%

Steps to Reproduce:
1. install rhos7 by packstack, source keystone_admin_rc (so log in as admin user)
2. nova flavor-key m1.tiny set RAM=100

Actual results:
ERROR (Conflict): Flavor %(id)d extra spec cannot be updated or created after %(retries)d retries. (HTTP 409) (Request-ID: req-056320ce-0ba6-44e9-b551-5c58bd961db7)


Additional info:

Comment 2 Diana Clarke 2016-04-08 19:17:53 UTC
Thanks for taking the time to report this, Martin.

The format string was fixed in OSP9/Mitaka:

    https://bugs.launchpad.net/nova/+bug/1528250
    
I have also submitted an upstream patch to stable/liberty:

    https://review.openstack.org/#/c/303558/

I'll see about backporting those changes downstream next week.

Have a great weekend!

--diana

Comment 4 Prasanth Anbalagan 2016-04-19 13:50:40 UTC
Verified as follows,

************
VERSION
************

[root@cougar14 ~(keystone_admin)]# yum list installed | grep openstack-nova
openstack-nova-api.noarch            2015.1.3-12.el7ost      @rhelosp-7.0-puddle
openstack-nova-cert.noarch           2015.1.3-12.el7ost      @rhelosp-7.0-puddle
openstack-nova-common.noarch         2015.1.3-12.el7ost      @rhelosp-7.0-puddle
openstack-nova-conductor.noarch      2015.1.3-12.el7ost      @rhelosp-7.0-puddle
openstack-nova-console.noarch        2015.1.3-12.el7ost      @rhelosp-7.0-puddle
openstack-nova-novncproxy.noarch     2015.1.3-12.el7ost      @rhelosp-7.0-puddle
openstack-nova-scheduler.noarch      2015.1.3-12.el7ost      @rhelosp-7.0-puddle


***********
LOGS
***********

[root@cougar14 ~(keystone_admin)]# 
[root@cougar14 ~(keystone_admin)]# 
[root@cougar14 ~(keystone_admin)]# nova flavor-key m1.tiny set RAM=100
[root@cougar14 ~(keystone_admin)]# 
[root@cougar14 ~(keystone_admin)]# nova flavor-show m1.tiny
+----------------------------+----------------+
| Property                   | Value          |
+----------------------------+----------------+
| OS-FLV-DISABLED:disabled   | False          |
| OS-FLV-EXT-DATA:ephemeral  | 0              |
| disk                       | 1              |
| extra_specs                | {"RAM": "100"} |
| id                         | 1              |
| name                       | m1.tiny        |
| os-flavor-access:is_public | True           |
| ram                        | 512            |
| rxtx_factor                | 1.0            |
| swap                       |                |
| vcpus                      | 1              |
+----------------------------+----------------+
[root@cougar14 ~(keystone_admin)]# nova flavor-key m1.tiny set RAM=200
[root@cougar14 ~(keystone_admin)]# nova flavor-show m1.tiny
+----------------------------+----------------+
| Property                   | Value          |
+----------------------------+----------------+
| OS-FLV-DISABLED:disabled   | False          |
| OS-FLV-EXT-DATA:ephemeral  | 0              |
| disk                       | 1              |
| extra_specs                | {"RAM": "200"} |
| id                         | 1              |
| name                       | m1.tiny        |
| os-flavor-access:is_public | True           |
| ram                        | 512            |
| rxtx_factor                | 1.0            |
| swap                       |                |
| vcpus                      | 1              |
+----------------------------+----------------+

Comment 6 errata-xmlrpc 2016-04-26 16:54:59 UTC
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/RHBA-2016-0694.html