ddt has no attribute named_data

Bug #1990137 reported by Amol Kahat
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Critical
Unassigned
Revision history for this message
Ronelle Landy (rlandy) wrote :
Changed in tripleo:
importance: High → Critical
status: New → Triaged
Revision history for this message
Ronelle Landy (rlandy) wrote :

https://logserver.rdoproject.org/openstack-component-manila/opendev.org/openstack/tripleo-ci/master/periodic-tripleo-ci-centos-9-scenario004-standalone-manila-master/968bc6a/

The failures is in:

TASK [os_tempest : List tempest tests] *****************************************
2022-09-20 08:02:35.956171 | primary | Tuesday 20 September 2022 08:02:35 -0400 (0:00:02.999) 0:48:40.005 *****
2022-09-20 08:02:41.627175 | primary | fatal: [undercloud]: FAILED! => {"changed": false, "cmd": "set -e\nif [ -d /openstack/venvs/tempest-untagged/bin ];\nthen\n . /openstack/venvs/tempest-untagged/bin/activate\nfi\ntempest run -l\n", "delta": "0:00:03.594175", "end": "2022-09-20 12:02:41.283220", "msg": "non-zero return code", "rc": 100, "start": "2022-09-20 12:02:37.689045", "stderr": "", "stderr_lines": [], "stdout": "\n=

Revision history for this message
Ronelle Landy (rlandy) wrote :

https://opendev.org/openstack/manila-tempest-plugin/commit/2b3fcc571f217c14042f0d6991f59087fbfb0385

 "Use ddt.named_data decorator to avoid random test names"

merged 5 days ago

Revision history for this message
Soniya Murlidhar Vyas (svyas) wrote :

IMHO, this failure is caused because of following reasons:-

1. This patch[1] uses '.' instead of '_' which caused ddt module to throw error as follows:-
---
@ddt.named_data(\nAttributeError: module 'ddt' has no attribute 'named_data'\n
---

2. There is an solution available for this issue[2] which is still not merged which is why manila_tempest_tests are failing

[1]https://review.opendev.org/c/openstack/manila-tempest-plugin/+/855813
[2]https://review.opendev.org/c/openstack/manila-tempest-plugin/+/857826

Revision history for this message
Victoria Martinez de la Cruz (vkmc) wrote :

ddt named_data has been included since ddt >= 1.5.0 [0][1]

the version of ddt has been pushed in manila-tempest-tests to 1.6.0 [2]

the version of ddt shipped in centos9 is 1.4.4

we need to bump the version of ddt in centos9 in order to fix this issue or revert the change that introduced the usage of this decorator

[0] https://github.com/datadriventests/ddt/releases/tag/1.5.0
[1] https://github.com/datadriventests/ddt/pull/103
[2] https://review.opendev.org/c/openstack/manila-tempest-plugin/+/855813/1/requirements.txt

Revision history for this message
chandan kumar (chkumar246) wrote :

Latest run https://review.rdoproject.org/zuul/build/d90d47ee19f9432a8e6d15f161f1247b
periodic-tripleo-ci-centos-9-scenario004-standalone-manila-master SUCCESS is passing now.

Alan Pevec (apevec)
Changed in tripleo:
status: Triaged → 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.