From cd033837cedf46950b1a096d20cd9e296be8767b Mon Sep 17 00:00:00 2001 From: Bogdan Dobrelya Date: Tue, 28 Jul 2015 14:49:50 +0200 Subject: [PATCH] Disconnect uniq inputs for g-api/g-registry Do not share the log file, pipeline and bind port between API and registry services Signed-off-by: Bogdan Dobrelya --- example-puppet.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/example-puppet.py b/example-puppet.py index 0a78f787..a934b3ee 100644 --- a/example-puppet.py +++ b/example-puppet.py @@ -408,6 +408,17 @@ def deploy(): glance_registry_puppet = vr.create('glance_registry_puppet', 'resources/glance_registry_puppet', {})[0] signals.connect(node1, glance_registry_puppet) signals.connect(glance_api_puppet, glance_registry_puppet) + # API and registry should not listen same ports + # should not use the same log destination and a pipeline, + # so disconnect them and restore the defaults + signals.disconnect_receiver_by_input(glance_registry_puppet, 'bind_port') + signals.disconnect_receiver_by_input(glance_registry_puppet, 'log_file') + signals.disconnect_receiver_by_input(glance_registry_puppet, 'pipeline') + glance_registry_puppet.update({ + 'bind_port': 9191, + 'log_file': '/var/log/glance/registry.log', + 'pipeline': 'keystone', + }) has_errors = False for r in locals().values():