[libvirt] All virsh commands testing failed with git head

Part of the error log is pasted, looks like it's caused by the calling of virNodeSuspendInit in virInitialize. ================================ cd tests; LIBVIRT_DEBUG=1 VIR_TEST_DEBUG=1 ./virshtest; cd - TEST: virshtest 1) virsh list (default) ... Offset 0 Expect [ ] Actual [2011-11-29 18:44:38.153: 24448: info : libvirt version: 0.9.7 2011-11-29 18:44:38.153: 24448: error : virNodeSuspendInit:86 : Failed to get host power management features ] ... FAILED 2) virsh list (custom) ... Offset 0 Expect [ ] Actual [2011-11-29 18:44:38.180: 24463: info : libvirt version: 0.9.7 2011-11-29 18:44:38.180: 24463: error : virNodeSuspendInit:86 : Failed to get host power management features ] ... FAILED 3) virsh nodeinfo (default) ... Offset 0 Expect [C] Actual [2011-11-29 18:44:38.212: 24478: info : libvirt version: 0.9.7 2011-11-29 18:44:38.212: 24478: error : virNodeSuspendInit:86 : Failed to get host power management features C] ... FAILED Regards, Osier

On Tue, Nov 29, 2011 at 06:46:26PM +0800, Osier Yang wrote:
Part of the error log is pasted, looks like it's caused by the calling of virNodeSuspendInit in virInitialize. ================================
Weird that worked for me , lemme recheck that everything went in ...
cd tests; LIBVIRT_DEBUG=1 VIR_TEST_DEBUG=1 ./virshtest; cd - TEST: virshtest 1) virsh list (default) ... Offset 0 Expect [ ] Actual [2011-11-29 18:44:38.153: 24448: info : libvirt version: 0.9.7 2011-11-29 18:44:38.153: 24448: error : virNodeSuspendInit:86 : Failed to get host power management features ]
Are you running the tests as root ? If no, that's weird If yes, do you have pm-utils package installed ? I think there is still some cleanups to do there, as I pointed in my message about it, but I didn't expected failures like this Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ daniel@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/

On 2011年11月29日 18:55, Daniel Veillard wrote:
On Tue, Nov 29, 2011 at 06:46:26PM +0800, Osier Yang wrote:
Part of the error log is pasted, looks like it's caused by the calling of virNodeSuspendInit in virInitialize. ================================
Weird that worked for me , lemme recheck that everything went in ...
cd tests; LIBVIRT_DEBUG=1 VIR_TEST_DEBUG=1 ./virshtest; cd - TEST: virshtest 1) virsh list (default) ... Offset 0 Expect [ ] Actual [2011-11-29 18:44:38.153: 24448: info : libvirt version: 0.9.7 2011-11-29 18:44:38.153: 24448: error : virNodeSuspendInit:86 : Failed to get host power management features ]
Are you running the tests as root ? If no, that's weird If yes, do you have pm-utils package installed ?
Yes, as root, and pm-utils installed. [root@foo libvirt]# pm-is-supported --suspend [root@foo libvirt]# echo $? 0 Regards, Osier

On Tue, Nov 29, 2011 at 06:59:46PM +0800, Osier Yang wrote:
On 2011年11月29日 18:55, Daniel Veillard wrote:
On Tue, Nov 29, 2011 at 06:46:26PM +0800, Osier Yang wrote:
Part of the error log is pasted, looks like it's caused by the calling of virNodeSuspendInit in virInitialize. ================================
Weird that worked for me , lemme recheck that everything went in ...
cd tests; LIBVIRT_DEBUG=1 VIR_TEST_DEBUG=1 ./virshtest; cd - TEST: virshtest 1) virsh list (default) ... Offset 0 Expect [ ] Actual [2011-11-29 18:44:38.153: 24448: info : libvirt version: 0.9.7 2011-11-29 18:44:38.153: 24448: error : virNodeSuspendInit:86 : Failed to get host power management features ]
Are you running the tests as root ? If no, that's weird If yes, do you have pm-utils package installed ?
Yes, as root,
err, I would not do this :-)
and pm-utils installed.
[root@foo libvirt]# pm-is-supported --suspend [root@foo libvirt]# echo $? 0
Then I'm afraid that's a PATH limiting factor (wild guess) specific to running within virshtest, because if you run ~/libvirt/tests -> ../tools/virsh -c test:///default list Id Name State ---------------------------------- 1 test running i.e. it works normally. Basically here we should report the error when run within libvirtd but not when running as non-root or in the test environment. Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ daniel@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/

On Tue, Nov 29, 2011 at 06:59:46PM +0800, Osier Yang wrote:
On 2011年11月29日 18:55, Daniel Veillard wrote:
On Tue, Nov 29, 2011 at 06:46:26PM +0800, Osier Yang wrote:
Part of the error log is pasted, looks like it's caused by the calling of virNodeSuspendInit in virInitialize. ================================
Weird that worked for me , lemme recheck that everything went in ...
cd tests; LIBVIRT_DEBUG=1 VIR_TEST_DEBUG=1 ./virshtest; cd - TEST: virshtest 1) virsh list (default) ... Offset 0 Expect [ ] Actual [2011-11-29 18:44:38.153: 24448: info : libvirt version: 0.9.7 2011-11-29 18:44:38.153: 24448: error : virNodeSuspendInit:86 : Failed to get host power management features ]
Are you running the tests as root ? If no, that's weird If yes, do you have pm-utils package installed ?
Yes, as root, and pm-utils installed.
[root@foo libvirt]# pm-is-supported --suspend [root@foo libvirt]# echo $? 0
I know what's going wrong here & am working on the fix Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
participants (3)
-
Daniel P. Berrange
-
Daniel Veillard
-
Osier Yang