yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #18704
[Bug 1291489] Re: list-secgroup fail if no secgroups defined for server
** Also affects: nova/icehouse
Importance: Undecided
Status: New
** Changed in: nova/icehouse
Status: New => Fix Committed
--
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/1291489
Title:
list-secgroup fail if no secgroups defined for server
Status in OpenStack Compute (Nova):
Fix Released
Status in OpenStack Compute (nova) icehouse series:
Fix Committed
Bug description:
No issues if there are atleast 1 secgroup defined for the server.
If no secgroups are defined for the server, it fails with 400 error.
$ nova --debug list-secgroup vp25q00cs-osfe11b124f4.isg.apple.com
.
.
.
RESP: [400] CaseInsensitiveDict({'date': 'Wed, 12 Mar 2014 17:08:11 GMT', 'content-length': '141', 'content-type': 'application/json; charset=UTF-8', 'x-compute-request-id': 'req-20cb1b69-a69c-435c-9e85-3eec2fb2ae61'})
RESP BODY: {"badRequest": {"message": "The server could not comply with the request since it is either malformed or otherwise incorrect.", "code": 400}}
DEBUG (shell:740) The server could not comply with the request since it is either malformed or otherwise incorrect. (HTTP 400) (Request-ID: req-20cb1b69-a69c-435c-9e85-3eec2fb2ae61)
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/novaclient/shell.py", line 737, in main
OpenStackComputeShell().main(map(strutils.safe_decode, sys.argv[1:]))
File "/Library/Python/2.7/site-packages/novaclient/shell.py", line 673, in main
args.func(self.cs, args)
File "/Library/Python/2.7/site-packages/novaclient/v1_1/shell.py", line 1904, in do_list_secgroup
groups = server.list_security_group()
File "/Library/Python/2.7/site-packages/novaclient/v1_1/servers.py", line 328, in list_security_group
return self.manager.list_security_group(self)
File "/Library/Python/2.7/site-packages/novaclient/v1_1/servers.py", line 883, in list_security_group
base.getid(server), 'security_groups', SecurityGroup)
File "/Library/Python/2.7/site-packages/novaclient/base.py", line 61, in _list
_resp, body = self.api.client.get(url)
File "/Library/Python/2.7/site-packages/novaclient/client.py", line 229, in get
return self._cs_request(url, 'GET', **kwargs)
File "/Library/Python/2.7/site-packages/novaclient/client.py", line 213, in _cs_request
**kwargs)
File "/Library/Python/2.7/site-packages/novaclient/client.py", line 195, in _time_request
resp, body = self.request(url, method, **kwargs)
File "/Library/Python/2.7/site-packages/novaclient/client.py", line 189, in request
raise exceptions.from_response(resp, body, url, method)
BadRequest: The server could not comply with the request since it is either malformed or otherwise incorrect. (HTTP 400) (Request-ID: req-20cb1b69-a69c-435c-9e85-3eec2fb2ae61)
ERROR: The server could not comply with the request since it is either malformed or otherwise incorrect. (HTTP 400) (Request-ID: req-20cb1b69-a69c-435c-9e85-3eec2fb2ae61)
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1291489/+subscriptions
References