race between api tempest tests across classes in 'test_rules' module
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Shared File Systems Service (Manila) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
The API tempest test run of the cephfs-native CI, 'gate-manila-
The API tests are run by the CI as,
`/bin/bash tools/pretty_tox.sh manila_
The lone test that fails,
| setUpClass (manila_
| -------
|
| 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_
| File "/opt/stack/
| cls.share = cls.create_share()
| File "/opt/stack/
| result = cls.create_
| File "/opt/stack/
| d["share"] = cls._create_
| File "/opt/stack/
| share = client.
| File "/opt/stack/
| resp, body = self.post("shares", body, version=version)
| File "/opt/stack/
| return super(SharesV2C
| File "/usr/local/
| return self.request(
| File "/usr/local/
| resp, resp_body)
| File "/usr/local/
| raise exceptions.
| tempest_
| Details: {u'code': 400, u'message': u"Invalid input received: Invalid share protocol provided: GLUSTERFS. It is either disabled or unsupported. Available protocols: ['CEPHFS']."}
The above test fails because the class attribute 'protocol' is incorrectly set as 'GLUSTERFS' by a tempest run of different test class in an another thread.
Solution
vponomaryov: eliminate concurrent update of shared python objects.
summary: |
- race between api tempest test across classes in 'test_rules' module + race between api tempest tests across classes in 'test_rules' module |
tags: | added: tempest |
description: | updated |
Changed in manila: | |
status: | New → Invalid |
CephFS tempest not configured properly, see http:// logs.openstack. org/11/ 270211/ 11/experimental /gate-manila- tempest- dsvm-cephfs- native/ 116d3ab/ logs/tempest. txt.gz# _2016-02- 02_20_27_ 53_310
just set opt "enable_ cert_rules_ for_protocols" to empty value /review. openstack. org/#/c/ 270211/ 11/manila_ tempest_ tests/tests/ api/test_ rules.py is True
it will solve this problem
right now, it has "glusterfs" value and condition on line 311 in https:/