Bug 1323654 - Flavor %(id)d extra spec cannot be updated
Summary: Flavor %(id)d extra spec cannot be updated
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-nova
Version: 7.0 (Kilo)
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 7.0 (Kilo)
Assignee: Diana Clarke
QA Contact: Prasanth Anbalagan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-04 11:07 UTC by Martin Pavlásek
Modified: 2019-09-09 15:57 UTC (History)
12 users (show)

Fixed In Version: openstack-nova-2015.1.3-12.el7ost
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-04-26 16:54:59 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1528250 0 None None None 2016-04-07 17:36:16 UTC
Red Hat Product Errata RHBA-2016:0694 0 normal SHIPPED_LIVE openstack-nova bug fix advisory 2016-04-26 20:53:50 UTC

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


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