Re: [Linux-ha-dev] STONITH plugin for VMware vCenter

2013-01-16 Thread Phuc Hoang Ngo
instructions. Best regards, Phuc Ngo From: Nhan Ngo Dinh [mailto:nngod...@tiscali.it] Sent: Tuesday, January 15, 2013 3:21 PM To: Phuc Hoang Ngo Cc: linux-ha-dev@lists.linux-ha.org Subject: Re: [Linux-ha-dev] STONITH plugin for VMware vCenter There is something that is not working properly. Here is the

Re: [Linux-ha-dev] STONITH plugin for VMware vCenter

2013-01-16 Thread Nhan Ngo Dinh
Sent: Monday, January 14, 2013 3:22 PM To: Phuc Hoang Ngo Cc: linux-ha-dev@lists.linux-ha.org Subject: Re: [Linux-ha-dev] STONITH plugin for VMware vCenter   Hi Phuc,

Re: [Linux-ha-dev] STONITH plugin for VMware vCenter

2013-01-16 Thread Phuc Hoang Ngo
uary 14, 2013 3:22 PM To: Phuc Hoang Ngo Cc: linux-ha-dev@lists.linux-ha.org Subject: Re: [Linux-ha-dev] STONITH plugin for VMware vCenter Hi Phuc, Are you using the latest vcenter script? Download it from http://hg.linux-ha.org/glue/archive/glue-1.0.9.tar.bz2 And get the vcenter plugin i

Re: [Linux-ha-dev] STONITH plugin for VMware vCenter

2013-01-16 Thread Nhan Ngo Dinh
Hi Phuc, Are you using the latest vcenter script? Download it from http://hg.linux-ha.org/glue/archive/glue-1.0.9.tar.bz2 And get the vcenter plugin in lib/plugins/stonith/external Nhan On 01/13/2013 05:35 PM, Phuc Hoang Ngo wrote:

[Linux-ha-dev] STONITH plugin for VMware vCenter

2013-01-16 Thread Phuc Hoang Ngo
Dear Nhan NGO, Thanks to your guideline at http://lists.community.tummy.com/pipermail/linux-ha-dev/2011-April/018404.html, I could do some tests with the STONITH plugin on a VMware ESX/ESXi that is hosting 2 nodes. But I had to modify some following environment variables to make it runs: expo

Re: [Linux-ha-dev] STONITH plugin for VMware vCenter

2011-04-27 Thread Dejan Muhamedagic
Hi, On Wed, Apr 27, 2011 at 09:01:24AM +0200, Nhan Ngo Dinh wrote: > Hi, > > I just moved the "use" function in the network commands block. Thanks. Please update from the repository in future and provide patches instead. Cheers, Dejan > Best regards, > Nhan > > On Tue, 2011-04-26 at 18:22 +

Re: [Linux-ha-dev] STONITH plugin for VMware vCenter

2011-04-27 Thread Nhan Ngo Dinh
Hi, I just moved the "use" function in the network commands block. Best regards, Nhan On Tue, 2011-04-26 at 18:22 +0200, Dejan Muhamedagic wrote: > Hi, > > On Thu, Apr 21, 2011 at 11:08:08AM +0200, Nhan Ngo Dinh wrote: > > Hi, > > > > On Tue, 2011-04-19 at 14:21 +0200, Dejan Muhamedagic wrote

Re: [Linux-ha-dev] STONITH plugin for VMware vCenter

2011-04-26 Thread Dejan Muhamedagic
Hi, On Thu, Apr 21, 2011 at 11:08:08AM +0200, Nhan Ngo Dinh wrote: > Hi, > > On Tue, 2011-04-19 at 14:21 +0200, Dejan Muhamedagic wrote: > > > > > > The VMware vCenter address (default: localhost) > > > > The defaults should go into the content element (see other > > stonith plugins, e.g. exter

Re: [Linux-ha-dev] STONITH plugin for VMware vCenter

2011-04-21 Thread Nhan Ngo Dinh
Hi, On Tue, 2011-04-19 at 14:21 +0200, Dejan Muhamedagic wrote: > > > > The VMware vCenter address (default: localhost) > > The defaults should go into the content element (see other > stonith plugins, e.g. external/ipmi). These defaults come from the vSphere Perl SDK, they are not handled insi

Re: [Linux-ha-dev] STONITH plugin for VMware vCenter

2011-04-20 Thread Lars Ellenberg
On Tue, Apr 19, 2011 at 02:21:38PM +0200, Dejan Muhamedagic wrote: > Hi, > > On Fri, Apr 08, 2011 at 11:38:23AM +0200, Nhan Ngo Dinh wrote: > > Logging added > > Many thanks. Please see below for a few more comments, mainly > about the meta-data. > > Lars, any more comments on from you? No time

Re: [Linux-ha-dev] STONITH plugin for VMware vCenter

2011-04-19 Thread Dejan Muhamedagic
Hi, On Fri, Apr 08, 2011 at 11:38:23AM +0200, Nhan Ngo Dinh wrote: > Logging added Many thanks. Please see below for a few more comments, mainly about the meta-data. Lars, any more comments on from you? Cheers, Dejan > Regards, > Nhan > #!/usr/bin/perl > # > # External STONITH module for VMW

Re: [Linux-ha-dev] STONITH plugin for VMware vCenter

2011-04-08 Thread Nhan Ngo Dinh
Logging added Regards, Nhan vcenter Description: Perl program ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/

Re: [Linux-ha-dev] STONITH plugin for VMware vCenter

2011-04-07 Thread Nhan Ngo Dinh
Hi, On Thu, 2011-04-07 at 15:35 +0200, Dejan Muhamedagic wrote: > > 4. Testing > > -- > > > > The plugin can be invoked directly to perform a very first connection test > > (replace all the provided sample values): > > > > VI_SERVER=10.1.1.1 \ > > VI_CREDSTORE=/etc/vicredentials.xml \

Re: [Linux-ha-dev] STONITH plugin for VMware vCenter

2011-04-07 Thread Dejan Muhamedagic
Hi, On Thu, Apr 07, 2011 at 01:54:59PM +0200, Nhan Ngo Dinh wrote: > Hi, > > please find it attached. Great! A few notes below. > Best regards, > Nhan > > VMware vCenter/ESX STONITH Module > = > > 1. Intro > > > VMware vCenter/ESX STONITH Module is i

Re: [Linux-ha-dev] STONITH plugin for VMware vCenter

2011-04-07 Thread Nhan Ngo Dinh
Hi, please find it attached. Best regards, Nhan On Thu, 2011-04-07 at 12:37 +0200, Dejan Muhamedagic wrote: > Hi, > > On Thu, Apr 07, 2011 at 10:36:11AM +0200, Nhan Ngo Dinh wrote: > > To help people testing it, here is what to do in each cluster node. > > You can test it with ESX/ESXi or vCen

Re: [Linux-ha-dev] STONITH plugin for VMware vCenter

2011-04-07 Thread Dejan Muhamedagic
Hi, On Thu, Apr 07, 2011 at 10:36:11AM +0200, Nhan Ngo Dinh wrote: > To help people testing it, here is what to do in each cluster node. > You can test it with ESX/ESXi or vCenter: it should work in both cases. > > 1) install VMware vSphere CLI, which includes Perl SDK and > administrative tools

Re: [Linux-ha-dev] STONITH plugin for VMware vCenter

2011-04-07 Thread Nhan Ngo Dinh
To help people testing it, here is what to do in each cluster node. You can test it with ESX/ESXi or vCenter: it should work in both cases. 1) install VMware vSphere CLI, which includes Perl SDK and administrative tools for generating the credentials XML file: http://www.vmware.com/download/downlo

Re: [Linux-ha-dev] STONITH plugin for VMware vCenter

2011-04-06 Thread Nhan Ngo Dinh
Sorry, I was confusing :) .visdkrc In the attached external/vcenter I've hopefully merged all the hints. Dejan, I've also considered your notes. Just few comments: 1) you proposed: my $regex = join "|" map { qr/\Q$_\E/ } values %$hosts; my $vms = Vim::find_entity_views(view_type => "VirtualMac

Re: [Linux-ha-dev] STONITH plugin for VMware vCenter

2011-04-06 Thread Lars Ellenberg
On Tue, Apr 05, 2011 at 06:27:19PM +0200, Nhan Ngo Dinh wrote: > VMware perl library allows to use a .vimrc file in the user home, Ouch. I guess they all use emacs, then. Or notepad ;-) -- : Lars Ellenberg : LINBIT | Your Way to High Availability : DRBD/HA support and consulting http://www.linb

[Linux-ha-dev] STONITH plugin for VMware vCenter

2011-04-05 Thread Nhan Ngo Dinh
Hi, > I don't know too much about vCenter, I'll assume that the interactions > with it are "correct", whatever that means. As Dejan stated after, there is still something that has to be fixed: if a VM is off, the reset won't work. I'll fix this. As you probably noticed :), the code has not been r

Re: [Linux-ha-dev] STONITH plugin for VMware vCenter

2011-04-05 Thread Dejan Muhamedagic
Hi, On Mon, Apr 04, 2011 at 09:23:17PM +0200, Lars Ellenberg wrote: > On Sun, Apr 03, 2011 at 10:15:50AM +0200, Nhan Ngo Dinh wrote: > > Hello all, > > > > Please find the attached plugin. > > > > It requires vSphere SDK for Perl: > > http://www.vmware.com/support/developer/viperltoolkit/ > > >

Re: [Linux-ha-dev] STONITH plugin for VMware vCenter

2011-04-04 Thread Lars Ellenberg
On Sun, Apr 03, 2011 at 10:15:50AM +0200, Nhan Ngo Dinh wrote: > Hello all, > > Please find the attached plugin. > > It requires vSphere SDK for Perl: > http://www.vmware.com/support/developer/viperltoolkit/ > > Parameters: > > hostlist (e.g. hostname1=VMNAME;hostname2=VMNAME2), ip (vCenter IP)

[Linux-ha-dev] STONITH plugin for VMware vCenter

2011-04-03 Thread Nhan Ngo Dinh
Hello all, Please find the attached plugin. It requires vSphere SDK for Perl: http://www.vmware.com/support/developer/viperltoolkit/ Parameters: hostlist (e.g. hostname1=VMNAME;hostname2=VMNAME2), ip (vCenter IP), username, password Tested with 4.1 Best regards, Nhan vcenter Description: P