-
Notifications
You must be signed in to change notification settings - Fork 376
T7528: only stop service if previously deployed #4547
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: current
Are you sure you want to change the base?
Conversation
👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works as expected
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Smoketest fail:
DEBUG - Running Testcase: /usr/libexec/vyos/tests/smoke/cli/test_service_monitoring_prometheus.py
DEBUG - test_01_node_exporter (__main__.TestMonitoringPrometheus.test_01_node_exporter) ... FAIL
DEBUG - test_02_frr_exporter (__main__.TestMonitoringPrometheus.test_02_frr_exporter) ... FAIL
DEBUG - test_03_blackbox_exporter (__main__.TestMonitoringPrometheus.test_03_blackbox_exporter) ... FAIL
DEBUG - test_04_blackbox_exporter_with_config (__main__.TestMonitoringPrometheus.test_04_blackbox_exporter_with_config) ... FAIL
DEBUG -
DEBUG - ======================================================================
DEBUG - FAIL: test_01_node_exporter (__main__.TestMonitoringPrometheus.test_01_node_exporter)
DEBUG - ----------------------------------------------------------------------
DEBUG - Traceback (most recent call last):
DEBUG - File "/usr/libexec/vyos/tests/smoke/cli/test_service_monitoring_prometheus.py", line 54, in tearDown
DEBUG - self.assertFalse(process_named_running(NODE_EXPORTER_PROCESS_NAME))
DEBUG - AssertionError: 205301 is not false
DEBUG -
DEBUG - ======================================================================
DEBUG - FAIL: test_02_frr_exporter (__main__.TestMonitoringPrometheus.test_02_frr_exporter)
DEBUG - ----------------------------------------------------------------------
DEBUG - Traceback (most recent call last):
DEBUG - File "/usr/libexec/vyos/tests/smoke/cli/test_service_monitoring_prometheus.py", line 54, in tearDown
DEBUG - self.assertFalse(process_named_running(NODE_EXPORTER_PROCESS_NAME))
DEBUG - AssertionError: 205301 is not false
DEBUG -
DEBUG - ======================================================================
DEBUG - FAIL: test_03_blackbox_exporter (__main__.TestMonitoringPrometheus.test_03_blackbox_exporter)
DEBUG - ----------------------------------------------------------------------
DEBUG - Traceback (most recent call last):
DEBUG - File "/usr/libexec/vyos/tests/smoke/cli/test_service_monitoring_prometheus.py", line 54, in tearDown
DEBUG - self.assertFalse(process_named_running(NODE_EXPORTER_PROCESS_NAME))
DEBUG - AssertionError: 205301 is not false
DEBUG -
DEBUG - ======================================================================
DEBUG - FAIL: test_04_blackbox_exporter_with_config (__main__.TestMonitoringPrometheus.test_04_blackbox_exporter_with_config)
DEBUG - ----------------------------------------------------------------------
DEBUG - Traceback (most recent call last):
DEBUG - File "/usr/libexec/vyos/tests/smoke/cli/test_service_monitoring_prometheus.py", line 54, in tearDown
DEBUG - self.assertFalse(process_named_running(NODE_EXPORTER_PROCESS_NAME))
DEBUG - AssertionError: 205301 is not false
DEBUG -
DEBUG - ----------------------------------------------------------------------
DEBUG - Ran 4 tests in 17.966s
DEBUG -
DEBUG - FAILED (failures=4)
CI integration ❌ failed! Details
|
|
Smoketest still fail
|
@@ -115,16 +115,19 @@ def generate(monitoring): | |||
# Delete systemd files | |||
if os.path.isfile(node_exporter_service_file): | |||
os.unlink(node_exporter_service_file) | |||
monitoring.update({'node_exporter_stop_required': {}}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The update dictionary should be in the get_config
Change summary
Apply tries to stop services that weren't configured in the first place. Adding check to only try to stop services which were installed.
Types of changes
Related Task(s)
Related PR(s)
How to test / Smoketest result
Verify logs not trying to stop in-existing vrr/blackbox exporter services
Checklist: