[Pacemaker] enable to run crm line command
ROUAMBA Halidou
hrouamba at gmail.com
Mon Nov 2 12:05:18 EST 2009
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: <http://oss.clusterlabs.org/pipermail/pacemaker/attachments/20091102/4aff3098/attachment.htm>
More information about the Pacemaker
mailing list