Prometheus client
Initial prometheus client
Change-Id: I8c02be6fe7e58c2f37ac19547fd7a795896af4bc
Reviewed-on: https://review.gerrithub.io/368732
Reviewed-by: Tatyanka Leontovich <tleontovich@mirantis.com>
Tested-by: Tatyanka Leontovich <tleontovich@mirantis.com>
diff --git a/tcp_tests/fixtures/stacklight_fixtures.py b/tcp_tests/fixtures/stacklight_fixtures.py
index 82b7c88..6d7d2e9 100644
--- a/tcp_tests/fixtures/stacklight_fixtures.py
+++ b/tcp_tests/fixtures/stacklight_fixtures.py
@@ -12,14 +12,11 @@
# License for the specific language governing permissions and limitations
# under the License.
-import os
import pytest
-import yaml
from tcp_tests import logger
from tcp_tests.helpers import ext
-from tcp_tests import settings
from tcp_tests.managers import sl_manager
from tcp_tests.helpers import utils
@@ -70,6 +67,13 @@
# installed TCP API endpoint
pass
+ # Workaround for keepalived hang issue after env revert from snapshot
+ # see https://mirantis.jira.com/browse/PROD-12038
+ LOG.warning('Restarting keepalived service on controllers...')
+ sl_actions._salt.local(tgt='ctl*', fun='cmd.run',
+ args='systemctl restart keepalived.service')
+ sl_actions._salt.local(tgt='mon*', fun='cmd.run',
+ args='systemctl restart keepalived.service')
return sl_actions
@@ -106,5 +110,11 @@
# 3. config.tcp.* options contain access credentials to the already
# installed TCP API endpoint
pass
-
+ # Workaround for keepalived hang issue after env revert from snapshot
+ # see https://mirantis.jira.com/browse/PROD-12038
+ LOG.warning('Restarting keepalived service on controllers...')
+ sl_actions._salt.local(tgt='ctl*', fun='cmd.run',
+ args='systemctl restart keepalived.service')
+ sl_actions._salt.local(tgt='mon*', fun='cmd.run',
+ args='systemctl restart keepalived.service')
return sl_actions