← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1259711] Re: Volume type or image flavor extra_spec containing '/' can't be deleted

 

** Summary changed:

- Volume type extra_spec containing '/' can't be deleted
+ Volume type or image flavor extra_spec containing '/' can't be deleted

** Also affects: nova
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1259711

Title:
  Volume type or image flavor extra_spec containing '/' can't be deleted

Status in Cinder:
  Confirmed
Status in OpenStack Compute (Nova):
  New

Bug description:
  Written based on Nova bug 1256119.

  It is possible to set an extra spec for a volume type containing a '/'
  that then cannot be deleted.

  
  $ cinder type-create test
  +--------------------------------------+------+
  |                  ID                  | Name |
  +--------------------------------------+------+
  | ff8b49fb-3883-428e-a942-61fa34633c23 | test |
  +--------------------------------------+------+
  $ cinder type-key test set 'a/b=c'
  $ cinder extra-specs-list
  +--------------------------------------+------+----------------+
  |                  ID                  | Name |  extra_specs   |
  +--------------------------------------+------+----------------+
  | ff8b49fb-3883-428e-a942-61fa34633c23 | test | {u'a/b': u'c'} |
  +--------------------------------------+------+----------------+
  $ cinder --debug type-key test unset 'a/b'

  ...snip...

  REQ: curl -i
  http://192.168.122.100:8776/v2/b3d6b9a5b8f04df08bf33714fe99d52a/types/ff8b49fb-3883-428e-a942-61fa34633c23/extra_specs/a/b
  -X DELETE -H "X-Auth-Project-Id: demo" -H "User-Agent: python-
  cinderclient" -H "Accept: application/json" -H "X-Auth-Token:
  MI...ITF"

  DEBUG:cinderclient.client:
  REQ: curl -i http://192.168.122.100:8776/v2/b3d6b9a5b8f04df08bf33714fe99d52a/types/ff8b49fb-3883-428e-a942-61fa34633c23/extra_specs/a/b -X DELETE -H "X-Auth-Project-Id: demo" -H "User-Agent: python-cinderclient" -H "Accept: application/json" -H "X-Auth-Token: MI...ITF"

  RESP: [404] CaseInsensitiveDict({'date': 'Tue, 10 Dec 2013 22:07:01 GMT', 'content-length': '52', 'content-type': 'text/plain; charset=UTF-8'})
  RESP BODY: 404 Not Found

  The resource could not be found.

  
  DEBUG:cinderclient.client:RESP: [404] CaseInsensitiveDict({'date': 'Tue, 10 Dec 2013 22:07:01 GMT', 'content-length': '52', 'content-type': 'text/plain; charset=UTF-8'})
  RESP BODY: 404 Not Found

  The resource could not be found.

  
  ERROR: Not found (HTTP 404)

To manage notifications about this bug go to:
https://bugs.launchpad.net/cinder/+bug/1259711/+subscriptions