Functional tests are failing because there's no default share type configured

Bug #1787292 reported by Goutham Pacha Ravi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-manilaclient
Fix Released
High
Goutham Pacha Ravi

Bug Description

Sample Failure: http://logs.openstack.org/44/578744/9/gate/manilaclient-dsvm-neutron-functional/ef34a32/

Sample failure:

manilaclient.tests.functional.test_quotas.QuotasReadWriteTest.test_update_share_type_quotas_with_too_old_microversion
2018-08-15 19:14:27.023 | ---------------------------------------------------------------------------------------------------------------------
2018-08-15 19:14:27.025 |
2018-08-15 19:14:27.029 | Captured traceback:
2018-08-15 19:14:27.031 | ~~~~~~~~~~~~~~~~~~~
2018-08-15 19:14:27.034 | Traceback (most recent call last):
2018-08-15 19:14:27.037 | File "manilaclient/tests/functional/base.py", line 98, in clear_resources
2018-08-15 19:14:27.040 | res_id, microversion=res["microversion"])
2018-08-15 19:14:27.042 | File "manilaclient/tests/functional/client.py", line 306, in wait_for_share_type_deletion
2018-08-15 19:14:27.044 | microversion=microversion)
2018-08-15 19:14:27.046 | File "manilaclient/tests/functional/client.py", line 143, in wait_for_resource_deletion
2018-08-15 19:14:27.048 | deleted = func(res_id, microversion=microversion)
2018-08-15 19:14:27.051 | File "manilaclient/tests/functional/client.py", line 293, in is_share_type_deleted
2018-08-15 19:14:27.053 | list_all=True, microversion=microversion)
2018-08-15 19:14:27.056 | File "manilaclient/tests/functional/client.py", line 270, in list_share_types
2018-08-15 19:14:27.058 | share_types_raw = self.manila(cmd, microversion=microversion)
2018-08-15 19:14:27.060 | File "manilaclient/tests/functional/client.py", line 114, in manila
2018-08-15 19:14:27.062 | 'manila', action, flags, params, fail_ok, merge_stderr)
2018-08-15 19:14:27.066 | File "/opt/stack/new/python-manilaclient/.tox/functional/local/lib/python2.7/site-packages/tempest/lib/cli/base.py", line 401, in cmd_with_auth
2018-08-15 19:14:27.068 | self.cli_dir, prefix=self.prefix)
2018-08-15 19:14:27.070 | File "/opt/stack/new/python-manilaclient/.tox/functional/local/lib/python2.7/site-packages/tempest/lib/cli/base.py", line 69, in execute
2018-08-15 19:14:27.074 | result_err)
2018-08-15 19:14:27.077 | tempest.lib.exceptions.CommandFailed: Command '['/opt/stack/new/python-manilaclient/.tox/functional/bin/manila', '--os-username', 'admin', '--os-project-name', 'demo', '--os-password', 'secretadmin', '--os-auth-url', 'http://172.99.67.136/identity', '--os-user-domain-id', 'default', '--os-project-domain-id', 'default', '--endpoint-type', 'publicURL', '--os-share-api-version', '2.39', 'type-list', '--all']' returned non-zero exit status 1.
2018-08-15 19:14:27.080 | stdout:
2018-08-15 19:14:27.083 |
2018-08-15 19:14:27.087 | stderr:
2018-08-15 19:14:27.089 | ERROR: Default share type not found

(Logs have been attached in case they are deleted from the log server)

Revision history for this message
Goutham Pacha Ravi (gouthamr) wrote :
Revision history for this message
Goutham Pacha Ravi (gouthamr) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to python-manilaclient (master)

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

Changed in python-manilaclient:
assignee: nobody → Goutham Pacha Ravi (gouthamr)
status: New → In Progress
Changed in python-manilaclient:
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-manilaclient (master)

Reviewed: https://review.openstack.org/592219
Committed: https://git.openstack.org/cgit/openstack/python-manilaclient/commit/?id=e7fa7cd158327afcc99b6d97f62429cdbf2b1c7a
Submitter: Zuul
Branch: master

commit e7fa7cd158327afcc99b6d97f62429cdbf2b1c7a
Author: Goutham Pacha Ravi <email address hidden>
Date: Wed Aug 15 16:21:35 2018 -0700

    Fix functional tests

    Manila's ci scripts disable configuring the
    default share and share group types if testing
    with the dummy driver.

    We want to continue using the the default types
    mechanism in python-manilaclient, until we decide
    not to.

    Change-Id: I14544bea728286eeb33461e724d991fe556a4269
    Closes-Bug: #1787292

Changed in python-manilaclient:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-manilaclient 1.25.0

This issue was fixed in the openstack/python-manilaclient 1.25.0 release.

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

Fix proposed to branch: stable/queens
Review: https://review.openstack.org/636827

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

Reviewed: https://review.openstack.org/636827
Committed: https://git.openstack.org/cgit/openstack/python-manilaclient/commit/?id=00be7fe281f0412e4e23c0a33519753c3878786d
Submitter: Zuul
Branch: stable/queens

commit 00be7fe281f0412e4e23c0a33519753c3878786d
Author: Goutham Pacha Ravi <email address hidden>
Date: Wed Aug 15 16:21:35 2018 -0700

    Fix functional tests

    Manila's ci scripts disable configuring the
    default share and share group types if testing
    with the dummy driver.

    We want to continue using the the default types
    mechanism in python-manilaclient, until we decide
    not to.

    Change-Id: I14544bea728286eeb33461e724d991fe556a4269
    Closes-Bug: #1787292
    (cherry picked from commit e7fa7cd158327afcc99b6d97f62429cdbf2b1c7a)

tags: added: in-stable-queens
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-manilaclient 1.21.2

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