Activity log for bug #1358552

Date Who What changed Old value New value Message
2014-08-19 00:27:44 warewang bug added bug
2014-08-19 00:28:38 warewang nova: assignee warewang (wangguangcai)
2014-08-19 00:32:54 warewang description The logical volume can not be removed when create VM error. I look at the code, found that parameter is a list in the libvirt's lvm, but in imagebackend, parameters passed is a string. in the Libvirt's LVM def remove_volumes(paths): ## #the path is list """Remove one or more logical volume.""" errors = [] for path in paths: clear_volume(path) lvremove = ('lvremove', '-f', path) try: utils.execute(*lvremove, attempts=3, run_as_root=True) except processutils.ProcessExecutionError as exp: errors.append(str(exp)) if errors: raise exception.VolumesNotRemoved(reason=(', ').join(errors)) in the imagebackend's LVM @contextlib.contextmanager def remove_volume_on_error(self, path): try: yield except Exception: with excutils.save_and_reraise_exception(): lvm.remove_volumes(path) ### the path is string The logical volume can not be removed when delete VM error. I look at the code, found that parameter is a list in the libvirt's lvm, but in imagebackend, parameters passed is a string. in the Libvirt's LVM def remove_volumes(paths): ## #the path is list     """Remove one or more logical volume."""     errors = []     for path in paths:         clear_volume(path)         lvremove = ('lvremove', '-f', path)         try:             utils.execute(*lvremove, attempts=3, run_as_root=True)         except processutils.ProcessExecutionError as exp:             errors.append(str(exp))     if errors:         raise exception.VolumesNotRemoved(reason=(', ').join(errors)) in the imagebackend's LVM  @contextlib.contextmanager     def remove_volume_on_error(self, path):         try:             yield         except Exception:             with excutils.save_and_reraise_exception():                 lvm.remove_volumes(path) ### the path is string
2014-08-19 04:49:58 OpenStack Infra nova: status New In Progress
2014-09-22 08:06:34 Nikola Đipanov nova: importance Undecided High
2014-09-22 08:07:36 Nikola Đipanov nova: milestone juno-rc1
2014-09-22 15:50:47 OpenStack Infra nova: status In Progress Fix Committed
2014-10-01 07:37:25 Thierry Carrez nova: status Fix Committed Fix Released
2014-10-16 08:55:01 Thierry Carrez nova: milestone juno-rc1 2014.2