some qos tests failing for v2 plugin

Bug #1682078 reported by YAMAMOTO Takashi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
networking-midonet
Fix Released
Critical
YAMAMOTO Takashi

Bug Description

test_delete_not_allowed_if_policy_in_use_by_network
test_policy_association_with_admin_network
test_policy_association_with_tenant_network
test_policy_update_association_with_admin_network

eg.
http://logs.openstack.org/88/452888/3/check/gate-tempest-dsvm-networking-midonet-v2-full-ubuntu-xenial-nv/d3afee9/logs/testr_results.html.gz
http://logs.openstack.org/88/452888/3/check/gate-tempest-dsvm-networking-midonet-v2-full-ubuntu-xenial-nv/53816ce/logs/testr_results.html.gz

ft31.15: neutron.tests.tempest.api.test_qos.QosTestJSON.test_policy_association_with_tenant_network[id-1738de5d-0476-4163-9022-5e1b548c208e]_StringException: Empty attachments:
  stderr
  stdout

pythonlogging:'': {{{
2017-04-12 08:53:22,246 30714 INFO [tempest.lib.common.rest_client] Request (QosTestJSON:test_policy_association_with_tenant_network): 201 POST http://10.34.91.61:9696/v2.0/qos/policies 0.283s
2017-04-12 08:53:22,246 30714 DEBUG [tempest.lib.common.rest_client] Request - Headers: {'Content-Type': 'application/json', 'X-Auth-Token': '<omitted>', 'Accept': 'application/json'}
        Body: {"policy": {"name": "test-policy", "description": "test policy", "shared": true}}
    Response - Headers: {u'x-openstack-request-id': 'req-e1a14671-cb8c-42b9-81fe-064bc8691ff1', u'content-type': 'application/json', u'date': 'Wed, 12 Apr 2017 08:53:22 GMT', 'content-location': 'http://10.34.91.61:9696/v2.0/qos/policies', u'content-length': '337', 'status': '201', u'connection': 'close'}
        Body: {"policy": {"name": "test-policy", "rules": [], "tenant_id": "59b2153c5a9e433cb4da88a411e77681", "created_at": "2017-04-12T08:53:22Z", "updated_at": "2017-04-12T08:53:22Z", "revision_number": 1, "shared": true, "project_id": "59b2153c5a9e433cb4da88a411e77681", "id": "4dca3da4-aa2b-4673-8459-d2b336e29a9c", "description": "test policy"}}
2017-04-12 08:53:22,459 30714 INFO [tempest.lib.common.rest_client] Request (QosTestJSON:test_policy_association_with_tenant_network): 201 POST http://10.34.91.61:9696/v2.0/networks 0.212s
2017-04-12 08:53:22,459 30714 DEBUG [tempest.lib.common.rest_client] Request - Headers: {'Content-Type': 'application/json', 'X-Auth-Token': '<omitted>', 'Accept': 'application/json'}
        Body: {"network": {"qos_policy_id": "4dca3da4-aa2b-4673-8459-d2b336e29a9c", "name": "test network"}}
    Response - Headers: {u'x-openstack-request-id': 'req-9fed1fd1-dcbc-4756-b38b-c8471f1aa6a0', u'content-type': 'application/json', u'date': 'Wed, 12 Apr 2017 08:53:22 GMT', 'content-location': 'http://10.34.91.61:9696/v2.0/networks', u'content-length': '469', 'status': '201', u'connection': 'close'}
        Body: {"network":{"status":"ACTIVE","subnets":[],"description":"","admin_state_up":true,"tenant_id":"e46d9a0cc9684a7dbc174997c82f6c11","created_at":"2017-04-12T08:53:22Z","tags":[],"updated_at":"2017-04-12T08:53:22Z","name":"test network","router:external":false,"revision_number":3,"port_security_enabled":true,"shared":false,"project_id":"e46d9a0cc9684a7dbc174997c82f6c11","id":"1298374c-bf73-409e-9c64-8b1af005d7c6","qos_policy_id":"4dca3da4-aa2b-4673-8459-d2b336e29a9c"}}
2017-04-12 08:53:22,539 30714 INFO [tempest.lib.common.rest_client] Request (QosTestJSON:test_policy_association_with_tenant_network): 200 GET http://10.34.91.61:9696/v2.0/networks/1298374c-bf73-409e-9c64-8b1af005d7c6 0.080s
2017-04-12 08:53:22,540 30714 DEBUG [tempest.lib.common.rest_client] Request - Headers: {'Content-Type': 'application/json', 'X-Auth-Token': '<omitted>', 'Accept': 'application/json'}
        Body: None
    Response - Headers: {u'x-openstack-request-id': 'req-e43f5289-333c-44a7-a842-95502c51ca94', u'content-type': 'application/json', u'date': 'Wed, 12 Apr 2017 08:53:22 GMT', 'content-location': 'http://10.34.91.61:9696/v2.0/networks/1298374c-bf73-409e-9c64-8b1af005d7c6', u'content-length': '503', 'status': '200', u'connection': 'close'}
        Body: {"network":{"status":"ACTIVE","subnets":[],"description":"","name":"test network","admin_state_up":true,"tenant_id":"e46d9a0cc9684a7dbc174997c82f6c11","created_at":"2017-04-12T08:53:22Z","tags":[],"updated_at":"2017-04-12T08:53:22Z","provider:network_type":"midonet","router:external":false,"revision_number":3,"port_security_enabled":true,"shared":false,"project_id":"e46d9a0cc9684a7dbc174997c82f6c11","id":"1298374c-bf73-409e-9c64-8b1af005d7c6","qos_policy_id":"4dca3da4-aa2b-4673-8459-d2b336e29a9c"}}
2017-04-12 08:53:22,950 30714 INFO [tempest.lib.common.rest_client] Request (QosTestJSON:test_policy_association_with_tenant_network): 200 PUT http://10.34.91.61:9696/v2.0/networks/1298374c-bf73-409e-9c64-8b1af005d7c6 0.409s
2017-04-12 08:53:22,951 30714 DEBUG [tempest.lib.common.rest_client] Request - Headers: {'Content-Type': 'application/json', 'X-Auth-Token': '<omitted>', 'Accept': 'application/json'}
        Body: {"network": {"qos_policy_id": null}}
    Response - Headers: {u'x-openstack-request-id': 'req-5d63c150-90c1-44f4-bbc5-a3ccad8341fc', u'content-type': 'application/json', u'date': 'Wed, 12 Apr 2017 08:53:22 GMT', 'content-location': 'http://10.34.91.61:9696/v2.0/networks/1298374c-bf73-409e-9c64-8b1af005d7c6', u'content-length': '469', 'status': '200', u'connection': 'close'}
        Body: {"network":{"status":"ACTIVE","subnets":[],"description":"","admin_state_up":true,"tenant_id":"e46d9a0cc9684a7dbc174997c82f6c11","created_at":"2017-04-12T08:53:22Z","tags":[],"updated_at":"2017-04-12T08:53:22Z","name":"test network","router:external":false,"revision_number":4,"port_security_enabled":true,"shared":false,"project_id":"e46d9a0cc9684a7dbc174997c82f6c11","id":"1298374c-bf73-409e-9c64-8b1af005d7c6","qos_policy_id":"4dca3da4-aa2b-4673-8459-d2b336e29a9c"}}
}}}

Traceback (most recent call last):
  File "/opt/stack/new/neutron/neutron/tests/tempest/api/test_qos.py", line 210, in test_policy_association_with_tenant_network
    self._disassociate_network(self.client, network['id'])
  File "/opt/stack/new/neutron/neutron/tests/tempest/api/test_qos.py", line 182, in _disassociate_network
    self.assertIsNone(updated_network['network']['qos_policy_id'])
  File "/usr/local/lib/python2.7/dist-packages/testtools/testcase.py", line 426, in assertIsNone
    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: u'4dca3da4-aa2b-4673-8459-d2b336e29a9c' is not None

Changed in networking-midonet:
importance: Undecided → Critical
milestone: none → 5.0.0
tags: added: gate-failure
Changed in networking-midonet:
assignee: nobody → YAMAMOTO Takashi (yamamoto)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to networking-midonet (master)

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

tags: added: qos
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to networking-midonet (master)

Reviewed: https://review.openstack.org/458011
Committed: https://git.openstack.org/cgit/openstack/networking-midonet/commit/?id=4bc936e30dc7b030178f63b16e78bddb1591adc2
Submitter: Jenkins
Branch: master

commit 4bc936e30dc7b030178f63b16e78bddb1591adc2
Author: YAMAMOTO Takashi <email address hidden>
Date: Wed Apr 19 19:23:06 2017 +0900

    v2: Refresh network relationship

    Expire the network db object so that the reload pulls
    the latest versions of joined tables.

    The corresponding ML2 change: Ic8935008515bed687ad3abd00c8ccaf656a30452
    Closes-Bug: #1682078
    Change-Id: Idfb9817e8e055eba437547e1aa69f34bcc6c8c89

Changed in networking-midonet:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to networking-midonet (stable/ocata)

Fix proposed to branch: stable/ocata
Review: https://review.openstack.org/469448

tags: added: ocata-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/networking-midonet 5.0.0.0b2

This issue was fixed in the openstack/networking-midonet 5.0.0.0b2 development milestone.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to networking-midonet (stable/ocata)

Reviewed: https://review.openstack.org/469448
Committed: https://git.openstack.org/cgit/openstack/networking-midonet/commit/?id=a497bf6f46b025980ebd2b3ef49b2c94aea63038
Submitter: Jenkins
Branch: stable/ocata

commit a497bf6f46b025980ebd2b3ef49b2c94aea63038
Author: YAMAMOTO Takashi <email address hidden>
Date: Wed Apr 19 19:23:06 2017 +0900

    v2: Refresh network relationship

    Expire the network db object so that the reload pulls
    the latest versions of joined tables.

    The corresponding ML2 change: Ic8935008515bed687ad3abd00c8ccaf656a30452
    Closes-Bug: #1682078
    Change-Id: Idfb9817e8e055eba437547e1aa69f34bcc6c8c89
    (cherry picked from commit 4bc936e30dc7b030178f63b16e78bddb1591adc2)
    Conflicts:
     midonet/neutron/plugin_v2.py

tags: added: in-stable-ocata
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/networking-midonet 4.1.0

This issue was fixed in the openstack/networking-midonet 4.1.0 release.

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.