- Create Singletone to use it as metaclass in ssh_manager.
Singleton provides us posibility of having only one instance of class.
- Create SSHManagaer, wich will manage SSH connections by itself.
Almost SSHClient methods was duplicated in SSHManager.
Now it used so: SSHManager().method(node_ip, *parameters)
We will not get back SSHClient, we will just say 'Do IT on NODE with this PARAM'
e.g SSHManager().execute_on_remote('127.0.0.1', 'bash_command')
- Use ssh_manager in cli_cluster_deletion test
Reviewed: https:/ /review. openstack. org/252937 /git.openstack. org/cgit/ openstack/ fuel-qa/ commit/ ?id=3cb2275954b 0855cf7caff3a88 99172401ad34ce
Committed: https:/
Submitter: Jenkins
Branch: master
commit 3cb2275954b0855 cf7caff3a889917 2401ad34ce
Author: vgorin <email address hidden>
Date: Thu Dec 3 15:53:14 2015 +0300
Introduction of new method of SSH connection
- Create Singletone to use it as metaclass in ssh_manager.
SSHManager( ).method( node_ip, *parameters) ).execute_ on_remote( '127.0. 0.1', 'bash_command') deletion test
Singleton provides us posibility of having only one instance of class.
- Create SSHManagaer, wich will manage SSH connections by itself.
Almost SSHClient methods was duplicated in SSHManager.
Now it used so:
We will not get back SSHClient, we will just say 'Do IT on NODE with this PARAM'
e.g SSHManager(
- Use ssh_manager in cli_cluster_
Change-Id: I307d7d71e814b6 7d20cc0b4648cf6 a7dac4a7829
Closes-Bug: #1503210