Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1551483

Summary: [backport request] Infinidat: fix force detach problem
Product: Red Hat OpenStack Reporter: partners.infi <partners.infi>
Component: openstack-cinderAssignee: Eric Harney <eharney>
Status: CLOSED ERRATA QA Contact: Avi Avraham <aavraham>
Severity: urgent Docs Contact: Kim Nylander <knylande>
Priority: urgent    
Version: 12.0 (Pike)CC: atiwary, dcadzow, dmaley, eharney, ikatzir, jamsmith, jinhli, mschuppe, partners.infi, pgrist, rlandry, scohen, srevivo, sroza, tshefi
Target Milestone: z3Keywords: FeatureBackport, OtherQA, Triaged, ZStream
Target Release: 12.0 (Pike)Flags: tshefi: automate_bug-
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-cinder-11.1.0-3.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-08-20 12:46:46 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
tempest run error log.
none
python-cinder-tests-11.1.0-3.el7ost.noarch.rpm
none
python-cinder-11.1.0-3.el7ost.noarch.rpm
none
openstack-cinder-11.1.0-3.el7ost.noarch.rpm none

Description partners.infi 2018-03-05 09:30:26 UTC
Created attachment 1404239 [details]
tempest run error log.

Description of problem:
When trying to force detach a volume with an initiator which is None, the Infinidat Cinder driver reports a Traceback:
"Exception during message handling: VolumeBackendAPIException: Bad or unexpected response from the storage volume backend API: Terminate volume connection failed: 'NoneType' object has no attribute '__getitem__'"
This was fixed and merged into Master, see the following link:
https://git.openstack.org/cgit/openstack/cinder/commit/?id=8e8a506fddad5302eed0986487bcdc1e45bc814f

I am asking to backport the fix into current release of RHOS12.

Version-Release number of selected component (if applicable):


How reproducible:
This can be reproduced when running the following tempest test -
tempest.api.volume.admin.test_volumes_actions.VolumesActionsTest.test_force_detach_volume

Steps to Reproduce:
1.Install and Deploy RHOSP 12
2.Configure Infinidat Cinder Volume Driver (connect to storage)
3.Run cinder_volumes test from RedHat-Certification suite.

Actual results:
Traceback and the above test fails.
See attached log.

Expected results:
The Test tempest.api.volume.admin.test_volumes_actions.VolumesActionsTest.test_force_detach_volume
suppose to PASS. When running the redhat-certification cinder_volume test after the patch was deployed, all tests pass well. 
Additional info:
see dialog in certification_id 40425

Comment 1 partners.infi 2018-03-07 09:48:50 UTC
Hello Eric,
when do you think this fix will be integrated into OSP12?

regards, 
Igal

Comment 2 partners.infi 2018-03-11 10:03:04 UTC
Thanks for the update.
Currently I have the following openstack-cinder version installed:
[heat-admin@overcloud-controller-0 redhat-certification-openstack]$ rpm -qi openstack-cinder
Name        : openstack-cinder
Epoch       : 1
Version     : 11.0.1
Release     : 2.el7ost
Architecture: noarch
Install Date: Fri 26 Jan 2018 03:28:30 PM UTC
Group       : Unspecified
Size        : 212398
License     : ASL 2.0
Signature   : RSA/SHA256, Tue 09 Jan 2018 02:32:38 PM UTC, Key ID 199e2f91fd431d51
Source RPM  : openstack-cinder-11.0.1-2.el7ost.src.rpm
Build Date  : Thu 21 Dec 2017 06:19:28 PM UTC
Build Host  : ppc-058.build.eng.bos.redhat.com
Relocations : (not relocatable)
Packager    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
Vendor      : Red Hat, Inc.
URL         : http://www.openstack.org/software/openstack-storage/
Summary     : OpenStack Volume service

When trying to update, it doesn't find an update -
[heat-admin@overcloud-controller-0 redhat-certification-openstack]$ sudo yum update openstack-cinder
Loaded plugins: product-id, search-disabled-repos, subscription-manager
No packages marked for update

How can update openstack-cinder to the latest version?

Comment 3 partners.infi 2018-03-12 15:11:56 UTC
Hello Eric,

Do you know when openstack-cinder-11.1.0-3.el7ost is supposed to be released?

thanks,
Igal

Comment 4 partners.infi 2018-03-27 08:15:42 UTC
Any updates on this?
Our Certification is blocked by this Fix, and the next rhos version is to be out soon.

Comment 6 Paul Grist 2018-04-10 17:54:53 UTC
We are working with GSS to make this available as a hotfix to enable testing.  It will be in the next release erratta update and that release update would be needed to complete and publish certification.

Comment 8 Martin Schuppert 2018-04-12 06:19:06 UTC
Created attachment 1420719 [details]
python-cinder-tests-11.1.0-3.el7ost.noarch.rpm

Comment 9 Martin Schuppert 2018-04-12 06:19:39 UTC
Created attachment 1420720 [details]
python-cinder-11.1.0-3.el7ost.noarch.rpm

Comment 10 Martin Schuppert 2018-04-12 06:20:06 UTC
Created attachment 1420721 [details]
openstack-cinder-11.1.0-3.el7ost.noarch.rpm

Comment 11 Martin Schuppert 2018-04-12 06:20:58 UTC
(In reply to partners.infi from comment #4)
> Any updates on this?
> Our Certification is blocked by this Fix, and the next rhos version is to be
> out soon.

Hi,

we have attached openstack-cinder-11.1.0-3.el7ost.noarch.rpm .  Could you please validate the functionality.

Comment 12 partners.infi 2018-04-12 09:31:46 UTC
Yes, 
I will installed the attached package and validate using tempest testing.
Thanks,
Igal

Comment 13 partners.infi 2018-04-12 09:37:49 UTC
Hi @Martin,
I guess I need to update all three packages?
Igal

Comment 14 Martin Schuppert 2018-04-12 10:19:19 UTC
(In reply to partners.infi from comment #13)
> Hi @Martin,
> I guess I need to update all three packages?
> Igal

you'd need to update python-cinder and openstack-cinder. I am not sure if you
have python-cinder-tests installed. If so then yes. Afterwards restart cinder services.

Martin

Comment 15 partners.infi 2018-04-22 10:50:57 UTC
I have verified the new packages while running tempest cinder_volumes, both for iSCSI and FC. 
The tests passed well.
Do you know when this fix will be available for the public users?

Igal

Comment 17 partners.infi 2018-05-08 10:58:16 UTC
Hello Eric Harney,
Is there any update on this?
Openstack Summit is in a week and a half from now, is there any change this could be available?

regards,
Igal

Comment 27 errata-xmlrpc 2018-08-20 12:46:46 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:2516