manila CI hook: failure to disable cert rule protocol, GLUSTERFS

Bug #1541377 reported by Ramana Raja
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
devstack-plugin-ceph
Fix Released
Undecided
Ramana Raja

Bug Description

A tempest test fails in Manila's cephfs-native CI currently as follows,
 | setUpClass (manila_tempest_tests.tests.api.test_rules.ShareRulesTest)
 | ---------------------------------------------------------------------
 |
 | Captured traceback:
 | ~~~~~~~~~~~~~~~~~~~
 | Traceback (most recent call last):
 | File "tempest/test.py", line 262, in setUpClass
 | six.reraise(etype, value, trace)
 | File "tempest/test.py", line 255, in setUpClass
 | cls.resource_setup()
 | File "/opt/stack/new/manila/manila_tempest_tests/tests/api/test_rules.py", line 320, in resource_setup
 | cls.share = cls.create_share()
 | File "/opt/stack/new/manila/manila_tempest_tests/tests/api/base.py", line 348, in create_share
 | result = cls.create_shares([{"args": args, "kwargs": kwargs}])
 | File "/opt/stack/new/manila/manila_tempest_tests/tests/api/base.py", line 383, in create_shares
 | d["share"] = cls._create_share(*d["args"], **d["kwargs"])
 | File "/opt/stack/new/manila/manila_tempest_tests/tests/api/base.py", line 329, in _create_share
 | share = client.create_share(**kwargs)
 | File "/opt/stack/new/manila/manila_tempest_tests/services/share/v2/json/shares_client.py", line 218, in create_share
 | resp, body = self.post("shares", body, version=version)
 | File "/opt/stack/new/manila/manila_tempest_tests/services/share/v2/json/shares_client.py", line 60, in post
 | return super(SharesV2Client, self).post(url, body, headers=headers)
 | File "/usr/local/lib/python2.7/dist-packages/tempest_lib/common/rest_client.py", line 259, in post
 | return self.request('POST', url, extra_headers, headers, body)
 | File "/usr/local/lib/python2.7/dist-packages/tempest_lib/common/rest_client.py", line 640, in request
 | resp, resp_body)
 | File "/usr/local/lib/python2.7/dist-packages/tempest_lib/common/rest_client.py", line 698, in _error_checker
 | raise exceptions.BadRequest(resp_body, resp=resp)
 | tempest_lib.exceptions.BadRequest: Bad request
 | Details: {u'code': 400, u'message': u"Invalid input received: Invalid share protocol provided: GLUSTERFS. It is either disabled or unsupported. Available protocols: ['CEPHFS']."}

This is because the CI hook script, post_test_hook, fails to disable the GLUSTERFS protocol in the above tempest test method. The protocol is enabled by default by a config option 'enable_cert_rules_for_protocols'.

Ramana Raja (rraja)
Changed in devstack-plugin-ceph:
assignee: nobody → Ramana Raja (rraja)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to devstack-plugin-ceph (master)

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

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

Reviewed: https://review.openstack.org/275678
Committed: https://git.openstack.org/cgit/openstack/devstack-plugin-ceph/commit/?id=1aa19075c21fd1fe2c2cb3c9c6bd5454b9c14da4
Submitter: Jenkins
Branch: master

commit 1aa19075c21fd1fe2c2cb3c9c6bd5454b9c14da4
Author: Ramana Raja <email address hidden>
Date: Wed Feb 3 18:22:37 2016 +0530

    manila CI hook: disable glusterfs protocol

    manila's cephfs-native CI tests cephfs driver, which does not support
    glusterfs protocol. The glusterfs protocol is enabled by a manila's
    tempest config option by default. Modify the config option to disable
    glusterfs protocol.

    Change-Id: Ia7a226d6a8b0ba5aeedcdf34e8a6f9a8dbbfda40
    Closes-Bug: #1541377

Changed in devstack-plugin-ceph:
status: In Progress → Fix Released
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.