Commit bff81f11 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_crm: Don't append monitoring suffix, we have categories for this.

parent 358ee9c9
......@@ -11,8 +11,8 @@ if project.Project_isSupportRequestCreationClosed():
reference = context.getReference()
compute_node_title = context.getTitle()
node_ticket_title = "[MONITORING] Lost contact with compute_node %s" % reference
instance_ticket_title = "[MONITORING] Compute Node %s has a stalled instance process" % reference
node_ticket_title = "Lost contact with compute_node %s" % reference
instance_ticket_title = "Compute Node %s has a stalled instance process" % reference
ticket_title = node_ticket_title
description = ""
......@@ -39,7 +39,7 @@ else:
if data_array:
should_notify = True
notification_message_reference = "slapos-crm-compute_node_check_modified_file.notification"
ticket_title = "[MONITORING] Compute Node %s has modified file" % reference
ticket_title = "Compute Node %s has modified file" % reference
issue_document_reference = data_array.getReference()
description = "The Compute Node %s (%s) has modified file: %s" % (compute_node_title, reference, issue_document_reference)
......
......@@ -1323,7 +1323,7 @@ class TestSlapOSCrmMonitoringCheckComputeNodeState(SlapOSTestCaseMixinWithAbort)
compute_node_support_request = compute_node.ComputeNode_checkState()
self.assertNotEqual(compute_node_support_request, None)
self.assertIn("[MONITORING] Lost contact with compute_node",
self.assertIn("Lost contact with compute_node",
compute_node_support_request.getTitle())
self.assertIn("has not contacted the server for more than 30 minutes",
compute_node_support_request.getDescription())
......@@ -1336,7 +1336,7 @@ class TestSlapOSCrmMonitoringCheckComputeNodeState(SlapOSTestCaseMixinWithAbort)
compute_node_support_request = compute_node.ComputeNode_checkState()
self.assertNotEqual(compute_node_support_request, None)
self.assertIn("[MONITORING] Lost contact with compute_node",
self.assertIn("Lost contact with compute_node",
compute_node_support_request.getTitle())
self.assertIn("has not contacted the server (No Contact Information)",
compute_node_support_request.getDescription())
......@@ -1377,7 +1377,7 @@ class TestSlapOSCrmMonitoringCheckComputeNodeState(SlapOSTestCaseMixinWithAbort)
compute_node.ComputeNode_checkState()
self.tic()
ticket_title = "[MONITORING] Lost contact with compute_node %s" % compute_node.getReference()
ticket_title = "Lost contact with compute_node %s" % compute_node.getReference()
ticket = self._getGeneratedSupportRequest(compute_node.getUid(), ticket_title)
self.assertNotEqual(ticket, None)
......@@ -1415,7 +1415,7 @@ class TestSlapOSCrmMonitoringCheckComputeNodeState(SlapOSTestCaseMixinWithAbort)
compute_node.ComputeNode_checkState()
self.tic()
ticket_title = "[MONITORING] Lost contact with compute_node %s" % compute_node.getReference()
ticket_title = "Lost contact with compute_node %s" % compute_node.getReference()
ticket = self._getGeneratedSupportRequest(compute_node.getUid(), ticket_title)
self.assertNotEqual(ticket, None)
event_list = ticket.getFollowUpRelatedValueList()
......@@ -1460,7 +1460,7 @@ class TestSlapOSCrmMonitoringCheckComputeNodeState(SlapOSTestCaseMixinWithAbort)
compute_node.ComputeNode_checkState()
self.tic()
ticket_title = "[MONITORING] Compute Node %s has a stalled instance process" % compute_node.getReference()
ticket_title = "Compute Node %s has a stalled instance process" % compute_node.getReference()
ticket = self._getGeneratedSupportRequest(compute_node.getUid(), ticket_title)
self.assertNotEqual(ticket, None)
event_list = ticket.getFollowUpRelatedValueList()
......@@ -1506,7 +1506,7 @@ class TestSlapOSCrmMonitoringCheckComputeNodeState(SlapOSTestCaseMixinWithAbort)
compute_node.ComputeNode_checkState()
self.tic()
ticket_title = "[MONITORING] Compute Node %s has a stalled instance process" % compute_node.getReference()
ticket_title = "Compute Node %s has a stalled instance process" % compute_node.getReference()
ticket = self._getGeneratedSupportRequest(compute_node.getUid(), ticket_title)
self.assertNotEqual(ticket, None)
event_list = ticket.getFollowUpRelatedValueList()
......@@ -1597,7 +1597,7 @@ class TestSlapOSCrmMonitoringCheckComputeNodeSoftwareInstallation(SlapOSTestCase
compute_node.ComputeNode_checkSoftwareInstallationState()
self.tic()
ticket_title = "[MONITORING] No information for %s on %s" % (
ticket_title = "No information for %s on %s" % (
self.start_requested_software_installation.getReference(),
compute_node.getReference()
)
......@@ -1645,7 +1645,7 @@ class TestSlapOSCrmMonitoringCheckComputeNodeSoftwareInstallation(SlapOSTestCase
compute_node.ComputeNode_checkSoftwareInstallationState()
self.tic()
ticket_title = "[MONITORING] %s is building for too long on %s" % (
ticket_title = "%s is building for too long on %s" % (
self.start_requested_software_installation.getReference(),
compute_node.getReference()
)
......@@ -1691,7 +1691,7 @@ class TestSlapOSCrmMonitoringCheckComputeNodeSoftwareInstallation(SlapOSTestCase
compute_node.ComputeNode_checkSoftwareInstallationState()
self.tic()
ticket_title = "[MONITORING] %s is building for too long on %s" % (
ticket_title = "%s is building for too long on %s" % (
self.start_requested_software_installation.getReference(),
compute_node.getReference()
)
......@@ -1719,7 +1719,7 @@ class TestSlapOSCrmMonitoringCheckComputeNodeSoftwareInstallation(SlapOSTestCase
compute_node.ComputeNode_checkSoftwareInstallationState()
self.tic()
ticket_title = "[MONITORING] %s is failing to build on %s" % (
ticket_title = "%s is failing to build on %s" % (
self.start_requested_software_installation.getReference(),
compute_node.getReference()
)
......@@ -1765,7 +1765,7 @@ class TestSlapOSCrmMonitoringCheckComputeNodeSoftwareInstallation(SlapOSTestCase
compute_node.ComputeNode_checkSoftwareInstallationState()
self.tic()
ticket_title = "[MONITORING] %s is failing to build on %s" % (
ticket_title = "%s is failing to build on %s" % (
self.start_requested_software_installation.getReference(),
compute_node.getReference()
)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment