Remove yum udpate all from overcloud build 13/22813/1
authorFeng Pan <fpan@redhat.com>
Fri, 7 Oct 2016 17:21:56 +0000 (13:21 -0400)
committerFeng Pan <fpan@redhat.com>
Fri, 7 Oct 2016 22:53:07 +0000 (22:53 +0000)
Also changes python path in networking-vpp spec to use abolsute path.
This avoids issues when python path is found on a different path
on build machine.

Change-Id: Icc2951bc66ba0b2ab0510083ecad6e680da9d5fc
Signed-off-by: Feng Pan <fpan@redhat.com>
(cherry picked from commit dfe970932417a0a6ceca1b84d16aa51ba30e07f3)

build/overcloud-full.sh
build/rpm_specs/networking-vpp.spec

index 7af3f83..b148542 100755 (executable)
@@ -119,8 +119,9 @@ LIBGUESTFS_BACKEND=direct virt-customize \
     --run-command "yum install -y etcd" \
     --run-command "pip install python-etcd" \
     --run-command "puppet module install cristifalcas/etcd" \
     --run-command "yum install -y etcd" \
     --run-command "pip install python-etcd" \
     --run-command "puppet module install cristifalcas/etcd" \
+    --run-command "yum update -y puppet" \
     --install "centos-release-qemu-ev" \
     --install "centos-release-qemu-ev" \
-    --run-command "yum update -y" \
+    --run-command "yum update -y qemu-kvm-ev" \
     --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" \
     --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" \
index 28d3482..2fd4e04 100644 (file)
@@ -38,7 +38,7 @@ WantedBy=multi-user.target
 EOF
 
 %install
 EOF
 
 %install
-python setup.py install -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
+/usr/bin/python setup.py install -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
 mkdir -p %{buildroot}/usr/lib/systemd/system
 install %{_builddir}/networking-vpp-agent.service %{buildroot}/usr/lib/systemd/system
 
 mkdir -p %{buildroot}/usr/lib/systemd/system
 install %{_builddir}/networking-vpp-agent.service %{buildroot}/usr/lib/systemd/system