Merge "Fix tacker endpoint port"
authorMichael Chapman <michapma@redhat.com>
Thu, 8 Sep 2016 12:33:44 +0000 (12:33 +0000)
committerGerrit Code Review <gerrit@172.30.200.206>
Thu, 8 Sep 2016 12:33:44 +0000 (12:33 +0000)
build/build_perf_image.sh
build/overcloud-full.sh
config/deploy/os-nosdn-fdio-noha.yaml
config/deploy/os-nosdn-ovs-ha.yaml
config/deploy/os-nosdn-ovs-noha.yaml
config/deploy/os-odl_l2-fdio-ha.yaml
config/deploy/os-odl_l2-fdio-noha.yaml
lib/overcloud-deploy-functions.sh

index a6ca066..68a1804 100644 (file)
@@ -32,5 +32,12 @@ fi
 
 if [ "$CATEGORY" == "kernel" ]; then
   echo "${KEY}=${VALUE}" >> $ROLE-kernel_params.txt
+  if [[ "$dataplane" == 'fdio' && "$KEY" == 'hugepages' ]]; then
+    # set kernel hugepages params for fdio
+    LIBGUESTFS_BACKEND=direct virt-customize --run-command "echo vm.hugetlb_shm_group=0 >> /usr/lib/sysctl.d/00-system.conf" \
+                                             --run-command "echo vm.max_map_count=$(printf "%.0f" $(echo 2.2*$VALUE | bc)) >> /usr/lib/sysctl.d/00-system.conf" \
+                                             --run-command "echo kernel.shmmax==$((VALUE * 2 * 1024 * 1024)) >> /usr/lib/sysctl.d/00-system.conf" \
+                                             -a ${IMAGE}
+  fi
 fi
 
index 943716b..0357ba0 100755 (executable)
@@ -130,6 +130,7 @@ LIBGUESTFS_BACKEND=direct virt-customize \
     --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" \
     --run-command "yum install -y /root/fdio/*.rpm" \
+    --run-command "rm -f /etc/sysctl.d/80-vpp.conf" \
     --run-command "tar zxvf /root/fdio/vpp_papi*.tar.gz -C /" \
     --install unzip \
     --upload puppet-fdio.tar.gz:/etc/puppet/modules \
index 81ff781..4d27ae8 100644 (file)
@@ -16,8 +16,6 @@ deploy_options:
         hugepages: 1024
         hugepagesz: 2M
     Compute:
-      nova:
-        libvirtpin: 1
       kernel:
         hugepagesz: 2M
         hugepages: 2048
index 89be0c3..a72fef3 100644 (file)
@@ -15,8 +15,6 @@ deploy_options:
         hugepages: 1024
         hugepagesz: 2M
     Compute:
-      nova:
-        libvirtpin: 1
       kernel:
         hugepagesz: 2M
         hugepages: 2048
index d13fd9c..7d054ce 100644 (file)
@@ -15,8 +15,6 @@ deploy_options:
         hugepagesz: 2M
         hugepages: 1024
     Compute:
-      nova:
-        libvirtpin: 1
       kernel:
         hugepagesz: 2M
         hugepages: 2048
index 75d79ce..f1297e8 100644 (file)
@@ -17,8 +17,6 @@ deploy_options:
         hugepages: 1024
         hugepagesz: 2M
     Compute:
-      nova:
-        libvirtpin: 1
       kernel:
         hugepagesz: 2M
         hugepages: 2048
index ad54fbd..207c6f3 100644 (file)
@@ -19,8 +19,6 @@ deploy_options:
         intel_iommu: 'on'
         iommu: pt
     Compute:
-      nova:
-        libvirtpin: 1
       kernel:
         hugepagesz: 2M
         hugepages: 2048
index 30fd5e6..53c7eef 100755 (executable)
@@ -140,7 +140,7 @@ EOI
     # Push performance options to subscript to modify per-role images as needed
     for option in "${performance_options[@]}" ; do
       echo -e "${blue}Setting performance option $option${reset}"
-      ssh -T ${SSH_OPTIONS[@]} "stack@$UNDERCLOUD" "bash build_perf_image.sh $option"
+      ssh -T ${SSH_OPTIONS[@]} "stack@$UNDERCLOUD" "dataplane=${deploy_options_array['dataplane']} bash build_perf_image.sh $option"
     done
 
     # Build IPA kernel option ramdisks