Merge "Moving rpm spec files to a sub directory"
authorDan Radez <dradez@redhat.com>
Thu, 18 Aug 2016 12:20:01 +0000 (12:20 +0000)
committerGerrit Code Review <gerrit@172.30.200.206>
Thu, 18 Aug 2016 12:20:01 +0000 (12:20 +0000)
build/opnfv-environment.yaml
build/overcloud-full.sh
build/overcloud-opendaylight.sh
ci/PR_revision.log
lib/overcloud-deploy-functions.sh
lib/parse-functions.sh

index 4971ad7..1113294 100644 (file)
@@ -6,6 +6,8 @@ parameters:
   OvercloudControlFlavor: control
   OvercloudComputeFlavor: compute
   ControllerEnableSwiftStorage: false
+  NeutronEnableForceMetadata: true
+  NeutronEnableDHCPMetadata: true
 #  CloudDomain:
   EnableSahara: false
   EnableTacker: true
index 98a0477..e7f1dd7 100755 (executable)
@@ -58,13 +58,13 @@ git archive --format=tar.gz --prefix=congress/ origin/stable/mitaka > ../puppet-
 popd > /dev/null
 
 # create fd.io yum repo file
-cat > /tmp/fdio-master.repo << EOF
-[fdio-master]
-name=fd.io master branch latest merge
-baseurl=https://nexus.fd.io/content/repositories/fd.io.master.centos7/
-enabled=1
-gpgcheck=0
-EOF
+#cat > /tmp/fdio-master.repo << EOF
+#[fdio-master]
+#name=fd.io master branch latest merge
+#baseurl=https://nexus.fd.io/content/repositories/fd.io.master.centos7/
+#enabled=1
+#gpgcheck=0
+#EOF
 
 # tar up the fd.io module
 rm -rf puppet-fdio
@@ -118,12 +118,11 @@ LIBGUESTFS_BACKEND=direct virt-customize \
     --run-command "cd /etc/puppet/modules/ && tar xzf puppet-congress.tar.gz" \
     --run-command "cd /usr/lib/python2.7/site-packages/congress/datasources && curl -O $doctor_driver" \
     --run-command "sed -i \"s/'--detailed-exitcodes',/'--detailed-exitcodes','-l','syslog','-l','console',/g\" /var/lib/heat-config/hooks/puppet" \
-    --upload /tmp/fdio-master.repo:/etc/yum.repos.d/fdio-master.repo \
     --upload ../vpp-bin.tar.gz:/root \
     --run-command "cd /root && tar zxvf vpp-bin.tar.gz" \
     --run-command "yum install -y /root/vpp-bin/*.rpm" \
     --run-command "tar zxvf /root/vpp-bin/vpp_papi*.tar.gz -C /" \
-    --install unzip,honeycomb \
+    --install unzip \
     --upload puppet-fdio.tar.gz:/etc/puppet/modules \
     --run-command "cd /etc/puppet/modules && tar xzf puppet-fdio.tar.gz" \
     --upload vsperf.tar.gz:/var/opt \
index 3e403bb..9b63ebc 100755 (executable)
@@ -18,6 +18,13 @@ cp -f overcloud-full.qcow2 overcloud-full-opendaylight_build.qcow2
 #####    Adding OpenDaylight to overcloud #####
 ###############################################
 
+# tar up fdio networking-odl
+rm -rf fds
+git clone https://gerrit.opnfv.org/gerrit/fds
+pushd fds > /dev/null
+tar -czvf ../networking-odl.tar.gz networking-odl
+popd > /dev/null
+
 # Beryllium Repo
 cat > /tmp/opendaylight.repo << EOF
 [opendaylight-4-release]
@@ -39,10 +46,20 @@ EOF
 # SDNVPN - Copy tunnel setup script
 wget https://raw.githubusercontent.com/openstack/fuel-plugin-opendaylight/brahmaputra-sr2/deployment_scripts/puppet/modules/opendaylight/templates/setup_TEPs.py
 
+# tar up the honeycomb module
+rm -rf puppet-honeycomb
+git clone https://github.com/trozet/puppet-honeycomb
+pushd puppet-honeycomb > /dev/null
+git archive --format=tar.gz --prefix=honeycomb/ HEAD > ../puppet-honeycomb.tar.gz
+popd > /dev/null
+
 # install ODL packages
 # install Jolokia for ODL HA
 # Patch in OPNFV custom puppet-tripleO
+# install Honeycomb
+# install Honeycomb puppet module
 LIBGUESTFS_BACKEND=direct virt-customize \
+    --upload networking-odl.tar.gz:/root/ \
     --upload /tmp/opendaylight_boron.repo:/etc/yum.repos.d/opendaylight.repo \
     --run-command "yum install --downloadonly --downloaddir=/root/boron/ opendaylight" \
     --upload /tmp/opendaylight.repo:/etc/yum.repos.d/opendaylight.repo \
@@ -50,6 +67,9 @@ LIBGUESTFS_BACKEND=direct virt-customize \
     --install https://github.com/michaeltchapman/networking_rpm/raw/master/openstack-neutron-bgpvpn-2015.2-1.el7.centos.noarch.rpm \
     --run-command "wget https://github.com/rhuss/jolokia/releases/download/v1.3.3/jolokia-1.3.3-bin.tar.gz -O /tmp/jolokia-1.3.3-bin.tar.gz" \
     --run-command "tar -xvf /tmp/jolokia-1.3.3-bin.tar.gz -C /opt/opendaylight/system/org" \
+    --run-command "yum -y install https://github.com/marosmars/files/raw/master/honeycomb-1.0.0-99.noarch.rpm" \
+    --upload puppet-honeycomb.tar.gz:/etc/puppet/modules \
+    --run-command "cd /etc/puppet/modules && tar xzf puppet-honeycomb.tar.gz" \
     --upload ./setup_TEPs.py:/tmp \
     -a overcloud-full-opendaylight_build.qcow2
 
index 92692e5..f22adc8 100644 (file)
@@ -23,4 +23,5 @@
 53,Add numa to controller hiera hierarchy
 54,fix network mtu
 56,fixes tacker config for heat_uri
-57,Remove trailing newline from dpdk pci address
\ No newline at end of file
+57,Remove trailing newline from dpdk pci address
+58,Enable Ceph on boot
index ef07ec0..df17750 100755 (executable)
@@ -94,6 +94,12 @@ EOF
 
       if [ "${deploy_options_array['dataplane']}" == 'fdio' ]; then
         sudo sed -i '/FdioEnabled:/c\  FdioEnabled: true' /usr/share/openstack-tripleo-heat-templates/environments/numa.yaml
+        if [ "${deploy_options_array['sdn_controller']}" == 'opendaylight' ]; then
+          LIBGUESTFS_BACKEND=direct virt-customize --run-command "cd /root/ && tar zxvf networking-odl.tar.gz" \
+                                                   --run-command "cd /root/networking-odl && git init && pip install -r requirements.txt" \
+                                                   --run-command "cd /root/networking-odl && python setup.py build && python setup.py install" \
+                                                   -a overcloud-full.qcow2
+        fi
       else
         LIBGUESTFS_BACKEND=direct virt-customize --run-command "yum install -y /root/dpdk_rpms/*" \
                                                  -a overcloud-full.qcow2
index a582c28..9c2ebff 100755 (executable)
@@ -72,6 +72,17 @@ parse_network_settings() {
       echo -e "${red}ERROR: Failed to parse network settings file $NETSETS ${reset}"
       exit 1
   fi
+
+  if [ "${deploy_options_array['dataplane']}" == 'ovs_dpdk' ]; then
+    if [ "$net_isolation_enabled" == "FALSE" ]; then
+      echo -e "${red}ERROR: flat network is not supported with ovs-dpdk ${reset}"
+      exit 1
+    fi
+    if [[ ! $enabled_network_list =~ "private_network" ]]; then
+      echo -e "${red}ERROR: tenant network is not enabled for ovs-dpdk ${reset}"
+      exit 1
+    fi
+  fi
 }
 
 ##parses deploy settings yaml into globals
@@ -85,16 +96,6 @@ parse_deploy_settings() {
       exit 1
   fi
 
-  if [ "${deploy_options_array['dataplane']}" == 'ovs_dpdk' ]; then
-    if [ "$net_isolation_enabled" == "FALSE" ]; then
-      echo -e "${red}ERROR: flat network is not supported with ovs-dpdk ${reset}"
-      exit 1
-    fi
-    if [[ ! $enabled_network_list =~ "private_network" ]]; then
-      echo -e "${red}ERROR: tenant network is not enabled for ovs-dpdk ${reset}"
-      exit 1
-    fi
-  fi
 }
 
 ##parses baremetal yaml settings into compatible json