Skip to content

Fix offline cluster node detection #250

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 20, 2016
Merged

Fix offline cluster node detection #250

merged 2 commits into from
Sep 20, 2016

Conversation

snh
Copy link
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