Merge ~paelzer/ubuntu/+source/nova:fix-libvirt-dependency into ~ubuntu-server-dev/ubuntu/+source/nova:master

Proposed by Christian Ehrhardt 
Status: Merged
Merge reported by: James Page
Merged at revision: d6737354f7d1a2153a92a98d26a9536a38e8192e
Proposed branch: ~paelzer/ubuntu/+source/nova:fix-libvirt-dependency
Merge into: ~ubuntu-server-dev/ubuntu/+source/nova:master
Diff against target: 35 lines (+6/-1)
2 files modified
debian/changelog (+5/-0)
debian/control (+1/-1)
Reviewer Review Type Date Requested Status
James Page Pending
Review via email: mp+324778@code.launchpad.net

Description of the change

Hi,
this is about bug 1694159.
TL;DR: get rid of old libvirt-bin dependencies.

There are also some service references to libvirt-bin in nova which are intentional (bug 1567811) for backports and such. Yet that is covered by the newer releases of libvirt having an alias of their libvirtd service to "libvirt-bin".
That said we don't want to touch these references yet (in 18.10 then where you'll no more backport to the old world it is time to remove them as we intend to drop the alias there).

But we want to replace the package dependency itself from the transitional package to the new ones - so that we can drop the transitional package at some point.

The packages were split from libvirt-bin into:
- libvirt-daemon (daemons)
- libvirt-daemon-system (run daemon as service)
- libvirt-clients (cli tools).

Currently nova-compute-libvirt depends on:
- "python-libvirt" to connect to libvirt
- libvirt-bin to have the service it can rely on

That said the correct new dependency should be libvirt-daemon-system.

There is no code reference to virsh or other cli outside some docs.
So "libvirt-clients" should not be needed as direct dependency.

To post a comment you must log in.
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

I wanted to test build but the current in flight 2:16.0.0~b1-0ubuntu5 fails as-is (e.g. build depends on python-pypowervm).
I assume you are resolving those anyway as time permits - so I'll have to wait for your to review and hopefully shove this change into 2:16.0.0~b1-0ubuntu5 as well.

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

This surely does no more apply, but the change is so trivial that carry forward on your own as needed.
I wanted to ask if there is any update on this?

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Well since you backport to Xenial you might want to keep it, but we should remember to drop on 18.04 if that is your issue accepting this.

Revision history for this message
James Page (james-page) wrote :

Agreed - rejecting this merge proposal for now; we'll need to fix this for queens@18.04

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

For backportability this can easily be as well:

libvirt-daemon-system | libvirt-bin

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index 1b81960..c65c8c1 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,5 +1,6 @@
6 nova (2:16.0.0~b1-0ubuntu5) UNRELEASED; urgency=medium
7
8+ [ James Page ]
9 * d/p/drop-iscsi-test.patch: Drop, included upstream.
10 * d/control: Add python-pypowervm to (Build-)Depends.
11 * d/*: wrap-and-sort.
12@@ -8,6 +9,10 @@ nova (2:16.0.0~b1-0ubuntu5) UNRELEASED; urgency=medium
13 * d/nova-cert.*,control: Drop nova-cert package, removed post
14 deprecation upstream.
15
16+ [ Christian Ehrhardt ]
17+ * d/control: move libvirt dependency from transitional libvirt-bin to
18+ new package libvirt-daemon-system (LP: #1694159).
19+
20 -- James Page <james.page@ubuntu.com> Wed, 24 May 2017 09:42:04 +0100
21
22 nova (2:16.0.0~b1-0ubuntu4) artful; urgency=medium
23diff --git a/debian/control b/debian/control
24index 83aedd4..5e2d554 100644
25--- a/debian/control
26+++ b/debian/control
27@@ -252,7 +252,7 @@ Depends: adduser,
28 genisoimage,
29 iptables,
30 kpartx,
31- libvirt-bin,
32+ libvirt-daemon-system,
33 nova-compute (= ${binary:Version}),
34 open-iscsi,
35 parted,

Subscribers

People subscribed via source and target branches