On 1/24/06, Francis Montagnac <[EMAIL PROTECTED]> wrote: > > Andrew Beekhof wrote: > > Assuming s/crmadmin/cibadmin/ , then yes. > > Or -U if you're just modifying existing attributes or adding new > > ones. (Saves you repeating everything). > > > In 2.0.3/CVS you can also pipe the XML to cibadmin on stdin > > I installed this version this morning but am unable to update the cib > with cibadmin. > > What am I doing wrong? > > Example: > > # cibadmin -Q | grep transition_idle_timeout > <nvpair id="transition_idle_timeout" > name="transition_idle_timeout" value="120s"/> > # cibadmin -Q | sed '/transition_idle_timeout/s/value="120s"/value="200s"/'| > cibadmin -U -p > Call cib_update failed (-25): The update was empty > <null> > # > > Related logs (the start only): > > Jan 24 15:44:26 <host> cib: [10167]: info: > mask(callbacks.c:cib_common_callback): Processing cib_update operation from > 10909/cib_rw > Jan 24 15:44:26 <host> cib: [10167]: ERROR: > mask(messages.c:cib_process_change): Cannot perform modification with no data > Jan 24 15:44:26 <host> cib: [10167]: WARN: mask(notify.c:do_cib_notify): > Operation cib_update (on section=cib) FAILED: (-25) The update was empty >
If you add a few -V options you'll be able to see what cibadmin thinks you're sending it. Also, in 2.0.3/CVS the option you need is -M -U would require all the parent nodes (with id's where appropriate) which is not as simple to construct and the reason -M was added. > I noticed also that the "suppress_cib_writes" option has been dropped > since 2.0.2 > Yes, proper interpretation was problematic and it has been dumped in favor of an option in ha.cf enable_config_writes on/off _______________________________________________________ Linux-HA-Dev: [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
