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>
(cherry picked from commit 42160542e6
)
This commit is contained in:
parent
b3aed46ae0
commit
0c85aa25ef
|
@ -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' {
|
||||
}
|
|
@ -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_modules: puppet/modules:/etc/puppet/modules
|
||||
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