'Detach and destroy EBS root volume (EBS-backed node only)'

def delete_root_volume(self):

    if (not self.is_ebs_backed()):
        return
    root_vol = self.block_device_mapping[self.root_device_name]
    vol_id = root_vol.volume_id
    vol = self.ec2.get_volume(vol_id)
    vol.detach()
    while (vol.update() != 'available'):
        time.sleep(5)
    log.info(("Deleting    node    %s's    root    volume" % self.alias))
    root_vol.delete()
