Bug 884558

Summary: RFE: Add Hyper-V support to beaker
Product: [Retired] Beaker Reporter: Ladislav Jozsa <ljozsa>
Component: lab controllerAssignee: Dan Callaghan <dcallagh>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 0.10CC: asaha, benl, dakini, dcallagh, dkovalsk, fskola, llim, qwan, rglasz, rmancy, xjia
Target Milestone: 0.13Keywords: FutureFeature, Reopened
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: Provisioning
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-06-25 06:25:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Hyper-V power control script based on WS-MAN none

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.