README
¶
fencing
Hooks of fencing. Their owners are the owners of templates/fencing-agent. The hooks live in node-manager because their input is NodeGroup, Node and the pods of the agent.
Every path of nodeManager.internal.fencing.* has one writer. A hook that writes values runs in the queue /modules/node-manager and is listed in hooks/values_writers_queue_test.go.
node_group_modeswritesinternal.fencing.nodeGroups: the mode of every NodeGroup, as all consumers must read it.WatchdogbecomesSlow.off,Notifyand unknown values becomeDisabled. The NodeGroup object stays as the user wrote it.migration_from_1_0writesinternal.fencing.migrationFrom10. The flag istruewhile a Node with the conditionReady=Truehas the labelnode-manager.deckhouse.io/fencing-enabledof fencing 1.0 or runs an agent pod without thenode-manager.deckhouse.io/fencing-agent-versionlabel. The traces on a Node that is not Ready do not count: fencing 1.0 can stop a node, and the node keeps the traces while it is off. The hook watches all Nodes, but its filter keeps only the name, the readiness and the label, so the other changes of a Node do not start it. The chart replaces all agents at once while the flag is set.deprecated_settingspublishes the metricd8_node_group_fencing_deprecated_settings{name,setting}for every NodeGroup that setsmode: Watchdog(setting="mode") orwatchdog.timeout(setting="watchdog.timeout"). The series disappears when the user removes the setting.memberlist_keykeeps the Secretfencing-memberlist-keywith the memberlist key of the agents. The hook does not write values, because the key must not be in them. It creates the Secret with a new key when no Secret exists and some node group runs an agent. If agents of the current version already work, the key was lost: the hook writes the regeneration time into the Secret annotationnode-manager.deckhouse.io/fencing-key-regenerated-atand publishes it asd8_fencing_key_regenerated_timestamp_secondson every run. The hook never changes an existing Secret. An administrator rotates the key by writing the new key intoprimaryand the old key intosecondary.system_networkpublishes the metricd8_node_manager_system_network_not_found{network}while the SystemNetwork named in the ModuleConfig node-manager does not exist. The hook runs in the queue/modules/node-manager/fencing-system-network, because it writes only metrics. It runs every 30 seconds and when the ModuleConfig or the CRDsystemnetworks.network.deckhouse.iochanges. It reads the network with a direct GET, so it works while the CRD is absent. An empty name, an existing network and every edition except EE, FE and CSE remove the series. A missing object, group or version sets it. Any other error fails the hook and leaves the series as it is. The hook changes neither the settings nor the ConfigMap of the agents.node_state_cleanupremoves the conditionFencingand the annotationsnode-manager.deckhouse.io/fencing-profileandnode-manager.deckhouse.io/fencing-cp-sourcefrom every Node when all node groups areDisabledand no agent pod is left ind8-cloud-instance-manager. Helm deletes the DaemonSets in the background, so the hook waits for the pods. Then no agent runs, and the state that the agents left on the Nodes must not show fencing as armed. The hook does not write values, so it runs in the queue/modules/node-manager/fencing-node-state. It does not touch the Nodes while some node group runs agents.
Documentation
¶
There is no documentation for this package.
Click to show internal directories.
Click to hide internal directories.