Bug 884558 - RFE: Add Hyper-V support to beaker
Summary: RFE: Add Hyper-V support to beaker
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Beaker
Classification: Retired
Component: lab controller
Version: 0.10
Hardware: All
OS: Linux
high
high
Target Milestone: 0.13
Assignee: Dan Callaghan
QA Contact:
URL:
Whiteboard: Provisioning
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-12-06 10:35 UTC by Ladislav Jozsa
Modified: 2018-02-06 00:41 UTC (History)
11 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-06-25 06:25:39 UTC
Embargoed:


Attachments (Terms of Use)
Hyper-V power control script based on WS-MAN (2.71 KB, text/plain)
2012-12-12 23:23 UTC, Ladislav Jozsa
no flags Details

Description Ladislav Jozsa 2012-12-06 10:35:55 UTC
As we are going to officially support Hyper-V from RHEL6.4 we need to have support in Beaker at least for powering up and powering down virtual guests. I had an idea how to do that via virsh but it is lacking support of hyperv in RHEL6 running on lab controllers.

I have filed another RFE on libvirt (bz#884430) but it seems we have very little chances to have it included in RHEL6 in foreseeable future.

Comment 3 Ladislav Jozsa 2012-12-10 16:15:13 UTC
I did some research and found out that it should be possible to control Hyper-V guests via openwsman. The situation is complicated by bug in openwsman-python (bz #824277). So only option how to achieve it (since I haven't heard from legal concerning powershell ssh server) would be through wsmancli. However this will take some time to get it working.

Comment 4 Ladislav Jozsa 2012-12-11 21:25:06 UTC
Good news, the research is over. I have been successfully able to start up and shutdown virtual guest, I will shortly provide standalone fence script.

Comment 5 Ladislav Jozsa 2012-12-12 20:48:17 UTC
Even more good news. The hyper-v power script is in place in Beaker and I can happily announce that it works. :-)

Stefanie, thanks for your support while making this happen.

Comment 6 Dan Callaghan 2012-12-12 23:13:23 UTC
Great to hear that this is running in production. I am re-opening this bug since we would like to ship this script with Beaker for the benefit of other sites.

Comment 7 Ladislav Jozsa 2012-12-12 23:23:33 UTC
Created attachment 662697 [details]
Hyper-V power control script based on WS-MAN

OK, see the script attached.

Comment 8 Dan Callaghan 2013-04-29 06:13:58 UTC
http://gerrit.beaker-project.org/1900

Comment 10 xjia 2013-05-29 05:37:40 UTC
Verify:
Could find hyper-v script on beaker-lab.
[root@lab-devel-03 ~]# rpm -qa | grep beaker |xargs rpm -ql | grep hyper-v
/usr/lib/python2.6/site-packages/bkr/labcontroller/power-scripts/hyper-v

Version:
beaker-lab-controller-0.12.1-1.git.133.6c74a92.el6.noarch

Comment 12 Amit Saha 2013-06-25 06:25:39 UTC
Beaker 0.13.1 has been released.


Note You need to log in before you can comment on or make changes to this bug.