package libvirt-bin 0.7.5-5ubuntu27.13 failed to install/upgrade

Bug #799660 reported by Daniele Chermisi
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
libvirt (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Binary package hint: libvirt-bin

package libvirt-bin 0.7.5-5ubuntu27.13 failed to install/upgrade: il sottoprocesso vecchio script di post-installation ha restituito lo stato di errore 2

Description: Ubuntu 10.04.2 LTS
Release: 10.04
libvirt-bin:
  Installato: 0.7.5-5ubuntu27.13
  Candidato: 0.7.5-5ubuntu27.13
  Tabella versione:
 *** 0.7.5-5ubuntu27.13 0
        500 http://it.archive.ubuntu.com/ubuntu/ lucid-updates/main Packages
        500 http://security.ubuntu.com/ubuntu/ lucid-security/main Packages
        100 /var/lib/dpkg/status
     0.7.5-5ubuntu27 0
        500 http://it.archive.ubuntu.com/ubuntu/ lucid/main Packages

ProblemType: Package
DistroRelease: Ubuntu 10.04
Package: libvirt-bin 0.7.5-5ubuntu27.13
ProcVersionSignature: Ubuntu 2.6.32-32.62-generic 2.6.32.38+drm33.16
Uname: Linux 2.6.32-32-generic x86_64
NonfreeKernelModules: fglrx
Architecture: amd64
Date: Fri Jun 17 12:01:02 2011
ErrorMessage: il sottoprocesso vecchio script di post-installation ha restituito lo stato di errore 2
InstallationMedia: Ubuntu 10.04.1 LTS "Lucid Lynx" - Release amd64 (20100816.1)
SourcePackage: libvirt
Title: package libvirt-bin 0.7.5-5ubuntu27.13 failed to install/upgrade: il sottoprocesso vecchio script di post-installation ha restituito lo stato di errore 2

Revision history for this message
Daniele Chermisi (daniele-chermisi) wrote :
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Thanks for taking the time to report this bug.

The upgrade actually failed because it failed to stop libvirt. Can you
show the output of 'ps -ef | grep libvirt'?

---
Ubuntu Bug Squad volunteer triager
http://wiki.ubuntu.com/BugSquad

Changed in libvirt (Ubuntu):
status: New → Incomplete
Revision history for this message
Daniele Chermisi (daniele-chermisi) wrote :

Thank you for your very prompt answer.

The output of
ps -ef | grep libvirt
is
nobody 1670 1 0 11:33 ? 00:00:00 dnsmasq --strict-order --bind-interfaces --pid-file=/var/run/libvirt/network/default.pid --conf-file= --listen-address 192.168.122.1 --except-interface lo --dhcp-range 192.168.122.2,192.168.122.254 --dhcp-lease-max=253

Should I kill the process by hand?
Thanks

Revision history for this message
Serge Hallyn (serge-hallyn) wrote : Re: [Bug 799660] Re: package libvirt-bin 0.7.5-5ubuntu27.13 failed to install/upgrade

Quoting Daniele Chermisi (<email address hidden>):
> Thank you for your very prompt answer.
>
> The output of
> ps -ef | grep libvirt
> is
> nobody 1670 1 0 11:33 ? 00:00:00 dnsmasq --strict-order --bind-interfaces --pid-file=/var/run/libvirt/network/default.pid --conf-file= --listen-address 192.168.122.1 --except-interface lo --dhcp-range 192.168.122.2,192.168.122.254 --dhcp-lease-max=253
>
>
> Should I kill the process by hand?

What happens if you just do 'start libvirt-bin'?

Revision history for this message
Daniele Chermisi (daniele-chermisi) wrote :

daniele@daniele-hp:~$ sudo start libvirt-bin
[sudo] password for daniele:
libvirt-bin start/running, process 5960
daniele@daniele-hp:~$ ps -ef | grep libvirt
nobody 1670 1 0 11:33 ? 00:00:00 dnsmasq --strict-order --bind-interfaces --pid-file=/var/run/libvirt/network/default.pid --conf-file= --listen-address 192.168.122.1 --except-interface lo --dhcp-range 192.168.122.2,192.168.122.254 --dhcp-lease-max=253
root 5960 1 0 16:38 ? 00:00:00 /usr/sbin/libvirtd -d

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Does 'apt-get dist-upgrade' now succeed?

---
Ubuntu Bug Squad volunteer triager
http://wiki.ubuntu.com/BugSquad

Revision history for this message
Daniele Chermisi (daniele-chermisi) wrote :

The package is marked as istalled, so apt-get dist-upgrade doesn't install the package libvirt-bin. So I remove and reinstall the package libvirt-bin, but the installation process still ends with the same error ad above. However the the package is installed even if the post installation process stops with an error.

I notice that the post installation process executes the command located in
/etc/gdm/PostSession/Default
Is this the correct behavior?

This is the command I used to erase and install the package
daniele@daniele-hp:~$ sudo apt-get remove libvirt-bin
Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze
Lettura informazioni sullo stato... Fatto
I seguenti pacchetti sono stati installati automaticamente e non sono più richiesti:
  lvm2 munin-node libnet-cidr-perl libvirt0 libxen3 libnet-server-perl
  libdevmapper-event1.02.1 munin-common libnet-snmp-perl libio-multiplex-perl
  python-libvirt watershed
Usare "apt-get autoremove" per rimuoverli.
I seguenti pacchetti saranno RIMOSSI:
  libvirt-bin virt-goodies
0 aggiornati, 0 installati, 2 da rimuovere e 6 non aggiornati.
Dopo quest'operazione, verranno liberati 2146kB di spazio su disco.
Continuare [S/n]? s
(Lettura del database... 278095 file e directory attualmente installati.)
Rimozione di virt-goodies...
Rimozione di libvirt-bin...
libvirt-bin stop/waiting
Elaborazione dei trigger per man-db...
Elaborazione dei trigger per ureadahead...
daniele@daniele-hp:~$ sudo apt-get install libvirt-bin
Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze
Lettura informazioni sullo stato... Fatto
I seguenti pacchetti sono stati installati automaticamente e non sono più richiesti:
  munin-node libnet-cidr-perl libnet-server-perl munin-common
  libnet-snmp-perl libio-multiplex-perl python-libvirt
Usare "apt-get autoremove" per rimuoverli.
I seguenti pacchetti NUOVI saranno installati:
  libvirt-bin
0 aggiornati, 1 installati, 0 da rimuovere e 6 non aggiornati.
È necessario scaricare 0B/596kB di archivi.
Dopo quest'operazione, verranno occupati 2048kB di spazio su disco.
Selezionato il pacchetto libvirt-bin.
(Lettura del database... 278030 file e directory attualmente installati.)
Estrazione di libvirt-bin (da .../libvirt-bin_0.7.5-5ubuntu27.13_amd64.deb)...
Elaborazione dei trigger per ureadahead...
Elaborazione dei trigger per man-db...
Configurazione di libvirt-bin (0.7.5-5ubuntu27.13)...
invoke-rc.d: initscript libvirt-bin, action "stop" failed.
dpkg: errore nell'elaborare libvirt-bin (--configure):
 il sottoprocesso vecchio script di post-installation ha restituito lo stato di errore 2
Si sono verificati degli errori nell'elaborazione:
 libvirt-bin
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

What is in your /etc/gdm/PostSession/Default ?

I don't understand why libvirt is failing to stop. Does 'grep libvir /var/log/syslog' show anything?

---
Ubuntu Bug Squad volunteer triager
http://wiki.ubuntu.com/BugSquad

Revision history for this message
Daniele Chermisi (daniele-chermisi) wrote :

Jun 23 10:33:32 localhost libvirtd: 10:33:32.272: warning : qemudDispatchSignalEvent:385 : Shutting down on signal 15
Jun 23 10:33:33 localhost kernel: [ 1330.785613] type=1505 audit(1308818013.847:22): operation="profile_replace" pid=3309 name="/usr/sbin/libvirtd"
Jun 23 10:33:38 localhost kernel: [ 1335.058755] type=1505 audit(1308818018.116:23): operation="profile_replace" pid=3311 name="/usr/lib/libvirt/virt-aa-helper"
Jun 23 10:33:38 localhost libvirtd: 10:33:38.386: warning : qemudStartup:1087 : Unable to create cgroup for driver: No such device or address
Jun 23 10:33:38 localhost libvirtd: 10:33:38.429: warning : lxcStartup:1755 : Unable to create cgroup for driver: No such device or address

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

it looks like yo'ure having a problem with cgroups. can you show the output of the following commands?

mount | grep cgroup

dpkg -l | grep cgroup

cat /proc/cgroups

cat /proc/self/cgroup

Revision history for this message
Daniele Chermisi (daniele-chermisi) wrote :

The package cgroup is not installed.
These are the outputs
daniele@daniele-hp:~$ mount | grep cgroup
daniele@daniele-hp:~$ dpkg -l | grep cgroup
daniele@daniele-hp:~$ cat /proc/cgroups
#subsys_name hierarchy num_cgroups enabled
cpuset 0 1 1
ns 0 1 1
cpu 0 1 1
cpuacct 0 1 1
memory 0 1 1
devices 0 1 1
freezer 0 1 1
net_cls 0 1 1
daniele@daniele-hp:~$ cat /proc/self/cgroup
daniele@daniele-hp:~$

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Sorry, those were just warnings. So I'm really not seeing the root cause of your problem.

RIght now, is libvirt running? What do things look like if you stop and start it a few times?

# sudo status libvirt-bin
# sudo stop libvirt-bin
# sudo status libvirt-bin
# sudo start libvirt-bin
# sudo start libvirt-bin
# sudo virsh list
# sudo stop libvirt-bin

And finally, with libvirt-bin stopped, what do you see when you do

# sudo libvirtd -v

?

Revision history for this message
Daniele Chermisi (daniele-chermisi) wrote :

daniele@daniele-hp:~$ sudo status libvirt-bin
libvirt-bin stop/waiting
daniele@daniele-hp:~$ sudo stop libvirt-bin
stop: Unknown instance:
daniele@daniele-hp:~$ sudo status libvirt-bin
libvirt-bin stop/waiting
daniele@daniele-hp:~$ sudo start libvirt-bin
libvirt-bin start/running, process 2486
daniele@daniele-hp:~$ sudo start libvirt-bin
start: Job is already running: libvirt-bin
daniele@daniele-hp:~$ sudo virsh list
 Id Nome Stato
----------------------------------

daniele@daniele-hp:~$ sudo stop libvirt-bin
libvirt-bin stop/waiting
daniele@daniele-hp:~$ sudo libvirtd -v
10:17:09.370: warning : qemudStartup:1087 : Unable to create cgroup for driver: No such device or address
10:17:09.411: warning : lxcStartup:1755 : Unable to create cgroup for driver: No such device or address

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Thanks, Daniele. I'm afraid I'm just not seeing what is happening.

Once it starts, does libvirtd keep running, or does it eventually die?

Have you made any customizations? Can you attach your files:

    /etc/init/libvirt-bin.conf
    /etc/init.d/libvirt-bin

?

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

[Expired for libvirt (Ubuntu) because there has been no activity for 60 days.]

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