]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: assign prometheus ports during selftest 20047/head
authorJohn Spray <john.spray@redhat.com>
Mon, 22 Jan 2018 16:04:27 +0000 (16:04 +0000)
committerJohn Spray <john.spray@redhat.com>
Tue, 23 Jan 2018 10:23:39 +0000 (10:23 +0000)
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 <john.spray@redhat.com>
qa/tasks/mgr/test_module_selftest.py

index 5bb4602aefc9ad7e510753b88990d848cfe52638..b7fb57061ae11440eefb092be1e438fc73c6881d 100644 (file)
@@ -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):