Hi Nhan,

Thank you very much for your create support.
I successfully executed the stonith command without reentering password anymore.
I followed some instructions from internet to upgrade the libwww-perl to 
version 5.837 and unset the https_proxy. Then everything works fine as your 
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 output from my 
reference configuration:

stonith -t external/vcenter VI_SERVER=10.1.1.1 
VI_CREDSTORE="/etc/vicredentials.xml" HOSTLIST="hostname1;hostname2" 
RESETPOWERON="0" -S
** INFO: Cannot get parameter VI_PORTNUMBER from StonithNVpair
** INFO: Cannot get parameter VI_PROTOCOL from StonithNVpair
** INFO: Cannot get parameter VI_SERVICEPATH from StonithNVpair
stonith: external/vcenter device OK.

And there is no password prompt: everything is taken from vicredentials.xml.
Did you try to use vicredentials.xml with VMware tools to see if authentication 
is working properly?

Nhan
On 01/14/2013 09:40 AM, Phuc Hoang Ngo wrote:
Hi Nhan,

Sorry that I didn't mention it in my last mail. I already used this version in 
my testing last time.
I used the following commands and configurations when I installed glue-1.0.9,

wget http://hg.linux-ha.org/glue/archive/glue-1.0.9.tar.bz2
tar -xvjf glue-1.0.9.tar.bz2
cd glue-1.0.9
./autogen.sh
./configure  --localstatedir=/var
make && make install

And I also got the stonith runs with the command: stonith -t external/vcenter -n
Could you please help me to find out the missing?

Best regards,
Phuc Ngo

From: Nhan Ngo Dinh [mailto:nngod...@tiscali.it]
Sent: Monday, January 14, 2013 3:22 PM
To: Phuc Hoang Ngo
Cc: linux-ha-dev@lists.linux-ha.org<mailto: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 in lib/plugins/stonith/external

Nhan
On 01/13/2013 05:35 PM, Phuc Hoang Ngo wrote:
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:

export PERL_LWP_SSL_VERIFY_HOSTNAME=0
export PERL_NET_HTTPS_SSL_SOCKET_CLASS="Net::SSL"<Net::SSL>
unset https_proxy

However, the vcenter command always asks me to input username and password 
although I think that the credentials should be stored and reused from the file 
vicredentials.xml when I finished the steps (2) and (3) in the guideline 
without exceptions.

Moreover, I also cannot test with the stonith command (stonith -t 
external/vcenter .... -iS) because it is hang too long and when I pressed the 
Ctrl-C, I saw the error message said the username or password is not valid.

Could you please tell me that it is still OK if I configure the CRM as like as 
the step (6) in your guideline?

PS: I've just tested on the VMware cluster inside our intranet network, using 
IPs with cluster nodes.
Best regards,
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
PHUC NGO
ICT/BA#1 Department
Global CyberSoft (Vietnam) JSC
Helios Building, Quang Trung Software City
Tan Chanh Hiep, District 12th, HCMC, Vietnam
Phone: +84-8-5437-1199 (ext 315)
Email: phu...@gcs-vn.com<mailto:phu...@cybersoft-vn.com>
Website: https://www.globalcybersoft.com<https://www.cybersoft-vn.com/>
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/





--

Nhan



--

Nhan
_______________________________________________________
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/

Reply via email to