← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1334297] [NEW] Strange response from os-server-groups with bad parameter

 

Public bug reported:

There was a bug in tempest that caused a call to DELETE os-server-groups
with a bad id. Here is the call from the tempest log:

2014-06-25 12:07:03.162 25653 INFO tempest.common.rest_client [-]
Request (ServerGroupTestJSON:tearDownClass): 200 DELETE
http://127.0.0.1:8774/v2/2bc18b72010d455a9db7cbc583e1dcfc/os-server-
groups/{u'policies': [u'affinity'], u'name': u'server-group-1944635656',
u'id': u'7c6a13c1-6d8b-4314-9d16-4eb6418a2170', u'members': [],
u'metadata': {}} 0.001s

Normally DELETE will return 204 and in this case I would have expected
400. But the call returns 200. What can be seen in the nova log seems to
indicate 400 but that is not what is actually getting sent back:

127.0.0.1 - - [25/Jun/2014 12:07:03] code 400, message Bad request syntax ("DELETE /v2/2bc18b72010d455a9db7cbc583e1dcfc/os-server-groups/{u'policies': [u'affinity'], u'name': u'server-group-1944635656', u'id': u'7c6a13c1-6d8b-4314-9d16-4eb6418a2170', u'members': [], u'metadata': {}} HTTP/1.1")
127.0.0.1 - - [25/Jun/2014 12:07:03] "DELETE /v2/2bc18b72010d455a9db7cbc583e1dcfc/os-server-groups/{u'policies': [u'affinity'], u'name': u'server-group-1944635656', u'id': u'7c6a13c1-6d8b-4314-9d16-4eb6418a2170', u'members': [], u'metadata': {}} HTTP/1.1" 400 -
127.0.0.1 - - [25/Jun/2014 12:07:03] code 400, message Bad request syntax ("DELETE /v2/2bc18b72010d455a9db7cbc583e1dcfc/os-server-groups/{u'policies': [u'affinity'], u'name': u'server-group-1366165944', u'id': u'd361d100-fc59-4393-b61b-30a2d4b27b6e', u'members': [], u'metadata': {}} HTTP/1.1")
127.0.0.1 - - [25/Jun/2014 12:07:03] "DELETE /v2/2bc18b72010d455a9db7cbc583e1dcfc/os-server-groups/{u'policies': [u'affinity'], u'name': u'server-group-1366165944', u'id': u'd361d100-fc59-4393-b61b-30a2d4b27b6e', u'members': [], u'metadata': {}} HTTP/1.1" 400 -
127.0.0.1 - - [25/Jun/2014 12:07:03] code 400, message Bad request syntax ("DELETE /v2/2bc18b72010d455a9db7cbc583e1dcfc/os-server-groups/{u'policies': [u'affinity'], u'name': u'server-group-1366165944', u'id': u'9f8574d7-78b9-4926-98ea-61f2da971478', u'members': [], u'metadata': {}} HTTP/1.1")
127.0.0.1 - - [25/Jun/2014 12:07:03] "DELETE /v2/2bc18b72010d455a9db7cbc583e1dcfc/os-server-groups/{u'policies': [u'affinity'], u'name': u'server-group-1366165944', u'id': u'9f8574d7-78b9-4926-98ea-61f2da971478', u'members': [], u'metadata': {}} HTTP/1.1" 400 -
127.0.0.1 - - [25/Jun/2014 12:07:03] code 400, message Bad request syntax ("DELETE /v2/2bc18b72010d455a9db7cbc583e1dcfc/os-server-groups/{u'policies': [u'affinity'], u'name': u'server-group-2072440191', u'id': u'01342594-9661-47fb-8816-e816ad2cae37', u'members': [], u'metadata': {}} HTTP/1.1")
127.0.0.1 - - [25/Jun/2014 12:07:03] "DELETE /v2/2bc18b72010d455a9db7cbc583e1dcfc/os-server-groups/{u'policies': [u'affinity'], u'name': u'server-group-2072440191', u'id': u'01342594-9661-47fb-8816-e816ad2cae37', u'members': [], u'metadata': {}} HTTP/1.1" 400 -
127.0.0.1 - - [25/Jun/2014 12:07:03] code 400, message Bad request syntax ("DELETE /v2/2bc18b72010d455a9db7cbc583e1dcfc/os-server-groups/{u'policies': [u'anti-affinity'], u'name': u'server-group-684827235', u'id': u'53c45946-5a0b-451e-bf24-790b1db89963', u'members': [], u'metadata': {}} HTTP/1.1")
127.0.0.1 - - [25/Jun/2014 12:07:03] "DELETE /v2/2bc18b72010d455a9db7cbc583e1dcfc/os-server-groups/{u'policies': [u'anti-affinity'], u'name': u'server-group-684827235', u'id': u'53c45946-5a0b-451e-bf24-790b1db89963', u'members': [], u'metadata': {}} HTTP/1.1" 400 -

** 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/1334297

Title:
  Strange response from os-server-groups with bad parameter

Status in OpenStack Compute (Nova):
  New

Bug description:
  There was a bug in tempest that caused a call to DELETE os-server-
  groups with a bad id. Here is the call from the tempest log:

  2014-06-25 12:07:03.162 25653 INFO tempest.common.rest_client [-]
  Request (ServerGroupTestJSON:tearDownClass): 200 DELETE
  http://127.0.0.1:8774/v2/2bc18b72010d455a9db7cbc583e1dcfc/os-server-
  groups/{u'policies': [u'affinity'], u'name': u'server-
  group-1944635656', u'id': u'7c6a13c1-6d8b-4314-9d16-4eb6418a2170',
  u'members': [], u'metadata': {}} 0.001s

  Normally DELETE will return 204 and in this case I would have expected
  400. But the call returns 200. What can be seen in the nova log seems
  to indicate 400 but that is not what is actually getting sent back:

  127.0.0.1 - - [25/Jun/2014 12:07:03] code 400, message Bad request syntax ("DELETE /v2/2bc18b72010d455a9db7cbc583e1dcfc/os-server-groups/{u'policies': [u'affinity'], u'name': u'server-group-1944635656', u'id': u'7c6a13c1-6d8b-4314-9d16-4eb6418a2170', u'members': [], u'metadata': {}} HTTP/1.1")
  127.0.0.1 - - [25/Jun/2014 12:07:03] "DELETE /v2/2bc18b72010d455a9db7cbc583e1dcfc/os-server-groups/{u'policies': [u'affinity'], u'name': u'server-group-1944635656', u'id': u'7c6a13c1-6d8b-4314-9d16-4eb6418a2170', u'members': [], u'metadata': {}} HTTP/1.1" 400 -
  127.0.0.1 - - [25/Jun/2014 12:07:03] code 400, message Bad request syntax ("DELETE /v2/2bc18b72010d455a9db7cbc583e1dcfc/os-server-groups/{u'policies': [u'affinity'], u'name': u'server-group-1366165944', u'id': u'd361d100-fc59-4393-b61b-30a2d4b27b6e', u'members': [], u'metadata': {}} HTTP/1.1")
  127.0.0.1 - - [25/Jun/2014 12:07:03] "DELETE /v2/2bc18b72010d455a9db7cbc583e1dcfc/os-server-groups/{u'policies': [u'affinity'], u'name': u'server-group-1366165944', u'id': u'd361d100-fc59-4393-b61b-30a2d4b27b6e', u'members': [], u'metadata': {}} HTTP/1.1" 400 -
  127.0.0.1 - - [25/Jun/2014 12:07:03] code 400, message Bad request syntax ("DELETE /v2/2bc18b72010d455a9db7cbc583e1dcfc/os-server-groups/{u'policies': [u'affinity'], u'name': u'server-group-1366165944', u'id': u'9f8574d7-78b9-4926-98ea-61f2da971478', u'members': [], u'metadata': {}} HTTP/1.1")
  127.0.0.1 - - [25/Jun/2014 12:07:03] "DELETE /v2/2bc18b72010d455a9db7cbc583e1dcfc/os-server-groups/{u'policies': [u'affinity'], u'name': u'server-group-1366165944', u'id': u'9f8574d7-78b9-4926-98ea-61f2da971478', u'members': [], u'metadata': {}} HTTP/1.1" 400 -
  127.0.0.1 - - [25/Jun/2014 12:07:03] code 400, message Bad request syntax ("DELETE /v2/2bc18b72010d455a9db7cbc583e1dcfc/os-server-groups/{u'policies': [u'affinity'], u'name': u'server-group-2072440191', u'id': u'01342594-9661-47fb-8816-e816ad2cae37', u'members': [], u'metadata': {}} HTTP/1.1")
  127.0.0.1 - - [25/Jun/2014 12:07:03] "DELETE /v2/2bc18b72010d455a9db7cbc583e1dcfc/os-server-groups/{u'policies': [u'affinity'], u'name': u'server-group-2072440191', u'id': u'01342594-9661-47fb-8816-e816ad2cae37', u'members': [], u'metadata': {}} HTTP/1.1" 400 -
  127.0.0.1 - - [25/Jun/2014 12:07:03] code 400, message Bad request syntax ("DELETE /v2/2bc18b72010d455a9db7cbc583e1dcfc/os-server-groups/{u'policies': [u'anti-affinity'], u'name': u'server-group-684827235', u'id': u'53c45946-5a0b-451e-bf24-790b1db89963', u'members': [], u'metadata': {}} HTTP/1.1")
  127.0.0.1 - - [25/Jun/2014 12:07:03] "DELETE /v2/2bc18b72010d455a9db7cbc583e1dcfc/os-server-groups/{u'policies': [u'anti-affinity'], u'name': u'server-group-684827235', u'id': u'53c45946-5a0b-451e-bf24-790b1db89963', u'members': [], u'metadata': {}} HTTP/1.1" 400 -

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


Follow ups

References