From e2c68d5e2582fe610098bc6ea4f0b44ad1df28fd Mon Sep 17 00:00:00 2001 From: John Spray Date: Mon, 22 Jan 2018 16:04:27 +0000 Subject: [PATCH] qa: assign prometheus ports during selftest This was throwing IOError("Port 9283 not free on '::'",) when trying to serve, since merging https://github.com/ceph/ceph/pull/19744 It's because the standbys (on the same node as the active) are now trying to listen too. Fixes: https://tracker.ceph.com/issues/22755 Signed-off-by: John Spray --- qa/tasks/mgr/test_module_selftest.py | 1 + 1 file changed, 1 insertion(+) diff --git a/qa/tasks/mgr/test_module_selftest.py b/qa/tasks/mgr/test_module_selftest.py index 5bb4602aefc..b7fb57061ae 100644 --- a/qa/tasks/mgr/test_module_selftest.py +++ b/qa/tasks/mgr/test_module_selftest.py @@ -31,6 +31,7 @@ class TestModuleSelftest(MgrTestCase): self._selftest_plugin("zabbix") def test_prometheus(self): + self._assign_ports("prometheus", "server_port", min_port=8100) self._selftest_plugin("prometheus") def test_influx(self): -- 2.39.5