← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1030844] Re: Snapshots (i.e. nova image-create) do not work with use_cow_images=False

 

Resolved and should be closed.

** Changed in: nova
       Status: Confirmed => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1030844

Title:
  Snapshots (i.e. nova image-create) do not work with
  use_cow_images=False

Status in OpenStack Compute (Nova):
  Invalid

Bug description:
  We use 'qemu-img snapshot' when taking a snapshot and this assumes the
  disk image is qcow2.

  So, if you set the use_cow_images option to False and try and snapshot
  a guest running on a raw image, you get:

  [-] Exception during message handling
  Traceback (most recent call last):
    File "/opt/stack/nova/nova/openstack/common/rpc/amqp.py", line 275, in _process_data
      rval = self.proxy.dispatch(ctxt, version, method, **args)
    File "/opt/stack/nova/nova/openstack/common/rpc/dispatcher.py", line 145, in dispatch
      return getattr(proxyobj, method)(ctxt, **kwargs)
    File "/opt/stack/nova/nova/exception.py", line 117, in wrapped
      temp_level, payload)
    File "/usr/lib64/python2.7/contextlib.py", line 24, in __exit__
      self.gen.next()
    File "/opt/stack/nova/nova/exception.py", line 92, in wrapped
      return f(*args, **kw)
    File "/opt/stack/nova/nova/compute/manager.py", line 245, in decorated_function
      return _wrap_instance_fault_core(self, _cb, context, *args, **kwargs)
    File "/opt/stack/nova/nova/compute/manager.py", line 234, in _wrap_instance_fault_core
      kwargs['instance_uuid'], e, sys.exc_info())
    File "/usr/lib64/python2.7/contextlib.py", line 24, in __exit__
      self.gen.next()
    File "/opt/stack/nova/nova/compute/manager.py", line 228, in _wrap_instance_fault_core
      return cb(self, context, *args, **kwargs)
    File "/opt/stack/nova/nova/compute/manager.py", line 241, in _cb
      return function(self, context, instance_uuid, *args, **kwargs)
    File "/opt/stack/nova/nova/compute/manager.py", line 1154, in snapshot_instance
      self.driver.snapshot(context, instance_ref, image_id)
    File "/opt/stack/nova/nova/exception.py", line 117, in wrapped
      temp_level, payload)
    File "/usr/lib64/python2.7/contextlib.py", line 24, in __exit__
      self.gen.next()
    File "/opt/stack/nova/nova/exception.py", line 92, in wrapped
      return f(*args, **kw)
    File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 813, in snapshot
      libvirt_utils.create_snapshot(disk_path, snapshot_name)
    File "/opt/stack/nova/nova/virt/libvirt/utils.py", line 300, in create_snapshot
      execute(*qemu_img_cmd, run_as_root=True)
    File "/opt/stack/nova/nova/virt/libvirt/utils.py", line 53, in execute
      return utils.execute(*args, **kwargs)
    File "/opt/stack/nova/nova/utils.py", line 191, in execute
      cmd=' '.join(cmd))
  ProcessExecutionError: Unexpected error while running command.
  Command: sudo /usr/bin/nova-rootwrap /etc/nova/rootwrap.conf qemu-img snapshot -c fd6bf0c80c5442fdacfb97105af147d1 /opt/stack/nova/instances/instance-00000003/disk
  Exit code: 1
  Stdout: ''
  Stderr: "qemu-img: Could not create snapshot 'fd6bf0c80c5442fdacfb97105af147d1': -95 (Operation not supported)\n"

  
  I think it's worth considering whether the use_cow_images=False option is really all that useful to anyone.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1030844/+subscriptions