apparmor is uninstalled when deploying icehouse nova-compute on Precise

Bug #1389239 reported by Louis Bouchard
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apparmor (Ubuntu)
New
Undecided
Unassigned
Precise
New
Undecided
Unassigned
libvirt (Ubuntu)
New
Undecided
Unassigned
Precise
New
Undecided
Unassigned

Bug Description

When doing juju deploy nova-compute for icehouse with the latest charm on Ubuntu Precise, the apparmor package is uninstalled.

Procedure to reproduce :
$ juju switch local
$ juju get-env | grep serie
default-series: precise
$ juju bootstrap
$ bzr branch lp:charms/nova-compute
$ juju deploy --repository=. local:nova-compute

Ryan Beisner (1chb1n)
tags: added: openstack uosci
Revision history for this message
Louis Bouchard (louis) wrote :

Information from the Precise deployed node :

# apt-cache policy libvirt-bin
libvirt-bin:
  Installed: 1.2.2-0ubuntu13.1.6~cloud0
  Candidate: 1.2.2-0ubuntu13.1.6~cloud0
  Version table:
 *** 1.2.2-0ubuntu13.1.6~cloud0 0
        500 http://ubuntu-cloud.archive.canonical.com/ubuntu/ precise-updates/icehouse/main amd64 Packages
        100 /var/lib/dpkg/status
     0.9.8-2ubuntu17.20 0
        500 http://archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu/ precise-security/main amd64 Packages
     0.9.8-2ubuntu17 0
        500 http://archive.ubuntu.com/ubuntu/ precise/main amd64 Packages

# apt-cache policy apparmor
apparmor:
  Installed: (none)
  Candidate: 2.7.102-0ubuntu3.10
  Version table:
     2.7.102-0ubuntu3.10 0
        500 http://archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu/ precise-security/main amd64 Packages
        100 /var/lib/dpkg/status
     2.7.102-0ubuntu3 0
        500 http://archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
# dpkg -l | grep apparmor
rc apparmor 2.7.102-0ubuntu3.10 User-space parser utility for AppArmor
ii libapparmor1 2.7.102-0ubuntu3.10 changehat AppArmor library

From /var/log/juju/unit-nova-compute-0.log :

2014-11-04 14:00:09 INFO install Reading package lists...
2014-11-04 14:00:09 INFO juju-log Installing ['nova-compute', 'genisoimage', 'nova-compute-kvm'] with options: ['--option=Dpkg::Options::=--force-confold']
2014-11-04 14:00:09 INFO install Reading package lists...
2014-11-04 14:00:09 INFO install Building dependency tree...
2014-11-04 14:00:09 INFO install Reading state information...
2014-11-04 14:00:10 INFO install The following extra packages will be installed:
...
2014-11-04 14:00:10 INFO install mailx
2014-11-04 14:00:10 INFO install The following packages will be REMOVED:
2014-11-04 14:00:10 INFO install apparmor
2014-11-04 14:00:10 INFO install The following NEW packages will be installed:

description: updated
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

Seems like 1.2.2-0ubuntu13.1.6~cloud0 needs to adjust its Depends.

Revision history for this message
Louis Bouchard (louis) wrote :

Same test on Trusty. apparmor stays installed.

$ apt-cache policy libvirt-bin
libvirt-bin:
  Installed: 1.2.2-0ubuntu13.1.6
  Candidate: 1.2.2-0ubuntu13.1.6
  Version table:
 *** 1.2.2-0ubuntu13.1.6 0
        500 http://archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     1.2.2-0ubuntu13.1.6~cloud0 0
        500 http://ubuntu-cloud.archive.canonical.com/ubuntu/ precise-updates/icehouse/main amd64 Packages
     1.2.2-0ubuntu13.1.5 0
        500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
     1.2.2-0ubuntu13 0
        500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages

$ apt-cache policy apparmor
apparmor:
  Installed: 2.8.95~2430-0ubuntu5
  Candidate: 2.8.95~2430-0ubuntu5
  Version table:
 *** 2.8.95~2430-0ubuntu5 0
        500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
        100 /var/lib/dpkg/status
$ dpkg -l | grep apparmor
ii apparmor 2.8.95~2430-0ubuntu5 amd64 User-space parser utility for AppArmor
ii libapparmor-perl 2.8.95~2430-0ubuntu5 amd64 AppArmor library Perl bindings
ii libapparmor1:amd64 2.8.95~2430-0ubuntu5 amd64 changehat AppArmor library

Revision history for this message
Louis Bouchard (louis) wrote :

Package: libvirt-bin
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends},
 adduser,
 bridge-utils,
 cgroup-lite | cgroup-bin,
 dnsmasq-base (>= 2.46-1),
 dbus,
 gettext-base,
 iptables (>= 1.4.10),
 libvirt0 (= ${binary:Version}),
 logrotate,
 netcat-openbsd
Enhances: qemu, qemu-kvm, xen
Section: admin
Recommends:
 libxml2-utils,
 gawk,
 ebtables,
 dmidecode,
 iproute,
 parted,
 pm-utils
Suggests: policykit-1 (>= 0.105-3ubuntu3), apparmor, qemu-kvm | qemu (>= 0.9.1), radvd
Breaks: xen-utils-4.1, xen-utils-4.3
Conflicts: apparmor (<< 2.8.95~2430-0ubuntu4) <<< This should explain it

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.