From a179dfeb50f5ec791a4ae31d3995c7f3b7cf10c9 Mon Sep 17 00:00:00 2001 From: Artur Zarzycki Date: Mon, 23 Jan 2017 13:11:29 +0100 Subject: [PATCH] Fix problem with qemu-kvm dependencies in nova-libvirt container Package quem-kvm depends on qemu-system-x86 that depends on libgtk-3-0 and libvte-2.91-0 that are provided by testing and jessie repositories and don't exist in jessie-backports, so we decided to switch to testing repo with installation of qemu-kvm and pin version of it Change-Id: I9f08c3be522d0fa5ca5dfee1f18029c379e670e9 --- docker/nova-libvirt/Dockerfile.j2 | 5 +++-- docker/nova-libvirt/apt_preferences.debian | 4 ++++ 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 docker/nova-libvirt/apt_preferences.debian diff --git a/docker/nova-libvirt/Dockerfile.j2 b/docker/nova-libvirt/Dockerfile.j2 index 22ba31c..bfab161 100644 --- a/docker/nova-libvirt/Dockerfile.j2 +++ b/docker/nova-libvirt/Dockerfile.j2 @@ -2,12 +2,13 @@ FROM {{ image_spec("nova-base") }} MAINTAINER {{ maintainer }} COPY {{ render('sources.list.debian.j2') }} /etc/apt/sources.list.d/testing.list +COPY apt_preferences.debian /etc/apt/preferences RUN apt-get update \ - && apt-get -y install -t jessie-backports --no-install-recommends \ + && apt-get -y install -t testing --no-install-recommends \ qemu-kvm \ qemu-block-extra \ - && apt-get -y install libvirt-daemon -t testing --no-install-recommends \ + libvirt-daemon \ libvirt-bin \ && apt-get -y install --no-install-recommends \ ceph-common \ diff --git a/docker/nova-libvirt/apt_preferences.debian b/docker/nova-libvirt/apt_preferences.debian new file mode 100644 index 0000000..d347f17 --- /dev/null +++ b/docker/nova-libvirt/apt_preferences.debian @@ -0,0 +1,4 @@ +Package: qemu-kvm +Pin: release a=testing +Pin: version 2.8+dfsg-1 +Pin-Priority: 500