Improve _find_network_host function in nmanager
VMware integration assumes using fake host parameter. For this reason
when we launch test "Check network connectivity from instance" ostf
has to use special function _find_network_host which return real
hostname where nova-network runs.
This function uses command 'pcs status' for requests pacemaker/corosync
system. When some nodes of corosync cluster fails this command works
really slow and test can't meet the timeout.
This patch-set changes slow 'pcs status' to 'crm_mon -1' which realizes
same behavior but faster.
Change-Id: I80e645ec9da5f4421182bef10f368a3e5c73258d
Closes-bug: #1465268
(cherry picked from commit 573eac27e4
)
This commit is contained in:
parent
cd26f5e19a
commit
8fefcf7c46
|
@ -722,7 +722,7 @@ class NovaNetworkScenarioTest(OfficialClientTest):
|
|||
def _find_network_host(self, timeout, retries):
|
||||
"""Find host where nova-network works."""
|
||||
if self.config.compute.use_vcenter:
|
||||
command = "pcs status|grep nova-network|awk {'print $4'}"
|
||||
command = "crm_mon -1|grep nova-network|awk {'print $4'}"
|
||||
ssh = SSHClient(self.host[0],
|
||||
self.usr, self.pwd,
|
||||
key_filename=self.key,
|
||||
|
|
Loading…
Reference in New Issue