[FFE] Upgrade to 1.2.8

Bug #1367422 reported by Serge Hallyn
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libvirt (Ubuntu)
Fix Released
High
Unassigned

Bug Description

The lastest libvirt release is 1.2.8. This includes a number of bugfixes and memory leaks since 1.2.6. Uploading this to Utopic will make backporting of bug-fixes in SRUs easier.

This also enables apparmor-protection of libvirt-lxc containers.

The lp:qa-regression-testing scripts/test-libvirt.py has been run against this package, showing no new qa-regression-tests failures (only the following two pre-existing failures: )

======================================================================
FAIL: test_virt_install_cdrom (__main__.LibvirtTestVirtinst)
Test virt-install --cdrom
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./test-libvirt.py", line 1241, in test_virt_install_cdrom
    self.assertTrue(s in report, result + report)
AssertionError: Could not find 'Creating storage' in:
WARNING /tmp/tmpQSxt2f/qatest-virtinst.img may not be accessible by the hypervisor. You will need to grant the 'libvirt-qemu' user search permissions for the following directories: ['/tmp/tmpQSxt2f']
WARNING CDROM media does not print to the text console by default, so you likely will not see text install output. You might want to use --location.

Starting install...
Allocating 'qatest-virtinst.img' | 10 MB 00:00
Creating domain... | 0 B 00:00
Domain installation still in progress. You can reconnect to
the console to complete the installation process.

======================================================================
FAIL: test_virt_install_location (__main__.LibvirtTestVirtinst)
Test virt-install --location
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./test-libvirt.py", line 1333, in test_virt_install_location
    self.assertTrue(s in report, result + report)
AssertionError: Could not find 'Creating domain' in:
WARNING No 'console' seen in --extra-args, a 'console=ttyS0' kernel argument is likely required to see text install output from the guest.

Starting install...
Retrieving file MANIFEST... | 1.7 kB 00:00 ...
Retrieving file MANIFEST... | 1.7 kB 00:00 ...
Retrieving file linux... | 7.7 MB 00:00 ...
Retrieving file initrd.gz... | 16 MB 00:00 ...
Allocating 'qatest-virtinst.qcow2' | 10 MB 00:00
ERROR internal error: process exited while connecting to monitor: qemu: could not load kernel '/home/serge/.cache/virt-manager/boot/virtinst-linux.Dqu1zu': Permission denied

Domain installation does not appear to have been successful.
If it was, you can restart your domain by running:
  virsh --connect qemu:///session start qatest-virtinst
otherwise, please restart your installation.

Installing into a VM from my ppa (where it is called ~ppa2), I get:

serge@us1:/etc/apparmor.d/libvirt$ sudo apt-get install libvirt-bin
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  at-spi2-core colord colord-data dconf-gsettings-backend dconf-service fontconfig hicolor-icon-theme libatk-bridge2.0-0 libatk1.0-0 libatk1.0-data libatspi2.0-0 libcairo-gobject2 libcairo2 libcolord2
  libcolorhug2 libcups2 libdatrie1 libdconf1 libexif12 libgd3 libgdk-pixbuf2.0-0 libgdk-pixbuf2.0-common libgphoto2-6 libgphoto2-l10n libgphoto2-port10 libgraphite2-3 libgtk-3-0 libgtk-3-bin libgtk-3-common
  libgtk-vnc-2.0-0 libgudev-1.0-0 libgusb2 libgvnc-1.0-0 libharfbuzz0b libieee1284-3 libjasper1 libjbig0 liblcms2-2 libltdl7 libmirclient8 libmirclientplatform-mesa libmircommon1 libpango-1.0-0
  libpangocairo-1.0-0 libpangoft2-1.0-0 libprotobuf8 libpulse-mainloop-glib0 libsane libsane-common libspice-client-glib-2.0-8 libspice-client-gtk-3.0-4 libthai-data libthai0 libtiff5 libusbredirhost1 libv4l-0
  libv4lconvert0 libvpx1 libwayland-client0 libwayland-cursor0 libxcb-render0 libxcb-shm0 libxcomposite1 libxcursor1 libxi6 libxinerama1 libxkbcommon0 libxpm4 libxrandr2 libxtst6 python-libxml2
  python-urlgrabber spice-client-glib-usb-acl-helper
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libvirt0
Suggested packages:
  radvd lvm2
The following NEW packages will be installed:
  libvirt-bin libvirt0
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/7,255 kB of archives.
After this operation, 18.5 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Selecting previously unselected package libvirt0.
(Reading database ... 64402 files and directories currently installed.)
Preparing to unpack .../libvirt0_1.2.8-0ubuntu1~ppa2_amd64.deb ...
Unpacking libvirt0 (1.2.8-0ubuntu1~ppa2) ...
Selecting previously unselected package libvirt-bin.
Preparing to unpack .../libvirt-bin_1.2.8-0ubuntu1~ppa2_amd64.deb ...
Unpacking libvirt-bin (1.2.8-0ubuntu1~ppa2) ...
Processing triggers for man-db (2.6.7.1-1) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up libvirt0 (1.2.8-0ubuntu1~ppa2) ...
Setting up libvirt-bin (1.2.8-0ubuntu1~ppa2) ...
libvirt-bin start/running, process 28726
Setting up libvirt-bin dnsmasq configuration.
Processing triggers for libc-bin (2.19-10ubuntu1) ...
serge@us1:/etc/apparmor.d/libvirt$

The build log can be seen at https://launchpadlibrarian.net/184398510/buildlog_ubuntu-utopic-amd64.libvirt-python_1.2.8-0ubuntu1%7Eppa1_UPLOADING.txt.gz

Note that this will also require libvirt-python to be upgraded.

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :
description: updated
description: updated
description: updated
description: updated
Changed in libvirt (Ubuntu):
importance: Undecided → High
description: updated
Revision history for this message
Iain Lane (laney) wrote :

Okay, I think it's early enough that we can get away with this. Looks like they've got some good use out of Coverity.

Go ahead please.

Changed in libvirt (Ubuntu):
status: New → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libvirt - 1.2.8-0ubuntu1

---------------
libvirt (1.2.8-0ubuntu1) utopic; urgency=medium

  [ Chuck Short ]
  * New upstream release: (LP: #1367422)
    + Dropped:
      - debian/patches/ovs-delete-port-if-exists-while-adding-new-one
    + Refreshed:
      - debian/patches/add-cgmanager-support.patch
      - debian/patches/storage-default-permission-mode-to-0711

  [ Serge Hallyn ]
  * d/apparmor
    - install TEMPLATE.qemu and TEMPLATE.lxc
    - add libvirt-lxc abstraction, add permissions to it needed for
      a ubuntu container to start.
    - libvirt-qemu - add qemu-bridge-helper policy from upstream
    - libvirt-qemu - add qemu-microblaze allows from upstream
    - edit lxc.conf to enable apparmor by default (LP: #914716)
      (LP: #1008393) (LP: #1088295)
  * d/apparmor/libvirt-qemu: add /dev/shm as path to spice.* nodes
    for systemd case. (LP: #1365163)
  * d/p/9030-create-socket-dir - create session socket dir if
    needed (Should be replaced eventually by the upstream fix)
  * d/p/9032-lxc-allow-no-security-driver: don't fail if apparmor
    driver is not available (else the qa-regression-tests fail with
    skip_apparmor)
 -- Serge Hallyn <email address hidden> Mon, 15 Sep 2014 18:30:06 -0500

Changed in libvirt (Ubuntu):
status: Confirmed → 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.