cinder-tempest-plugin CG tests are broken

Bug #1789944 reported by Alan Bishop
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
High
Miriam Yumi

Bug Description

I suspect the CG tests have been broken for a while, mainly because a limited number of drivers support the feature. The first failure is this:

==============================
Failed 1 tests - output below:
==============================

setUpClass (cinder_tempest_plugin.api.volume.test_consistencygroups.ConsistencyGroupsV2Test)
--------------------------------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):
      File "/usr/lib/python2.7/site-packages/tempest/test.py", line 172, in setUpClass
        six.reraise(etype, value, trace)
      File "/usr/lib/python2.7/site-packages/tempest/test.py", line 162, in setUpClass
        cls.setup_clients()
      File "/usr/lib/python2.7/site-packages/cinder_tempest_plugin/api/volume/test_consistencygroups.py", line 33, in setup_clients
        cls.admin_volume_client = cls.os_admin.volumes_v2_client
    AttributeError: type object 'ConsistencyGroupsV2Test' has no attribute 'os_admin'

This source of problem was traced to [1].

[1] https://github.com/openstack/cinder-tempest-plugin/blob/master/cinder_tempest_plugin/api/volume/base.py#L34

It's easy to fix by adding admin to the list of credentials (credentials = ['primary', 'admin']) but that exposes the next layer of failure. Tests run, but all fail with this:

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):
      File "/usr/lib/python2.7/site-packages/cinder_tempest_plugin/api/volume/test_consistencygroups.py", line 116, in test_consistencygroup_cgsn
apshot_create_delete
        volume_type = self.admin_volume_types_client.create_volume_type(
    AttributeError: 'ConsistencyGroupsV2Test' object has no attribute 'admin_volume_types_client'

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to cinder-tempest-plugin (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/598999

Changed in cinder:
assignee: nobody → Miriam Yumi (miriamyumi)
status: New → In Progress
Jay Bryant (jsbryant)
Changed in cinder:
importance: Undecided → High
Revision history for this message
Xing Yang (xing-yang) wrote :

I think we don't need these tests for consistencygroups any more. Consistencygroups APIs are deprecated. These tests can be removed.

We have tempest tests for generic volume groups.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder-tempest-plugin (master)

Reviewed: https://review.openstack.org/599720
Committed: https://git.openstack.org/cgit/openstack/cinder-tempest-plugin/commit/?id=fa8791ecb3ac75f8be547cd52d8309045b55a5d7
Submitter: Zuul
Branch: master

commit fa8791ecb3ac75f8be547cd52d8309045b55a5d7
Author: Miriam Yumi <email address hidden>
Date: Tue Sep 4 14:42:14 2018 -0300

    Fix consistency groups test credentials

    This patch fixes the test for consistency groups, changing it to an admin
    test in order to perform required operations.

    Change-Id: I5f7fd8d62ace7d880a27697cf2b15fbb13cde706
    Depends-On: I8bdfc31bb2baeabe1d599ea6e9be3c473531f8b6
    Closes-Bug: #1789944

Changed in cinder:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on cinder-tempest-plugin (master)

Change abandoned by Eric Harney (<email address hidden>) on branch: master
Review: https://review.openstack.org/598999

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/cinder-tempest-plugin 0.2.0

This issue was fixed in the openstack/cinder-tempest-plugin 0.2.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.