We had invalid procedure of handling stored SSH connections
when non-root access feature was enabled. This patch fixs that
and contains the following items:
* Use method `update_connection` when exist connection fails
* close current connection in method `update_connection`
* catch SSHException instead AuthenticationException
Change-Id: Id488abf5b21c3bf16f21546c5b26c16e29bc6a58
Closes-Bug: 1659747
(cherry picked from commit e4a2acfc23d8f2ceddd0b2af1f002a0c57ca89e4)
Reviewed: https:/ /review. openstack. org/444203 /git.openstack. org/cgit/ openstack/ fuel-qa/ commit/ ?id=7e38e370d4a 8981c4fa792013f 43aeec05a63564
Committed: https:/
Submitter: Jenkins
Branch: stable/ocata
commit 7e38e370d4a8981 c4fa792013f43ae ec05a63564
Author: Sergey Novikov <email address hidden>
Date: Tue Feb 14 15:27:19 2017 +0400
Improve failover of SSH connections
We had invalid procedure of handling stored SSH connections xception
when non-root access feature was enabled. This patch fixs that
and contains the following items:
* Use method `update_connection` when exist connection fails
* close current connection in method `update_connection`
* catch SSHException instead AuthenticationE
Change-Id: Id488abf5b21c3b f16f21546c5b26c 16e29bc6a58 eddd0b2af1f002a 0c57ca89e4)
Closes-Bug: 1659747
(cherry picked from commit e4a2acfc23d8f2c