** Changed in: horizon
     Assignee: (unassigned) => Sergio Cazzolato (sergio-j-cazzolato)

** Also affects: python-novaclient
   Importance: Undecided
       Status: New

** Changed in: python-novaclient
     Assignee: (unassigned) => Sergio Cazzolato (sergio-j-cazzolato)

-- 
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/1299517

Title:
   quota-class-update

Status in OpenStack Dashboard (Horizon):
  New
Status in OpenStack Compute (Nova):
  In Progress
Status in Python client library for Nova:
  New

Bug description:
  Cant update default quota:
  root@blade1-1-live:~# nova --debug quota-class-update --ram -1 default

  
  REQ: curl -i 
'http://XXX.XXX.XXX.XXX:8774/v2/1eaf475499f8479d94d5ed7a4af68703/os-quota-class-sets/default'
 -X PUT -H "X-Auth-Project-Id: admin" -H "User-Agent: python-novaclient" -H 
"Content-Type: application/json" -H "Accept: application/json" -H 
"X-Auth-Token: 62837311542a42a495442d911cc8b12a" -d '{"quota_class_set": 
{"ram": -1}}'

  New session created for: (http://XXX.XXX.XXX.XXX:8774)
  INFO (connectionpool:258) Starting new HTTP connection (1): XXX.XXX.XXX.XXX
  DEBUG (connectionpool:375) Setting read timeout to 600.0
  DEBUG (connectionpool:415) "PUT 
/v2/1eaf475499f8479d94d5ed7a4af68703/os-quota-class-sets/default HTTP/1.1" 404 
52
  RESP: [404] CaseInsensitiveDict({'date': 'Sat, 29 Mar 2014 17:17:32 GMT', 
'content-length': '52', 'content-type': 'text/plain; charset=UTF-8'})
  RESP BODY: 404 Not Found

  The resource could not be found.


  DEBUG (shell:777) Not found (HTTP 404)
  Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 774, in 
main
      OpenStackComputeShell().main(map(strutils.safe_decode, sys.argv[1:]))
    File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 710, in 
main
      args.func(self.cs, args)
    File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/shell.py", line 
3378, in do_quota_class_update
      _quota_update(cs.quota_classes, args.class_name, args)
    File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/shell.py", line 
3164, in _quota_update
      manager.update(identifier, **updates)
    File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/quota_classes.py", 
line 44, in update
      'quota_class_set')
    File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 165, in 
_update
      _resp, body = self.api.client.put(url, body=body)
    File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 289, in 
put
      return self._cs_request(url, 'PUT', **kwargs)
    File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 260, in 
_cs_request
      **kwargs)
    File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 242, in 
_time_request
      resp, body = self.request(url, method, **kwargs)
    File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 236, in 
request
      raise exceptions.from_response(resp, body, url, method)
  NotFound: Not found (HTTP 404)
  ERROR: Not found (HTTP 404)

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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to