Skip 2 health checks if no computes w/o DPDK
If environment doesn't contain compute nodes without DPDK then it's impossible to run instance and access it over network using default flavor which doesn't use huge pages for RAM. Change-Id: Ic6daf95fb7380a4c9355a5a1e5c6a1e45de46f89 Closes-bug: #1567447
This commit is contained in:
parent
1eb65cc189
commit
2bdaeafbb2
@ -53,7 +53,7 @@ class TestDPDK(neutronmanager.NeutronBaseTest, nmanager.SmokeChecksTest):
|
|||||||
18. Remove network
|
18. Remove network
|
||||||
Duration: 300 s.
|
Duration: 300 s.
|
||||||
|
|
||||||
Deployment tags: dpdk
|
Deployment tags: computes_with_dpdk
|
||||||
"""
|
"""
|
||||||
if not self.config.compute.dpdk_compute_fqdn:
|
if not self.config.compute.dpdk_compute_fqdn:
|
||||||
self.skipTest('There are no compute nodes with DPDK')
|
self.skipTest('There are no compute nodes with DPDK')
|
||||||
|
@ -56,7 +56,7 @@ class TestNeutron(neutronmanager.NeutronBaseTest):
|
|||||||
|
|
||||||
Duration: 300 s.
|
Duration: 300 s.
|
||||||
|
|
||||||
Deployment tags: neutron
|
Deployment tags: neutron, computes_without_dpdk
|
||||||
"""
|
"""
|
||||||
if not self.config.compute.compute_nodes:
|
if not self.config.compute.compute_nodes:
|
||||||
self.skipTest('There are no compute nodes')
|
self.skipTest('There are no compute nodes')
|
||||||
|
@ -304,7 +304,7 @@ class TestNovaNetwork(nmanager.NovaNetworkScenarioTest):
|
|||||||
5. Delete floating ip.
|
5. Delete floating ip.
|
||||||
6. Delete instance.
|
6. Delete instance.
|
||||||
Duration: 200 s.
|
Duration: 200 s.
|
||||||
Deployment tags: enable_without_ceph
|
Deployment tags: enable_without_ceph, computes_without_dpdk
|
||||||
Available since release: 2014.2-6.1
|
Available since release: 2014.2-6.1
|
||||||
"""
|
"""
|
||||||
self.check_image_exists()
|
self.check_image_exists()
|
||||||
|
@ -184,7 +184,9 @@ def _get_cluster_attrs(cluster_id, token=None):
|
|||||||
deployment_tags.add('sriov')
|
deployment_tags.add('sriov')
|
||||||
|
|
||||||
if dpdk_compute_ids:
|
if dpdk_compute_ids:
|
||||||
deployment_tags.add('dpdk')
|
deployment_tags.add('computes_with_dpdk')
|
||||||
|
if not dpdk_compute_ids or set(compute_ids) - set(dpdk_compute_ids):
|
||||||
|
deployment_tags.add('computes_without_dpdk')
|
||||||
|
|
||||||
if not enable_without_ceph:
|
if not enable_without_ceph:
|
||||||
deployment_tags.add('enable_without_ceph')
|
deployment_tags.add('enable_without_ceph')
|
||||||
|
@ -204,8 +204,13 @@ CLUSTERS = {
|
|||||||
'id': "1",
|
'id': "1",
|
||||||
'roles': "compute"
|
'roles': "compute"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"hostname": "node-2",
|
||||||
|
'id': "2",
|
||||||
|
'roles': "compute"
|
||||||
|
},
|
||||||
],
|
],
|
||||||
'node_interfaces': [
|
'node-1_interfaces': [
|
||||||
{
|
{
|
||||||
'interface_properties': {
|
'interface_properties': {
|
||||||
'dpdk': {
|
'dpdk': {
|
||||||
@ -213,7 +218,17 @@ CLUSTERS = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
},
|
||||||
|
],
|
||||||
|
'node-2_interfaces': [
|
||||||
|
{
|
||||||
|
'interface_properties': {
|
||||||
|
'dpdk': {
|
||||||
|
'available': 'false'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
},
|
||||||
],
|
],
|
||||||
'cluster_attributes': {
|
'cluster_attributes': {
|
||||||
'editable': {
|
'editable': {
|
||||||
|
@ -31,7 +31,7 @@ class TestDeplTagsGetter(base.BaseUnitTest):
|
|||||||
'deployment_tags': set(
|
'deployment_tags': set(
|
||||||
['ha', 'rhel', 'additional_components',
|
['ha', 'rhel', 'additional_components',
|
||||||
'murano', 'nova_network', 'public_on_all_nodes',
|
'murano', 'nova_network', 'public_on_all_nodes',
|
||||||
'enable_without_ceph']),
|
'enable_without_ceph', 'computes_without_dpdk']),
|
||||||
'release_version': '2015.2-1.0'
|
'release_version': '2015.2-1.0'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -57,7 +57,8 @@ class TestDeplTagsGetter(base.BaseUnitTest):
|
|||||||
'deployment_tags': set(
|
'deployment_tags': set(
|
||||||
['ha', 'rhel', 'additional_components',
|
['ha', 'rhel', 'additional_components',
|
||||||
'murano', 'nova_network', 'public_on_all_nodes',
|
'murano', 'nova_network', 'public_on_all_nodes',
|
||||||
'enable_without_ceph', 'sriov']),
|
'enable_without_ceph', 'sriov',
|
||||||
|
'computes_without_dpdk']),
|
||||||
'release_version': '2015.2-1.0'
|
'release_version': '2015.2-1.0'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -83,8 +84,9 @@ class TestDeplTagsGetter(base.BaseUnitTest):
|
|||||||
'cluster_id': 8,
|
'cluster_id': 8,
|
||||||
'attrs': {
|
'attrs': {
|
||||||
'deployment_tags': set(
|
'deployment_tags': set(
|
||||||
['dpdk', 'neutron', 'enable_without_ceph', 'ha',
|
['computes_with_dpdk', 'neutron', 'enable_without_ceph',
|
||||||
'public_on_all_nodes', 'rhel']),
|
'ha', 'public_on_all_nodes', 'rhel',
|
||||||
|
'computes_without_dpdk']),
|
||||||
'release_version': '2015.2-1.0'
|
'release_version': '2015.2-1.0'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -100,7 +102,9 @@ class TestDeplTagsGetter(base.BaseUnitTest):
|
|||||||
m.register_uri('GET', '/api/nodes?cluster_id=8',
|
m.register_uri('GET', '/api/nodes?cluster_id=8',
|
||||||
json=cluster['cluster_node'])
|
json=cluster['cluster_node'])
|
||||||
m.register_uri('GET', '/api/nodes/1/interfaces',
|
m.register_uri('GET', '/api/nodes/1/interfaces',
|
||||||
json=cluster['node_interfaces'])
|
json=cluster['node-1_interfaces'])
|
||||||
|
m.register_uri('GET', '/api/nodes/2/interfaces',
|
||||||
|
json=cluster['node-2_interfaces'])
|
||||||
res = mixins._get_cluster_attrs(expected['cluster_id'])
|
res = mixins._get_cluster_attrs(expected['cluster_id'])
|
||||||
|
|
||||||
self.assertEqual(res, expected['attrs'])
|
self.assertEqual(res, expected['attrs'])
|
||||||
|
Loading…
Reference in New Issue
Block a user