Bug 668522

Summary: RFE: Rework fence_vmware fence agent to use SOAP API to connect to Virtual Center instead of VMware Perl API
Product: [Fedora] Fedora Reporter: Perry Myers <pmyers>
Component: fence-agentsAssignee: Marek Grac <mgrac>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: cluster-maint, degts, fdinitto, rdassen, rohara, ssaha, tao, tdunnon
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 624673 Environment:
Last Closed: 2011-05-26 13:32:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 624673, 634567, 693433    

Description Perry Myers 2011-01-10 17:32:51 UTC
+++ This bug was initially created as a clone of Bug #624673 +++

Description of problem:
Existing fence_vmware uses 3rd party RPM dependency from VMware (VMware Perl API).  libvirt VMware/ESX driver implemented a SOAP method to connect to Virtual Center.

libvirt usage is fairly different than what we want for a general fence agent, so it's been recommended by libvirt team that we lift their SOAP code (just the parts of it that we need for the fence agent) and use it to rework the fence_vmware agent.

--- Additional comment from rohara on 2010-08-30 14:13:27 EDT ---

Doing this will allow us to remove fence_vmware_helper.pl and fence_vware can be exclusively Python code. This will likely create a dependency on a SOAP module to be pulled into Pyton, such as SOAPy.

The vmware web site has a "VMware Infrastructure SDK Programming Guide" that seems helpful, too. Basic power on/off operations are PowerOnVM_Task and PowerOffVM_Task. Also look at libvirt, which uses a C API but has some python code to generate the SOAP code. This is more than we need for fence_vmware, but might be a handy reference.

Comment 1 Fabio Massimo Di Nitto 2011-05-26 13:32:05 UTC
This has been in fedora for a while. Missed the BZ at release time.