[Bug 1864020] Re: libvirt.libvirtError: Requested operation is not valid: format of backing image %s of image %s was not specified in the image metadata (See https://libvirt.org/kbase/backing_chains.h

2021-05-17 Thread Shi Yan
We are using the ussuri nova, which already includes the above patch,
but still have the problem to start the instance.

trace logs are as following:

=
  2021-05-18 10:05:32.386 144075 ERROR 
oslo_messaging.rpc.server Traceback (most recent call last):
  2021-05-18 10:05:32.386 144075 ERROR 
oslo_messaging.rpc.server   File 
"/usr/lib/python3/dist-packages/oslo_messaging/rpc/server.py", line 165, in 
_process_incoming
  2021-05-18 10:05:32.386 144075 ERROR 
oslo_messaging.rpc.server res = self.dispatcher.dispatch(message)
  2021-05-18 10:05:32.386 144075 ERROR 
oslo_messaging.rpc.server   File 
"/usr/lib/python3/dist-packages/oslo_messaging/rpc/dispatcher.py", line 276, in 
dispatch
  2021-05-18 10:05:32.386 144075 ERROR 
oslo_messaging.rpc.server return self._do_dispatch(endpoint, method, ctxt, 
args)
  2021-05-18 10:05:32.386 144075 ERROR 
oslo_messaging.rpc.server   File 
"/usr/lib/python3/dist-packages/oslo_messaging/rpc/dispatcher.py", line 196, in 
_do_dispatch
  2021-05-18 10:05:32.386 144075 ERROR 
oslo_messaging.rpc.server result = func(ctxt, **new_args)
  2021-05-18 10:05:32.386 144075 ERROR 
oslo_messaging.rpc.server   File 
"/usr/lib/python3/dist-packages/nova/exception_wrapper.py", line 79, in wrapped
  2021-05-18 10:05:32.386 144075 ERROR 
oslo_messaging.rpc.server function_name, call_dict, binary, tb)
  2021-05-18 10:05:32.386 144075 ERROR 
oslo_messaging.rpc.server   File 
"/usr/lib/python3/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
  2021-05-18 10:05:32.386 144075 ERROR 
oslo_messaging.rpc.server self.force_reraise()
  2021-05-18 10:05:32.386 144075 ERROR 
oslo_messaging.rpc.server   File 
"/usr/lib/python3/dist-packages/oslo_utils/excutils.py", line 196, in 
force_reraise
  2021-05-18 10:05:32.386 144075 ERROR 
oslo_messaging.rpc.server six.reraise(self.type_, self.value, self.tb)
  2021-05-18 10:05:32.386 144075 ERROR 
oslo_messaging.rpc.server   File "/usr/lib/python3/dist-packages/six.py", line 
703, in reraise
  2021-05-18 10:05:32.386 144075 ERROR 
oslo_messaging.rpc.server raise value
  2021-05-18 10:05:32.386 144075 ERROR 
oslo_messaging.rpc.server   File 
"/usr/lib/python3/dist-packages/nova/exception_wrapper.py", line 69, in wrapped
  2021-05-18 10:05:32.386 144075 ERROR 
oslo_messaging.rpc.server return f(self, context, *args, **kw)
  2021-05-18 10:05:32.386 144075 ERROR 
oslo_messaging.rpc.server   File 
"/usr/lib/python3/dist-packages/nova/compute/manager.py", line 189, in 
decorated_function
  2021-05-18 10:05:32.386 144075 ERROR 
oslo_messaging.rpc.server "Error: %s", e, instance=instance)
  2021-05-18 10:05:32.386 144075 ERROR 
oslo_messaging.rpc.server   File 
"/usr/lib/python3/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
  2021-05-18 10:05:32.386 144075 ERROR 
oslo_messaging.rpc.server self.force_reraise()
  2021-05-18 10:05:32.386 144075 ERROR 
oslo_messaging.rpc.server   File 
"/usr/lib/python3/dist-packages/oslo_utils/excutils.py", line 196, in 
force_reraise
  2021-05-18 10:05:32.386 144075 ERROR 
oslo_messaging.rpc.server six.reraise(self.type_, self.value, self.tb)
  2021-05-18 10:05:32.386 144075 ERROR 
oslo_messaging.rpc.server   File "/usr/lib/python3/dist-packages/six.py", line 
703, in reraise
  2021-05-18 10:05:32.386 144075 ERROR 
oslo_messaging.rpc.server raise value
  2021-05-18 10:05:32.386 144075 ERROR 
oslo_messaging.rpc.server   File 
"/usr/lib/python3/dist-packages/nova/compute/manager.py", line 159, in 
decorated_function
  2021-05-18 10:05:32.386 144075 ERROR 
oslo_messaging.rpc.server return function(self, context, *args, **kwargs)
  2021-05-18 10:05:32.386 144075 ERROR 
oslo_messaging.rpc.server   File 
"/usr/lib/python3/dist-packages/nova/compute/utils.py", line 1456, in 
decorated_function
  

[Bug 1864020] Re: libvirt.libvirtError: Requested operation is not valid: format of backing image %s of image %s was not specified in the image metadata (See https://libvirt.org/kbase/backing_chains.h

2021-03-12 Thread György Szombathelyi
And what about existing images? E.g. resize fails on old images after
upgrading libvirt.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1864020

Title:
  libvirt.libvirtError: Requested operation is not valid: format of
  backing image %s of image %s was not specified in the image metadata
  (See https://libvirt.org/kbase/backing_chains.html for
  troubleshooting)

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1864020] Re: libvirt.libvirtError: Requested operation is not valid: format of backing image %s of image %s was not specified in the image metadata (See https://libvirt.org/kbase/backing_chains.h

2020-09-15 Thread Lee Yarwood
** Changed in: nova
   Status: Fix Committed => Fix Released

** Changed in: nova
   Importance: Undecided => High

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1864020

Title:
  libvirt.libvirtError: Requested operation is not valid: format of
  backing image %s of image %s was not specified in the image metadata
  (See https://libvirt.org/kbase/backing_chains.html for
  troubleshooting)

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1864020] Re: libvirt.libvirtError: Requested operation is not valid: format of backing image %s of image %s was not specified in the image metadata (See https://libvirt.org/kbase/backing_chains.h

2020-03-27 Thread OpenStack Infra
Reviewed:  https://review.opendev.org/710790
Committed: 
https://git.openstack.org/cgit/openstack/nova/commit/?id=f5bc2c7ae45d83d90770a3e55bac0ae2465a8775
Submitter: Zuul
Branch:stable/stein

commit f5bc2c7ae45d83d90770a3e55bac0ae2465a8775
Author: Lee Yarwood 
Date:   Wed Feb 19 20:39:54 2020 +

libvirt: Provide the backing file format when creating qcow2 disks

Libvirt v6.0.0 [1] will now fail to launch a domain when using qcow2
disks where the backing file format is not recorded in the qcow2
metadata.

There are some discussions upstream around relaxing this slightly [2]
but for now any attempt to launch an instance using qcow2 disks will
fail as Nova does not populate this value when creating the disk.

Nova needs to at a minimum start populating this field and depending on
the outcome of the thread upstream in Libvirt also potentially handle
the upgrade case where we may need to rebase existing disks in order to
update the metadata.

For now this change simply adds the backing_fmt option to the qemu-img
command line used to create these disks.

[1] 
https://github.com/libvirt/libvirt/commit/3615e8b39badf2a526996a69dc91a92b04cf262e
[2] https://www.redhat.com/archives/libvir-list/2020-February/msg00616.html

Partial-Bug: #1864020
Change-Id: I77ebada015f6522a300be4fa043fb8676458402b
(cherry picked from commit 0cfe9c81e3fe4d268c9949c6b8e873abab94a407)
(cherry picked from commit 7fd41e9b8c0f0f9cbccd63fbdbcc863de7db50f5)


** Tags added: in-stable-stein

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1864020

Title:
  libvirt.libvirtError: Requested operation is not valid: format of
  backing image %s of image %s was not specified in the image metadata
  (See https://libvirt.org/kbase/backing_chains.html for
  troubleshooting)

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1864020] Re: libvirt.libvirtError: Requested operation is not valid: format of backing image %s of image %s was not specified in the image metadata (See https://libvirt.org/kbase/backing_chains.h

2020-03-24 Thread OpenStack Infra
Reviewed:  https://review.opendev.org/710788
Committed: 
https://git.openstack.org/cgit/openstack/nova/commit/?id=7fd41e9b8c0f0f9cbccd63fbdbcc863de7db50f5
Submitter: Zuul
Branch:stable/train

commit 7fd41e9b8c0f0f9cbccd63fbdbcc863de7db50f5
Author: Lee Yarwood 
Date:   Wed Feb 19 20:39:54 2020 +

libvirt: Provide the backing file format when creating qcow2 disks

Libvirt v6.0.0 [1] will now fail to launch a domain when using qcow2
disks where the backing file format is not recorded in the qcow2
metadata.

There are some discussions upstream around relaxing this slightly [2]
but for now any attempt to launch an instance using qcow2 disks will
fail as Nova does not populate this value when creating the disk.

Nova needs to at a minimum start populating this field and depending on
the outcome of the thread upstream in Libvirt also potentially handle
the upgrade case where we may need to rebase existing disks in order to
update the metadata.

For now this change simply adds the backing_fmt option to the qemu-img
command line used to create these disks.

[1] 
https://github.com/libvirt/libvirt/commit/3615e8b39badf2a526996a69dc91a92b04cf262e
[2] https://www.redhat.com/archives/libvir-list/2020-February/msg00616.html

Partial-Bug: #1864020
Change-Id: I77ebada015f6522a300be4fa043fb8676458402b
(cherry picked from commit 0cfe9c81e3fe4d268c9949c6b8e873abab94a407)


** Tags added: in-stable-train

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1864020

Title:
  libvirt.libvirtError: Requested operation is not valid: format of
  backing image %s of image %s was not specified in the image metadata
  (See https://libvirt.org/kbase/backing_chains.html for
  troubleshooting)

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1864020] Re: libvirt.libvirtError: Requested operation is not valid: format of backing image %s of image %s was not specified in the image metadata (See https://libvirt.org/kbase/backing_chains.h

2020-03-16 Thread Lee Yarwood
** Changed in: nova
   Status: In Progress => Fix Committed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1864020

Title:
  libvirt.libvirtError: Requested operation is not valid: format of
  backing image %s of image %s was not specified in the image metadata
  (See https://libvirt.org/kbase/backing_chains.html for
  troubleshooting)

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1864020] Re: libvirt.libvirtError: Requested operation is not valid: format of backing image %s of image %s was not specified in the image metadata (See https://libvirt.org/kbase/backing_chains.h

2020-02-27 Thread Launchpad Bug Tracker
This bug was fixed in the package nova - 2:21.0.0~b2~git2020021008
.1fcd74730d-0ubuntu4

---
nova (2:21.0.0~b2~git2020021008.1fcd74730d-0ubuntu4) focal; urgency=medium

  * d/p/libvirt-provide-backing-file-format-creating-qcow2.patch: Without this
patch, domains (instances) can't be launched with libvirt 6.0.0. Picked
from https://review.opendev.org/#/c/708745/ (LP: #1864020).

 -- Corey Bryant   Thu, 27 Feb 2020 09:05:50
-0500

** Changed in: nova (Ubuntu)
   Status: Triaged => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1864020

Title:
  libvirt.libvirtError: Requested operation is not valid: format of
  backing image %s of image %s was not specified in the image metadata
  (See https://libvirt.org/kbase/backing_chains.html for
  troubleshooting)

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1864020] Re: libvirt.libvirtError: Requested operation is not valid: format of backing image %s of image %s was not specified in the image metadata (See https://libvirt.org/kbase/backing_chains.h

2020-02-26 Thread Corey Bryant
** Also affects: nova (Ubuntu)
   Importance: Undecided
   Status: New

** Changed in: nova (Ubuntu)
   Status: New => Triaged

** Changed in: nova (Ubuntu)
   Importance: Undecided => High

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1864020

Title:
  libvirt.libvirtError: Requested operation is not valid: format of
  backing image %s of image %s was not specified in the image metadata
  (See https://libvirt.org/kbase/backing_chains.html for
  troubleshooting)

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs