Hello all,
Having a fresh Ubuntu (server) base installation scripts hanged over libvirt
library when trying to install following through: https://github.com/cmusatyalab/elijah-openstack instructions.
Find below snapshots of the output with the particular bits of the installation output:
[localhost] out: Setting up python3-libapparmor (2.8.95~2430-0ubuntu5.3) ...
[localhost] out: Setting up python3-pkg-resources (3.3-1ubuntu2) ...
[localhost] out: Setting up python3-apparmor (2.8.95~2430-0ubuntu5.3) ...
[localhost] out: Setting up apparmor-utils (2.8.95~2430-0ubuntu5.3) ...
(…)
[localhost] out: Setting up libvirt-daemon (1.2.9-9~u14.04+mos2) ...
[localhost] out: Setting up libvirt-daemon-system (1.2.9-9~u14.04+mos2) ...
[localhost] out: Adding group `libvirt' (GID 117) ...
[localhost] out: Done.
[localhost] out: Adding user `libvirt-qemu' to group `libvirt-qemu' ...
[localhost] out: Adding user libvirt-qemu to group libvirt-qemu
[localhost] out: Done.
[localhost] out: * Starting libvirt management daemon libvirtd
[localhost] out: ...done.
(…)
[localhost] out: Successfully installed python-dateutil msgpack-python SQLAlchemy bsdiff4 Cython psutil
[localhost] out: Cleaning up...
[localhost] out:
[localhost] sudo: aa-complain /usr/sbin/libvirtd
[localhost] out: Setting /usr/sbin/libvirtd to complain mode.
[localhost] out: Traceback (most recent call last):
[localhost] out: File "/usr/sbin/aa-complain", line 30, in <module>
[localhost] out: tool.cmd_complain()
[localhost] out: File "/usr/lib/python3/dist-packages/apparmor/tools.py", line 166, in cmd_complain
[localhost] out: self.reload_profile(profile)
[localhost] out: File "/usr/lib/python3/dist-packages/apparmor/tools.py", line 257, in reload_profile
[localhost] out: raise apparmor.AppArmorException(cmd_info[1])
[localhost] out: apparmor.common.AppArmorException: 'AppArmor parser error for /etc/apparmor.d/usr.sbin.libvirtd in /etc/apparmor.d/usr.sbin.libvirtd at line 44: syntax error, unexpected TOK_END_OF_RULE, expecting TOK_MODE\n'
[localhost] out:
Warning: sudo() received nonzero return code 1 while executing 'aa-complain /usr/sbin/libvirtd'!
Fatal error: Failed to disable AppArmor for custom KVM
Aborting.
Disconnecting from localhost... done.
root@node:~/elijah-provisioning# libvirt --version
No command 'libvirt' found, did you mean:
Command 'libvirtd' from package 'libvirt-bin' (main)
libvirt: command not found
root@node:~/elijah-provisioning# kvm --version
QEMU emulator version 2.0.0 (Debian 2.0.0+dfsg-2ubuntu1.19), Copyright (c) 2003-2008 Fabrice Bellard
root@node:~/elijah-provisioning# uname -ar
Linux node.lab 3.13.0-66-generic #108-Ubuntu SMP Wed Oct 7 15:20:27 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
root@node:~/elijah-provisioning# ps aux | grep libvirt
root 26460 0.0 0.3 386656 12788 ? Sl 12:58 0:00 /usr/sbin/libvirtd -d
root 32019 0.0 0.0 10460 936 pts/4 S+ 13:24 0:00 grep --color=auto libvirt
root@node:~/elijah-provisioning# dpkg -l | grep libvirt
ii libvirt-bin 1.2.9-9~u14.04+mos2 amd64 programs for the libvirt library
ii libvirt-clients 1.2.9-9~u14.04+mos2 amd64 programs for the libvirt library
ii libvirt-daemon 1.2.9-9~u14.04+mos2 amd64 programs for the libvirt library
ii libvirt-daemon-system 1.2.9-9~u14.04+mos2 amd64 Libvirt daemon configuration files
ii libvirt0 1.2.9-9~u14.04+mos2 amd64 library for interfacing with different virtualization systems
ii python-libvirt 1.2.9-1~u14.04+mos1 amd64 libvirt Python bindings
root@node:~/elijah-provisioning#
No previous packages were installed (besides the ones on instruction #1: git, openssh-server and fabric of course).
Libvirt is constantly updated but only a few changes regarding apparmor
interaction.
Anyone have a guess on what might be causing this?
With best regards,
Marco
EDIT:
Currently commenting lines #106 & #107 of fabfile.py
(Elijah-provisioning) in order to proceed and check further impact.
-- Still, AppArmor or Libvirt does not give a change and are unforgiving here.
Now trying onto DevStack xD