Unable to deploy --to kvm:X on focal hosts

Bug #1883575 reported by Achilleas Anagnostopoulos
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
Medium
Achilleas Anagnostopoulos
2.7
Fix Committed
Medium
Achilleas Anagnostopoulos

Bug Description

Attempts to deploy KVM workloads on a focal host (e.g. one obtained via MAAS and added as a manual machine) currently fail. This is because:

1) On focal, virsh is provided by libvirt-client instead of libvirt-bin.
2) Even with virsh installed, we get the following error when attempting to start the virtual machine:

2020-06-15 16:38:31 DEBUG juju.container.kvm run.go:36 output: error: Failed to start domain juju-275797-0-kvm-3
error: Requested operation is not valid: format of backing image '/var/lib/juju/kvm/guests/focal-amd64-backing-file.qcow' of image '/var/lib/juju/kvm/guests/juju-275797-0-kvm-3.qcow' was not specified in the image metadata (See https://libvirt.org/kbase/backing_chains.html for troubleshooting).

According to https://bugzilla.redhat.com/show_bug.cgi?id=1801219, when we create the image we also now need to specify the backing image format via the '-F' (capital F) flag.

Changed in juju:
status: New → In Progress
importance: Undecided → Medium
Revision history for this message
Achilleas Anagnostopoulos (achilleasa) wrote :

PR https://github.com/juju/juju/pull/11714 includes a drive-by fix for this. We should probably back-port the fix to 2.7/2.8

Revision history for this message
Achilleas Anagnostopoulos (achilleasa) wrote :

The following PRs back-port the fix to 2.7 and 2.8:
- https://github.com/juju/juju/pull/11718
- https://github.com/juju/juju/pull/11719

Changed in juju:
milestone: none → 2.9-beta1
Changed in juju:
status: In Progress → Fix Committed
Changed in juju:
milestone: 2.9-beta1 → 2.8.1
no longer affects: juju/2.8
Changed in juju:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.