Fix path of file that fill fs in mysql alarm test
Path was changed for compatibility with MOS8, because there is no such dir ("/var/lib/mysql/test/) in MOS8. Change-Id: I4870ba4a135e7c65e947312ba14749de8ed49314 Closes-Bug: #1636261
This commit is contained in:
parent
ecbce1dcfc
commit
7e7e6e5bfe
@ -461,8 +461,8 @@ class ToolchainApi(object):
|
||||
with self.fuel_web.get_ssh_for_nailgun_node(
|
||||
controller_nodes[0]) as remote:
|
||||
self.remote_ops.fill_up_filesystem(
|
||||
remote, "/dev/mapper/mysql-root", percent,
|
||||
"/var/lib/mysql/test/bigfile")
|
||||
remote, self.settings.mysql_fs, percent,
|
||||
self.settings.mysql_fs_alarm_test_file)
|
||||
|
||||
self.LMA_INFRASTRUCTURE_ALERTING.wait_service_state_on_nagios(
|
||||
nagios_driver, {services[0]: "OK"})
|
||||
@ -475,8 +475,8 @@ class ToolchainApi(object):
|
||||
with self.fuel_web.get_ssh_for_nailgun_node(
|
||||
controller_nodes[1]) as remote:
|
||||
self.remote_ops.fill_up_filesystem(
|
||||
remote, "/dev/mapper/mysql-root", percent,
|
||||
"/var/lib/mysql/test/bigfile")
|
||||
remote, self.settings.mysql_fs, percent,
|
||||
self.settings.mysql_fs_alarm_test_file)
|
||||
|
||||
for node in controller_nodes:
|
||||
self.LMA_INFRASTRUCTURE_ALERTING.wait_service_state_on_nagios(
|
||||
@ -492,8 +492,8 @@ class ToolchainApi(object):
|
||||
|
||||
for node in controller_nodes:
|
||||
with self.fuel_web.get_ssh_for_nailgun_node(node) as remote:
|
||||
self.remote_ops.clean_filesystem(remote,
|
||||
"/var/lib/mysql/test/bigfile")
|
||||
self.remote_ops.clean_filesystem(
|
||||
remote, self.settings.mysql_fs_alarm_test_file)
|
||||
|
||||
for node in controller_nodes:
|
||||
self.LMA_INFRASTRUCTURE_ALERTING.wait_service_state_on_nagios(
|
||||
|
@ -134,8 +134,8 @@ class TestToolchainAlarms(api.ToolchainApi):
|
||||
controller = self.fuel_web.get_nailgun_cluster_nodes_by_roles(
|
||||
self.helpers.cluster_id, ["controller"])[0]
|
||||
self._check_filesystem_alarms(
|
||||
controller, "/dev/mapper/mysql-root", "mysql-fs",
|
||||
"/var/lib/mysql/test/bigfile", "mysql-nodes")
|
||||
controller, self.settings.mysql_fs, "mysql-fs",
|
||||
self.settings.mysql_fs_alarm_test_file, "mysql-nodes")
|
||||
|
||||
@test(depends_on_groups=["deploy_toolchain"],
|
||||
groups=["check_rabbitmq_disk_alarm", "toolchain", "alarms"])
|
||||
|
@ -58,3 +58,6 @@ full_ha_nodes = {
|
||||
'slave-08': stacklight_roles,
|
||||
'slave-09': stacklight_roles
|
||||
}
|
||||
|
||||
mysql_fs = "/dev/mapper/mysql-root"
|
||||
mysql_fs_alarm_test_file = "/var/lib/mysql/bigfile"
|
||||
|
Loading…
Reference in New Issue
Block a user