Some nova.tests.integrated.test_api_samples.Hypervisors* tests fail when run as single test

Bug #1177802 reported by Hans Lindgren
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Low
Hans Lindgren
Grizzly
Fix Released
Low
Russell Bryant

Bug Description

From the logs it appears that the host name is not being set correctly, resulting in the error:

NoMatch: Values do not match:
Template: fake-mini
Response: <name of host used to run the tests>

Strangely enough this only happens when running the tests individually or when running the integrated tests alone. It can easily be reproduced eg. by running:

./run_tests.sh nova.tests.integrated.test_api_samples.HypervisorsSampleJsonTests.test_hypervisors_uptime

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

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

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

Reviewed: https://review.openstack.org/28549
Committed: http://github.com/openstack/nova/commit/8b79ac24a83854de9f57bb3526a2edbd0b6d64d2
Submitter: Jenkins
Branch: master

commit 8b79ac24a83854de9f57bb3526a2edbd0b6d64d2
Author: Hans Lindgren <email address hidden>
Date: Wed May 8 15:43:32 2013 +0200

    Make sure that hypervisor nodename is set correctly in FakeDriver

    This resolves an issue where the wrong host name is used when
    executing some sample_api tests individually.

    Resolves bug 1177802.

    Change-Id: I29af026e29ff8c70bb6b4c81f1bdf28cdea11140

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

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

Thierry Carrez (ttx)
Changed in nova:
milestone: none → havana-1
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (stable/grizzly)

Reviewed: https://review.openstack.org/29430
Committed: http://github.com/openstack/nova/commit/6556344761bbdd83f729a91ff2c3aa82c22c4f0f
Submitter: Jenkins
Branch: stable/grizzly

commit 6556344761bbdd83f729a91ff2c3aa82c22c4f0f
Author: Hans Lindgren <email address hidden>
Date: Wed May 8 15:43:32 2013 +0200

    Make sure that hypervisor nodename is set correctly in FakeDriver

    This resolves an issue where the wrong host name is used when
    executing some sample_api tests individually.

    Resolves bug 1177802.

    Change-Id: I29af026e29ff8c70bb6b4c81f1bdf28cdea11140
    (cherry picked from commit 8b79ac24a83854de9f57bb3526a2edbd0b6d64d2)

Thierry Carrez (ttx)
Changed in nova:
milestone: havana-1 → 2013.2
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.