Fix return of rancher IP address 83/30583/2
authorGary Wu <gary.i.wu@huawei.com>
Wed, 7 Feb 2018 05:21:31 +0000 (21:21 -0800)
committerGary Wu <gary.i.wu@huawei.com>
Wed, 7 Feb 2018 05:22:50 +0000 (21:22 -0800)
Change-Id: I4aa4711ffe1cdd10b69271ca305b95a2f6f406dd
Issue-ID: INT-278
Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
deployment/heat/onap-oom/onap-oom.yaml

index e54a7b0..42c12a7 100644 (file)
@@ -197,7 +197,7 @@ resources:
           params:
             __docker_proxy__: { get_param: docker_proxy }
             __apt_proxy__: { get_param: apt_proxy }
-            __rancher_ip_addr__: { get_attr: [rancher_vm, first_address] }
+            __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
             __k8s_ip_addr__: { get_attr: [k8s_floating_ip, floating_ip_address] }
             __openstack_tenant_id__: { get_param: openstack_tenant_id }
             __openstack_tenant_name__: { get_param: openstack_tenant_name }
@@ -227,7 +227,7 @@ resources:
 outputs:
   rancher_vm_ip:
     description: The IP address of the rancher instance
-    value: { get_attr: [rancher_vm, first_address] }
+    value: { get_attr: [rancher_floating_ip, floating_ip_address] }
 
   k8s_vm_ip:
     description: The IP address of the k8s instance