Remove get_node_with_dhcp method
Now for getting devops node in certain tests list of nodes of deployed env is used. This eliminates problem described in the bug as neutron agent is not in the use now. Change-Id: I68701c76c9961d61585234e34f8a6716aad1c826 Closes-Bug: #1454296
This commit is contained in:
parent
7192ef8dc9
commit
3431eb870a
@ -31,15 +31,6 @@ from fuelweb_test.tests import base_test_case
|
||||
class TestNeutronFailover(base_test_case.TestBasic):
|
||||
"""TestNeutronFailover.""" # TODO documentation
|
||||
|
||||
@classmethod
|
||||
def get_node_with_dhcp(cls, self, os_conn, net_id):
|
||||
node = os_conn.get_node_with_dhcp_for_network(net_id)[0]
|
||||
node_fqdn = self.fuel_web.get_fqdn_by_hostname(node)
|
||||
logger.debug('node name with dhcp is {0}'.format(node))
|
||||
devops_node = self.fuel_web.find_devops_node_by_nailgun_fqdn(
|
||||
node_fqdn, self.env.d_env.nodes().slaves[0:6])
|
||||
return devops_node
|
||||
|
||||
@classmethod
|
||||
def get_node_with_l3(cls, self, node_with_l3):
|
||||
node_with_l3_fqdn = self.fuel_web.get_fqdn_by_hostname(node_with_l3)
|
||||
@ -158,7 +149,10 @@ class TestNeutronFailover(base_test_case.TestBasic):
|
||||
self.fuel_web.get_public_vip(cluster_id))
|
||||
|
||||
net_id = os_conn.get_network('net04')['id']
|
||||
devops_node = self.get_node_with_dhcp(self, os_conn, net_id)
|
||||
|
||||
# any controller could be used as devops_node
|
||||
devops_node = self.env.d_env.nodes().slaves[0]
|
||||
|
||||
_ip = self.fuel_web.get_nailgun_node_by_name(devops_node.name)['ip']
|
||||
remote = self.env.d_env.get_ssh_to_remote(_ip)
|
||||
|
||||
@ -225,7 +219,10 @@ class TestNeutronFailover(base_test_case.TestBasic):
|
||||
self.fuel_web.get_public_vip(cluster_id))
|
||||
|
||||
net_id = os_conn.get_network('net04')['id']
|
||||
devops_node = self.get_node_with_dhcp(self, os_conn, net_id)
|
||||
|
||||
# any controller could be used as devops_node
|
||||
devops_node = self.env.d_env.nodes().slaves[0]
|
||||
|
||||
_ip = self.fuel_web.get_nailgun_node_by_name(devops_node.name)['ip']
|
||||
remote = self.env.d_env.get_ssh_to_remote(_ip)
|
||||
|
||||
@ -290,7 +287,10 @@ class TestNeutronFailover(base_test_case.TestBasic):
|
||||
self.fuel_web.get_public_vip(cluster_id))
|
||||
|
||||
net_id = os_conn.get_network('net04')['id']
|
||||
devops_node = self.get_node_with_dhcp(self, os_conn, net_id)
|
||||
|
||||
# any controller could be used as devops_node
|
||||
devops_node = self.env.d_env.nodes().slaves[0]
|
||||
|
||||
_ip = self.fuel_web.get_nailgun_node_by_name(devops_node.name)['ip']
|
||||
remote = self.env.d_env.get_ssh_to_remote(_ip)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user