-
Bug
-
Resolution: Done
-
Medium
-
Amsterdam Release
-
None
-
OOM Sprint 8
Issue: cannot bring up 2nd DCAE heat template from OOM because of the single hardcoded heat stack name
logs:
https://lists.onap.org/pipermail/onap-discuss/2018-February/008006.html
Phx4.dcaeg2.adetalhouet.oom.amsterdam.onap.org<http://adetalhouet.oom.amsterdam.onap.org>. =~ (^|[[:space:]])simpledemo.onap.org<http://simpledemo.onap.org>.($|[[:space:]]) ]] + echo 'Zone simpledemo.onap.org<http://simpledemo.onap.org>. doens'\''t exist, creating ...' Zone simpledemo.onap.org<http://simpledemo.onap.org>. doens't exist, creating ... ++ awk '{ print $2} ' ++ openstack zone create --email=oom at onap.org<mailto:email=oom at onap.org> '--description=DNS zone bridging DCAE and OOM' --type=PRIMARY simpledemo.onap.org<http://simpledemo.onap.org>. -f=yaml -c id Unable to create zone because another tenant owns a subzone of the zone Create recordSet for simpledemo.onap.org<http://simpledemo.onap.org>. + SIMPLEDEMO_ONAP_ORG_ZONE_ID=
Alexis and I were trying to triage why we could not bring up a 2nd instance of the heat template for DCAE from OOM. It turns out to be a hardcoded heat stack name
-STACK_NAME="dcae"
+STACK_NAME="$RANDOMSTRING-dcae"{{}}
20180218: also need to fix 2 more hardcoded strings
DCAE_CONTROLLER_IP=`openstack stack output show dcae dcae_floating_ip -c output_value -f yaml | awk '
RANDOM_STRING=`openstack stack output show dcae random_string -c output_value -f yaml | awk '{ print $2}
'`
was getting
+ EXISTING_STACKS=oom-obrien-am-20180206c + [[ oom-obrien-am-20180206c =~ (^|[[:space:]])dcae_20180208b($|[[:space:]]) ]] + openstack stack create -t /opt/heat/onap_dcae.yaml -e /opt/heat/onap_dcae.env dcae_20180208b +---------------------+------------------------------------------+ | Field | Value | +---------------------+------------------------------------------+ | id | af4709bc-502d-4035-acb4-2e7c08b7a180 | | stack_name | dcae_20180208b | | description | Heat template to install ONAP components | | creation_time | 2018-02-09T03:15:41Z | | updated_time | 2018-02-09T03:15:42Z | | stack_status | CREATE_IN_PROGRESS | | stack_status_reason | Stack CREATE started | +---------------------+------------------------------------------+ + sleep 10 ++ openstack stack output show dcae dcae_floating_ip -c output_value -f yaml ++ awk '{ print $2}' Stack dcae or output dcae_floating_ip not found. + DCAE_CONTROLLER_IP= + sed -i -e s/DCAE_CONTROLLER_IP_HERE//g /opt/robot/vm_properties.py ++ openstack stack output show dcae random_string -c output_value -f yaml ++ awk '{ print $2}' Stack dcae or output random_string not found. + RANDOM_STRING= + SIMPLEDEMO_ONAP_ORG_ZONE_NAME=.simpledemo.onap.org.