Fail to retype lvm volume to scaleio

Bug #1614598 reported by Feodor Tersin
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
High
Matan Sabag

Bug Description

The retype operation stops on volume renaming stage.

The reason is that volume.provider_id is None, and for rename operation ScaleIO server returns status_code 400 (bad request), but error_code 0. This case is not catched in ScaleIODriver._rename_volume method, and therefore the retype operation is not being completed.

In other words the solution of https://bugs.launchpad.net/cinder/+bug/1604703 needs to be improved.

ps. I tried 'asdf' as a volume id, and ScaleIO returned 400 as well. Because that i think that ScaleIO can return 400 for non empty provider_id of some drivers. So that a fix of this bug must check status_code for 400 error, but not just to test provider_id and return if None.

Xing Yang (xing-yang)
Changed in cinder:
assignee: nobody → Matan Sabag (matan-sabag)
status: New → Triaged
Revision history for this message
Matan Sabag (matan-sabag) wrote :

Can you add the logs please?

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

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

Changed in cinder:
status: Triaged → In Progress
Xing Yang (xing-yang)
Changed in cinder:
milestone: none → newton-rc1
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.openstack.org/368357
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=2089e4e5e57ae32a26cbd06b35a57a186b8ee7b4
Submitter: Jenkins
Branch: master

commit 2089e4e5e57ae32a26cbd06b35a57a186b8ee7b4
Author: Matan Sabag <email address hidden>
Date: Sat Sep 10 14:00:29 2016 -0700

    Fixed illegal syntax error code in ScaleIO rename volume

    When retype calls _rename_volume() method with an
    illegal syntax it fails with a different error code 0.

    Closes-Bug: #1614598
    Change-Id: I1170e291aa082bd920e3d24169faf7d93d07a4b7

Changed in cinder:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/cinder 9.0.0.0rc1

This issue was fixed in the openstack/cinder 9.0.0.0rc1 release candidate.

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.