toolforge.etcdctl
Wrapper around etcdctl handling parameters and such.
- exception spicerack.toolforge.etcdctl.TooManyHosts[source]
Bases:
SpicerackErrorRaised when there's more hosts than supported passed.
- exception spicerack.toolforge.etcdctl.UnableToParseOutput[source]
Bases:
SpicerackErrorRaised when there's an error trying to parse etcdctl output.
- class spicerack.toolforge.etcdctl.EtcdctlController(*, remote_host: spicerack.remote.RemoteHosts)[source]
Bases:
RemoteHostsAdapterNode that is able to run etcdctl and control an etcd cluster.
Init.
- ensure_node_does_not_exist(member_fqdn: str) str | None[source]
Ensure the non existance of an etcd member, removing it if present.
Makes sure that the given member_fqdn member is not part of the etcd cluster, returns its old member id or None if it was not there.
- Return type: