Bug 2063867 - [RBAC][vnes]Create network error due to role without permissions isn't clear
Summary: [RBAC][vnes]Create network error due to role without permissions isn't clear
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-neutron
Version: 17.0 (Wallaby)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: Slawek Kaplonski
QA Contact: Bharath M V
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-03-14 14:27 UTC by Candido Campos
Modified: 2022-09-21 12:20 UTC (History)
2 users (show)

Fixed In Version: openstack-neutron-18.3.1-0.20220501162703.9b2d684.el9ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-09-21 12:19:39 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1965294 0 None None None 2022-03-17 19:19:23 UTC
OpenStack gerrit 834171 0 None NEW [API] Return 403 for POST requests when user is not authorized 2022-03-17 19:19:23 UTC
Red Hat Issue Tracker OSP-13913 0 None None None 2022-03-14 14:31:03 UTC
Red Hat Product Errata RHEA-2022:6543 0 None None None 2022-09-21 12:20:23 UTC

Description Candido Campos 2022-03-14 14:27:25 UTC
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 create network test

Comment 8 errata-xmlrpc 2022-09-21 12:19:39 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Release of components for Red Hat OpenStack Platform 17.0 (Wallaby)), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2022:6543


Note You need to log in before you can comment on or make changes to this bug.