A VM instance remains after functional tests are finished

Bug #1889283 reported by Takashi Natsume
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-novaclient
Fix Released
Low
Takashi Natsume
Train
In Progress
Undecided
Takashi Natsume
Ussuri
Fix Released
Undecided
Takashi Natsume

Bug Description

A VM instance remains after functional tests are finished.
It should be removed after functional tests are finished.
The test_show_actions_with_host method in TestInstanceActionCLIV262 class should be fixed.

2020-07-08 20:58:56.000033 | controller | ======
2020-07-08 20:58:56.000052 | controller | Totals
2020-07-08 20:58:56.000069 | controller | ======
2020-07-08 20:58:56.000085 | controller | Ran: 203 tests in 1763.1484 sec.
2020-07-08 20:58:56.000116 | controller | - Passed: 199
2020-07-08 20:58:56.000137 | controller | - Skipped: 4
2020-07-08 20:58:56.000155 | controller | - Expected Fail: 0
2020-07-08 20:58:56.000171 | controller | - Unexpected Success: 0
2020-07-08 20:58:56.000188 | controller | - Failed: 0
2020-07-08 20:58:56.000204 | controller | Sum of execute time for each test: 1762.8808 sec.
2020-07-08 20:58:56.000229 | controller |
2020-07-08 20:58:56.000274 | controller | ==============
2020-07-08 20:58:56.000292 | controller | Worker Balance
2020-07-08 20:58:56.000308 | controller | ==============
2020-07-08 20:58:56.000325 | controller | - Worker 0 (203 tests) => 0:29:23.148414
2020-07-08 20:58:56.036088 | controller | functional run-test: commands[1] | python novaclient/tests/functional/hooks/check_resources.py
2020-07-08 20:58:56.036937 | controller | setting PATH=/home/zuul/src/opendev.org/openstack/python-novaclient/.tox/functional/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
2020-07-08 20:58:56.039078 | controller | [11902] /home/zuul/src/opendev.org/openstack/python-novaclient$ /home/zuul/src/opendev.org/openstack/python-novaclient/.tox/functional/bin/python novaclient/tests/functional/hooks/check_resources.py
2020-07-08 20:58:59.764426 | controller | $ nova list --all-tenants
2020-07-08 20:58:59.764492 | controller | +--------------------------------------+----------------------------------------------------------------+----------------------------------+--------+------------+-------------+--------------------------------------------------------+
2020-07-08 20:58:59.764516 | controller | | ID | Name | Tenant ID | Status | Task State | Power State | Networks |
2020-07-08 20:58:59.764543 | controller | +--------------------------------------+----------------------------------------------------------------+----------------------------------+--------+------------+-------------+--------------------------------------------------------+
2020-07-08 20:58:59.764565 | controller | | 139bd56c-9d79-4a9a-98c7-38ef45c163a5 | 6cb502e3-TestInstanceActionCLIV262-test_show_actions_with_host | 0f97165aa5514435ad0742985fa09388 | ACTIVE | - | Running | auto_allocated_network=fdbb:c52e:a8f2:1::54, 10.1.0.93 |
2020-07-08 20:58:59.764584 | controller | +--------------------------------------+----------------------------------------------------------------+----------------------------------+--------+------------+-------------+--------------------------------------------------------+
2020-07-08 20:58:59.764605 | controller |

Tags: testing
Changed in python-novaclient:
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-novaclient (master)

Fix proposed to branch: master
Review: https://review.opendev.org/743589

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

Reviewed: https://review.opendev.org/743589
Committed: https://git.openstack.org/cgit/openstack/python-novaclient/commit/?id=1ce9edcd73c6da9dd4dcded12747957fc297cb21
Submitter: Zuul
Branch: master

commit 1ce9edcd73c6da9dd4dcded12747957fc297cb21
Author: Takashi Natsume <email address hidden>
Date: Tue Jul 28 16:24:13 2020 +0000

    Add a cleanup for a server in a functional test

    A VM instance is created in the following functional test.

    * novaclient.tests.functional.v2.test_instance_action.
      TestInstanceActionCLIV262.test_show_actions_with_host

    However the VM instance is not deleted after the functional test.
    Add a cleanup for the server in the functional test.

    Change-Id: I8c2a6f91739d50baa283b37b16de67c542ea691b
    Closes-Bug: #1889283
    Signed-off-by: Takashi Natsume <email address hidden>

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

Fix proposed to branch: stable/ussuri
Review: https://review.opendev.org/743756

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-novaclient (stable/train)

Fix proposed to branch: stable/train
Review: https://review.opendev.org/743757

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-novaclient (stable/ussuri)

Reviewed: https://review.opendev.org/743756
Committed: https://git.openstack.org/cgit/openstack/python-novaclient/commit/?id=437d63de296f387d0556527bbe9fc97969a2e3db
Submitter: Zuul
Branch: stable/ussuri

commit 437d63de296f387d0556527bbe9fc97969a2e3db
Author: Takashi Natsume <email address hidden>
Date: Tue Jul 28 16:24:13 2020 +0000

    Add a cleanup for a server in a functional test

    A VM instance is created in the following functional test.

    * novaclient.tests.functional.v2.test_instance_action.
      TestInstanceActionCLIV262.test_show_actions_with_host

    However the VM instance is not deleted after the functional test.
    Add a cleanup for the server in the functional test.

    Change-Id: I8c2a6f91739d50baa283b37b16de67c542ea691b
    Closes-Bug: #1889283
    Signed-off-by: Takashi Natsume <email address hidden>
    (cherry picked from commit 1ce9edcd73c6da9dd4dcded12747957fc297cb21)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-novaclient 17.0.1

This issue was fixed in the openstack/python-novaclient 17.0.1 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.