]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
node-proxy: variabilize the observer_url
authorGuillaume Abrioux <gabrioux@ibm.com>
Tue, 20 Jun 2023 11:33:14 +0000 (13:33 +0200)
committerGuillaume Abrioux <gabrioux@ibm.com>
Thu, 25 Jan 2024 14:52:48 +0000 (14:52 +0000)
create a new parameter in DEFAULT_CONFIG for the reporter agent.
The default value, (especially the tcp port) still has to be defined though.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit ecbbcb432f1b4d08f4e2d011d821a30e102dd89a)

src/cephadm/node-proxy/server.py

index 8d408aa7762badd8021077fb87657f472e1edc87..5f50ef3a03ac41c80f5466747fbc8f6eb01998e8 100644 (file)
@@ -17,6 +17,7 @@ DEFAULT_CONFIG = {
     'reporter': {
         'check_interval': 5,
         'push_data_max_retries': 30,
+        'endpoint': 'http://127.0.0.1:8150',
     },
     'system': {
         'refresh_interval': 5
@@ -206,7 +207,7 @@ def main() -> None:
                          password=password,
                          system_endpoint='/Systems/System.Embedded.1',
                          config=config)
-    reporter_agent = Reporter(system, "http://127.0.0.1:8000")
+    reporter_agent = Reporter(system, config.__dict__['reporter']['endpoint'])
     cherrypy.config.update({
         'node_proxy': config,
         'server.socket_port': config.__dict__['server']['port']