Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux-HA: Dev

About external/riloe

 

 

Linux-HA dev RSS feed   Index | Next | Previous | View Threaded


satoyoshi at intellilink

Sep 12, 2010, 11:00 PM

Post #1 of 4 (377 views)
Permalink
About external/riloe

Hi,

For external/riloe, I noticed the following.

* syntax error
----------
[root [at] srv0 ~]# /usr/lib64/stonith/plugins/external/riloe getconfignames
File "/usr/lib64/stonith/plugins/external/riloe", line 389
for reply in result:
^
SyntaxError: invalid syntax
----------

I want you to apply the following.

diff -r /usr/lib64/stonith/plugins/external/riloe /usr/lib64/stonith/plugins/external/riloe.org
388c388
< fatal("no response from %s within %0.2f s"%(rihost,(t_end-t_begin)))
---
> fatal("no response from %s within %0.2f s"%(rihost,(t_end-t_begin))


* ssl module
----------
[root [at] srv0 ~]# /usr/lib64/stonith/plugins/external/riloe
Traceback (most recent call last):
File "/usr/lib64/stonith/plugins/external/riloe", line 40, in ?
import ssl
ImportError: No module named ssl

[root [at] srv0 ~]# python
Python 2.4.3 (#1, Jun 11 2009, 14:09:37)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-44)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import ssl
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: No module named ssl
----------

I'm using RHEL5.5.
The version of the python is 2.4.3 that is default.
The ssl module doesn't exist normally in python 2.4.
Because ImportError occurs, the riloe plug-in cannot be used.
The downward compatibility to less than python 2.5 is necessary, what do you think?

Regards,
Yoshihiko SATO
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/


dejanmm at fastmail

Sep 14, 2010, 3:01 AM

Post #2 of 4 (356 views)
Permalink
Re: About external/riloe [In reply to]

Hi,

On Mon, Sep 13, 2010 at 03:00:43PM +0900, Yoshihiko SATO wrote:
> Hi,
>
> For external/riloe, I noticed the following.
>
> * syntax error
> ----------
> [root [at] srv0 ~]# /usr/lib64/stonith/plugins/external/riloe getconfignames
> File "/usr/lib64/stonith/plugins/external/riloe", line 389
> for reply in result:
> ^
> SyntaxError: invalid syntax
> ----------
>
> I want you to apply the following.
>
> diff -r /usr/lib64/stonith/plugins/external/riloe /usr/lib64/stonith/plugins/external/riloe.org
> 388c388
> < fatal("no response from %s within %0.2f s"%(rihost,(t_end-t_begin)))
> ---
> > fatal("no response from %s within %0.2f s"%(rihost,(t_end-t_begin))

Thanks for spotting this.

>
> * ssl module
> ----------
> [root [at] srv0 ~]# /usr/lib64/stonith/plugins/external/riloe
> Traceback (most recent call last):
> File "/usr/lib64/stonith/plugins/external/riloe", line 40, in ?
> import ssl
> ImportError: No module named ssl
>
> [root [at] srv0 ~]# python
> Python 2.4.3 (#1, Jun 11 2009, 14:09:37)
> [GCC 4.1.2 20080704 (Red Hat 4.1.2-44)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import ssl
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> ImportError: No module named ssl
> ----------
>
> I'm using RHEL5.5.
> The version of the python is 2.4.3 that is default.
> The ssl module doesn't exist normally in python 2.4.
> Because ImportError occurs, the riloe plug-in cannot be used.
> The downward compatibility to less than python 2.5 is
> necessary, what do you think?

The ssl module is imported to support the new http proxy
functionality. I moved the import statement over there now. If
Jochen is listening, perhaps ssl could be made optional. Or we
should switch to another method and replace (iloproxyhost,
iloproxyport) with iloproxyurl.

Cheers,

Dejan

> Regards,
> Yoshihiko SATO
> _______________________________________________________
> Linux-HA-Dev: Linux-HA-Dev [at] lists
> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> Home Page: http://linux-ha.org/
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/


Holger.Teutsch at web

Sep 15, 2010, 12:29 AM

Post #3 of 4 (349 views)
Permalink
Re: About external/riloe [In reply to]

Jochen ist not on the mailing list, I forward this to him.
-h
-----Ursprüngliche Nachricht-----
Von: Dejan Muhamedagic <dejanmm [at] fastmail>
Gesendet: Sep 14, 2010 12:01:49 PM
An: High-Availability Linux Development List <linux-ha-dev [at] lists>
Betreff: Re: [Linux-ha-dev] About external/riloe

>Hi,
>
>On Mon, Sep 13, 2010 at 03:00:43PM +0900, Yoshihiko SATO wrote:
>> Hi,
>>
>> For external/riloe, I noticed the following.
>>
>> * syntax error
>> ----------
>> [root [at] srv0 ~]# /usr/lib64/stonith/plugins/external/riloe getconfignames
>> File "/usr/lib64/stonith/plugins/external/riloe", line 389
>> for reply in result:
>> ^
>> SyntaxError: invalid syntax
>> ----------
>>
>> I want you to apply the following.
>>
>> diff -r /usr/lib64/stonith/plugins/external/riloe /usr/lib64/stonith/plugins/external/riloe.org
>> 388c388
>> < fatal("no response from %s within %0.2f s"%(rihost,(t_end-t_begin)))
>> ---
>> > fatal("no response from %s within %0.2f s"%(rihost,(t_end-t_begin))
>
>Thanks for spotting this.
>
>>
>> * ssl module
>> ----------
>> [root [at] srv0 ~]# /usr/lib64/stonith/plugins/external/riloe
>> Traceback (most recent call last):
>> File "/usr/lib64/stonith/plugins/external/riloe", line 40, in ?
>> import ssl
>> ImportError: No module named ssl
>>
>> [root [at] srv0 ~]# python
>> Python 2.4.3 (#1, Jun 11 2009, 14:09:37)
>> [GCC 4.1.2 20080704 (Red Hat 4.1.2-44)] on linux2
>> Type "help", "copyright", "credits" or "license" for more information.
>> >>> import ssl
>> Traceback (most recent call last):
>> File "", line 1, in ?
>> ImportError: No module named ssl
>> ----------
>>
>> I'm using RHEL5.5.
>> The version of the python is 2.4.3 that is default.
>> The ssl module doesn't exist normally in python 2.4.
>> Because ImportError occurs, the riloe plug-in cannot be used.
>> The downward compatibility to less than python 2.5 is
>> necessary, what do you think?
>
>The ssl module is imported to support the new http proxy
>functionality. I moved the import statement over there now. If
>Jochen is listening, perhaps ssl could be made optional. Or we
>should switch to another method and replace (iloproxyhost,
>iloproxyport) with iloproxyurl.
>
>Cheers,
>
>Dejan
>
>> Regards,
>> Yoshihiko SATO
>> _______________________________________________________
>> Linux-HA-Dev: Linux-HA-Dev [at] lists
>> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
>> Home Page: http://linux-ha.org/
>_______________________________________________________
>Linux-HA-Dev: Linux-HA-Dev [at] lists
>http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
>Home Page: http://linux-ha.org/
___________________________________________________________
WEB.DE DSL SOMMER-SPECIAL: Surf & Phone Flat 16.000 für
nur 19,99 &euro;/mtl.!* http://produkte.web.de/go/DSL_Doppel_Flatrate/2
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/


satoyoshi at intellilink

Sep 15, 2010, 1:48 AM

Post #4 of 4 (351 views)
Permalink
Re: About external/riloe [In reply to]

Hi, Dejan

Thank you for reply.

I confirmed the revision.
http://hg.linux-ha.org/glue/rev/856e8c18d596

I will confirm it when there is a revision again.
Thanks,

Yoshihiko SATO

(2010/09/14 19:01), Dejan Muhamedagic wrote:
> Hi,
>
> On Mon, Sep 13, 2010 at 03:00:43PM +0900, Yoshihiko SATO wrote:
>> Hi,
>>
>> For external/riloe, I noticed the following.
>>
>> * syntax error
>> ----------
>> [root [at] srv0 ~]# /usr/lib64/stonith/plugins/external/riloe getconfignames
>> File "/usr/lib64/stonith/plugins/external/riloe", line 389
>> for reply in result:
>> ^
>> SyntaxError: invalid syntax
>> ----------
>>
>> I want you to apply the following.
>>
>> diff -r /usr/lib64/stonith/plugins/external/riloe /usr/lib64/stonith/plugins/external/riloe.org
>> 388c388
>> < fatal("no response from %s within %0.2f s"%(rihost,(t_end-t_begin)))
>> ---
>>> fatal("no response from %s within %0.2f s"%(rihost,(t_end-t_begin))
>
> Thanks for spotting this.
>
>>
>> * ssl module
>> ----------
>> [root [at] srv0 ~]# /usr/lib64/stonith/plugins/external/riloe
>> Traceback (most recent call last):
>> File "/usr/lib64/stonith/plugins/external/riloe", line 40, in ?
>> import ssl
>> ImportError: No module named ssl
>>
>> [root [at] srv0 ~]# python
>> Python 2.4.3 (#1, Jun 11 2009, 14:09:37)
>> [GCC 4.1.2 20080704 (Red Hat 4.1.2-44)] on linux2
>> Type "help", "copyright", "credits" or "license" for more information.
>>>>> import ssl
>> Traceback (most recent call last):
>> File "<stdin>", line 1, in ?
>> ImportError: No module named ssl
>> ----------
>>
>> I'm using RHEL5.5.
>> The version of the python is 2.4.3 that is default.
>> The ssl module doesn't exist normally in python 2.4.
>> Because ImportError occurs, the riloe plug-in cannot be used.
>> The downward compatibility to less than python 2.5 is
>> necessary, what do you think?
>
> The ssl module is imported to support the new http proxy
> functionality. I moved the import statement over there now. If
> Jochen is listening, perhaps ssl could be made optional. Or we
> should switch to another method and replace (iloproxyhost,
> iloproxyport) with iloproxyurl.
>
> Cheers,
>
> Dejan
>
>> Regards,
>> Yoshihiko SATO
>> _______________________________________________________
>> Linux-HA-Dev: Linux-HA-Dev [at] lists
>> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
>> Home Page: http://linux-ha.org/
> _______________________________________________________
> Linux-HA-Dev: Linux-HA-Dev [at] lists
> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> Home Page: http://linux-ha.org/
>

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

Linux-HA dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.