Hi,

On Tue, Oct 18, 2011 at 12:12:05PM +0200, Alberic de Pertat wrote:
> Hi,
> 
> 
> I am currently in the process of writing a fencing agent for VMware vCenter. 
> After some tests, I noticed that the stonith command is turning the nodename 
> to lowercase.

But there is already a vcenter stonith plugin (external/vcenter).

> The problem is that almost every VM in my inventory is uppercase with some 
> mixed case too. VMware allows you to have two VM with the same name but 
> different cases. I cannot find a proper way to deal with this as a case 
> insensitive search through the inventory could yield more than one result.

Interesting. Not sure why would one want to have two VM's names
differ only in case.

> Looking through the stonith command source (Mercurial HEAD), I found the 
> following in stonith.c (l. 456) :
> 
> 
> g_strdown(nodecopy);
> 
> 
> Is there a reason for this ?

Not completely sure, but most probably it was there because some
devices ignore case and produce only upper (or lower) case names.
The case should be ignored when matching node names.

Thanks,

Dejan

> 
> 
> 
> Thanks a lot
> --
> 
> Albéric de Pertat
> ADELUX
> 01 40 86 45 81

> _______________________________________________________
> Linux-HA-Dev: [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> Home Page: http://linux-ha.org/

_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Reply via email to