]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: assign prometheus ports during selftest 21307/head
authorJohn Spray <john.spray@redhat.com>
Mon, 22 Jan 2018 16:04:27 +0000 (16:04 +0000)
committerNathan Cutler <ncutler@suse.com>
Mon, 9 Apr 2018 14:41:34 +0000 (16:41 +0200)
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>
(cherry picked from commit e2c68d5e2582fe610098bc6ea4f0b44ad1df28fd)

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):