[cinder][requirements] python-cinderclient Yoga gate broken due to rtslib-fb

Rajat Dhasmana rdhasman at redhat.com
Mon Jan 30 08:44:19 UTC 2023


Hello,

Currently python-cinderclient yoga gate is broken because
*python-cinderclient-functional-py39* job is failing. Upon looking into the
logs, I found the *cinder-rtstool delete *command failing[1].

Jan 16 07:58:14.935519 np0032740756 cinder-volume[115744]: ERROR
cinder.volume.targets.lio Command: sudo cinder-rootwrap
/etc/cinder/rootwrap.conf cinder-rtstool delete
iqn.2010-10.org.openstack:volume-095ce534-8ef7-45c8-867c-f6d4fbc2b02d
Jan 16 07:58:14.935519 np0032740756 cinder-volume[115744]: ERROR
cinder.volume.targets.lio Exit code: 1
Jan 16 07:58:14.935519 np0032740756 cinder-volume[115744]: ERROR
cinder.volume.targets.lio Stdout: ''

Looking further into the traceback, this seems to be the main issue.

line 215, in _gen_attached_luns\n    for tpgt_dir in
listdir(tpgts_base):\nNotADirectoryError: [Errno 20] Not a directory:
\'/sys/kernel/config/target/iscsi/cpus_allowed_list\'\n'

I found a similar (not exact) error in thread[2] to which there was a reply
that it was fixed[3].

The fix is included in version 2.1.75[4] but the version pinned in upper
constraints for yoga is 2.1.74[5].
I've tested the version bump in these DNM patches[6][7] and it works.
A quick code search reveals that cinder is the only project actively using
this lib[8].
My question for the requirements team is, is it OK to bump the requirement
to allow cinderclient yoga gate to pass since it's blocking backports?

[1]
https://zuul.opendev.org/t/openstack/build/a282bfbb6b0a4148a69694db6ab7eb69/log/controller/logs/screen-c-vol.txt#1896
[2] https://www.spinics.net/lists/linux-scsi/msg172264.html
[3] https://www.spinics.net/lists/linux-scsi/msg172265.html
[4]
https://github.com/open-iscsi/rtslib-fb/commit/8d2543c4da62e962661011fea5b19252b9660822
[5]
https://github.com/openstack/requirements/blob/stable/yoga/upper-constraints.txt#L13
[6] https://review.opendev.org/c/openstack/python-cinderclient/+/870513
[7] https://review.opendev.org/c/openstack/requirements/+/870714
[8]
https://codesearch.opendev.org/?q=rtslib-fb&i=nope&literal=nope&files=&excludeFiles=&repos=

Thanks
Rajat Dhasmana
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.openstack.org/pipermail/openstack-discuss/attachments/20230130/abcf7a29/attachment.htm>


More information about the openstack-discuss mailing list