euca-detach-volume detach incorrect iSCSI volume
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Eucalyptus |
Invalid
|
Undecided
|
Unassigned | ||
2.0 |
Fix Committed
|
Medium
|
graziano obertelli |
Bug Description
When performing volume detach operation, NC try to detach first iISCSI volume it can see.
To reproduce, attach two volumes on the same instance and detach second volume. From NC's log we can see it try to detach first volume.
This may be caused by wrong string operator in get_iscsitarget.pl.
where
if($_ =~ /Target: (.*)\n/) {
} elsif($_ =~ /.*Attached scsi disk ([a-zA-
should be
if($_ =~ /Target: (.*)\n/) {
} elsif($_ =~ /.*Attached scsi disk ([a-zA-
Using the eq operator to compare String instead.
Related branches
- graziano obertelli: Approve
-
Diff: 12 lines (+1/-1)1 file modifiedtools/get_iscsitarget.pl (+1/-1)
Changed in eucalyptus: | |
status: | Fix Committed → Confirmed |
Fixed in revno 1262.