** Changed in: neutron
Status: Confirmed => Invalid
** Tags removed: gate-failure
** Tags removed: qos
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1683365
Title:
test_rule_update_forbidden_for_regular_tenants_own_policy fails with
NotFound
Status in neutron:
Invalid
Bug description:
http://logs.openstack.org/06/440806/5/gate/gate-neutron-dsvm-api-
ubuntu-xenial/6d9b1d2/testr_results.html.gz
pythonlogging:'': {{{
2017-04-17 07:24:06,647 21614 INFO [tempest.lib.common.rest_client]
Request
(QosBandwidthLimitRuleTestJSON:test_rule_update_forbidden_for_regular_tenants_own_policy):
201 POST http://15.184.66.59:9696/v2.0/qos/policies 0.156s
2017-04-17 07:24:06,647 21614 DEBUG [tempest.lib.common.rest_client]
Request - Headers: {'Accept': 'application/json', 'X-Auth-Token': '<omitted>',
'Content-Type': 'application/json'}
Body: {"policy": {"description": "test policy", "shared": false,
"tenant_id": "dae0db2239d040a7a24a2548e7745010", "name": "test-policy"}}
Response - Headers: {u'connection': 'close', 'status': '201',
u'x-openstack-request-id': 'req-f18fe708-dcc6-4e0a-9ec8-ea1f1e93e409',
u'content-type': 'application/json', 'content-location':
'http://15.184.66.59:9696/v2.0/qos/policies', u'content-length': '318',
u'date': 'Mon, 17 Apr 2017 07:24:06 GMT'}
Body:
{"policy":{"name":"test-policy","rules":[],"tenant_id":"dae0db2239d040a7a24a2548e7745010","created_at":"2017-04-17T07:24:06Z","updated_at":"2017-04-17T07:24:06Z","revision_number":1,"shared":false,"project_id":"dae0db2239d040a7a24a2548e7745010","id":"275ede54-e091-4615-8feb-1171c76c9f86","description":"test
policy"}}
2017-04-17 07:24:07,162 21614 INFO [tempest.lib.common.rest_client]
Request
(QosBandwidthLimitRuleTestJSON:test_rule_update_forbidden_for_regular_tenants_own_policy):
201 POST
http://15.184.66.59:9696/v2.0/qos/policies/275ede54-e091-4615-8feb-1171c76c9f86/bandwidth_limit_rules
0.514s
2017-04-17 07:24:07,163 21614 DEBUG [tempest.lib.common.rest_client]
Request - Headers: {'Accept': 'application/json', 'X-Auth-Token': '<omitted>',
'Content-Type': 'application/json'}
Body: {"bandwidth_limit_rule": {"max_burst_kbps": 1, "max_kbps": 1}}
Response - Headers: {u'connection': 'close', 'status': '201',
u'x-openstack-request-id': 'req-a81448a4-580f-430d-8612-5b9f49279bde',
u'content-type': 'application/json', 'content-location':
'http://15.184.66.59:9696/v2.0/qos/policies/275ede54-e091-4615-8feb-1171c76c9f86/bandwidth_limit_rules',
u'content-length': '102', u'date': 'Mon, 17 Apr 2017 07:24:07 GMT'}
Body:
{"bandwidth_limit_rule":{"max_kbps":1,"id":"404613bf-d473-48e1-a8b0-9334afe6bf68","max_burst_kbps":1}}
2017-04-17 07:24:07,411 21614 INFO [tempest.lib.common.rest_client]
Request
(QosBandwidthLimitRuleTestJSON:test_rule_update_forbidden_for_regular_tenants_own_policy):
404 PUT
http://15.184.66.59:9696/v2.0/qos/policies/275ede54-e091-4615-8feb-1171c76c9f86/bandwidth_limit_rules/404613bf-d473-48e1-a8b0-9334afe6bf68
0.247s
2017-04-17 07:24:07,412 21614 DEBUG [tempest.lib.common.rest_client]
Request - Headers: {'Accept': 'application/json', 'X-Auth-Token': '<omitted>',
'Content-Type': 'application/json'}
Body: {"bandwidth_limit_rule": {"max_burst_kbps": 4, "max_kbps": 2}}
Response - Headers: {u'connection': 'close', 'status': '404',
u'x-openstack-request-id': 'req-d02feb71-801a-4554-8d19-dfbfedd1e23b',
u'content-type': 'application/json', 'content-location':
'http://15.184.66.59:9696/v2.0/qos/policies/275ede54-e091-4615-8feb-1171c76c9f86/bandwidth_limit_rules/404613bf-d473-48e1-a8b0-9334afe6bf68',
u'content-length': '103', u'date': 'Mon, 17 Apr 2017 07:24:07 GMT'}
Body: {"NeutronError": {"message": "The resource could not be
found.", "type": "HTTPNotFound", "detail": ""}}
}}}
Traceback (most recent call last):
File "/opt/stack/new/neutron/neutron/tests/tempest/api/test_qos.py", line
478, in test_rule_update_forbidden_for_regular_tenants_own_policy
policy['id'], rule['id'], max_kbps=2, max_burst_kbps=4)
File "/usr/local/lib/python2.7/dist-packages/testtools/testcase.py", line
485, in assertRaises
self.assertThat(our_callable, matcher)
File "/usr/local/lib/python2.7/dist-packages/testtools/testcase.py", line
496, in assertThat
mismatch_error = self._matchHelper(matchee, matcher, message, verbose)
File "/usr/local/lib/python2.7/dist-packages/testtools/testcase.py", line
547, in _matchHelper
mismatch = matcher.match(matchee)
File
"/usr/local/lib/python2.7/dist-packages/testtools/matchers/_exception.py", line
108, in match
mismatch = self.exception_matcher.match(exc_info)
File
"/usr/local/lib/python2.7/dist-packages/testtools/matchers/_higherorder.py",
line 62, in match
mismatch = matcher.match(matchee)
File "/usr/local/lib/python2.7/dist-packages/testtools/testcase.py", line
475, in match
reraise(*matchee)
File
"/usr/local/lib/python2.7/dist-packages/testtools/matchers/_exception.py", line
101, in match
result = matchee()
File "/usr/local/lib/python2.7/dist-packages/testtools/testcase.py", line
1049, in __call__
return self._callable_object(*self._args, **self._kwargs)
File
"/opt/stack/new/neutron/neutron/tests/tempest/services/network/json/network_client.py",
line 612, in update_bandwidth_limit_rule
resp, body = self.put(uri, jsonutils.dumps(post_data))
File "tempest/lib/common/rest_client.py", line 341, in put
return self.request('PUT', url, extra_headers, headers, body, chunked)
File "tempest/lib/common/rest_client.py", line 666, in request
self._error_checker(resp, resp_body)
File "tempest/lib/common/rest_client.py", line 772, in _error_checker
raise exceptions.NotFound(resp_body, resp=resp)
tempest.lib.exceptions.NotFound: Object not found
Details: {u'type': u'HTTPNotFound', u'message': u'The resource could not be
found.', u'detail': u''}
Probably a result of https://review.openstack.org/#/c/456894/
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1683365/+subscriptions
--
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help : https://help.launchpad.net/ListHelp