[Pacemaker] enable to run crm line command

ROUAMBA Halidou hrouamba at gmail.com
Tue Nov 3 09:06:13 UTC 2009


I tried to install python 2.4 but i faced to a lot of dependencies that i
can't résolve.
I don't have a active suscription on RHN.
I looked towards many Forum and it recommand me to upgrade my OS to RHEL AS
5 because *The dependencies can often be re-written for the older OS. But
you're seriously imperiling your **operating system** doinig this, because a
*lot* of components like Yum rely on Python.*
*See the below url.*
http://linux.derkeiler.com/Newsgroups/linux.redhat/2008-02/msg00085.html




2009/11/2 ROUAMBA Halidou <hrouamba at gmail.com>

> Ok Dejan, i shall try to upgrade my python version to 2.4 and i shall make
> you know the result
>
> thanks
>
> RH
>
>
> Pablo Picasso<http://www.brainyquote.com/quotes/authors/p/pablo_picasso.html> - "Computers are useless. They can only give you answers."
>
> 2009/11/2 Dejan Muhamedagic <dejanmm at fastmail.fm>
>
>> Hi,
>>
>> On Mon, Nov 02, 2009 at 03:32:07PM +0100, ROUAMBA Halidou wrote:
>> > Thanks for your help, but another error is generated after adding the
>> > bracket
>> > see the below output.
>> > [*root at omconi2 packages]# crm*
>> > *Traceback (most recent call last):*
>> > *  File "/usr/sbin/crm", line 24, in ?*
>> > *    import subprocess*
>> > *ImportError: No module named subprocess*
>>
>> subprocess is available as of version 2.4. Version 2.3 is really
>> old. Can you upgrade to something more recent?
>>
>> Thanks,
>>
>> Dejan
>>
>> > i look closely in the crm file but this line exist at the line number 24
>> > *import subprocess*
>> > *
>> > *
>> > Thanks.
>> >
>> > 2009/11/2 Dejan Muhamedagic <dejanmm at fastmail.fm>
>> >
>> > > Hi,
>> > >
>> > > On Mon, Nov 02, 2009 at 01:53:13PM +0100, ROUAMBA Halidou wrote:
>> > > > Marie von Ebner-Eschenbach<
>> > >
>> http://www.brainyquote.com/quotes/authors/m/marie_von_ebnereschenbac.html
>> >
>> > > > - "Even a stopped clock is right twice a day."
>> > > >
>> > > > 2009/11/2 Dejan Muhamedagic <dejanmm at fastmail.fm>
>> > > >
>> > > > > Hi,
>> > > > >
>> > > > > On Sun, Oct 25, 2009 at 01:07:40PM +0100, ROUAMBA Halidou wrote:
>> > > > > > Hello
>> > > > > >
>> > > > > > I just install the last version of pacemaker and i used hearbeat
>> as
>> > > > > cluster
>> > > > > > stacks.
>> > > > > > The installation has been made on RHEL AS4.6.
>> > > > > > i didn't have any error during the rpm installation.
>> > > > > > The /etc/ha.d/ha.cf et /etc/ha.d/authkeys have been correctly
>> > > > > configured.
>> > > > > > The problem occured when i tried to use crm line command to
>> configure
>> > > the
>> > > > > > CIB file for resource management.
>> > > > > > so this is the outpout of the crm .[
>> > > > > > *root at omconi2 ~]# crm
>> > > > > >   File "/usr/sbin/crm", line 4576
>> > > > > >     for obj in processing_sort_cli(self.obj_list))
>> > > > > >       ^
>> > > > > > SyntaxError: invalid syntax*
>> > > > >
>> > > > > Can't recall seeing this one.
>> > > > >
>> > > > > Which version of pacemaker do you run:
>> > > > >
>> > > > > /usr/lib/heartbeat/crmd version
>> > > > >
>> > > > [*root at omconi1 packages]# /usr/lib/heartbeat/crmd version*
>> > > > *CRM Version: 1.0.5 (462f1569a43740667daf7b0f6b521742e9eb8fa7)*
>> > > >
>> > > >
>> > > > > And which version of python?
>> > > > >>
>> > > > >> *[root at omconi1 packages]# python -V*
>> > > > >
>> > > > > *Python 2.3.4*
>> > >
>> > > Don't know, perhaps that is too old. Can you try to replace the
>> > > existing lines:
>> > >
>> > >        return '\n'.join(obj.repr_cli() \
>> > >                 for obj in processing_sort_cli(self.obj_list))
>> > >
>> > > with
>> > >
>> > >        return '\n'.join([obj.repr_cli() \
>> > >                for obj in processing_sort_cli(self.obj_list)])
>> > >
>> > > Thanks,
>> > >
>> > > Dejan
>> > >
>> > > > >
>> > > > Version of redhat ?
>> > > >
>> > > > > *[root at omconi1 packages]# cat /etc/redhat-release*
>> > > > > *Red Hat Enterprise Linux AS release 4 (Nahant Update 6)*
>> > > > > *[root at omconi1 packages]# uname -r*
>> > > > > *2.6.9-67.0.7.ELsmp*
>> > > > >
>> > > > >
>> > > > The rpm have been downloading from this url
>> > > >
>> > >
>> http://download.opensuse.org/repositories/server:/ha-clustering/RHEL_4/i386/
>> > > >
>> > > >
>> > > > >  Thanks,
>> > > > >
>> > > > > Dejan
>> > > > >
>> > > > > > The same error.occurs on both nodes
>> > > > > >
>> > > > > > I see that crm is writed in python language, i'm a newbie in
>> python
>> > > > > >
>> > > > > > if any has faced this problem and could help me,
>> > > > > > I thank him very much.
>> > > > > >
>> > > > > > thanks for  taking a look at my problem
>> > > > > >
>> > > > > > Best regards.
>> > > > > >
>> > > > > > Pablo Picasso<
>> > > > > http://www.brainyquote.com/quotes/authors/p/pablo_picasso.html>
>> > > > > > - "Computers are useless. They can only give you answers."
>> > > > >
>> > > > > > _______________________________________________
>> > > > > > Pacemaker mailing list
>> > > > > > Pacemaker at oss.clusterlabs.org
>> > > > > > http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>> > > > >
>> > > > >
>> > > > > _______________________________________________
>> > > > > Pacemaker mailing list
>> > > > > Pacemaker at oss.clusterlabs.org
>> > > > > http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>> > > > >
>> > >
>> > > > _______________________________________________
>> > > > Pacemaker mailing list
>> > > > Pacemaker at oss.clusterlabs.org
>> > > > http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>> > >
>> > >
>> > > _______________________________________________
>> > > Pacemaker mailing list
>> > > Pacemaker at oss.clusterlabs.org
>> > > http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>> > >
>>
>> > _______________________________________________
>> > Pacemaker mailing list
>> > Pacemaker at oss.clusterlabs.org
>> > http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>>
>>
>> _______________________________________________
>> Pacemaker mailing list
>> Pacemaker at oss.clusterlabs.org
>> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20091103/622223f3/attachment-0002.htm>


More information about the Pacemaker mailing list