Functional tests from test_instance_group.py are skipped because of keypair absence

Bug #1410781 reported by Anastasia Kuznetsova
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
Medium
Anastasia Kuznetsova

Bug Description

Integration tests in gate job from test_instance_group.py file are skipped in setUp class.

def setUp(self):
        super(InstanceGroupTest, self).setUp()
        self.client = self.orchestration_client
        if not self.conf.image_ref:
            raise self.skipException("No image configured to test")
        if not self.conf.keypair_name:
            raise self.skipException("No keyname configured to test")
        if not self.conf.instance_type:
            raise self.skipException("No flavor configured to test")

It happens because key pair wasn't create in post_test_hook script and as a result we see following message in job logs:

2015-01-14 12:10:06.390 | 2015-01-14 12:10:06.359 | {0} heat_integrationtests.functional.test_instance_group.InstanceGroupTest.test_basic_create_works ... SKIPPED: No keyname configured to testNo keyname configured to test
2015-01-14 12:10:06.545 | 2015-01-14 12:10:06.513 | {0} heat_integrationtests.functional.test_instance_group.InstanceGroupTest.test_create_config_prop_validation ... SKIPPED: No keyname configured to testNo keyname configured to test
2015-01-14 12:10:06.705 | 2015-01-14 12:10:06.673 | {0} heat_integrationtests.functional.test_instance_group.InstanceGroupTest.test_create_instance_error_causes_group_error ... SKIPPED: No keyname configured to testNo keyname configured to test
2015-01-14 12:10:06.864 | 2015-01-14 12:10:06.832 | {0} heat_integrationtests.functional.test_instance_group.InstanceGroupTest.test_size_updates_work ... SKIPPED: No keyname configured to testNo keyname configured to test
2015-01-14 12:10:07.024 | 2015-01-14 12:10:06.992 | {0} heat_integrationtests.functional.test_instance_group.InstanceGroupTest.test_update_group_replace ... SKIPPED: No keyname configured to testNo keyname configured to test
2015-01-14 12:10:07.193 | 2015-01-14 12:10:07.161 | {0} heat_integrationtests.functional.test_instance_group.InstanceGroupTest.test_update_instance_error_causes_group_error ... SKIPPED: No keyname configured to testNo keyname configured to test

Need to add appropriate step to its script and pass default keypair name to config.py.

description: updated
Changed in heat:
assignee: nobody → Anastasia Kuznetsova (akuznetsova)
Changed in heat:
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to heat (master)

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

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

Reviewed: https://review.openstack.org/147136
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=d0c17b90ae65dd549253cb072c0d21a8ae1902a5
Submitter: Jenkins
Branch: master

commit d0c17b90ae65dd549253cb072c0d21a8ae1902a5
Author: Anastasia Kuznetsova <email address hidden>
Date: Wed Jan 14 16:13:42 2015 +0400

    Remove keypairs from test_instance_group.py

    A bunch of functional tests are skipped now because of keypair
    absence. But actually keyname/KeyName may be removed from templates
    because these tests create not an actual server (they are using
    RandomString resource).

    Change-Id: I306b76fb38e8a4b84e0b2d815bddcc9545625444
    Closes-Bug: #1410781

Changed in heat:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in heat:
milestone: none → kilo-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in heat:
milestone: kilo-2 → 2015.1.0
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.