Mailing List Archive

improvements of the libvirt stonith plugin
Hi

I found that fencing of libvirt plugin is failed on Xen(RHEL5),
because virsh's outputs are different.

KVM on RHEL6
-----------------------------
# virsh destroy host1
error: Failed to destroy domain host1
error: Requested operation is not valid: domain is not running
-----------------------------

Xen on RHEL5
-----------------------------
# virsh destroy host1
error: Failed to destroy domain host1
error: invalid argument in Domain host1 isn't running.
-----------------------------

I attached a patch.

Regards,
Takatoshi MATSUO
Re: improvements of the libvirt stonith plugin [ In reply to ]
Hi All,

We confirmed the connection of libvirt of Esx(vmware) on RHEL6.3.

When we are connected to Esxi, different results are provided like RHEL5.

[root@rh63-1 ~]# virsh -c esx://root@192.168.133.1/?no_verify=1 destroy sr2
Enter root's password for 192.168.133.1:
error: Failed to destroy domain sr2
error: Requested operation is not valid: Domain is not powered on


Because the following result is provided, the patch which Mr.Matsuo contributed becomes useful in Esx.

[root@rh63-1 ~]# virsh -c esx://root@192.168.133.2/?no_verify=1 dominfo sr1
Enter root's password for 192.168.133.2:
Id: 68
Name: sr1
UUID: 423b6068-2b19-b80d-0ef2-0c64e3ee25b3
OS Type: hvm
State: running$B!!(B
CPU(s): 2
Max memory: 2097152 kB
Used memory: 2097152 kB
Persistent: yes
Autostart: disable
Managed save: unknown

[root@rh63-1 ~]# virsh -c esx://root@192.168.133.1/?no_verify=1 dominfo sr2
Enter root's password for 192.168.133.1:
Id: -
Name: sr2
UUID: 423b9c27-cded-5616-b5c9-f04f4215b663
OS Type: hvm
State: shut off
CPU(s): 2
Max memory: 2097152 kB
Used memory: 2097152 kB
Persistent: yes
Autostart: disable
Managed save: unknown


Best Regards,
Hideo Yamauchi.

--- On Fri, 2012/6/1, Takatoshi MATSUO <matsuo.tak@gmail.com> wrote:

> Hi
>
> I found that fencing of libvirt plugin is failed on Xen(RHEL5),
> because virsh's outputs are different.
>
> KVM on RHEL6
> -----------------------------
> # virsh destroy host1
> error: Failed to destroy domain host1
> error: Requested operation is not valid: domain is not running
> -----------------------------
>
> Xen on RHEL5
> -----------------------------
> # virsh destroy host1
> error: Failed to destroy domain host1
> error: invalid argument in Domain host1 isn't running.
> -----------------------------
>
> I attached a patch.
>
> Regards,
> Takatoshi MATSUO
>
_______________________________________________________
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: improvements of the libvirt stonith plugin [ In reply to ]
Hi Hideo-san,

On Fri, Jul 13, 2012 at 03:52:09PM +0900, renayama19661014@ybb.ne.jp wrote:
> Hi All,
>
> We confirmed the connection of libvirt of Esx(vmware) on RHEL6.3.
>
> When we are connected to Esxi, different results are provided like RHEL5.
>
> [root@rh63-1 ~]# virsh -c esx://root@192.168.133.1/?no_verify=1 destroy sr2
> Enter root's password for 192.168.133.1:
> error: Failed to destroy domain sr2
> error: Requested operation is not valid: Domain is not powered on
>
>
> Because the following result is provided, the patch which Mr.Matsuo contributed becomes useful in Esx.

Good. I missed the patch somehow, sorry about that.
Applied now. Many thanks for the patch to Takatoshi MATSUO.

I also modified the search string a bit in a later changeset.

Cheers,

Dejan


> [root@rh63-1 ~]# virsh -c esx://root@192.168.133.2/?no_verify=1 dominfo sr1
> Enter root's password for 192.168.133.2:
> Id: 68
> Name: sr1
> UUID: 423b6068-2b19-b80d-0ef2-0c64e3ee25b3
> OS Type: hvm
> State: running 
> CPU(s): 2
> Max memory: 2097152 kB
> Used memory: 2097152 kB
> Persistent: yes
> Autostart: disable
> Managed save: unknown
>
> [root@rh63-1 ~]# virsh -c esx://root@192.168.133.1/?no_verify=1 dominfo sr2
> Enter root's password for 192.168.133.1:
> Id: -
> Name: sr2
> UUID: 423b9c27-cded-5616-b5c9-f04f4215b663
> OS Type: hvm
> State: shut off
> CPU(s): 2
> Max memory: 2097152 kB
> Used memory: 2097152 kB
> Persistent: yes
> Autostart: disable
> Managed save: unknown
>
>
> Best Regards,
> Hideo Yamauchi.
>
> --- On Fri, 2012/6/1, Takatoshi MATSUO <matsuo.tak@gmail.com> wrote:
>
> > Hi
> >
> > I found that fencing of libvirt plugin is failed on Xen(RHEL5),
> > because virsh's outputs are different.
> >
> > KVM on RHEL6
> > -----------------------------
> > # virsh destroy host1
> > error: Failed to destroy domain host1
> > error: Requested operation is not valid: domain is not running
> > -----------------------------
> >
> > Xen on RHEL5
> > -----------------------------
> > # virsh destroy host1
> > error: Failed to destroy domain host1
> > error: invalid argument in Domain host1 isn't running.
> > -----------------------------
> >
> > I attached a patch.
> >
> > Regards,
> > Takatoshi MATSUO
> >
> _______________________________________________________
> 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/
_______________________________________________________
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: improvements of the libvirt stonith plugin [ In reply to ]
Hi Dejan,

I confirmed the adoption of the patch.

Many Thanks!
Hideo Yamauchi.

--- On Fri, 2012/7/13, Dejan Muhamedagic <dejan@suse.de> wrote:

> Hi Hideo-san,
>
> On Fri, Jul 13, 2012 at 03:52:09PM +0900, renayama19661014@ybb.ne.jp wrote:
> > Hi All,
> >
> > We confirmed the connection of libvirt of Esx(vmware) on RHEL6.3.
> >
> > When we are connected to Esxi, different results are provided like RHEL5.
> >
> > [root@rh63-1 ~]# virsh -c esx://root@192.168.133.1/?no_verify=1 destroy sr2
> > Enter root's password for 192.168.133.1:
> > error: Failed to destroy domain sr2
> > error: Requested operation is not valid: Domain is not powered on
> >
> >
> > Because the following result is provided, the patch which Mr.Matsuo contributed becomes useful in Esx.
>
> Good. I missed the patch somehow, sorry about that.
> Applied now. Many thanks for the patch to Takatoshi MATSUO.
>
> I also modified the search string a bit in a later changeset.
>
> Cheers,
>
> Dejan
>
>
> > [root@rh63-1 ~]# virsh -c esx://root@192.168.133.2/?no_verify=1 dominfo sr1
> > Enter root's password for 192.168.133.2:
> > Id:             68
> > Name:           sr1
> > UUID:           423b6068-2b19-b80d-0ef2-0c64e3ee25b3
> > OS Type:        hvm
> > State:          running 
> > CPU(s):         2
> > Max memory:     2097152 kB
> > Used memory:    2097152 kB
> > Persistent:     yes
> > Autostart:      disable
> > Managed save:   unknown
> >
> > [root@rh63-1 ~]# virsh -c esx://root@192.168.133.1/?no_verify=1 dominfo sr2
> > Enter root's password for 192.168.133.1:
> > Id:             -
> > Name:           sr2
> > UUID:           423b9c27-cded-5616-b5c9-f04f4215b663
> > OS Type:        hvm
> > State:          shut off
> > CPU(s):         2
> > Max memory:     2097152 kB
> > Used memory:    2097152 kB
> > Persistent:     yes
> > Autostart:      disable
> > Managed save:   unknown
> >
> >
> > Best Regards,
> > Hideo Yamauchi.
> >
> > --- On Fri, 2012/6/1, Takatoshi MATSUO <matsuo.tak@gmail.com> wrote:
> >
> > > Hi
> > >
> > > I found that fencing of libvirt plugin is failed on Xen(RHEL5),
> > > because virsh's outputs are different.
> > >
> > > KVM on RHEL6
> > > -----------------------------
> > > # virsh destroy host1
> > > error: Failed to destroy domain host1
> > > error: Requested operation is not valid: domain is not running
> > > -----------------------------
> > >
> > > Xen on RHEL5
> > > -----------------------------
> > > # virsh destroy host1
> > > error: Failed to destroy domain host1
> > > error: invalid argument in Domain host1 isn't running.
> > > -----------------------------
> > >
> > > I attached a patch.
> > >
> > > Regards,
> > > Takatoshi MATSUO
> > >
> > _______________________________________________________
> > 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/
>
_______________________________________________________
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: improvements of the libvirt stonith plugin [ In reply to ]
Hi Dejan, Hideo-San

Thanks for bringing back it and adoption.

Regards,
Takatoshi MATSUO

2012/7/14 <renayama19661014@ybb.ne.jp>:
> Hi Dejan,
>
> I confirmed the adoption of the patch.
>
> Many Thanks!
> Hideo Yamauchi.
>
> --- On Fri, 2012/7/13, Dejan Muhamedagic <dejan@suse.de> wrote:
>
>> Hi Hideo-san,
>>
>> On Fri, Jul 13, 2012 at 03:52:09PM +0900, renayama19661014@ybb.ne.jp wrote:
>> > Hi All,
>> >
>> > We confirmed the connection of libvirt of Esx(vmware) on RHEL6.3.
>> >
>> > When we are connected to Esxi, different results are provided like RHEL5.
>> >
>> > [root@rh63-1 ~]# virsh -c esx://root@192.168.133.1/?no_verify=1 destroy sr2
>> > Enter root's password for 192.168.133.1:
>> > error: Failed to destroy domain sr2
>> > error: Requested operation is not valid: Domain is not powered on
>> >
>> >
>> > Because the following result is provided, the patch which Mr.Matsuo contributed becomes useful in Esx.
>>
>> Good. I missed the patch somehow, sorry about that.
>> Applied now. Many thanks for the patch to Takatoshi MATSUO.
>>
>> I also modified the search string a bit in a later changeset.
>>
>> Cheers,
>>
>> Dejan
>>
>>
>> > [root@rh63-1 ~]# virsh -c esx://root@192.168.133.2/?no_verify=1 dominfo sr1
>> > Enter root's password for 192.168.133.2:
>> > Id: 68
>> > Name: sr1
>> > UUID: 423b6068-2b19-b80d-0ef2-0c64e3ee25b3
>> > OS Type: hvm
>> > State: running
>> > CPU(s): 2
>> > Max memory: 2097152 kB
>> > Used memory: 2097152 kB
>> > Persistent: yes
>> > Autostart: disable
>> > Managed save: unknown
>> >
>> > [root@rh63-1 ~]# virsh -c esx://root@192.168.133.1/?no_verify=1 dominfo sr2
>> > Enter root's password for 192.168.133.1:
>> > Id: -
>> > Name: sr2
>> > UUID: 423b9c27-cded-5616-b5c9-f04f4215b663
>> > OS Type: hvm
>> > State: shut off
>> > CPU(s): 2
>> > Max memory: 2097152 kB
>> > Used memory: 2097152 kB
>> > Persistent: yes
>> > Autostart: disable
>> > Managed save: unknown
>> >
>> >
>> > Best Regards,
>> > Hideo Yamauchi.
>> >
>> > --- On Fri, 2012/6/1, Takatoshi MATSUO <matsuo.tak@gmail.com> wrote:
>> >
>> > > Hi
>> > >
>> > > I found that fencing of libvirt plugin is failed on Xen(RHEL5),
>> > > because virsh's outputs are different.
>> > >
>> > > KVM on RHEL6
>> > > -----------------------------
>> > > # virsh destroy host1
>> > > error: Failed to destroy domain host1
>> > > error: Requested operation is not valid: domain is not running
>> > > -----------------------------
>> > >
>> > > Xen on RHEL5
>> > > -----------------------------
>> > > # virsh destroy host1
>> > > error: Failed to destroy domain host1
>> > > error: invalid argument in Domain host1 isn't running.
>> > > -----------------------------
>> > >
>> > > I attached a patch.
>> > >
>> > > Regards,
>> > > Takatoshi MATSUO
>> > >
_______________________________________________________
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/