Fri 13 Sep 2013 06:50:28 PM UTC, comment #31:
I think that this problem shouldn't be a problem any more.
|
Tue 19 Feb 2013 12:25:58 PM UTC, comment #30:
Any news here?
|
Thu 29 Nov 2012 03:07:31 PM UTC, comment #29:
Correcting a statement in post below:
> I am ahead with your input with the upgrade.
I am moving ahead with the upgrade as per your inputs for now.
|
Thu 29 Nov 2012 03:05:20 PM UTC, comment #28:
>I think so. There's really no compiling in crmsh, only autoconf replaces the various settings which I listed earlier.
I am ahead with your input with the upgrade.
> Then figure out where pacemaker keeps the corresponding directories. You can find them in pacemaker.pc
Cannot find this file. I suppose it doesnt get installed with pacemaker rpm.
I would find these variables through
egrep 'PE_STATE_DIR | CRM_DAEMON_DIR' `rpm -ql pacemaker`
Is there any other way u suggest ?
|
Thu 29 Nov 2012 02:46:43 PM UTC, comment #27:
> help_text_file doesn't exist
Look at help.py.
> Despite these errors in configure, can I still use this build (with the changes being populated in crmsh/vars.py)?
I think so. There's really no compiling in crmsh, only autoconf replaces the various settings which I listed earlier.
|
Thu 29 Nov 2012 02:43:43 PM UTC, comment #26:
> You should then set the other _dir variables. However, I'm not sure what else is missing there. You should check the following list
The following are missing:
pe_dir = ""
crm_conf_dir = ""
crm_daemon_user = ""
help_text_file doesn't exist
I would like ask one question:
"Yes, if there's no crm_config.h, the build will fail. Not much one can do about it"
Despite these errors in configure, can I still use this build (with the changes being populated in crmsh/vars.py)?
Or are u suggesting some other solution ?
I would require this input to proceed with our upgrade.
|
Thu 29 Nov 2012 02:25:42 PM UTC, comment #25:
> I set this variable as: crm_schema_dir = "/usr/share/pacemaker"
Yes, that's fine. You should then set the other _dir variables. However, I'm not sure what else is missing there. You should check the following list:
vars.py.in: report_cache = os.path.join("@CRM_CACHE_DIR@","history")
vars.py.in: tmpl_dir = "@datadir@/@PACKAGE@/templates"
vars.py.in: crm_schema_dir = "@CRM_DTD_DIRECTORY@"
vars.py.in: pe_dir = "@PE_STATE_DIR@"
vars.py.in: crm_conf_dir = "@CRM_CONFIG_DIR@"
vars.py.in: crm_daemon_dir = "@CRM_DAEMON_DIR@"
vars.py.in: crm_daemon_user = "@CRM_DAEMON_USER@"
vars.py.in: crm_version = "@VERSION@ (Build @BUILD_VERSION@)"
vars.py.in: ocf_root = "@OCF_ROOT_DIR@"
help.py.in: help_text_file = "@datadir@/@PACKAGE@/crm.8.txt"
|
Thu 29 Nov 2012 02:17:54 PM UTC, comment #24:
>Yes, if there's no crm_config.h, the build will fail. Not much one can do about it. But can't you install one of the existing RPMs? I know that there's not one for RHEL5, but I suspect one for RHEL6 would work too.
When I install the rpm of crmsh for RHEL6 I get the following error:
rpm --install --nodeps crmsh-1.2.1-45.1.x86_64.rpm
warning: /root/crmsh-1.2.1-45.1.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 7b709911
error: unpacking of archive failed: cpio: Bad magic
|
Thu 29 Nov 2012 02:13:44 PM UTC, comment #23:
Thanks for a quick response Dejan. I truly appreciate it & the work you guys are doing.
I haven't installed the rpm of crmsh (not available for OEL-5/RHEL-5)
I had built crmsh from source. I did the following though:
In file /usr/lib64/python2.4/site-packages/crmsh/vars.py
the variable: "crm_schema_dir" was set to empty (crm_schema_dir = "")
I set this variable as: crm_schema_dir = "/usr/share/pacemaker"
It's working currently (crm configure).
Would need your input to know if its rightly done.
|
Thu 29 Nov 2012 02:12:17 PM UTC, comment #22:
> checking for CRM_DAEMON_USER in crm_config.h... ./extract_define.CRM_DAEMON_USER.15861.c:2:24: error: crm_config.h: No such file or directory
Yes, if there's no crm_config.h, the build will fail. Not much one can do about it. But can't you install one of the existing RPMs? I know that there's not one for RHEL5, but I suspect one for RHEL6 would work too.
|
Thu 29 Nov 2012 01:57:58 PM UTC, comment #21:
> The following error was resolved by setting /usr/libexec/pacemaker in $PATH:
In general, you can list the crmsh package contents and find vars.py:
rpm -ql crmsh | grep vars.py$
Then look for the select variables (settings):
egrep 'crm_schema_dir|pe_dir|crm_conf_dir|crm_daemon_dir' `rpm -ql crmsh | grep vars.py$`
Then figure out where pacemaker keeps the corresponding directories. You can find them in pacemaker.pc:
daemondir=/usr/lib64/pacemaker (crm_daemon_dir)
configdir=/var/lib/pacemaker/cib (crm_conf_dir)
penginedir=/var/lib/pacemaker/pengine (pe_dir)
schemadir=/usr/share/pacemaker (crm_schema_dir)
Then create links. And please report if it worked.
|
Thu 29 Nov 2012 01:51:30 PM UTC, comment #20:
@Dejan (Fyi)
Errors while executing ./configure:
configure: WARNING: glue_config.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: glue_config.h: proceeding with the compiler's result
checking for glue_config.h... yes
checking for CRM_DAEMON_USER in crm_config.h... ./extract_define.CRM_DAEMON_USER.15861.c:2:24: error: crm_config.h: No such file or directory
./extract_define.CRM_DAEMON_USER.15861.c: In function 'main':
./extract_define.CRM_DAEMON_USER.15861.c:3: error: 'CRM_DAEMON_USER' undeclared (first use in this function)
./extract_define.CRM_DAEMON_USER.15861.c:3: error: (Each undeclared identifier is reported only once
./extract_define.CRM_DAEMON_USER.15861.c:3: error: for each function it appears in.)
./configure: line 1790: ./extract_define.CRM_DAEMON_USER.15861: No such file or directory
printf: usage: printf [-v var] format [arguments]
checking for CRM_DAEMON_GROUP in crm_config.h... ./extract_define.CRM_DAEMON_GROUP.15861.c:2:24: error: crm_config.h: No such file or directory
./extract_define.CRM_DAEMON_GROUP.15861.c: In function 'main':
./extract_define.CRM_DAEMON_GROUP.15861.c:3: error: 'CRM_DAEMON_GROUP' undeclared (first use in this function)
./extract_define.CRM_DAEMON_GROUP.15861.c:3: error: (Each undeclared identifier is reported only once
./extract_define.CRM_DAEMON_GROUP.15861.c:3: error: for each function it appears in.)
./configure: line 1790: ./extract_define.CRM_DAEMON_GROUP.15861: No such file or directory
printf: usage: printf [-v var] format [arguments]
checking for CRM_STATE_DIR in crm_config.h... ./extract_define.CRM_STATE_DIR.15861.c:2:24: error: crm_config.h: No such file or directory
./extract_define.CRM_STATE_DIR.15861.c: In function 'main':
./extract_define.CRM_STATE_DIR.15861.c:3: error: 'CRM_STATE_DIR' undeclared (first use in this function)
./extract_define.CRM_STATE_DIR.15861.c:3: error: (Each undeclared identifier is reported only once
./extract_define.CRM_STATE_DIR.15861.c:3: error: for each function it appears in.)
./configure: line 1790: ./extract_define.CRM_STATE_DIR.15861: No such file or directory
printf: usage: printf [-v var] format [arguments]
checking for PE_STATE_DIR in crm_config.h... ./extract_define.PE_STATE_DIR.15861.c:2:24: error: crm_config.h: No such file or directory
./extract_define.PE_STATE_DIR.15861.c: In function 'main':
./extract_define.PE_STATE_DIR.15861.c:3: error: 'PE_STATE_DIR' undeclared (first use in this function)
./extract_define.PE_STATE_DIR.15861.c:3: error: (Each undeclared identifier is reported only once
./extract_define.PE_STATE_DIR.15861.c:3: error: for each function it appears in.)
./configure: line 1790: ./extract_define.PE_STATE_DIR.15861: No such file or directory
printf: usage: printf [-v var] format [arguments]
checking for CRM_CONFIG_DIR in crm_config.h... ./extract_define.CRM_CONFIG_DIR.15861.c:2:24: error: crm_config.h: No such file or directory
./extract_define.CRM_CONFIG_DIR.15861.c: In function 'main':
./extract_define.CRM_CONFIG_DIR.15861.c:3: error: 'CRM_CONFIG_DIR' undeclared (first use in this function)
./extract_define.CRM_CONFIG_DIR.15861.c:3: error: (Each undeclared identifier is reported only once
./extract_define.CRM_CONFIG_DIR.15861.c:3: error: for each function it appears in.)
./configure: line 1790: ./extract_define.CRM_CONFIG_DIR.15861: No such file or directory
printf: usage: printf [-v var] format [arguments]
checking for CRM_DTD_DIRECTORY in crm_config.h... ./extract_define.CRM_DTD_DIRECTORY.15861.c:2:24: error: crm_config.h: No such file or directory
./extract_define.CRM_DTD_DIRECTORY.15861.c: In function 'main':
./extract_define.CRM_DTD_DIRECTORY.15861.c:3: error: 'CRM_DTD_DIRECTORY' undeclared (first use in this function)
./extract_define.CRM_DTD_DIRECTORY.15861.c:3: error: (Each undeclared identifier is reported only once
./extract_define.CRM_DTD_DIRECTORY.15861.c:3: error: for each function it appears in.)
./configure: line 1790: ./extract_define.CRM_DTD_DIRECTORY.15861: No such file or directory
|
Thu 29 Nov 2012 01:33:07 PM UTC, comment #19:
Thanks Dejan for replying.
I have created the soft links you shared in your post below. Still facing issue with crmsh.
The following error was resolved by setting /usr/libexec/pacemaker in $PATH:
crm
/bin/sh: crmd: command not found
WARNING: list index out of range
WARNING: could not get the pacemaker version, bad installation?
Now, I am getting the following error:
crm(live)# configure
Traceback (most recent call last):
File "/usr/sbin/crm", line 44, in ?
main.run()
File "/usr/lib64/python2.4/site-packages/crmsh/main.py", line 418, in run
do_work()
File "/usr/lib64/python2.4/site-packages/crmsh/main.py", line 361, in do_work
if not parse_line(levels,shlex.split(inp)):
File "/usr/lib64/python2.4/site-packages/crmsh/main.py", line 128, in parse_line
lvl.new_level(pt[token],token)
File "/usr/lib64/python2.4/site-packages/crmsh/levels.py", line 72, in new_level
self.current_level = level_obj()
File "/usr/lib64/python2.4/site-packages/crmsh/ui.py", line 1417, in _init_
cib_factory.initialize()
File "/usr/lib64/python2.4/site-packages/crmsh/cibconfig.py", line 1928, in initialize
if not self.import_cib():
File "/usr/lib64/python2.4/site-packages/crmsh/cibconfig.py", line 1727, in import_cib
schema.init_schema(cib)
File "/usr/lib64/python2.4/site-packages/crmsh/schema.py", line 87, in init_schema
self.crm_schema = CrmSchema(cib, vars.crm_schema_dir)
File "/usr/lib64/python2.4/site-packages/crmsh/pacemaker.py", line 95, in CrmSchema
return RngSchema(cib_dom_node, local_dir)
File "/usr/lib64/python2.4/site-packages/crmsh/pacemaker.py", line 108, in _init_
self.refresh(cib_dom_node)
File "/usr/lib64/python2.4/site-packages/crmsh/pacemaker.py", line 116, in refresh
return self.update_schema()
File "/usr/lib64/python2.4/site-packages/crmsh/pacemaker.py", line 310, in update_schema
self.update_rng_docs(self.validate_name, self.schema_filename)
File "/usr/lib64/python2.4/site-packages/crmsh/pacemaker.py", line 315, in update_rng_docs
self.rng_docs[file] = self.find_start_rng_node(validate_name, file)
File "/usr/lib64/python2.4/site-packages/crmsh/pacemaker.py", line 326, in find_start_rng_node
os.path.join(self.local_dir, file))
File "/usr/lib64/python2.4/site-packages/crmsh/pacemaker.py", line 66, in read_schema_local
raise PacemakerError("Cannot read the schema file: " + str(msg))
crmsh.pacemaker.PacemakerError: Cannot read the schema file: [Errno 2] No such file or directory: 'pacemaker-1.2.rng'
The file: pacemaker-1.2.rng is present at /usr/share/pacemaker. I have added this location in PATH but to no avail.
Also, when I build and installed crmsh, there were errors in config.log (shared in my earlier post) "crm_config.h not found"
Would this effect the current behavior of crm ?
Your inputs needed for a breakthrough.
Thanks
Parshvi
|
Thu 29 Nov 2012 08:55:45 AM UTC, comment #18:
The crmsh you have should work too, it's just that a couple of directories got moved between 1.1.7 and 1.1.8. You could try the following:
mkdir -p /var/lib/heartbeat
ln -s /var/lib/pacemaker/cib /var/lib/heartbeat/crm
ln -s /var/lib/pacemaker/pengine /var/lib/pengine
ln -s /usr/lib64/pacemaker /usr/lib64/heartbeat
> Could you inform if there is a plan to release crmsh rpms for rhel-5/oel-5 ?
Will take a look, but really cannot promise anything.
|
Thu 29 Nov 2012 07:11:01 AM UTC, comment #17:
Hi Dejan,
We are in the process of upgrading to pacemaker 1.1.8 on OEL-5.8
I have installed rpms for Pacemaker 1.1.8 and corosync 1.4.1.
rpms of crmsh for OEL-5.8 are not available. Hence, I had to build crmsh from source.
crm
/bin/sh: crmd: command not found
WARNING: list index out of range
WARNING: could not get the pacemaker version, bad installation?
Build fails, requires crm_config.h
This header file requires pacemaker to be build from source.
Building pacemaker on OEL-5 requires glibc, libqb etc to be updated too.
Currently that would be a problem for us.
Could you inform if there is a plan to release crmsh rpms for rhel-5/oel-5 ?
can u suggest any other way to build crmsh on oel-5 without having to build pacemaker ?
I would appreciate your help in this regard.
Thanks
Parshvi
|
Tue 27 Nov 2012 11:16:10 AM UTC, comment #16:
here I am.
configure.log is the std output
CRM_DAEMON_DIR seems right, now.
If all other parameters are as you expect them, the the fix is trivial.
BTW, I previously just tried to change that line, but configure failed (without glue) and I could not get this result.
See you soon,
Mario
(file #26979, file #26980, file #26981)
|
Tue 27 Nov 2012 09:45:59 AM UTC, comment #15:
> I have pacemaker.pc, not pcmk.pc. That only works with pkg-config pacemaker ... Maybe the filename has recently changed in pacemaker sources (I'm compiling from git)?
Oh, lovely. OK, can you update the crmsh code again.
|
Tue 27 Nov 2012 09:16:25 AM UTC, comment #14:
>CRM_DAEMON_DIR=`$PKGCONFIG pcmk --variable=daemondir`
I have pacemaker.pc, not pcmk.pc. That only works with pkg-config pacemaker ... Maybe the filename has recently changed in pacemaker sources (I'm compiling from git)?
|
Tue 27 Nov 2012 06:30:15 AM UTC, comment #13:
> No, pkg-config is in place.
Yes, I can see that now it is :)
> I recompiled and installed clusterglue. All headers are in the right place. Seems that crmsh's configure just fails to set the right CRM_DAEMON_DIR location to "/usr/libexec/pacemaker".
Strange. This is the configure code for that part:
CRM_DAEMON_DIR=`$PKGCONFIG pcmk --variable=daemondir`
if test "X$CRM_DAEMON_DIR" = X; then
CRM_DAEMON_DIR=`extract_header_define $GLUE_HEADER GLUE_DAEMON_DIR`
fi
Can you try to get that information by hand (the pkg-config line). If that returns what you expect, then please attach config.status (I think it's called like that) and the output to stdout/stderr. Thanks!
|
Tue 27 Nov 2012 06:21:29 AM UTC, comment #12:
> crm(live)configure# commit
> Call cib_replace failed (-62): Timer expired
That's happening elsewhere. At this point crm invokes cibadmin to submit the changes. It looks like cib (the daemon) may not be operational.
|
Tue 27 Nov 2012 12:12:47 AM UTC, comment #11:
Another try:
changing $PATH make crmd not found error disappear, but crm is still unable to configure pacemaker. No error is logged in corosync.log
# echo $PATH
/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/lib64/qt/bin
root@balancer1:~# PATH="$PATH:/usr/libexec/pacemaker/" crm
crm(live)# configure
crm(live)configure# property stonith-enabled=false
crm(live)configure# commit
Call cib_replace failed (-62): Timer expired
ERROR: could not replace cib
INFO: offending xml: <configuration>
<crm_config>
<cluster_property_set id="cib-bootstrap-options">
<nvpair id="cib-bootstrap-options-stonith-enabled" name="stonith-enabled" value="false"/>
</cluster_property_set>
</crm_config>
<nodes/>
<resources/>
<constraints/>
</configuration>
Hope seeing you soon,
Mario
|
Mon 26 Nov 2012 11:52:00 PM UTC, comment #10:
Fixing CRM_DAEMON_DIR in Makefile before executing make does not help:
# crm
/bin/sh: crmd: command not found
WARNING: list index out of range
WARNING: could not get the pacemaker version, bad installation?
crm(live)# quit
bye
|
Mon 26 Nov 2012 10:56:40 PM UTC, comment #9:
BTW, please change the bug title to something like "WRONG CRMD LOCATION"
Mario
|
Mon 26 Nov 2012 10:44:09 PM UTC, comment #8:
No, pkg-config is in place.
I recompiled and installed clusterglue. All headers are in the right place. Seems that crmsh's configure just fails to set the right CRM_DAEMON_DIR location to "/usr/libexec/pacemaker". See attached files.
Mario
(file #26974, file #26975, file #26976)
|
Mon 26 Nov 2012 01:24:48 PM UTC, comment #7:
Looks like pkg-config is missing, or at least configure couldn't find it:
PKGCONFIG=''
Also, you still need glue to build crmsh, at least for other stuff.
Try installing both glue development and pkg-config.
|
Fri 23 Nov 2012 11:29:10 PM UTC, comment #6:
Pacemaker with corosync does not need glue to build, AFAIK.
I compiled again corosync 2 and pacemaker 1.1.8 (both from git) having removed clusterglue. Both compile fine.
Pacemaker pc and header files are installed (in /usr/lib64/pkgconfig and /usr/include/pacemaker).
Crmsh's configure fails not finding glue header (see attached).
What about it?
Mario
(file #26965)
|
Thu 22 Nov 2012 05:28:20 PM UTC, comment #5:
> Yes, to get the right CRM daemon location you'd need glue 1.0.11.
Scratch that :)
|
Thu 22 Nov 2012 05:20:30 PM UTC, comment #4:
No need to be sorry. Yes, to get the right CRM daemon location you'd need glue 1.0.11.
Though, I thought that crmsh could manage by itself too, in case you had pacemaker development installed (it uses pkg-config to get that information directly from the .pc files). Did you have pacemaker development installed at the time of compiling? If so, then please attach the build log (including the configure part).
|
Thu 22 Nov 2012 02:16:57 PM UTC, comment #3:
OK, maybe I figured it out. Tell me if I'm wrong.
crmd is in /usr/libexec/pacemaker/ but crmsh's configure script, invoked with:
./configure --prefix=/usr --libdir=/usr/lib64 --sysconfdir=/etc --localstatedir=/var --mandir=/usr/man --docdir=/usr/doc/crmsh-1.2.1 --build=x86_64-slackware-linux
sets CRM_DAEMON_DIR='/usr/lib64/heartbeat', I guess because it find there a lrmd from clusterglue installation.
I have to tune clusterglue (I use corosync and not heartbeat) or you have to tune crsm's configure ;-).
If you need you can find me at mario.dechenno AT unina2.it
Sorry for posting a wrong bug.
Regards,
Mario
|
Thu 22 Nov 2012 01:18:45 PM UTC, comment #2:
I am absolutely NOT sure, I'm new to this cluster suite.
I compile crmsh after pacemaker 1.1.8 (from git), then I got
:~# crm
/bin/sh: crmd: command not found
WARNING: list index out of range
WARNING: could not get the pacemaker version, bad installation?
crm(live)#
If I softlink crmd ->pacemakerd, the eroor goes away, but can't configure pacemaker, anyway.
~# crm configure
crm(live)configure# property no-quorum-policy=ignore
crm(live)configure# property stonith-enabled=false
crm(live)configure# commit
Call cib_replace failed (-62): Timer expired
ERROR: could not replace cib
INFO: offending xml: <configuration>
<crm_config>
<cluster_property_set id="cib-bootstrap-options">
<nvpair id="cib-bootstrap-options-no-quorum-policy" name="no-quorum-policy" value="ignore"/>
<nvpair id="cib-bootstrap-options-stonith-enabled" name="stonith-enabled" value="false"/>
</cluster_property_set>
</crm_config>
<nodes/>
<resources/>
<constraints/>
</configuration>
There's no crmd after successfully compiling and installing pacemaker:
/usr/sbin# ls
attrd_updater crm_attribute crm_error crm_master crm_node crm_resource crm_simulate crm_ticket crmadmin fence_pcmk pacemakerd
cibadmin crm_diff crm_failcount crm_mon crm_report crm_shadow crm_standby crm_verify fence_legacy iso8601 stonith_admin
I was certainly wrong. I thought my issue was pacemaker-related and not from crmsh. Could you point me to the right direction?
Thanks, Mario
|
Mon 19 Nov 2012 06:16:34 PM UTC, comment #1:
pacemakerd replaced crmd? Are you sure? The two should have distinctly different roles.
|
Fri 16 Nov 2012 10:33:07 PM UTC, original submission:
crmsh 1.1.2 complains about missing crmd but since pacemaker 1.1.8 there's only pacemakerd. A soft link fixed the issue for me
|