Skip to content

Fix offline cluster node detection#250

Merged
snh merged 2 commits intomasterfrom
snh/offline-cluster-nodes
Sep 20, 2016
Merged

Fix offline cluster node detection#250
snh merged 2 commits intomasterfrom
snh/offline-cluster-nodes

Conversation

@snh
Copy link
Copy Markdown
Member

@snh snh commented Aug 31, 2016

The ghe_cluster_online_nodes function currently fails to exclude offline nodes. As a consquence, if a cluster node is marked as offline, the backup utilities still attempts to backup from this node, and the backup fails as a result.

This is because of a syntax error in the xargs command:

xargs -I{} -n1 bash -c 'if [ \"\$(ghe-config cluster.\$hostname.offline)\" != true ]; then ghe-config cluster.{}.hostname; fi'

The correct syntax is:

xargs -I{} -n1 bash -c 'if [ \"\$(ghe-config cluster.{}.offline)\" != true ]; then ghe-config cluster.{}.hostname; fi'

/cc @github/backup-utils for review

@snh snh merged commit f145ee2 into master Sep 20, 2016
@snh snh deleted the snh/offline-cluster-nodes branch September 20, 2016 05:57
@rubiojr rubiojr mentioned this pull request Sep 20, 2016
rubiojr added a commit that referenced this pull request Sep 20, 2016
Bug fixes and required tooling to detect SSH host keys that should be
blacklisted, see https://enterprise.github.com/releases/2.7.4/notes

* Cluster: fix offline cluster node detection #253
* Detect leaked ssh keys in backup snapshots #250
rubiojr added a commit that referenced this pull request Sep 20, 2016
Bug fixes and required tooling to detect SSH host keys that should be
blacklisted, see https://enterprise.github.com/releases/2.7.4/notes

* Cluster: fix offline cluster node detection #250
* Detect leaked ssh keys in backup snapshots #253
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants