Detaching xvd fails due to pattern match

Bug #683800 reported by iain MacDonnell on 2010-12-01
This bug affects 1 person
Affects Status Importance Assigned to Milestone
In Progress
graziano obertelli

Bug Description

When a volume is attached using the Xen Virtual Disk driver - i.e. "/dev/xvdX", detach fails, because the perl script that does the detach looks for:

! if ($line =~ /target dev='$localdev' bus='scsi'/) {

but when XVD is used, the bus is "xen" and not "scsi":

    <disk type='block' device='disk'>
      <driver name='phy'/>
      <source dev='/dev/sdd'/>
      <target dev='xvdd' bus='xen'/>

A quick-fix is to remove the last part of the pattern - see attachment.

Related branches

iain MacDonnell (dseven) wrote :
Changed in eucalyptus:
assignee: nobody → Sang-Min Park (sang-min-park)
Sang-Min Park (sang-min-park) wrote :


Changed in eucalyptus:
status: New → Fix Committed
Neil Soman (neilsoman) wrote :

Revno with the fix is 1195.1.223.

I think this patch got lost in some private branch: reopening it.

Changed in eucalyptus:
status: Fix Committed → In Progress
milestone: none → 2.0.3
milestone: 2.0.3 → none
milestone: none → 2.1
Changed in eucalyptus:
assignee: Sang-Min Park (sang-min-park) → graziano obertelli (graziano.obertelli)
Changed in eucalyptus:
status: In Progress → Invalid
assignee: graziano obertelli (graziano.obertelli) → nobody
milestone: 2.0.4 → none
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers