Some network API rbac tests are failing

Bug #1665105 reported by Mh Raies
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Patrole
Fix Released
Undecided
Mh Raies

Bug Description

Following Netwrok API RBAC tests are failing -

1. test_create_network_provider_physical_network
2. test_update_network_router_external

Below is the failure traces -

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):
      File "/home/ubuntu/development/patrole/patrole_tempest_plugin/rbac_rule_validation.py", line 42, in wrapper
        func(*args)
      File "/home/ubuntu/development/patrole/patrole_tempest_plugin/tests/api/network/test_networks_rbac.py", line 193, in test_create_network_provider_physical_network
        provider_physical_network='ph-eth0')
      File "/home/ubuntu/development/patrole/patrole_tempest_plugin/tests/api/network/test_networks_rbac.py", line 91, in _create_network
        body = self.networks_client.create_network(**post_body)
      File "tempest/lib/services/network/networks_client.py", line 27, in create_network
        return self.create_resource(uri, post_data)
      File "tempest/lib/services/network/base.py", line 60, in create_resource
        resp, body = self.post(req_uri, req_post_data)
      File "tempest/lib/common/rest_client.py", line 276, in post
        return self.request('POST', url, extra_headers, headers, body, chunked)
      File "tempest/lib/common/rest_client.py", line 664, in request
        self._error_checker(resp, resp_body)
      File "tempest/lib/common/rest_client.py", line 766, in _error_checker
        raise exceptions.BadRequest(resp_body, resp=resp)
    tempest.lib.exceptions.BadRequest: Bad request
    Details: {u'message': u"Invalid input for operation: physical_network 'ph-eth0' unknown for flat provider network.", u'detail': u'', u'type': u'InvalidInput'}

.
.
.
.
.
Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):
      File "/home/ubuntu/development/patrole/patrole_tempest_plugin/rbac_rule_validation.py", line 42, in wrapper
        func(*args)
      File "/home/ubuntu/development/patrole/patrole_tempest_plugin/tests/api/network/test_networks_rbac.py", line 258, in test_update_network_router_external
        self.assertEqual(updated_network['router:external'], False)
      File "/usr/local/lib/python2.7/dist-packages/testtools/testcase.py", line 411, in assertEqual
        self.assertThat(observed, matcher, message)
      File "/usr/local/lib/python2.7/dist-packages/testtools/testcase.py", line 498, in assertThat
        raise mismatch_error
    testtools.matchers._impl.MismatchError: True != False

Mh Raies (raiesmh08)
Changed in patrole:
assignee: nobody → Mh Raies (raiesmh08)
Mh Raies (raiesmh08)
Changed in patrole:
status: New → In Progress
Mh Raies (raiesmh08)
Changed in patrole:
status: In Progress → New
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to patrole (master)

Fix proposed to branch: master
Review: https://review.openstack.org/434956

Changed in patrole:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to patrole (master)

Reviewed: https://review.openstack.org/434956
Committed: https://git.openstack.org/cgit/openstack/patrole/commit/?id=6e8f1e3d1625ffc211b5c74aa5b1f2ab0b644cca
Submitter: Jenkins
Branch: master

commit 6e8f1e3d1625ffc211b5c74aa5b1f2ab0b644cca
Author: raiesmh08 <email address hidden>
Date: Thu Feb 16 20:27:25 2017 +0530

    Fix for few failing network rbac tests

    Following network rbac api tests are failing -
        1. test_create_network_provider_physical_network
        2. test_update_network_router_external

    This patch provides fix for -
        1. test_update_network_router_external

    This patch removes test "test_create_network_provider_physical_network"
    because it is failing.
    As soon as we get a new approach for handling such "hardcoding required"
    tests, a new patch can be submitted.

    Partial-Bug: #1665105

    Change-Id: Iff84ccfed7346fed077c449298b21cd5057f957e

Mh Raies (raiesmh08)
Changed in patrole:
status: In Progress → Fix Released
status: Fix Released → In Progress
Mh Raies (raiesmh08)
Changed in patrole:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.