Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
176 commits
Select commit Hold shift + click to select a range
5b3e66a
Adding R3.0 branch to CI Closes-Bug: 1547034
vmahuli Feb 18, 2016
e1c4c14
Closes-Bug: #1546730
Feb 19, 2016
4fa2eb8
Changes for starting openstack service from supervisord
Feb 22, 2016
dc32928
Packaging crudini and adding it as a dependency of contrail-setup,
cijohnson Feb 22, 2016
6f47c2c
Fixes: scale: rabbitmq-server openfds has to be increased to 65535
Feb 23, 2016
7c786db
Closes-Bug: #1546755 Juniper logo in server-manager UI
skizhak Feb 23, 2016
4821ded
Add tgz for contrail-test-ci repo to create docker test image
vmahuli Feb 23, 2016
91f344f
Merge "Add tgz for contrail-test-ci repo to create docker test image"…
Feb 23, 2016
821ebed
Merge "Changes for starting openstack service from supervisord" into …
Feb 23, 2016
9f95103
Merge "Fixes: scale: rabbitmq-server openfds has to be increased to 6…
Feb 23, 2016
52de146
Packaging nova-docker with fix for attach port.
cijohnson Feb 23, 2016
ac8a174
Partial-Bug: #1524478, Server-manager UI ports are moving to http_por…
miriyalar Feb 23, 2016
5aa0889
Add libzookeeper pkgs for use in analytics
Feb 23, 2016
00a2da1
Merge "Packaging crudini and adding it as a dependency of contrail-se…
Feb 24, 2016
093bf1f
Merge "Packaging nova-docker with fix for attach port. Alos built the…
Feb 24, 2016
16fb912
Merge "Partial-Bug: #1524478, Server-manager UI ports are moving to h…
Feb 24, 2016
dcac388
Merge "Add libzookeeper pkgs for use in analytics" into R3.0
Feb 24, 2016
da0c9f3
Closes-Bug: #1549612 - Reintroducing explicit stopping of openstack s…
Feb 25, 2016
3824d1e
DPDK: fix support for vRouter and Agent restart
semihalf-berestovskyy-andriy Feb 25, 2016
2e6cb74
During upgrade the postinst of contrail-openstack back's up the
cijohnson Feb 25, 2016
1783d74
Merge "DPDK: fix support for vRouter and Agent restart" into R3.0
Feb 26, 2016
db2e53f
Merge "During upgrade the postinst of contrail-openstack back's up th…
Feb 26, 2016
ad2951c
Upgrading kafka to 0.9.0.1 for u1404, centos7 and rhel 7
anishmehta Feb 26, 2016
ae3fbbb
Merge "Upgrading kafka to 0.9.0.1 for u1404, centos7 and rhel 7" into…
Feb 27, 2016
a2aa81e
Fixing .deb and .rpm Requires to pick up new version of kafka during …
anishmehta Mar 2, 2016
4b4419b
liberty support on R3.0
Mar 10, 2016
97f6d88
Liberty storage support
Mar 10, 2016
eacdbd1
enable compilation and bundling of contrail-openstack-dashboard and c…
Feb 25, 2016
9835847
liberty support on R3.0 - packaging changes
Mar 15, 2016
5008273
Upgrading to new version of python-kafka.
anishmehta Mar 3, 2016
11c5eb3
There is a request to package newer version of openjdk-7-jre-headless…
Mar 14, 2016
561de8f
Merge "Upgrading to new version of python-kafka. Closes-Bug: 1549625"…
Mar 17, 2016
3743574
Add python-sseclient package to contrail_third_party_packages
Mar 18, 2016
0774afb
Merge "Add python-sseclient package to contrail_third_party_packages"…
Mar 21, 2016
bb9ed4e
Adding linux-headers packages to liberty .cfg file
Mar 22, 2016
9295299
SM-INSTALL: restart server-manager on upgrade case
Mar 15, 2016
c0498b0
Merge "SM-INSTALL: restart server-manager on upgrade case" into R3.0
Mar 23, 2016
993a483
Add support for packaging nova debs for Liberty
majkijin Mar 23, 2016
6ad366e
Adding HA dependent packages to liberty .cfg files
Mar 25, 2016
f023a5f
Closes-Bug: #1561766 - SM Setup script changes : extra option to prev…
Mar 25, 2016
57d8cb8
Merge "Closes-Bug: #1561766 - SM Setup script changes : extra option …
Mar 28, 2016
13a2859
Merge "Add support for packaging nova debs for Liberty" into R3.0
Mar 28, 2016
22fee8b
nova debs for liberty - changes in rules file
Mar 29, 2016
bc3e951
Adding nova-compute.upstart for liberty
Mar 30, 2016
a494ef2
Merge "Adding nova-compute.upstart for liberty" into R3.0
Mar 30, 2016
e25959c
Need to upgrade to cassandra 2.1.13 for fixing boot up issues on a ha…
Apr 6, 2016
f3a9173
DPDK: In bonding case, when doing supervisor-vrouter stop,
kirankn80 Apr 8, 2016
680add0
Add python-sseclient package in contrail_thirdparty_packages
Apr 12, 2016
897701e
This will add a new package in vrouter to support with 3.13.0-83-gene…
moghea Apr 15, 2016
d1eedf6
Explicitly bring up pkt interfaces to get vrouter working with latest…
npchandran Apr 16, 2016
fade6fb
Merge "DPDK: In bonding case, when doing supervisor-vrouter stop, bri…
Apr 18, 2016
9724988
Add docker image build script to R3.0 branch
vmahuli Apr 18, 2016
d2bf489
Merge "Add python-sseclient package in contrail_thirdparty_packages" …
Apr 22, 2016
9887a38
Tweaks to docker build script
Apr 26, 2016
e4925f6
Merge "Explicitly bring up pkt interfaces to get vrouter working with…
Apr 27, 2016
f77cc35
barbican support in liberty - packaging changes
Apr 25, 2016
0aefbfc
Bringing in latest python-kazoo PPA from
cijohnson Apr 29, 2016
b86e2a1
Merge "barbican support in liberty - packaging changes" into R3.0
Apr 30, 2016
542da5b
Merge "Bringing in latest python-kazoo PPA from https://launchpad.net…
May 2, 2016
ae349fa
Pick contrail-test after merging bhushana/contrail-test fork with jun…
vmahuli May 3, 2016
6b73e43
Closes-Bug: #1550592 - Added the contrail floating ip patch to horizon.
manojgn May 3, 2016
68360ac
- Set the MAC address of the bond interface explicitly in the vrouter…
srajag May 4, 2016
782bf20
Closes-Bug: #1578429 - SM Dependent paramiko package causes dependenc…
May 4, 2016
b2f61ef
Supporting docker pacakges for liberty in R3.0
moghea May 5, 2016
5caa74f
Merge "This will add a new package in vrouter to support with 3.13.0-…
May 5, 2016
b9d0eb0
Merge "Supporting docker pacakges for liberty in R3.0 Partial-Bug…
May 5, 2016
6a738bf
Packaging latest liberty PPA of nova-docker and python-docker-py pack…
cijohnson May 6, 2016
2187757
Merge "Closes-Bug: #1578429 - SM Dependent paramiko package causes de…
May 6, 2016
b7727fa
Merge "Packaging latest liberty PPA of nova-docker and python-docker-…
May 7, 2016
dd17341
Merge "- Set the MAC address of the bond interface explicitly in the …
May 8, 2016
7be2933
To support -85 kernel with default in R3.0 builds
moghea May 11, 2016
5e5f15c
liberty support in centos7/rhel7 platforms.
npchandran Apr 12, 2016
52ceb28
Mirror update for R3.0 Juno
vmahuli May 9, 2016
3a7eab9
Increasing startsecs and startretries of nova services to
cijohnson May 16, 2016
f49e108
Merge "liberty support in centos7/rhel7 platforms. and Extra packages…
May 17, 2016
30283ff
Merge "Mirror update for R3.0 Juno" into R3.0
May 18, 2016
4719cd6
remove dependency on librabbitmq in contrail-openstack-vrouter
npchandran May 18, 2016
d2842b8
Mirror update for Kilo
vmahuli May 17, 2016
7c2e961
Include heat-api-cfn for centos platforms and make contrail-openstack…
npchandran May 19, 2016
9d40589
Wait for slave interfaces to come up before vrouter-dpdk starts up,
srajag May 19, 2016
65a86df
Merge "remove dependency on librabbitmq in contrail-openstack-vrouter…
May 19, 2016
4e97c9d
Merge "Mirror update for Kilo" into R3.0
May 19, 2016
e584e90
Merge "Include heat-api-cfn for centos platforms and make contrail-op…
May 19, 2016
13e1300
Update to use new BFS server in cluster
May 20, 2016
43c60a9
Extra packages for Rhel7/Liberty
npchandran May 20, 2016
81dc31d
Merge "Increasing startsecs and startretries of nova services to make…
May 20, 2016
a822699
Merge "Update to use new BFS server in cluster" into R3.0
May 20, 2016
eb9bbbe
Merge "Extra packages for Rhel7/Liberty Partial-Bug: 1583886" into R3.0
May 21, 2016
75c5c42
Adding python-Fabric rpm with dependency for python-setuptools
npchandran May 21, 2016
a04db38
Use modprobe to insert vrouter module in centos/rhel platforms
npchandran Mar 30, 2016
d508134
Updating R3.0 liberty storage packages
vmahuli May 23, 2016
e969a8b
Updating R3.0 Kilo storage packages
vmahuli May 23, 2016
b694b32
Updating R3.0 juno storage packages
vmahuli May 23, 2016
64c8719
Merge "Updating R3.0 liberty storage packages" into R3.0
May 23, 2016
fbf9b5c
Merge "Updating R3.0 juno storage packages" into R3.0
May 23, 2016
1ea9b93
Merge "Adding python-Fabric rpm with dependency for python-setuptools…
May 23, 2016
2f51ae8
Extra packages for Liberty in Centos7/Rhel7
npchandran May 24, 2016
1a4cb74
Merge "Use modprobe to insert vrouter module in centos/rhel platforms…
May 25, 2016
f7c5a99
Mirror updates for liberty R3.0
vmahuli May 22, 2016
9bbb5e2
Add missing dpdk-depends-packages
vmahuli May 26, 2016
a03a750
Storage packaging fix
May 26, 2016
eb9d233
Merge "Storage packaging fix" into R3.0
May 27, 2016
6e4faf8
In Centos7, No openstack package depends on python-openstackclient. C…
npchandran Jun 2, 2016
46f58b3
packaging libsensors4 for liberty repo, so that contrail installation…
moghea Jun 3, 2016
815ce1f
Merge "packaging libsensors4 for liberty repo, so that contrail insta…
Jun 3, 2016
45d1f68
Clean-up docker images after building docker
vmahuli Jun 8, 2016
67673fd
Fix ifenslave package install on default 14.04.4 image for Kilo
vmahuli Jun 8, 2016
758cfb9
Merge "Clean-up docker images after building docker" into R3.0
Jun 10, 2016
8569d0c
contrail-heat missing in RHEL packages
npchandran Jun 10, 2016
2347ead
Closes-Bug #1587645. Updated the package that has the /usr/bin/ifmap-…
sanju-a Jun 4, 2016
3cff26a
Closes-Bug: #1592909
Jun 15, 2016
0766f82
Merge "Closes-Bug: #1592909 cassandra service file is missing creatio…
Jun 20, 2016
2e247eb
Fix ifenslave package install on default 14.04.4 image for liberty
vmahuli Jul 4, 2016
7f0c757
Remove temporary contrail-test usage in creating docker image
vmahuli Jul 4, 2016
dc76987
Merge "Fix ifenslave package install on default 14.04.4 image for lib…
Jul 5, 2016
8229c1f
Merge "Remove temporary contrail-test usage in creating docker image"…
Jul 5, 2016
6f87828
Handle missing repositories in sandbox
Jul 7, 2016
ab03a11
Merge "Closes-Bug #1587645. Updated the package that has the /usr/bin…
Aug 6, 2016
87aa61d
Ubuntu-14.04.04-liberty: missing packages
npchandran Aug 21, 2016
0c47d5c
Seperating out the cassandra and zookeeper packages from
cijohnson Jul 28, 2016
35e8de1
Adding python-memcache to contrail-openstack-config dependency
Aug 26, 2016
51bf2c1
Merge "Adding python-memcache to contrail-openstack-config dependency…
Aug 29, 2016
c815b02
Enabling contrail-database and disable cassandra service
cijohnson Aug 11, 2016
581fdb9
Adding python-psutil as dependency to contrail-nodemgr as it uses the…
npchandran Aug 5, 2016
05490d1
New dpdk-depends package for Kilo that contains qemu 2.3 (in order to…
srajag Sep 4, 2016
7472767
Merge "Adding python-psutil as dependency to contrail-nodemgr as it u…
Sep 14, 2016
2a8894b
Add missing cassandra package to liberty on ubuntu1404
Sep 15, 2016
f405719
R3.0 cache update - kilo
Sep 15, 2016
fc19eb9
R3.0 cache update - liberty
Sep 15, 2016
a4fab19
R3.0 cache update - juno
Sep 15, 2016
8b749bb
Closes-Bug: #1592728. Updated ifmap-server package for centos65/iceho…
sanju-a Sep 17, 2016
5e21748
R3.0 cache update - vcenter
Sep 16, 2016
da766e8
Updated ifmap-server package for redhat platform
npchandran Sep 18, 2016
dbcbb6e
Merge "R3.0 cache update - kilo" into R3.0
Sep 19, 2016
84ab7e3
Merge "R3.0 cache update - liberty" into R3.0
Sep 19, 2016
2c14b6a
Merge "R3.0 cache update - juno" into R3.0
Sep 19, 2016
09af18b
Merge "Add missing cassandra package to liberty on ubuntu1404" into R3.0
Sep 19, 2016
b5fed90
Merge "R3.0 cache update - vcenter" into R3.0
Sep 20, 2016
956f2c9
Merge "Updated ifmap-server package for redhat platform Closes-Bug: 1…
Sep 20, 2016
003960d
Merge "Closes-Bug: #1592728. Updated ifmap-server package for centos6…
Sep 20, 2016
d439be1
Adding python-memcache to contrail-openstack-config dependency of juno
Sep 23, 2016
3c9bd91
R3.0 cache update - kilo, fixing missing package_type
Sep 23, 2016
94ce131
Storage package update
Oct 5, 2016
f88c175
juno and kilo: updating contrail built horizon packages
Oct 10, 2016
eb5f89b
Adding R3.0.3.x branch to CI Closes-Bug: 1632618
vmahuli Oct 13, 2016
110187c
Openstack Liberty expects libvirt 1.2.16, so use that version instead…
srajag Oct 21, 2016
2262b91
DPDK: startup script affects all of bond interfaces in system not jus…
kirankn80 Oct 22, 2016
8ab7418
Merge "DPDK: startup script affects all of bond interfaces in system …
Oct 25, 2016
b5ab898
DPDK: Bond mode set incorrectly after upgrade
kirankn80 Oct 25, 2016
cdbf44d
Merge "DPDK: Bond mode set incorrectly after upgrade" into R3.0.3.x
Oct 27, 2016
5751f79
Using python certifi from xenial repo in trusty builds
cijohnson Dec 5, 2016
7224212
Moving the supervisord files from /tmp to /var/run
bansalnikhil May 30, 2016
8588ecc
Revert "Moving the supervisord files from /tmp to /var/run"
Dec 19, 2016
28d535d
Replacing python-gevent-1.0-2.el7.x86_64.rpm with contrail rebuilt la…
npchandran Dec 21, 2016
7fa34d1
Revert "Revert "Moving the supervisord files from /tmp to /var/run""
Dec 21, 2016
f8bc2a8
Include missing rhel upstream packages as contrail thirdparty packages
npchandran Dec 22, 2016
0d8dfa1
Merge "Replacing python-gevent-1.0-2.el7.x86_64.rpm with contrail reb…
Jan 21, 2017
12a139d
Add check to use /tmp/supervisord_<>.sock if present
Feb 10, 2017
f72d9b4
Closes-Bug: #1660765 - Install issues due to libpython version change…
Feb 13, 2017
34695e9
remove ppa:rwky/redis setup.sh
Feb 17, 2017
20ab2f0
Merge "Closes-Bug: #1660765 - Install issues due to libpython version…
Feb 21, 2017
9d1eb16
Closes-Bug: #1646832
sgurumurthy Dec 3, 2016
3f68161
Use bond MAC address in agent config file instead of deriving it from…
srajag Feb 17, 2017
1c752cf
Add newer net-snmp-* packages to all rhel7 SKUs
npchandran Oct 5, 2016
e1f1a84
Merge "Use bond MAC address in agent config file instead of deriving …
Feb 22, 2017
b80c337
Merge "Add newer net-snmp-* packages to all rhel7 SKUs Closes-Bug: 16…
Feb 22, 2017
94a97b5
Nova package version change
Feb 28, 2017
b093299
RPM: Config file tagging in spec files
npchandran Mar 30, 2017
4e69111
Update python-kazoo package to 2.2.1
Mar 31, 2017
84b66d7
Adding new net-snmp-* packages of latest version - 5.7.2-24.el7_3.2.x…
npchandran May 31, 2017
18d84d5
Allow CLI and/or config.cfg file to adjust packager.py console logging
May 25, 2017
1b00ab1
Added support to lz4 package in redhat and centos
arvindvis Sep 7, 2017
0a4f74b
Merge "Added support to lz4 package in redhat and centos Closes-Bug: …
Sep 29, 2017
138e561
Tidy up docker build for test/test-ci
Oct 15, 2017
6c3e18a
contrail-database package copies the pid of cassandra into
arvindvis Jan 30, 2018
7d804cf
Merge "contrail-database package copies the pid of cassandra into /va…
Mar 12, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .gitreview
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
host=review.opencontrail.org
port=29418
project=Juniper/contrail-packaging.git
defaultbranch=master
defaultbranch=R3.0.3.x
54 changes: 54 additions & 0 deletions build/build_docker_test_image.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
#!/bin/bash -x

sku=$1
shift
to_build=${@:-'contrail-test-ci contrail-test'}
VERSION=$(cat controller/src/base/version.info)
TEST_ARTIFACT=${TEST_ARTIFACT:-$(readlink -f build/artifacts_extra/contrail-test-${VERSION}-*~$sku.tgz)}
TEST_CI_ARTIFACT=${TEST_CI_ARTIFACT:-$(readlink -f build/artifacts_extra/contrail-test-ci-*~$sku.tgz)}
FABRIC_UTILS_ARTIFACT=${FABRIC_UTILS_ARTIFACT:-$(readlink -f build/artifacts_extra/contrail-fabric-utils-*~$sku.tgz)}
CONTRAIL_PACKAGE_DEB=${CONTRAIL_PACKAGE_DEB:-$(readlink -f build/artifacts/contrail-install-packages*~${sku}_all.deb)}
DOCKER_IMAGE_EXPORT_PATH=${DOCKER_IMAGE_EXPORT_PATH:-$(readlink -f build/artifacts/)}
#IPADDRESS=${IPADDRESS:-$(ip a show docker0 | awk '/inet / {split ($2,a,"/"); print a[1]}')}
IPADDRESS="172.17.0.1"
export SSHPASS=c0ntrail123

clean_up() {
for j in `docker images| tr -s ' ' | cut -d ' ' -f3 | grep -v IMAGE`
do
docker rmi -f $j
done

for i in `docker ps -a | tr -s ' ' | cut -d ' ' -f1 | grep -v CONTAINER`
do
docker rm -f $i
done
}

tmp=$(mktemp -d)
tar zxv -C $tmp -f $TEST_CI_ARTIFACT contrail-test-ci/install.sh

for container in $to_build; do
echo "Building container for $container..."
tag=$(echo $container | sed -e 's/-/_/g')
bash -x $tmp/contrail-test-ci/install.sh docker-build --test-artifact $TEST_ARTIFACT \
--ci-artifact $TEST_CI_ARTIFACT --fab-artifact $FABRIC_UTILS_ARTIFACT \
-u ssh://${IPADDRESS}/${CONTRAIL_PACKAGE_DEB} --export $DOCKER_IMAGE_EXPORT_PATH $container
rc=$?
if [[ $rc = 0 ]]; then
touch ci_docker_build_${tag}_successful
else
echo "ERROR: Docker build for $container failed"
break
fi
done

clean_up
rm -rf $tmp
[[ $rc = 0 ]] && echo "Docker build completed!"
set +e
source /usr/local/jenkins/slave_scripts/ci-infra/ci-utils.sh
DOCKER_IMAGE=$(ls build/artifacts/docker-image-contrail-test-*.gz 2>/dev/null)
if [[ $? = 0 ]]; then
retry sshpass -p c0ntrail123 rsync -acz --no-owner --no-group $DOCKER_IMAGE ci-admin@10.84.26.50:$CI_IMAGE_DIR
fi
105 changes: 73 additions & 32 deletions build/deb_server_manager_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ NOWEBUI=""
WEBCORE=""
CERT_NAME=""
SMLITE=""
NOEXTERNALREPOS=""
HOST_IP_LIST=`ifconfig | sed -n -e 's/:127\.0\.0\.1 //g' -e 's/ *inet addr:\([0-9.]\+\).*/\1/gp'`
HOSTIP=`echo $HOST_IP_LIST | cut -d' ' -f1`
rel=`lsb_release -r`
Expand Down Expand Up @@ -62,18 +63,9 @@ function cleanup_smgr_repos()

}

function setup_smgr_repos()
function setup_apt_conf()
{
# Push this to makefile - Copy only the file we need into installer.
if [ ${rel[1]} == "14.04" ]; then
cp /opt/contrail/contrail_server_manager/ubuntu_14_04_1_sources.list /etc/apt/sources.list.d/smgr_sources.list
elif [ ${rel[1]} == "12.04" ]; then
cp /opt/contrail/contrail_server_manager/ubuntu_12_04_3_sources.list /etc/apt/sources.list.d/smgr_sources.list
else
echo "$space$arrow This version of Ubuntu ${rel[1]} is not supported"
exit
fi

echo "$space$arrow Allow Install of Unauthenticated APT packages"
# Allow unauthenticated pacakges to get installed.
# Do not over-write apt.conf. Instead just append what is necessary
# retaining other useful configurations such as http::proxy info.
Expand All @@ -86,24 +78,54 @@ function setup_smgr_repos()
echo "$apt_auth" >> /etc/apt/apt.conf
fi

echo "$space$arrow Setting up the repositories for Server Manager Install"
set +e
apt-get update >> $log_file 2>&1
set -e
}


echo "$space$arrow Installing dependent packages for Setting up repos"
function setup_smgr_repos()
{

echo "$space$arrow Installing dependent packages for Setting up Smgr repos"
#scan pkgs in local repo and create Packages.gz
apt-get --no-install-recommends -y install dpkg-dev >> $log_file 2>&1
# Dependencies to add apt-repos
apt-get --no-install-recommends -y install python-software-properties debmirror >> $log_file 2>&1
apt-get --no-install-recommends -y install software-properties-common >> $log_file 2>&1

pushd /opt/contrail/contrail_server_manager >> $log_file 2>&1
dpkg-scanpackages . | gzip -9c > Packages.gz | >> $log_file 2>&1
popd >> $log_file 2>&1

echo "deb file:/opt/contrail/contrail_server_manager ./" > /tmp/local_repo
cat /tmp/local_repo /etc/apt/sources.list.d/smgr_sources.list > /tmp/new_smgr_sources.list
mv /tmp/new_smgr_sources.list /etc/apt/sources.list.d/smgr_sources.list

set +e
apt-get update >> $log_file 2>&1
set -e

}

function setup_internet_repos()
{
echo "$space$arrow Setting up Internet Repos"
# Push this to makefile - Copy only the file we need into installer.
if [ ${rel[1]} == "14.04" ]; then
cp /opt/contrail/contrail_server_manager/ubuntu_14_04_1_sources.list /etc/apt/sources.list.d/smgr_sources.list
elif [ ${rel[1]} == "12.04" ]; then
cp /opt/contrail/contrail_server_manager/ubuntu_12_04_3_sources.list /etc/apt/sources.list.d/smgr_sources.list
else
echo "$space$arrow This version of Ubuntu ${rel[1]} is not supported"
exit
fi

set +e
apt-get update >> $log_file 2>&1
set -e

# Dependencies to add apt-repos
apt-get --no-install-recommends -y install python-software-properties debmirror >> $log_file 2>&1
apt-get --no-install-recommends -y install software-properties-common >> $log_file 2>&1

puppet_list_file="/etc/apt/sources.list.d/puppet.list"
passenger_list_file="/etc/apt/sources.list.d/passenger.list"
dist='precise'
Expand All @@ -124,7 +146,7 @@ function setup_smgr_repos()
fi

# Repo to add for redis - required for contrail-web-core
add-apt-repository ppa:rwky/redis --yes >> $log_file 2>&1
#add-apt-repository ppa:rwky/redis --yes >> $log_file 2>&1

# Cobbler repo to be added if this is not an SMLITE install
if [ "$SMLITE" == "" ]; then
Expand All @@ -136,7 +158,10 @@ function setup_smgr_repos()
add-apt-repository "deb http://download.opensuse.org/repositories/home:/libertas-ict:/cobbler26/xUbuntu_12.04/ ./" >> $log_file 2>&1
fi
fi

set +e
apt-get update >> $log_file 2>&1
set -e

}

Expand Down Expand Up @@ -199,11 +224,14 @@ while [ "$1" != "" ]; do
--hostip)
HOSTIP=$VALUE
rm -rf /opt/contrail/contrail_server_manager/IP.txt
echo $HOSTIP >> /opt/contrail/contrail_server_manager/IP.txt
echo $HOSTIP >> /opt/contrail/contrail_server_manager/IP.txt
;;
--cert-name)
CERT_NAME=$VALUE
;;
--no-external-repos)
NOEXTERNALREPOS="TRUE"
;;
*)
echo "ERROR: unknown parameter \"$PARAM\""
usage
Expand All @@ -214,8 +242,15 @@ while [ "$1" != "" ]; do
done

cleanup_smgr_repos
setup_apt_conf
if [ "$NOEXTERNALREPOS" == "" ]; then
setup_internet_repos
else
touch /etc/apt/sources.list.d/smgr_sources.list
fi
setup_smgr_repos

RESTART_SERVER_MANAGER=""
if [ "$SM" != "" ]; then
echo "$arrow Server Manager"

Expand Down Expand Up @@ -244,7 +279,7 @@ if [ "$SM" != "" ]; then

#TODO: To be Removed after local repo additions
if [ ${rel[1]} == "14.04" ]; then
apt-get --no-install-recommends -y install libpython2.7=2.7.6-8ubuntu0.2 >> $log_file 2>&1
apt-get --no-install-recommends -y install libpython2.7>=2.7.6-8ubuntu0.2 >> $log_file 2>&1
fi
apt-get -y --force-yes -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confnew" install puppet-common="3.7.3-1puppetlabs1" puppetmaster-common="3.7.3-1puppetlabs1" >> $log_file 2>&1
cp /opt/contrail/contrail_server_manager/puppet.conf /etc/puppet/
Expand Down Expand Up @@ -273,14 +308,11 @@ if [ "$SM" != "" ]; then
if [ "$check_upgrade" != "" ]; then
# Upgrade
echo "$space$arrow Upgrading Server Manager"
RESTART_SERVER_MANAGER="1"
if [ "$SMLITE" != "" ]; then
echo "$space$arrow$install_str Server Manager Lite"
apt-get -y install contrail-server-manager-lite >> $log_file 2>&1
apt-get -y install -f >> $log_file 2>&1
echo "$space$space$arrow Starting Server Manager Lite Service"
service contrail-server-manager restart
sleep 5
service contrail-server-manager status
else
cv=`cobbler --version`
cv=( $cv )
Expand All @@ -296,19 +328,18 @@ if [ "$SM" != "" ]; then
apt-get -y install contrail-server-manager >> $log_file 2>&1
apt-get -y install -f >> $log_file 2>&1
# Stopping webui service that uses old name
old_webui_status=`service supervisor-webui status | awk '{print $2}' | cut -d'/' -f 1`
if [ $old_webui_status != "stop" ]; then
service supervisor-webui stop >> $log_file 2>&1 # TODO : Remove for 3.0 release
if [ -f /etc/init.d/supervisor-webui ]; then
old_webui_status=`service supervisor-webui status | awk '{print $2}' | cut -d'/' -f 1`
if [ $old_webui_status != "stop" ]; then
service supervisor-webui stop >> $log_file 2>&1 # TODO : Remove for 3.0 release
fi
fi
fi
else
if [ "$SMLITE" != "" ]; then
echo "$space$arrow$install_str Server Manager Lite"
apt-get -y install contrail-server-manager-lite >> $log_file 2>&1
echo "$space$space$arrow Starting Server Manager Lite Service"
service contrail-server-manager restart
sleep 5
service contrail-server-manager status
RESTART_SERVER_MANAGER="1"
else
echo "$space$arrow$install_str Server Manager"
apt-get -y install cobbler="2.6.3-1" >> $log_file 2>&1 # TODO : Remove after local repo pinning
Expand Down Expand Up @@ -364,9 +395,19 @@ if [ "$SMMON" != "" ] && [ "$NOSMMON" == "" ]; then
echo "$arrow Completed Installing Server Manager Monitoring"
fi

if [ "x$RESTART_SERVER_MANAGER" == "x1" ]; then
if [ "$SMLITE" != "" ]; then
echo "$space$space$arrow Starting Server Manager Lite Service"
else
echo "$space$space$arrow Starting Server Manager Service"
fi
service contrail-server-manager restart >> $log_file 2>&1
sleep 5
fi

# Should we remove Puppet/Passenger sources.list.d files also?
echo "$arrow Reverting Repos to old state"
rm -f /etc/apt/sources.list.d/puppet.list >> $log_file 2>&1
rm -f /etc/apt/sources.list.d/puppet.list >> $log_file 2>&1
rm -f /etc/apt/sources.list.d/passenger.list >> $log_file 2>&1
rm -f /etc/apt/sources.list.d/smgr_sources.list >> $log_file 2>&1
apt-get update >> $log_file 2>&1
Expand Down
1 change: 1 addition & 0 deletions build/libs/packager/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class MakeError(Exception):
class BasePackager(Utils):
''' Base class for packager methods '''
def __init__(self, **kwargs):
self.debug = kwargs.get('debug', True) # echo unfiltered exec_cmd() output
self.base_pkg_files = self.expanduser(kwargs['base_package_file'])
self.depends_pkg_files = self.expanduser(kwargs['depends_package_file'])
self.contrail_pkg_files = self.expanduser(kwargs['contrail_package_file'])
Expand Down
2 changes: 1 addition & 1 deletion build/libs/packager/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def log_fds(self, fds):
for fd in fds:
out = self.read_async(fd)
if out:
sys.stdout.write(out)
if getattr(self, 'debug', True): sys.stdout.write(out)
log.handlers[1].stream.write(out)
log.handlers[1].stream.flush()

Expand Down
4 changes: 2 additions & 2 deletions build/package_configs/centos65/havana/depends_packages.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -1752,8 +1752,8 @@ file = ifmap-python-client-0.3.2-1407190101.el6.noarch.rpm
md5 = d1a2256cc7c612e712f981087c28b4cf

[ifmap-server]
file = ifmap-server-0.3.2-2contrail.el6.noarch.rpm
md5 = 512e5c97a0608de137fa6d2e550bd5ba
file = ifmap-server-0.3.2-4contrail.el6.noarch.rpm
md5 = a02bfbb7b83fa56ab8617fb7de3285ad
package_type = contrail-install-packages, contrail-thirdparty-packages

[authbind]
Expand Down
6 changes: 3 additions & 3 deletions build/package_configs/centos65/icehouse/depends_packages.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -649,9 +649,9 @@ md5 = 48981e56ec5b1a0df6c6aa94454fb24c
file = ifmap-python-client-0.3.2-1407190101.el6.noarch.rpm
md5 = d1a2256cc7c612e712f981087c28b4cf

[ifmap-server_0.3.2_1408082330.el6]
file = ifmap-server-0.3.2-2contrail.el6.noarch.rpm
md5 = 512e5c97a0608de137fa6d2e550bd5ba
[ifmap-server-0.3.2-5contrail.el6]
file = ifmap-server-0.3.2-5contrail.el6.noarch.rpm
md5 = 71f21bede135ab1fdd6b3936a5d676cf
package_type = contrail-install-packages, contrail-thirdparty-packages

[ipmitool_1.8.11_16.el6]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ makeloc = tools/packaging/common/rpm
pkgs = contrail-dns
makeloc = tools/packaging/common/rpm

[contrail-database-common]
pkgs = contrail-database-common
makeloc = tools/packaging/common/rpm

[contrail-interface-name]
pkgs = contrail-interface-name
makeloc = tools/packaging/common/rpm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -655,6 +655,26 @@ md5 = 75e5a5963d0c5bd58f1fcd9cb3646e06
file = kernel-tools-libs-3.10.0-229.el7.x86_64.rpm
md5 = 46e28f051a08b8859c45306cdc57de3b

[kernel-3.10.0-327.10.1.el7]
file = kernel-3.10.0-327.10.1.el7.x86_64.rpm
md5 = f28fc700e3276f13b1e5fba4e5459793
source = repo:updates

[kernel-headers-3.10.0-327.10.1.el7]
file = kernel-headers-3.10.0-327.10.1.el7.x86_64.rpm
md5 = 598bbf7927e3e69c9dd6820e9b934815
source = repo:updates

[kernel-tools-3.10.0-327.10.1.el7]
file = kernel-tools-3.10.0-327.10.1.el7.x86_64.rpm
md5 = de120dc8ed401bc3c55d88c995552a86
source = repo:updates

[kernel-tools-libs-3.10.0-327.10.1.el7]
file = kernel-tools-libs-3.10.0-327.10.1.el7.x86_64.rpm
md5 = aaf83ada7c7504d8db4a9adbbc437db1
source = repo:updates

[keyutils-1.5.8-3.el7]
file = keyutils-1.5.8-3.el7.x86_64.rpm
md5 = 1332e9cc5a05ae8385311648957ddabe
Expand Down Expand Up @@ -1628,10 +1648,6 @@ md5 = e6eb2bb1e2a899c2a2f76308fd49ed15
file = python-futures-2.1.6-1.el7.noarch.rpm
md5 = b4542b2f6aba78d6b8218c058458e396

[python-gevent-1.0-2.el7]
file = python-gevent-1.0-2.el7.x86_64.rpm
md5 = 15225ae038bd53b53e6ca73c520f82b8

[python-greenlet-0.4.2-3.el7]
file = python-greenlet-0.4.2-3.el7.x86_64.rpm
md5 = 953a467532eb12586f788eaeec60dd53
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,11 @@ md5 = ccc1ca75c0a2e80434a5fd4610476a83
file = python-ecdsa-0.11-3.el7.centos.noarch.rpm
md5 = d0e0370629d546b390ec258e12292147

[python-Fabric-1.7.5-1.1contrail0]
file = python-Fabric-1.7.5-1.1contrail0.noarch.rpm
md5 = e3a4b8cc6271229a76545645564dd4b5
[python-Fabric-1.7.5-1.2contrail0]
file = python-Fabric-1.7.5-1.2contrail0.noarch.rpm
md5 = 899afb211197ada80e326b6a86b53fc0
source = repo:contrail-thirdparty
package_type = contrail-install-packages, contrail-thirdparty-packages, contrail-installer-packages

[python-netaddr-0.7.12-1.el7.centos]
file = python-netaddr-0.7.12-1.el7.centos.noarch.rpm
Expand Down
Loading