Set OpenDaylight REST port in openrc 29/59929/1
authorMichael Polenchuk <mpolenchuk@mirantis.com>
Wed, 18 Jul 2018 10:49:22 +0000 (14:49 +0400)
committerMichael Polenchuk <mpolenchuk@mirantis.com>
Wed, 18 Jul 2018 10:52:12 +0000 (14:52 +0400)
JIRA: FUEL-380
Change-Id: I16039f6a0397f761e4cfa58be4cd45fd0beab925
Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
mcp/reclass/classes/cluster/mcp-odl-ha/opendaylight/control.yml.j2
mcp/reclass/classes/cluster/mcp-odl-ha/openstack/control.yml
mcp/reclass/classes/cluster/mcp-odl-ha/openstack/init.yml.j2
mcp/reclass/classes/cluster/mcp-odl-ha/openstack/proxy.yml
mcp/reclass/classes/cluster/mcp-odl-noha/opendaylight/control.yml
mcp/reclass/classes/cluster/mcp-odl-noha/openstack/control.yml
mcp/reclass/classes/cluster/mcp-odl-noha/openstack/init.yml

index a6027e0..685cd9e 100644 (file)
@@ -18,7 +18,7 @@ parameters:
   opendaylight:
     server:
       odl_bind_ip: ${_param:single_address}
-      odl_rest_port: 8282
+      odl_rest_port: ${_param:opendaylight_rest_port}
       java_min_mem: 6g
       java_max_mem: 6g
       router_enabled: true
index 547b61e..7b03f29 100644 (file)
@@ -19,3 +19,5 @@ parameters:
         sdn_controller_ip: ${_param:cluster_public_host}
         sdn_username: admin  # Hardcoded to default ODL values for now
         sdn_password: admin
+        sdn_controller_webport: ${_param:opendaylight_rest_port}
+        sdn_controller_restconfport: ${_param:opendaylight_rest_port}
index 43779e9..6301e73 100644 (file)
@@ -12,6 +12,7 @@ parameters:
   _param:
     # opendaylight options
     opendaylight_service_host: ${_param:opendaylight_server_node01_single_address}
+    opendaylight_rest_port: 8282
 
     neutron_tenant_network_types: "flat,vxlan"
 {%- if conf.MCP_VCP %}
index f0d4ecc..ef67f3b 100644 (file)
@@ -21,8 +21,8 @@ parameters:
           check: false
           proxy:
             host: ${_param:opendaylight_service_host}
-            port: 8282
+            port: ${_param:opendaylight_rest_port}
             protocol: http
           host:
             name: ${_param:nginx_proxy_openstack_api_host}
-            port: 8282
+            port: ${_param:opendaylight_rest_port}
index 0b513f0..536ebfa 100644 (file)
@@ -18,7 +18,7 @@ parameters:
   opendaylight:
     server:
       odl_bind_ip: ${_param:single_address}
-      odl_rest_port: 8282
+      odl_rest_port: ${_param:opendaylight_rest_port}
       java_min_mem: 3g
       java_max_mem: 3g
       router_enabled: true
index f5ed2dc..c9c683f 100644 (file)
@@ -19,11 +19,11 @@ parameters:
           service_name: opendaylight
           binds:
             - address: ${_param:cluster_vip_address}
-              port: 8282
+              port: ${_param:opendaylight_rest_port}
           servers:
             - name: odl01
               host: ${_param:opendaylight_service_host}
-              port: 8282
+              port: ${_param:opendaylight_rest_port}
               params: ${_param:haproxy_check}
   keystone:
     server:
@@ -32,3 +32,5 @@ parameters:
         sdn_controller_ip: ${_param:cluster_vip_address}
         sdn_username: admin  # Hardcoded to default ODL values for now
         sdn_password: admin
+        sdn_controller_webport: ${_param:opendaylight_rest_port}
+        sdn_controller_restconfport: ${_param:opendaylight_rest_port}
index 91e0026..a3918b2 100644 (file)
@@ -12,6 +12,7 @@ parameters:
   _param:
     neutron_tenant_network_types: "flat,vxlan"
     opendaylight_router: odl-router_v2
+    opendaylight_rest_port: 8282
   linux:
     network:
       host: