From: John Spray Date: Mon, 22 Jan 2018 16:04:27 +0000 (+0000) Subject: qa: assign prometheus ports during selftest X-Git-Tag: v13.0.2~445^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e2c68d5e2582fe610098bc6ea4f0b44ad1df28fd;p=ceph.git 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 --- diff --git a/qa/tasks/mgr/test_module_selftest.py b/qa/tasks/mgr/test_module_selftest.py index 5bb4602aefc9..b7fb57061ae1 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):