Re: [Linux-ha-dev] Stonith turns node names to lowercase

2011-10-20 Thread Alan Robertson
On 10/19/2011 04:11 AM, Lars Marowsky-Bree wrote: On 2011-10-18T12:40:40, Florian Haasflor...@hastexo.com wrote: g_strdown(nodecopy); Is there a reason for this ? I suppose Dejan will accept a patch making this configurable. Please, no. We fence by hostname; hostnames are case

Re: [Linux-ha-dev] Stonith turns node names to lowercase

2011-10-19 Thread Alberic de Pertat
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). Argh I should have started there. The problem

Re: [Linux-ha-dev] Stonith turns node names to lowercase

2011-10-19 Thread Lars Marowsky-Bree
On 2011-10-18T12:12:05, Alberic de Pertat alberic.deper...@adelux.fr wrote: 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. Yes, that was added because host/nodenames by

Re: [Linux-ha-dev] Stonith turns node names to lowercase

2011-10-19 Thread Lars Marowsky-Bree
On 2011-10-18T12:40:40, Florian Haas flor...@hastexo.com wrote: g_strdown(nodecopy); Is there a reason for this ? I suppose Dejan will accept a patch making this configurable. Please, no. We fence by hostname; hostnames are case insensitive by definition. Plugins need to handle that.

Re: [Linux-ha-dev] Stonith turns node names to lowercase

2011-10-19 Thread Dejan Muhamedagic
Hi, On Wed, Oct 19, 2011 at 10:49:57AM +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

[Linux-ha-dev] Stonith turns node names to lowercase

2011-10-18 Thread Alberic de Pertat
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. The problem is that almost every VM in my inventory is uppercase with some mixed case too. VMware allows you to have

Re: [Linux-ha-dev] Stonith turns node names to lowercase

2011-10-18 Thread Dejan Muhamedagic
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

Re: [Linux-ha-dev] Stonith turns node names to lowercase

2011-10-18 Thread Florian Haas
On 2011-10-18 12:12, 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. The problem is that almost every VM in my inventory is uppercase with