X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=kubernetes%2Fconsul%2Fresources%2Fconfig%2Fconsul-agent-config%2Fscripts%2Fsdnc-cluster-health.sh;h=ed7aefc0cf5307416f135452aec83b5462e230e0;hb=8c26e59d30a185186cf33988a0dbb859409f73eb;hp=d328d04241690f91e552844520f0c024e1e2367d;hpb=b350b9446f7ca93686b6405b13b35c49e1035698;p=oom.git diff --git a/kubernetes/consul/resources/config/consul-agent-config/scripts/sdnc-cluster-health.sh b/kubernetes/consul/resources/config/consul-agent-config/scripts/sdnc-cluster-health.sh old mode 100644 new mode 100755 index d328d04241..ed7aefc0cf --- a/kubernetes/consul/resources/config/consul-agent-config/scripts/sdnc-cluster-health.sh +++ b/kubernetes/consul/resources/config/consul-agent-config/scripts/sdnc-cluster-health.sh @@ -1,4 +1,5 @@ #!/bin/sh +{{/* # Copyright © 2018 Amdocs # Modifications Copyright © 2018 AT&T @@ -14,6 +15,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. +*/}} # query ODL cluster state USERNAME="{{.Values.odl.jolokia.username}}" @@ -28,7 +30,7 @@ fi for instance in $(seq $count);do shard=member-$(( $siteId*$count + $instance ))-shard-default-config mbean=Category=Shards,name=$shard,type=DistributedConfigDatastore - url=http://{{.Release.Name}}-sdnc-$(( $instance-1 )).sdnc-cluster.{{.Release.Namespace}}:8181/jolokia/read/org.opendaylight.controller:$mbean + url=http://{{ include "common.release" . }}-sdnc-$(( $instance-1 )).sdnc-cluster.{{.Release.Namespace}}:8181/jolokia/read/org.opendaylight.controller:$mbean response=$( curl -s -u $USERNAME:$PASSWORD $url ) rc=$?