← Back to team overview

registry team mailing list archive

[Bug 620027] Re: vgcreate/lvcreate in volume/service.py fail and go undetected

 

I commented out the pvcreate command under _init_volume_group

def _init_volume_group(self):
        if FLAGS.fake_storage:
            return
        #yield process.simple_execute(
        #        "sudo pvcreate %s" % (FLAGS.storage_dev))
        yield process.simple_execute(
                "sudo vgcreate %s %s" % (FLAGS.volume_group,
                                         FLAGS.storage_dev))

and let nova-volume create the group and the physical disk in one go.
The command's output looks like below:

No physical volume label read from /dev/loop0
  Physical volume "/dev/loop0" successfully created
  Volume group "nova-volumes" successfully created

when I run nova-volume as daemon I finally get the volume group
created!! I know it does not sound like a bug fix, but commenting
pvcreate out does circumvent the problem.

If vgcreate takes care of the "pvcreation" too, would it make sense to
have just one simple_execute call?

-- 
vgcreate/lvcreate in volume/service.py fail and go undetected
https://bugs.launchpad.net/bugs/620027
You received this bug notification because you are a member of Registry
Administrators, which is subscribed to OpenStack.



References