summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorzshi <zshi@redhat.com>2016-10-13 17:33:25 +0800
committerzshi <zshi@redhat.com>2016-10-13 17:38:25 +0800
commit7af4fecfe2d8e2d118498ab1d36665c2ca99e727 (patch)
tree4df5148b0bef89da49f72f6e5feb5c388fdf3488 /build
parent4e2424a3802fc541a9b21ad53981b4725ed70320 (diff)
Fix openstack-congress package name
JIRA: APEX-287 openstack-congress rpm-spec use '%dist' macro as name suffix, '%dist' macro is different over various distros which may cause name mismatch when uploading package to overcloud images; fix it by using '%dist' macro in package name to avoid possible mismatch. Change-Id: Iaa7068d7da3e5fe3728baf2fa3c67eb45355c74a Signed-off-by: zshi <zshi@redhat.com>
Diffstat (limited to 'build')
-rwxr-xr-xbuild/overcloud-full.sh4
-rw-r--r--build/variables.sh1
2 files changed, 3 insertions, 2 deletions
diff --git a/build/overcloud-full.sh b/build/overcloud-full.sh
index b148542f..5ed2bdb4 100755
--- a/build/overcloud-full.sh
+++ b/build/overcloud-full.sh
@@ -125,8 +125,8 @@ LIBGUESTFS_BACKEND=direct virt-customize \
--run-command "yum remove -y qemu-system-x86" \
--upload ../os-net-config.tar.gz:/usr/lib/python2.7/site-packages \
--run-command "cd /usr/lib/python2.7/site-packages/ && rm -rf os_net_config && tar xzf os-net-config.tar.gz" \
- --upload ../noarch/openstack-congress-2016.1-1.el7.centos.noarch.rpm:/root/ \
- --install /root/openstack-congress-2016.1-1.el7.centos.noarch.rpm \
+ --upload ../noarch/$openstack_congress_pkg:/root/ \
+ --install /root/$openstack_congress_pkg \
--install "python2-congressclient" \
--upload puppet-congress.tar.gz:/etc/puppet/modules/ \
--run-command "cd /etc/puppet/modules/ && tar xzf puppet-congress.tar.gz" \
diff --git a/build/variables.sh b/build/variables.sh
index ce9eb034..b26e7406 100644
--- a/build/variables.sh
+++ b/build/variables.sh
@@ -14,6 +14,7 @@ onos_release_file=onos-1.6.0-rc2.tar.gz
onos_jdk_uri=http://artifacts.opnfv.org/apex/colorado
onos_ovs_uri=http://artifacts.opnfv.org/apex/colorado
onos_ovs_pkg=package_ovs_rpm3.tar.gz
+openstack_congress_pkg="openstack-congress-2016.1-1$(rpm -E '%dist').noarch.rpm"
doctor_driver=https://raw.githubusercontent.com/openstack/congress/master/congress/datasources/doctor_driver.py
if [ -z ${GS_PATHNAME+x} ]; then
GS_PATHNAME=/colorado