Update flavors mem_page_size
Post install update all standard flavors to have memory backed with large pages otherwise they will not run with DPDK-enabled OVS. Change-Id: I171fbda0e750237dee3c2b8278d4c3354a9378e9 Signed-off-by: Billy O'Mahony <billy.o.mahony@intel.com> Signed-off-by: Michal Skalski <mskalski@mirantis.com> Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
This commit is contained in:
parent
f59c16b308
commit
42160542e6
10
deployment_scripts/puppet/manifests/ovs-update-flavors.pp
Normal file
10
deployment_scripts/puppet/manifests/ovs-update-flavors.pp
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
# get options
|
||||||
|
$master_ip = hiera('master_ip')
|
||||||
|
|
||||||
|
if $operatingsystem == 'Ubuntu' {
|
||||||
|
exec { 'update flavors':
|
||||||
|
command => "curl http://${master_ip}:8080/plugins/fuel-plugin-ovs-0.9/deployment_scripts/update_flavors.sh | bash -s",
|
||||||
|
path => "/usr/bin:/usr/sbin:/bin:/sbin",
|
||||||
|
}
|
||||||
|
} elsif $operatingsystem == 'CentOS' {
|
||||||
|
}
|
10
deployment_scripts/update_flavors.sh
Normal file
10
deployment_scripts/update_flavors.sh
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -eux
|
||||||
|
|
||||||
|
. /root/openrc
|
||||||
|
|
||||||
|
#foreach nova flavor name set it to have it's memory backed with large pages
|
||||||
|
#so that it will run with DPDK-enabled OVS.
|
||||||
|
for i in `nova flavor-list | tail -n +4 | head --lines=-1 | awk {'print $4'}`; do
|
||||||
|
nova flavor-key $i set "hw:mem_page_size=large"
|
||||||
|
done
|
@ -10,3 +10,16 @@
|
|||||||
puppet_manifest: puppet/manifests/ovs-install-compute.pp
|
puppet_manifest: puppet/manifests/ovs-install-compute.pp
|
||||||
puppet_modules: puppet/modules:/etc/puppet/modules
|
puppet_modules: puppet/modules:/etc/puppet/modules
|
||||||
timeout: 720
|
timeout: 720
|
||||||
|
|
||||||
|
- id: update_flavors
|
||||||
|
type: puppet
|
||||||
|
version: 2.1.0
|
||||||
|
role: [primary-controller]
|
||||||
|
requires: [post_deployment_start]
|
||||||
|
required_for: [post_deployment_end]
|
||||||
|
condition:
|
||||||
|
yaql_exp: $.get('fuel-plugin-ovs').install_dpdk
|
||||||
|
parameters:
|
||||||
|
puppet_manifest: puppet/manifests/ovs-update-flavors.pp
|
||||||
|
puppet_modules: puppet/modules:/etc/puppet/modules
|
||||||
|
timeout: 720
|
||||||
|
Loading…
Reference in New Issue
Block a user