Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@rubiojr
Copy link
Member

@rubiojr rubiojr commented Jun 20, 2016

Restores Git over SSH (babeld) keys and distribute them to all the nodes in the cluster.

Initially fixed by #228 and later reverted in #229, this new patch prevents the SSH host keys to be replaced, breaking ghe-restore in the process (new SSH connections after the host key restore will fail).

Fixes https://github.com/github/backup-utils/226

/cc @shawnzhu @github/backup-utils

Restores Git over SSH (babeld) keys and distribute them to all the nodes in the cluster.

Initially fixed by #228 and later reverted in #229, this new patch prevents the SSH host keys to be replaced, breaking `ghe-restore` in the process (new SSH connections after the host key restore will fail).

Fixes https://github.com/github/backup-utils/226
echo "Restoring Git over SSH host keys ..."
ghe-ssh "$GHE_HOSTNAME" -- "sudo tar -xpf - -C /data/user/common" < "$GHE_RESTORE_SNAPSHOT_PATH/ssh-host-keys.tar" 1>&3
ghe-ssh "$GHE_HOSTNAME" -- "sudo chown babeld:babeld /data/user/common/ssh_host_*" 1>&3
ghe-ssh "$GHE_HOSTNAME" -- "/usr/local/share/enterprise/ghe-cluster-config-update -s" 1>&3
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 better than ghe-import-ssh-host-keys.

@shawnzhu
Copy link
Contributor

@rubiojr LGTM and Thanks for this better solution!

@rubiojr rubiojr merged commit 63e6526 into master Jun 21, 2016
@rubiojr rubiojr deleted the fix-git-over-ssh-keys-restore branch June 21, 2016 13:42
@rubiojr rubiojr mentioned this pull request Jun 22, 2016
rubiojr added a commit that referenced this pull request Jun 22, 2016
A patch release that includes performance improvements for cluster
restores, bug fixes and other improvements:

* git-hooks fixes #231
* Cluster: speedup repositories restore #232
* Cluster: restore Git over SSH keys #230
* Benchmark restores #219
rubiojr added a commit that referenced this pull request Jun 22, 2016
A patch release that includes performance improvements for cluster
restores, bug fixes and other improvements:

* git-hooks fixes #231
* Cluster: speedup repositories restore #232
* Cluster: restore Git over SSH keys #230
* Benchmark restores #219
rubiojr added a commit that referenced this pull request Jun 22, 2016
A patch release that includes performance improvements for cluster
restores, bug fixes and other improvements:

* git-hooks fixes #231
* Cluster: speedup repositories restore #232
* Cluster: restore Git over SSH keys #230
* Benchmark restores #219
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.

3 participants