]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Check for backing lun on iscsi target create
authorJohn Griffith <john.griffith@solidfire.com>
Tue, 1 Oct 2013 18:05:14 +0000 (12:05 -0600)
committerJohn Griffith <john.griffith@solidfire.com>
Tue, 1 Oct 2013 20:00:16 +0000 (14:00 -0600)
commit1aef7b6304af6c19b8ceb81cbd9a3c83bb4880de
tree84fdba618e531b3e93f796faee314a5242aa3b46
parent903e7d22d509db74132facd28ee881baa3d30f0b
Check for backing lun on iscsi target create

Check to verify the backing lun was actually created and not just
the controller lun.  If it was NOT created, attempt to issue
tgtadm --op new to see if we can recover.

If this fails, then we want to actually fail in Cinder rather than
pretending that everything went well, so we'll log the error and raise.

Change-Id: I3cabab0d214c051267638a627664df2b673236e3
Closes-Bug: #1226337
cinder/brick/iscsi/iscsi.py
cinder/tests/test_iscsi.py