summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAditya Prakash Vaja <wolverine.av@gmail.com>2018-10-08 21:54:12 +0530
committerAditya Prakash Vaja <wolverine.av@gmail.com>2018-10-09 19:01:18 +0530
commite3ea6b94a5fa36c6ec0ceb6e5aa2255df5438fe5 (patch)
tree4019db1e0379393252b02a754221a3bc4a8ccbd6
parent9dc1f823f4c2be41633e421e2aa925b8e08cac42 (diff)
add python-bsn-neutronclient to tarball
- this is a new package to be installed on undercloud to provide various neutron CLI commands for our plugin - primarily force-bcf-sync and bcf-sync-status - also adds neutron-bsn-lldp and updated customize and startup scripts Change-Id: I4cfb2f7c2bd7044d8bbd36f5c558b7a70cecc5dc
Notes
Notes (review): Code-Review+2: Sarath Kumar Sankaran Kutty <sarath.kutty@bigswitch.com> Workflow+1: Sarath Kumar Sankaran Kutty <sarath.kutty@bigswitch.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Tue, 09 Oct 2018 22:12:15 +0000 Reviewed-on: https://review.openstack.org/608724 Project: openstack/networking-bigswitch Branch: refs/heads/master
-rw-r--r--build_packages/openstack_networking_bigswitch_tagged.build28
1 files changed, 22 insertions, 6 deletions
diff --git a/build_packages/openstack_networking_bigswitch_tagged.build b/build_packages/openstack_networking_bigswitch_tagged.build
index bc1385e..e762970 100644
--- a/build_packages/openstack_networking_bigswitch_tagged.build
+++ b/build_packages/openstack_networking_bigswitch_tagged.build
@@ -117,24 +117,40 @@ OUTDIR=$(readlink -m "pkg/$BIGTOP_PARTIAL_PATH")
117rm -rf "$OUTDIR" && mkdir -p "$OUTDIR" 117rm -rf "$OUTDIR" && mkdir -p "$OUTDIR"
118cp $BUILDDIR/RPMS/noarch/*.rpm "$OUTDIR" 118cp $BUILDDIR/RPMS/noarch/*.rpm "$OUTDIR"
119 119
120# helper method to get version number
121get_version () {
122 RPM=$1;
123 B=${RPM##*/};
124 B=${B%-*};
125 V=${B##*-};
126}
127
120# build a single tar with all plugin RPM files and yamls 128# build a single tar with all plugin RPM files and yamls
121DATE=`date +%Y-%m-%d-%H-%M` 129DATE=`date +%Y-%m-%d-%H-%M`
122ALL_RPM_YAML_TAR_DIR="$RHOSP_REL_NAME-$OSP_REL_NAME-PLUGINS-$DATE" 130ALL_RPM_YAML_TAR_DIR="$RHOSP_REL_NAME-$OSP_REL_NAME-PLUGINS-$DATE"
123ALL_RPM_YAML_TAR_GZ="$ALL_RPM_YAML_TAR_DIR.tar.gz" 131ALL_RPM_YAML_TAR_GZ="$ALL_RPM_YAML_TAR_DIR.tar.gz"
124# 1. get yamls and customize scripts from BOSI 132# 1. get yamls and customize scripts from BOSI
125mkdir bosi 133mkdir bosi
126mkdir tarball
127rsync -e 'ssh -o "StrictHostKeyChecking no"' -uva bigtop:public_html/bosi/4.0.0/latest/* ./bosi 134rsync -e 'ssh -o "StrictHostKeyChecking no"' -uva bigtop:public_html/bosi/4.0.0/latest/* ./bosi
128mv ./bosi/rhosp_resources/$GIT_BRANCH/yamls ./$ALL_RPM_YAML_TAR_DIR 135mv ./bosi/rhosp_resources/$GIT_BRANCH/yamls ./$ALL_RPM_YAML_TAR_DIR
129mv ./bosi/rhosp_resources/$GIT_BRANCH/ivs/* ./$ALL_RPM_YAML_TAR_DIR 136mv ./bosi/rhosp_resources/$GIT_BRANCH/ivs/* ./$ALL_RPM_YAML_TAR_DIR
130 137
131# 2. get horizon rpm from bigtop 138# 2. get neutron-bsn-lldp *.noarch.rpm from bigtop
132rsync -e 'ssh -o "StrictHostKeyChecking no"' -uva bigtop:public_html/horizon-bsn/centos7-x86_64/$GIT_BRANCH/latest/*.noarch.rpm ./tarball 139rsync -e 'ssh -o "StrictHostKeyChecking no"' -uva bigtop:public_html/neutron-bsn-lldp/centos7-x86_64/origin/master/latest/*.noarch.rpm ./$ALL_RPM_YAML_TAR_DIR
140LLDP_PKG="`ls ./$ALL_RPM_YAML_TAR_DIR/neutron-bsn-lldp*`"
141get_version $LLDP_PKG
142LLDP_VERSION=$V
143echo "neutron-bsn-lldp version is" $LLDP_VERSION
144
145# 3. update startup.sh and customize.sh with neutron-bsn-lldp pkg version
146sed -i -e "s/\${lldp_version}/$LLDP_VERSION/" ./$ALL_RPM_YAML_TAR_DIR/customize.sh
147sed -i -e "s/\${lldp_version}/$LLDP_VERSION/" ./$ALL_RPM_YAML_TAR_DIR/startup.sh
148sed -i -e "s/\${lldp_version}/$LLDP_VERSION/" ./$ALL_RPM_YAML_TAR_DIR/README
133 149
134# 3. get all neutron plugin *.noarch.rpms 150# 4. get python-bsn-neutronclient*.noarch.rpm from bigtop
135cp $BUILDDIR/RPMS/noarch/*.rpm ./$ALL_RPM_YAML_TAR_DIR 151rsync -e 'ssh -o "StrictHostKeyChecking no"' -uva bigtop:public_html/python-bsn-neutronclient/centos7-x86_64/origin/stable/queens/latest/*.noarch.rpm ./$ALL_RPM_YAML_TAR_DIR
136 152
137# 4. build a tarball and put it at $OUTDIR 153# 5. build a tarball and put it at $OUTDIR
138tar -zcvf $OUTDIR/$ALL_RPM_YAML_TAR_GZ $ALL_RPM_YAML_TAR_DIR 154tar -zcvf $OUTDIR/$ALL_RPM_YAML_TAR_GZ $ALL_RPM_YAML_TAR_DIR
139cp dist/*.tar.gz "$OUTDIR" 155cp dist/*.tar.gz "$OUTDIR"
140git log > "$OUTDIR/gitlog.txt" 156git log > "$OUTDIR/gitlog.txt"