Bug 1229551

Summary: Nova resize fails with iSCSI logon failure when booting from volume
Product: [Community] RDO Reporter: Alessandro Pilotti <apilotti>
Component: openstack-cinderAssignee: Haïkel Guémar <karlthered>
Status: CLOSED EOL QA Contact: nlevinki <nlevinki>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: JunoCC: eharney, hguemar, karlthered, srevivo
Target Milestone: ---   
Target Release: Juno   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-19 15:47:31 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
patch ported from https://review.openstack.org/#/c/175349/ none

Description Alessandro Pilotti 2015-06-09 03:56:36 UTC
Description of problem:

Boot an instance from volume and try to resize.
Resize will fail due to a failed iSCSi logon.

This issue has been fixed and backported in Juno, but is not yet present in RDO:
https://review.openstack.org/#/c/175349/

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

python-cinder-2014.2.2-1.el7.noarch

How reproducible:

Easily reproducible, steps in next section.

Steps to Reproduce:

mageid=`glance image-show cirros | awk '{if (NR == 10) {print $4}}'`
netid=`neutron net-show -c id private | awk '{if (NR == 4) {print $4}}'`

nova boot --flavor 1 --block-device source=image,id=$imageid,dest=volume,size=1,shutdown=remove,bootindex=0 --nic net-id=$netid vm1 --poll

nova resize vm1 2 --poll

Actual results:

Resize fails

Expected results:

resize should succeed :)

Additional info:

A workaround consists in backporting the missing fix:

wget https://dl.dropboxusercontent.com/u/9060190/cinder_resize_patch.txt -O /tmp/cinder_resize_patch.txt
cd /usr/lib/python2.7/site-packages
patch -p1  < /tmp/cinder_resize/patch.txt
service openstack-cinder-volume restart

Comment 1 Alessandro Pilotti 2015-06-09 04:03:25 UTC
Created attachment 1036567 [details]
patch ported from https://review.openstack.org/#/c/175349/

Comment 2 Haïkel Guémar 2015-06-14 13:38:29 UTC
I cherry-picked the patch from stable/juno, it's been rebuilt and updates pending.

Comment 3 Chandan Kumar 2016-05-19 15:47:31 UTC
This bug is against a Version which has reached End of Life.
If it's still present in supported release (http://releases.openstack.org), please update Version and reopen.