euca-detach-volume detach incorrect iSCSI volume

Bug #738164 reported by Zap Chang
6
This bug affects 1 person
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/) {
        $found_target = 1 if $1 == $store;
    } elsif($_ =~ /.*Attached scsi disk ([a-zA-Z0-9]+).*\n/) {
        if($found_target == 1) {

should be

    if($_ =~ /Target: (.*)\n/) {
        $found_target = 1 if $1 eq $store;
    } elsif($_ =~ /.*Attached scsi disk ([a-zA-Z0-9]+).*\n/) {
        if($found_target == 1) {

Using the eq operator to compare String instead.

Related branches

Revision history for this message
Neil Soman (neilsoman) wrote :

Fixed in revno 1262.

Changed in eucalyptus:
status: New → Fix Committed
assignee: nobody → Neil Soman (neilsoman)
Revision history for this message
graziano obertelli (graziano.obertelli) wrote :

Targeting this one for 2.0.4.

Changed in eucalyptus:
assignee: Neil Soman (neilsoman) → graziano obertelli (graziano.obertelli)
milestone: none → 2.0.4
importance: Undecided → Medium
Changed in eucalyptus:
status: Fix Committed → Confirmed
Revision history for this message
graziano obertelli (graziano.obertelli) wrote :

This affects 2.0 (not euca 3): created branch with the proposed fix.

Changed in eucalyptus:
status: Confirmed → Invalid
assignee: graziano obertelli (graziano.obertelli) → nobody
importance: Medium → Undecided
milestone: 2.0.4 → none
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.