02.07.2013 20:05, Dejan Muhamedagic wrote: > On Tue, Jul 02, 2013 at 11:05:01AM +0300, Vladislav Bogdanov wrote: >> 28.06.2013 17:47, Dejan Muhamedagic wrote: >> ... >>> If you want to test here's a new patch. It does work with >>> unrelated changes happening in the meantime. I didn't test yet >>> really concurrent updates. >>> >> >> One thing I see immediately, is that node utilization attributes are >> deleted after I do 'load update' with empty node utilization sections. >> That is probably not specific to this patch. > > Right. > >> I have that attributes dynamic, set from a RA (as node configuration may >> vary, I prefer to detect how much CPU and RAM I have and set utilization >> accordingly rather then put every hardware change into CIB). >> >> On the one hand, I would agree that crmsh does what is intended - if no >> utilization attributes is set in a config update, then they shoud be >> removed. > > Well, thinking more about it, the attributes should be merged. > The only trouble is that that would then change the command > semantically.
Not sure that is expected by most people. How you then delete attributes? If you really think about implementing that merging, I would introduce a crmsh config option for that. F.e. node_attr_policy (replace|merge). And default value should be the current one. _______________________________________________ Linux-HA mailing list Linux-HA@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems