summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorTim Rozet <trozet@redhat.com>2017-08-08 14:29:56 -0400
committerFeng Pan <fpan@redhat.com>2017-08-14 19:31:25 +0000
commit7d9495aec0340d743bf0e59db5b7360bef013004 (patch)
tree281c5558950ba976354f80417c8fe66bcc6245c4 /lib
parentcf46710061125a4959c8997ee38ca8959c5d2634 (diff)
Fixes OpenDaylight version
The default version is now Carbon with the option of using nitrogen (master) for puppet-odl and opendaylight. JIRA: APEX-500 Change-Id: I44d02ec0db5fb8e6342e5ab6802a5a3f302b8511 Signed-off-by: Tim Rozet <trozet@redhat.com>
Diffstat (limited to 'lib')
-rwxr-xr-xlib/overcloud-deploy-functions.sh15
1 files changed, 5 insertions, 10 deletions
diff --git a/lib/overcloud-deploy-functions.sh b/lib/overcloud-deploy-functions.sh
index 0fe838d0..9c9ea188 100755
--- a/lib/overcloud-deploy-functions.sh
+++ b/lib/overcloud-deploy-functions.sh
@@ -281,7 +281,9 @@ EOI
case "${deploy_options_array['odl_version']}" in
carbon) odl_version=''
;;
- *) echo -e "${red}Invalid ODL version ${deploy_options_array['odl_version']}. Please use 'carbon'.${reset}"
+ nitrogen) odl_version='nitrogen'
+ ;;
+ *) echo -e "${red}Invalid ODL version ${deploy_options_array['odl_version']}. Please use 'carbon' or 'nitrogen'.${reset}"
exit 1
;;
esac
@@ -290,18 +292,11 @@ EOI
ssh -T ${SSH_OPTIONS[@]} "stack@$UNDERCLOUD" <<EOI
LIBGUESTFS_BACKEND=direct virt-customize --run-command "yum -y remove opendaylight" \
--run-command "yum -y install /root/${odl_version}/*" \
+ --run-command "rm -rf /etc/puppet/modules/opendaylight" \
+ --run-command "cd /etc/puppet/modules/ && tar xzf /root/puppet-opendaylight-master.tar.gz" \
-a overcloud-full.qcow2
EOI
fi
-
- # Overwrite puppet-opendaylight with carbon. By default we install boron branch.
- if [ "${deploy_options_array['odl_version']}" == 'carbon' ]; then
- ssh -T ${SSH_OPTIONS[@]} "stack@$UNDERCLOUD" <<EOI
- LIBGUESTFS_BACKEND=direct virt-customize --run-command "rm -rf /etc/puppet/modules/opendaylight" \
- --run-command "cd /etc/puppet/modules/ && tar xzf /root/puppet-opendaylight-carbon.tar.gz" \
- -a overcloud-full.qcow2
-EOI
- fi
fi
# Override ODL for fdio scenarios