libvirt-bin : error : virExecWithHook:328 : Cannot find 'pm-is-supported' in path: No such file or directory

Bug #994476 reported by sajuptpm
28
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Ubuntu Cloud Archive
Invalid
Undecided
Unassigned
libvirt (Ubuntu)
Fix Released
Low
Unassigned
Precise
Fix Released
Low
Unassigned
Quantal
Fix Released
Low
Unassigned

Bug Description

=====================
SRU Justification
1. Impact: log is spammed with errors which can hide important info
2. development fix: add pm-utils to pkg suggests
3. stable fix: same as development fix
4. test case: start libvirtd, check log file.
5. regression potential: none, we are simply suggesting install of an otherwise useful pkg.
=====================

Hi,

I am using ubuntu 12.04 + openstack essex.

I can see following errors in /var/log/libvirt/libvirtd.log . So i could not create VM, its showing status error.

root@u1204x:~/openstack/scripts/debug# tail /var/log/libvirt/libvirtd.log
2012-05-04 08:43:21.423+0000: 4423: error : virExecWithHook:328 : Cannot find 'pm-is-supported' in path: No such file or directory
2012-05-04 08:43:21.423+0000: 4423: warning : qemuCapsInit:856 : Failed to get host power management capabilities
2012-05-04 08:43:21.707+0000: 4421: error : virExecWithHook:328 : Cannot find 'pm-is-supported' in path: No such file or directory
2012-05-04 08:43:21.707+0000: 4421: warning : qemuCapsInit:856 : Failed to get host power management capabilities
2012-05-04 08:43:21.975+0000: 4424: error : virExecWithHook:328 : Cannot find 'pm-is-supported' in path: No such file or directory
2012-05-04 08:43:21.975+0000: 4424: warning : qemuCapsInit:856 : Failed to get host power management capabilities
2012-05-04 08:43:22.229+0000: 4423: error : virExecWithHook:328 : Cannot find 'pm-is-supported' in path: No such file or directory
2012-05-04 08:43:22.230+0000: 4423: warning : qemuCapsInit:856 : Failed to get host power management capabilities
2012-05-04 08:43:22.522+0000: 4422: error : virExecWithHook:328 : Cannot find 'pm-is-supported' in path: No such file or directory
2012-05-04 08:43:22.522+0000: 4422: warning : qemuCapsInit:856 : Failed to get host power management capabilities

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

Thanks for reporting this bug. Marking confirmed.

Changed in libvirt (Ubuntu):
status: New → Confirmed
importance: Undecided → Low
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

I'm sorry, I thought I'd seen this on my desktop, but come to think of it that was only on barebones server installs.

If you want pm-is-supported to work in libvirt, please install pm-utils

   sudo apt-get -y install pm-utils

and then restart libvirt

  sudo stop libvirt-bin
  sudo start libvirt-bin

It could be argued that pm-utils should be in libvirt's Suggests:, but I
think I prefer not to for a few reasons.

Changed in libvirt (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Chang Liwei (changliwei) wrote :

I have installed pm-utils
but it all the same before.
2012-05-06 23:37:08.443+0000: 11176: warning : qemuCapsInit:856 : Failed to get host power management capabilities
2012-05-06 23:37:09.350+0000: 11177: error : virExecWithHook:328 : Cannot find 'pm-is-supported' in path: No such file or directory.

I have install ubuntu-desktop , and then I apt-get remove ubuntu-desktop .

It doesn't work , I even can't launch any OpenStack instance.

Revision history for this message
sajuptpm (sajuptpm) wrote : Re: [Bug 994476] Re: libvirt-bin : error : virExecWithHook:328 : Cannot find 'pm-is-supported' in path: No such file or directory

It is working for me after following steps
sudo apt-get -y install pm-utils
sudo stop libvirt-bin
sudo start libvirt-bin

Revision history for this message
Chang Liwei (changliwei) wrote :

root@node2:/var/log/libvirt# dpkg -l | grep pm-utils
ii pm-utils 1.4.1-9 utilities and scripts for power management

Revision history for this message
Chang Liwei (changliwei) wrote :

root@node2:/var/log/libvirt# libvirtd
p11-kit: couldn't load module: /usr/lib/x86_64-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: /usr/lib/x86_64-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: cannot open shared object file: No such file or directory
2012-05-11 11:40:12.113+0000: 4486: info : libvirt version: 0.9.8
2012-05-11 11:40:12.113+0000: 4486: error : virPidFileAcquirePath:345 : Failed to acquire pid file '/var/run/libvirtd.pid': Resource temporarily unavailable

Can anyone help to solve this?

Revision history for this message
Numérigraphe (numerigraphe) wrote :

Dear Serge Hallyn,
Why do prefer to keep pm-utils out of the "suggests" please?
Lionel Sausin.

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

I'll add it to Suggests in quantal (-proposed).

Changed in libvirt (Ubuntu):
status: Invalid → In Progress
assignee: nobody → Serge Hallyn (serge-hallyn)
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

(I will also ask to SRU this to precise)

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libvirt - 0.9.13-0ubuntu5

---------------
libvirt (0.9.13-0ubuntu5) quantal; urgency=low

  * add patch Reduce-udevadm-settle-timeout-to-10-seconds.patch (copied from
    Debian tree) to fix 3 minute hang during pool-refresh when using LVM
    backed pools. (LP: #1027987)
  * debian/control: add pm-utils to libvirt-bin Suggests. (LP: #994476)
 -- Serge Hallyn <email address hidden> Thu, 26 Jul 2012 11:05:18 -0500

Changed in libvirt (Ubuntu Quantal):
status: In Progress → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in libvirt (Ubuntu Precise):
status: New → Confirmed
description: updated
Changed in libvirt (Ubuntu Quantal):
status: Fix Released → Triaged
assignee: Serge Hallyn (serge-hallyn) → nobody
James Page (james-page)
Changed in libvirt (Ubuntu Quantal):
status: Triaged → Fix Released
Changed in libvirt (Ubuntu Precise):
status: Confirmed → Triaged
importance: Undecided → Low
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello sajuptpm, or anyone else affected,

Accepted libvirt into precise-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/libvirt/0.9.8-2ubuntu17.4 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please change the bug tag from verification-needed to verification-done. If it does not, change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in libvirt (Ubuntu Precise):
status: Triaged → Fix Committed
tags: added: verification-needed
tags: added: verification-done
removed: verification-needed
Revision history for this message
Colin Watson (cjwatson) wrote : Update Released

The verification of this Stable Release Update has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regresssions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libvirt - 0.9.8-2ubuntu17.4

---------------
libvirt (0.9.8-2ubuntu17.4) precise-proposed; urgency=low

  * storage-fix-a-potential-crash-when-creating-vol-object: avoid a crash
    on bad free() on error lvm storage. (LP: #1035320)
  * add pm-utils as suggests to avoid log spamming with messages about
    pm-is-supported not being found. (LP: #994476)
 -- Serge Hallyn <email address hidden> Mon, 13 Aug 2012 09:49:10 -0500

Changed in libvirt (Ubuntu Precise):
status: Fix Committed → Fix Released
Revision history for this message
pippo (claudio-enjoy) wrote :

How is possible to fix that problem in quantal ? the last version in quatal is libvirt-bin 0.9.13-0ubuntu12.2

any help ?

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

@Claudio

sudo apt-get install pm-utils

The fix in this bug was simply to add that to the Suggested packages for libvirt-bin, meaning that when you install libvirt-bin, apt-get suggests installing it but does not do so automatically.

Revision history for this message
James Page (james-page) wrote :

Nothing further todo for the cloud-archive; marking Invalid.

Changed in cloud-archive:
status: New → Invalid
Revision history for this message
sajuptpm (sajuptpm) wrote : Invitation to connect on LinkedIn

LinkedIn
------------

Bug,

I'd like to add you to my professional network on LinkedIn.

- Saju

Saju Madhavan
Python Developer (Django, Pinax, Turbogears) + Cloud Technology at Fluent Technologies
Bengaluru Area, India

Confirm that you know Saju Madhavan:
https://www.linkedin.com/e/-oz8wtb-ho4lp8pb-17/isd/18105930202/9ajJM7iL/?hs=false&tok=1H44zpy3y39C01

--
You are receiving Invitation to Connect emails. Click to unsubscribe:
http://www.linkedin.com/e/-oz8wtb-ho4lp8pb-17/Gm2S2qIQ1M-9ez1y3soEp-wQU13x51MPSQx5law/goo/994476%40bugs%2Elaunchpad%2Enet/20061/I5947723033_1/?hs=false&tok=2Mt0FgfSq39C01

(c) 2012 LinkedIn Corporation. 2029 Stierlin Ct, Mountain View, CA 94043, USA.

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.