Bug#757293: libvirt-daemon-system (1.2.7-3) fails to start

2014-08-07 Thread Laurent Bigonville
Package: libvirt-daemon-system
Followup-For: Bug #757293

Hello,

MMMh, my bad I guess

As the libvirt-bin package has been renamed to libvirt-daemon-system,
the preinst script part that stop the daemon cleanly is not executed
since libvirt-daemon-system was not installed before...

What could be done:

 - Remove the -nl part of the version comparaison, this will execute the
   stop and the deb-systemd-helper actions even if the package was not
   installed before (we need to be sure that d-s-h is not giving us an
   error if the old service file is inexistant)
 - Try to guess what is last configured version of libvirt-bin package
   instead of using the version passed by dpkg
 - Move (or duplicate) the code in libvirt-bin preinst

I'm wondering if with the 2nd and 3rd option we might not run in cases
(libvirt-bin being removed at the same time libvirt-daemon-system is
being installed) where the stop and d-s-h is not executed as it should
(might be wrong here).

Cheers,

Laurent Bigonville

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.14-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=fr_BE.utf8, LC_CTYPE=fr_BE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libvirt-daemon-system depends on:
ii  adduser  3.113+nmu3
ii  gettext-base 0.19.2-1
ii  init-system-helpers  1.20
ii  libapparmor1 2.8.0-5.1+b1
ii  libaudit11:2.3.7-1
ii  libavahi-client3 0.6.31-4
ii  libavahi-common3 0.6.31-4
ii  libblkid12.20.1-5.8
ii  libc62.19-7
ii  libcap-ng0   0.7.3-1.1
ii  libdbus-1-3  1.8.6-1
ii  libdevmapper1.02.1   2:1.02.85-2
ii  libgnutls-deb0-283.2.16-1
ii  libnl-3-200  3.2.24-2
ii  libnl-route-3-2003.2.24-2
ii  libnuma1 2.0.9-1
ii  librados20.80.5-1
ii  librbd1  0.80.5-1
ii  libsasl2-2   2.1.26.dfsg1-11
ii  libselinux1  2.3-1
ii  libssh2-11.4.3-3
ii  libsystemd-daemon0   208-7
ii  libvirt-clients  1.2.7-3
ii  libvirt-daemon   1.2.7-3
ii  libvirt0 1.2.7-3
ii  libxml2  2.9.1+dfsg1-4
ii  libyajl2 2.1.0-1
ii  logrotate3.8.7-1

Versions of packages libvirt-daemon-system recommends:
ii  bridge-utils  1.5-9
ii  dmidecode 2.12-3
ii  dnsmasq-base  2.71-1
ii  ebtables  2.0.10.4-3
ii  iproute2  3.16.0-1
ii  iptables  1.4.21-2
ii  parted3.2-2
ii  pm-utils  1.4.1-15

Versions of packages libvirt-daemon-system suggests:
pn  apparmor none
ii  auditd   1:2.3.7-1
ii  policykit-1  0.105-6.1
pn  radvdnone
ii  systemd  208-7
pn  systemtapnone

-- Configuration Files:
/etc/libvirt/qemu.conf [Errno 13] Permission non accordée: 
u'/etc/libvirt/qemu.conf'

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#757293: libvirt-daemon-system (1.2.7-3) fails to start

2014-08-07 Thread Laurent Bigonville
Le Thu, 07 Aug 2014 09:24:32 +0200,
Laurent Bigonville bi...@debian.org a écrit :

 Package: libvirt-daemon-system
 Followup-For: Bug #757293
 
 Hello,
 
 MMMh, my bad I guess
 
 As the libvirt-bin package has been renamed to libvirt-daemon-system,
 the preinst script part that stop the daemon cleanly is not executed
 since libvirt-daemon-system was not installed before...
 
 What could be done:
 
  - Remove the -nl part of the version comparaison, this will execute
 the stop and the deb-systemd-helper actions even if the package was
 not installed before (we need to be sure that d-s-h is not giving us
 an error if the old service file is inexistant)
  - Try to guess what is last configured version of libvirt-bin package
instead of using the version passed by dpkg
  - Move (or duplicate) the code in libvirt-bin preinst
 
 I'm wondering if with the 2nd and 3rd option we might not run in cases
 (libvirt-bin being removed at the same time libvirt-daemon-system is
 being installed) where the stop and d-s-h is not executed as it should
 (might be wrong here).

You probably also want to increase the version in the comparaison to be
sure that the deb-systemd-helper actions are properly executed too.


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#757293: [Pkg-libvirt-maintainers] Bug#757293: libvirt-daemon-system (1.2.7-3) fails to start

2014-08-07 Thread Marc J. Driftmeyer

Whatever changed in the packaging for 1.2.7-4 resolved installation errors.

Bug should be closed.

Thanks!

- Marc

On 08/06/2014 11:58 PM, Guido Günther wrote:

On Wed, Aug 06, 2014 at 10:44:46PM -0700, Marc J. Driftmeyer wrote:

Install just means an apt-get update/apt-get upgrade within Sid.

No dist-upgrade was made.


mdriftmeyer@horus:~$ journalctl /usr/sbin/libvirtd
-- Logs begin at Sat 2014-08-02 19:02:24 PDT, end at Tue 2014-08-05 07:44:38
PDT

/usr/sbin/libvirtd

Output:

mdriftmeyer@horus:~$ /usr/sbin/libvirtd
libnuma: Warning: Cannot parse distance information in sysfs:
Success

That's o.k. so the daemon starts.




On 08/06/2014 10:10 PM, Guido Günther wrote:

journalctl /usr/sbin/libvirtd

Nothing here ?


It just pukes on the libvirt-daemon-system package upgrade.

Use 'apt-get autoremove' to remove them.
Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up libvirt-daemon-system (1.2.7-3) ...
Job for libvirtd.service failed. See 'systemctl status libvirtd.service' and
'journalctl -xn' for details.
invoke-rc.d: initscript libvirtd, action start failed.
dpkg: error processing package libvirt-daemon-system (--configure):
  subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of libvirt-bin:
  libvirt-bin depends on libvirt-daemon-system (= 1.2.7-3); however:
   Package libvirt-daemon-system is not configured yet.

Syslog would be helpful here.
  -- Guido


dpkg: error processing package libvirt-bin (--configure):
  dependency problems - leaving unconfigured
Errors were encountered while processing:
  libvirt-daemon-system
  libvirt-bin
E: Sub-process /usr/bin/dpkg returned an error code (1)



- Marc

--
Marc J. Driftmeyer
Email :: m...@reanimality.com mailto:m...@reanimality.com
Web :: http://www.reanimality.com
Cell :: (509) 435-5212


--
Marc J. Driftmeyer
Email :: m...@reanimality.com mailto:m...@reanimality.com
Web :: http://www.reanimality.com
Cell :: (509) 435-5212


Bug#757293: libvirt-daemon-system (1.2.7-3) fails to start

2014-08-06 Thread Marc J. Driftmeyer

Package: libvirt-daemon-system
Version: 1.2.7-3
Severity: normal

Dear Maintainer,

Today's install resulted in a broken libvirt installation.

Output:

mdriftmeyer@horus:/etc/init.d$ sudo systemctl status libvirtd.service
libvirtd.service - Virtualization daemon
   Loaded: loaded (/lib/systemd/system/libvirtd.service; enabled)
   Active: failed (Result: start-limit) since Wed 2014-08-06 16:03:13 
PDT; 21s ago

 Docs: man:libvirtd(8)
   http://libvirt.org
  Process: 16200 ExecStart=/usr/sbin/libvirtd $libvirtd_opts 
(code=exited, status=1/FAILURE)

 Main PID: 16200 (code=exited, status=1/FAILURE)

Aug 06 16:03:13 horus systemd[1]: Failed to start Virtualization daemon.
Aug 06 16:03:13 horus systemd[1]: Unit libvirtd.service entered failed 
state.
Aug 06 16:03:13 horus systemd[1]: libvirtd.service holdoff time over, 
sched...t.

Aug 06 16:03:13 horus systemd[1]: Stopping Virtualization daemon...
Aug 06 16:03:13 horus systemd[1]: Starting Virtualization daemon...
Aug 06 16:03:13 horus systemd[1]: libvirtd.service start request 
repeated t...t.

Aug 06 16:03:13 horus systemd[1]: Failed to start Virtualization daemon.
Aug 06 16:03:13 horus systemd[1]: Unit libvirtd.service entered failed 
state.

Hint: Some lines were ellipsized, use -l to show in full.
mdriftmeyer@horus:/etc/init.d$ sudo systemctl start libvirtd.service
Job for libvirtd.service failed. See 'systemctl status libvirtd.service' 
and 'journalctl -xn' for details.

mdriftmeyer@horus:/etc/init.d$ sudo journalctl -xn
-- Logs begin at Sat 2014-08-02 19:02:24 PDT, end at Wed 2014-08-06 
16:04:19 PDT
Aug 06 16:04:03 horus systemd[1]: Unit libvirtd.service entered failed 
state.
Aug 06 16:04:03 horus systemd[1]: libvirtd.service holdoff time over, 
scheduling
Aug 06 16:04:03 horus systemd[1]: Cannot add dependency job for unit 
uuidd.socke

Aug 06 16:04:03 horus systemd[1]: Stopping Virtualization daemon...
-- Subject: Unit libvirtd.service has begun shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit libvirtd.service has begun shutting down.
Aug 06 16:04:03 horus systemd[1]: Starting Virtualization daemon...
-- Subject: Unit libvirtd.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit libvirtd.service has begun starting up.
Aug 06 16:04:03 horus systemd[1]: libvirtd.service start request 
repeated too qu

Aug 06 16:04:03 horus systemd[1]: Failed to start Virtualization daemon.
-- Subject: Unit libvirtd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit libvirtd.service has failed.
--
-- The result is failed.
Aug 06 16:04:03 horus systemd[1]: Unit libvirtd.service entered failed 
state.
Aug 06 16:04:19 horus sudo[16228]: mdriftmeyer : TTY=pts/1 ; 
PWD=/etc/init.d ; U
Aug 06 16:04:19 horus sudo[16228]: pam_unix(sudo:session): session 
opened for us

lines 6-28/28 (END)


Hope this helps resolve the bug,

- Marc


--
Marc J. Driftmeyer
Email :: m...@reanimality.com mailto:m...@reanimality.com
Web :: http://www.reanimality.com
Cell :: (509) 435-5212


Bug#757293: [Pkg-libvirt-maintainers] Bug#757293: libvirt-daemon-system (1.2.7-3) fails to start

2014-08-06 Thread Guido Günther
On Wed, Aug 06, 2014 at 04:09:56PM -0700, Marc J. Driftmeyer wrote:
 Package: libvirt-daemon-system
 Version: 1.2.7-3
 Severity: normal
 
 Dear Maintainer,
 
 Today's install resulted in a broken libvirt installation.

Install means dist-upgrade ?

 Output:
 
 mdriftmeyer@horus:/etc/init.d$ sudo systemctl status libvirtd.service
 libvirtd.service - Virtualization daemon
Loaded: loaded (/lib/systemd/system/libvirtd.service; enabled)
Active: failed (Result: start-limit) since Wed 2014-08-06 16:03:13 PDT;
 21s ago
  Docs: man:libvirtd(8)
http://libvirt.org
   Process: 16200 ExecStart=/usr/sbin/libvirtd $libvirtd_opts (code=exited,
 status=1/FAILURE)
  Main PID: 16200 (code=exited, status=1/FAILURE)
 
 Aug 06 16:03:13 horus systemd[1]: Failed to start Virtualization daemon.
 Aug 06 16:03:13 horus systemd[1]: Unit libvirtd.service entered failed
 state.
 Aug 06 16:03:13 horus systemd[1]: libvirtd.service holdoff time over,
 sched...t.
 Aug 06 16:03:13 horus systemd[1]: Stopping Virtualization daemon...
 Aug 06 16:03:13 horus systemd[1]: Starting Virtualization daemon...
 Aug 06 16:03:13 horus systemd[1]: libvirtd.service start request repeated
 t...t.
 Aug 06 16:03:13 horus systemd[1]: Failed to start Virtualization daemon.
 Aug 06 16:03:13 horus systemd[1]: Unit libvirtd.service entered failed
 state.
 Hint: Some lines were ellipsized, use -l to show in full.
 mdriftmeyer@horus:/etc/init.d$ sudo systemctl start libvirtd.service
 Job for libvirtd.service failed. See 'systemctl status libvirtd.service' and
 'journalctl -xn' for details.
 mdriftmeyer@horus:/etc/init.d$ sudo journalctl -xn
 -- Logs begin at Sat 2014-08-02 19:02:24 PDT, end at Wed 2014-08-06 16:04:19
 PDT
 Aug 06 16:04:03 horus systemd[1]: Unit libvirtd.service entered failed
 state.
 Aug 06 16:04:03 horus systemd[1]: libvirtd.service holdoff time over,
 scheduling
 Aug 06 16:04:03 horus systemd[1]: Cannot add dependency job for unit
 uuidd.socke

This looks odd. 

 Aug 06 16:04:03 horus systemd[1]: Stopping Virtualization daemon...
 -- Subject: Unit libvirtd.service has begun shutting down
 -- Defined-By: systemd
 -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
 --
 -- Unit libvirtd.service has begun shutting down.
 Aug 06 16:04:03 horus systemd[1]: Starting Virtualization daemon...
 -- Subject: Unit libvirtd.service has begun with start-up
 -- Defined-By: systemd
 -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
 --
 -- Unit libvirtd.service has begun starting up.
 Aug 06 16:04:03 horus systemd[1]: libvirtd.service start request repeated
 too qu
 Aug 06 16:04:03 horus systemd[1]: Failed to start Virtualization daemon.
 -- Subject: Unit libvirtd.service has failed
 -- Defined-By: systemd
 -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
 --
 -- Unit libvirtd.service has failed.
 --
 -- The result is failed.
 Aug 06 16:04:03 horus systemd[1]: Unit libvirtd.service entered failed
 state.
 Aug 06 16:04:19 horus sudo[16228]: mdriftmeyer : TTY=pts/1 ; PWD=/etc/init.d
 ; U
 Aug 06 16:04:19 horus sudo[16228]: pam_unix(sudo:session): session opened
 for us
 lines 6-28/28 (END)

This doesn't make much sense to me yet. Could you attach the output of 

journalctl /usr/sbin/libvirtd

Could you also attach syslog from around 16:04:19?

If all alse fails could you do a:

/usr/sbin/libvirtd

Cheers,
 -- Guido


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#757293: [Pkg-libvirt-maintainers] Bug#757293: libvirt-daemon-system (1.2.7-3) fails to start

2014-08-06 Thread Marc J. Driftmeyer

Install just means an apt-get update/apt-get upgrade within Sid.

No dist-upgrade was made.

mdriftmeyer@horus:~$ journalctl /usr/sbin/libvirtd
-- Logs begin at Sat 2014-08-02 19:02:24 PDT, end at Tue 2014-08-05 
07:44:38 PDT


/usr/sbin/libvirtd

Output:

mdriftmeyer@horus:~$ /usr/sbin/libvirtd
libnuma: Warning: Cannot parse distance information in sysfs: Success



On 08/06/2014 10:10 PM, Guido Günther wrote:

journalctl /usr/sbin/libvirtd


It just pukes on the libvirt-daemon-system package upgrade.

Use 'apt-get autoremove' to remove them.
Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up libvirt-daemon-system (1.2.7-3) ...
Job for libvirtd.service failed. See 'systemctl status libvirtd.service' 
and 'journalctl -xn' for details.

invoke-rc.d: initscript libvirtd, action start failed.
dpkg: error processing package libvirt-daemon-system (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of libvirt-bin:
 libvirt-bin depends on libvirt-daemon-system (= 1.2.7-3); however:
  Package libvirt-daemon-system is not configured yet.

dpkg: error processing package libvirt-bin (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 libvirt-daemon-system
 libvirt-bin
E: Sub-process /usr/bin/dpkg returned an error code (1)



- Marc

--
Marc J. Driftmeyer
Email :: m...@reanimality.com mailto:m...@reanimality.com
Web :: http://www.reanimality.com
Cell :: (509) 435-5212


Bug#757293: [Pkg-libvirt-maintainers] Bug#757293: libvirt-daemon-system (1.2.7-3) fails to start

2014-08-06 Thread Marc J. Driftmeyer

Could be a simple out of order configuration dependency throwing a failure.

- Marc

On 08/06/2014 10:10 PM, Guido Günther wrote:

journalctl /usr/sbin/libvirtd


--
Marc J. Driftmeyer
Email :: m...@reanimality.com mailto:m...@reanimality.com
Web :: http://www.reanimality.com
Cell :: (509) 435-5212