Hi,

On Wed, Jun 01, 2011 at 11:52:36AM +0200, Kube, Thomas wrote:
> Hi,
> 
> when i try to create a shadow cib I get an error:
> 
> crm(live)# cib new newcfg
> INFO: newcfg shadow CIB created
> ERROR: newcfg: no such shadow CIB
> crm(live)#
> 
> But I can delete the shadow cib (which is also present in the filesystem):
> 
> crm(live)# cib delete newcfg
> INFO: newcfg shadow CIB deleted
> crm(live)#
> 
> I run "strace crm cib new newcfg 1>/tmp/cibtrace.out 2>&1" and this is the 
> problem:
> 
> --- snip ---
> write(2, "INFO: newcfg shadow CIB created", 31INFO: newcfg shadow CIB 
> created) = 31
> write(2, "\n", 1
> )                       = 1
> access("/root/.cib/shadow.newcfg", F_OK) = -1 ENOENT (No such file or 
> directory)
> write(2, "ERROR: newcfg: no such shadow CI"..., 33ERROR: newcfg: no such 
> shadow CIB) = 33
> write(2, "\n", 1
> )                       = 1
> write(1, "\33[?1034h", 8^[[?1034h)               = 8
> rt_sigaction(SIGINT, {SIG_DFL, [], SA_RESTORER, 0x7f06455045d0}, 
> {0x7f06457a48f8, [], SA_RESTORER, 0x7f06455045d0}, 8) = 0
> exit_group(0)
> 
> Pacemaker want to open/access the wrong shadow cib.

Indeed. It should be /var/lib/heartbeat/crm.

> This trace is from another cluster ( pacemaker 1.0.3):
> 
> --- snip ---
> write(1, "\33[?1034hINFO: newcfg shadow CIB "..., 40^[[?1034hINFO: newcfg 
> shadow CIB created
> ) = 40
> rt_sigaction(SIGINT, {SIG_DFL, [], SA_RESTORER, 0x7f3d3593ea90}, 
> {0x7f3d35c49133, [], SA_RESTORER, 0x7f3d3593ea90}, 8) = 0
> exit_group(0)
> 
> My envirnoment:
> 
> Pacemaker:
> libpacemaker3-1.1.5-5.5.5
> pacemaker-1.1.5-5.5.5
> OS:         SLES11 SP1, latest patchbundle

Cannot reproduce the issue with this version. What is your USER
environment set to? Is your username really "root"?

Thanks,

Dejan

P.S. You can also open a call with SUSE.

> Thank you for your help,
> 
> Thomas Kube
> Hamburg, Germany
> 
> 
> _______________________________________________
> Linux-HA mailing list
> [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to