+ /* If this is a private attribute, no update needs to be sent */
+ if (a->is_private) {
+ private_updates++;
+ continue;
+ }
- } else if (peer->uuid == NULL) {
- /* peer is found, but we don't know the uuid yet. Wait until we discover a new uuid before attempting to write */
- a->unknown_peer_uuids = FALSE;
+ /* If the peer is found, but its uuid is unknown, defer write */
+ if (peer->uuid == NULL) {
+ a->unknown_peer_uuids = FALSE; /* bug? should this be TRUE? */
crm_notice("Update error (unknown peer uuid, retry will be attempted once uuid is discovered): %s[%s]=%s failed (host=%p)", v->nodename, a->id, v->current, peer);
{"quiet", 0, 0, 'q', "\tPrint only the value on stdout\n"},
{"name", 1, 0, 'n', "The attribute's name"},
{"-spacer-",1, 0, '-', "\nCommands:"},
{"update", 1, 0, 'U', "Update the attribute's value in attrd. If this causes the value to change, it will also be updated in the cluster configuration"},
{"query", 0, 0, 'Q', "\tQuery the attribute's value from attrd"},
{"delete", 0, 0, 'D', "\tDelete the attribute in attrd. If a value was previously set, it will also be removed from the cluster configuration"},
{"refresh", 0, 0, 'R', "\t(Advanced) Force the attrd daemon to resend all current values to the CIB\n"},
{"-spacer-",1, 0, '-', "\nAdditional options:"},
- {"lifetime",1, 0, 'l', "Lifetime of the node attribute. Allowed values: forever, reboot"},
- {"delay", 1, 0, 'd', "The time to wait (dampening) in seconds further changes occur"},
+ {"delay", 1, 0, 'd', "The time to wait (dampening) in seconds for further changes before writing"},
{"set", 1, 0, 's', "(Advanced) The attribute set in which to place the value"},
{"node", 1, 0, 'N', "Set the attribute for the named node (instead of the local one)"},
+#ifdef HAVE_ATOMIC_ATTRD
+ /* lifetime could be implemented for atomic attrd if there is sufficient user demand */
+ {"lifetime",1, 0, 'l', "(Deprecated) Lifetime of the node attribute (silently ignored by cluster)"},
+ {"private", 0, 0, 'p', "\tNever write attribute to CIB (but it can be updated and queried as usual)"},
+#else
+ {"lifetime",1, 0, 'l', "Lifetime of the node attribute. Allowed values: forever, reboot"},