yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #88499
[Bug 1965294] [NEW] [Secure RBAC] Create network error due to role without permissions isn't clear
Public bug reported:
Bug originally reported by Candido Campos in
https://bugzilla.redhat.com/show_bug.cgi?id=2063867
Description of problem:
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/tempest/common/utils/__init__.py", line 89, in wrapper
return func(*func_args, **func_kwargs)
File "/usr/lib/python3.6/site-packages/neutron_tempest_plugin/scenario/test_internal_dns.py", line 38, in test_dns_domain_and_name
network = self.create_network(dns_domain='starwars.')
File "/usr/lib/python3.6/site-packages/neutron_tempest_plugin/api/base.py", line 379, in create_network
network = client.create_network(name=name, **kwargs)['network']
File "/usr/lib/python3.6/site-packages/neutron_tempest_plugin/services/network/json/network_client.py", line 146, in _create
resp, body = self.post(uri, post_data)
File "/usr/lib/python3.6/site-packages/tempest/lib/common/rest_client.py", line 299, in post
return self.request('POST', url, extra_headers, headers, body, chunked)
File "/usr/lib/python3.6/site-packages/tempest/lib/common/rest_client.py", line 703, in request
self._error_checker(resp, resp_body)
File "/usr/lib/python3.6/site-packages/tempest/lib/common/rest_client.py", line 809, in _error_checker
raise exceptions.NotFound(resp_body, resp=resp)
tempest.lib.exceptions.NotFound: Object not found
Details: {'type': 'HTTPNotFound', 'message': 'The resource could not be found.', 'detail': ''}
Version-Release number of selected component (if applicable):
How reproducible:
90 openstack project create --domain default --description "Demo Project" myproject
91 openstack user create --domain default --password-prompt myuser
92 openstack role create myrole
93 openstack role add --project myproject --user myuser myrole
openstack network create test
** Affects: neutron
Importance: Medium
Assignee: Slawek Kaplonski (slaweq)
Status: Confirmed
** Tags: api
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1965294
Title:
[Secure RBAC] Create network error due to role without permissions
isn't clear
Status in neutron:
Confirmed
Bug description:
Bug originally reported by Candido Campos in
https://bugzilla.redhat.com/show_bug.cgi?id=2063867
Description of problem:
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/tempest/common/utils/__init__.py", line 89, in wrapper
return func(*func_args, **func_kwargs)
File "/usr/lib/python3.6/site-packages/neutron_tempest_plugin/scenario/test_internal_dns.py", line 38, in test_dns_domain_and_name
network = self.create_network(dns_domain='starwars.')
File "/usr/lib/python3.6/site-packages/neutron_tempest_plugin/api/base.py", line 379, in create_network
network = client.create_network(name=name, **kwargs)['network']
File "/usr/lib/python3.6/site-packages/neutron_tempest_plugin/services/network/json/network_client.py", line 146, in _create
resp, body = self.post(uri, post_data)
File "/usr/lib/python3.6/site-packages/tempest/lib/common/rest_client.py", line 299, in post
return self.request('POST', url, extra_headers, headers, body, chunked)
File "/usr/lib/python3.6/site-packages/tempest/lib/common/rest_client.py", line 703, in request
self._error_checker(resp, resp_body)
File "/usr/lib/python3.6/site-packages/tempest/lib/common/rest_client.py", line 809, in _error_checker
raise exceptions.NotFound(resp_body, resp=resp)
tempest.lib.exceptions.NotFound: Object not found
Details: {'type': 'HTTPNotFound', 'message': 'The resource could not be found.', 'detail': ''}
Version-Release number of selected component (if applicable):
How reproducible:
90 openstack project create --domain default --description "Demo Project" myproject
91 openstack user create --domain default --password-prompt myuser
92 openstack role create myrole
93 openstack role add --project myproject --user myuser myrole
openstack network create test
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1965294/+subscriptions
Follow ups