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/444204 /git.openstack. org/cgit/ openstack/ fuel-qa/ commit/ ?id=45e773d9dbd 8ac9c85e3f11eb8 0b85edfcc12692
Committed: https:/
Submitter: Jenkins
Branch: master
commit 45e773d9dbd8ac9 c85e3f11eb80b85 edfcc12692
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