gate-tempest-devstack-vm-quantum-full failling in Jenkins

Bug #1131458 reported by Miguel Lavalle
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
tempest
Fix Released
High
Miguel Lavalle

Bug Description

When Jenkins runs gate-tempest-devstack-vm-quantum-full, test suite for <class 'tempest.tests.network.test_networks.NetworksTest'> fails with the following output:

2013-02-21 21:40:44.550 | Traceback (most recent call last):
2013-02-21 21:40:44.551 | File "/usr/lib/python2.7/dist-packages/nose/suite.py", line 208, in run
2013-02-21 21:40:44.551 | self.setUp()
2013-02-21 21:40:44.551 | File "/usr/lib/python2.7/dist-packages/nose/suite.py", line 291, in setUp
2013-02-21 21:40:44.551 | self.setupContext(ancestor)
2013-02-21 21:40:44.551 | File "/usr/lib/python2.7/dist-packages/nose/suite.py", line 314, in setupContext
2013-02-21 21:40:44.551 | try_run(context, names)
2013-02-21 21:40:44.551 | File "/usr/lib/python2.7/dist-packages/nose/util.py", line 478, in try_run
2013-02-21 21:40:44.551 | return func()
2013-02-21 21:40:44.551 | File "/opt/stack/new/tempest/tempest/tests/network/test_networks.py", line 28, in setUpClass
2013-02-21 21:40:44.552 | super(NetworksTest, cls).setUpClass()
2013-02-21 21:40:44.552 | File "/opt/stack/new/tempest/tempest/tests/network/base.py", line 37, in setUpClass
2013-02-21 21:40:44.552 | client.list_networks()
2013-02-21 21:40:44.552 | File "/opt/stack/new/tempest/tempest/services/network/json/network_client.py", line 13, in list_networks
2013-02-21 21:40:44.552 | resp, body = self.get('networks')
2013-02-21 21:40:44.552 | File "/opt/stack/new/tempest/tempest/common/rest_client.py", line 181, in get
2013-02-21 21:40:44.552 | return self.request('GET', url, headers, wait=wait)
2013-02-21 21:40:44.552 | File "/opt/stack/new/tempest/tempest/common/rest_client.py", line 280, in request
2013-02-21 21:40:44.553 | wait)
2013-02-21 21:40:44.553 | File "/opt/stack/new/tempest/tempest/common/rest_client.py", line 322, in _error_checker
2013-02-21 21:40:44.553 | raise exceptions.NotFound(resp_body)
2013-02-21 21:40:44.553 | NotFound: Object not found
2013-02-21 21:40:44.553 | Details: Object not found
2013-02-21 21:40:44.553 | Details: 404 Not Found

This is due to the test suit using rest_client for version 1.1 of the Quantum API. The rest_client needs to be upgraded to use version 2.0 of the Quantum API

Miguel Lavalle (minsel)
Changed in tempest:
assignee: nobody → Miguel Lavalle (minsel)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tempest (master)

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

Changed in tempest:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

Changed in tempest:
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tempest (master)

Reviewed: https://review.openstack.org/25132
Committed: http://github.com/openstack/tempest/commit/cc939612b3aaff0acbe51e2175cd39b9c080f858
Submitter: Jenkins
Branch: master

commit cc939612b3aaff0acbe51e2175cd39b9c080f858
Author: Miguel Lavalle <email address hidden>
Date: Fri Feb 22 17:27:20 2013 -0600

    Update test_networks.py to v2 of Quantum API

    Fixes bugs in the test suite tempest.tests.network.test_networks that prevents
    Jenkins gate-tempest-devstack-vm-quantum-full to execute succesfully. The
    problem was that the test suite was using v1 of the Quantum API, which
    according to the "Quantum API Guide (V2.0)" has been removed from the code
    base. Please see note at bottom of:

    docs.openstack.org/api/openstack-network/2.0/content/Overview-d1e71.html

    The test suite was patched to use operations supported by v2 of the Quantum
    API. This required patches in the following files:

    1) tempest.common.rest_client was patched to provide the correct end-point for
    v2 of the Quantum API

    2) tempest.services.network.json.network_client was patched to support create,
    delete, list and show operations for the 3 basic abstractions offered by the
    Quantum API: networks, sub-networks and ports

    3) tempest.tests.network.base was patched to create a network and a subnetwork
    using v2 Quantum API operations.

    4) tempest.tests.network.test_networks was patched to invoke v2 Quantum API
    operations. Individual tests invoking obsolete operations were eliminated

    Fixes bug 1131458
    Fixes bug 1159229

    Change-Id: I320c46f2a42d8fd9dbfd496e8f357e21eb1c9259

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

Fix proposed to branch: stable/grizzly
Review: https://review.openstack.org/29720

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tempest (stable/grizzly)

Reviewed: https://review.openstack.org/29720
Committed: http://github.com/openstack/tempest/commit/ed01bdb6df99b7f6d9c855cf0c58c803f018a76e
Submitter: Jenkins
Branch: stable/grizzly

commit ed01bdb6df99b7f6d9c855cf0c58c803f018a76e
Author: Miguel Lavalle <email address hidden>
Date: Fri Feb 22 17:27:20 2013 -0600

    Update test_networks.py to v2 of Quantum API

    Fixes bugs in the test suite tempest.tests.network.test_networks that prevents
    Jenkins gate-tempest-devstack-vm-quantum-full to execute succesfully. The
    problem was that the test suite was using v1 of the Quantum API, which
    according to the "Quantum API Guide (V2.0)" has been removed from the code
    base. Please see note at bottom of:

    docs.openstack.org/api/openstack-network/2.0/content/Overview-d1e71.html

    The test suite was patched to use operations supported by v2 of the Quantum
    API. This required patches in the following files:

    1) tempest.common.rest_client was patched to provide the correct end-point for
    v2 of the Quantum API

    2) tempest.services.network.json.network_client was patched to support create,
    delete, list and show operations for the 3 basic abstractions offered by the
    Quantum API: networks, sub-networks and ports

    3) tempest.tests.network.base was patched to create a network and a subnetwork
    using v2 Quantum API operations.

    4) tempest.tests.network.test_networks was patched to invoke v2 Quantum API
    operations. Individual tests invoking obsolete operations were eliminated

    Fixes bug 1131458
    Fixes bug 1159229

    Change-Id: I320c46f2a42d8fd9dbfd496e8f357e21eb1c9259
    (cherry picked from commit cc939612b3aaff0acbe51e2175cd39b9c080f858)

tags: added: in-stable-grizzly
Sean Dague (sdague)
Changed in tempest:
milestone: none → havana-3
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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