6wind-va-plugin: set vcpu_pin_set before starting VA service

This patch computes the vcpu_pin_set before starting the virtual accelerator
service since we may not be able to retrieve this information when the
service is already running.

Change-Id: I19d2e56e8ddd09d2c3248484b4794fe506e151d8
Signed-off-by: Francesco Santoro <francesco.santoro@6wind.com>
This commit is contained in:
Francesco Santoro 2016-04-06 12:52:35 +02:00
parent 6932c1e54b
commit c1336faa6a
1 changed files with 3 additions and 3 deletions

View File

@ -5,12 +5,12 @@ class virtual_accelerator::service inherits virtual_accelerator {
$NOVA_CONF_FILE = "/etc/nova/nova.conf"
exec { 'vcpu_pin':
command => "crudini --set ${NOVA_CONF_FILE} DEFAULT vcpu_pin_set $(python /usr/local/bin/get_vcpu_pin_set.py)",
} ->
service { 'virtual-accelerator':
ensure => 'running',
} ->
exec { 'vcpu_pin':
command => "crudini --set ${NOVA_CONF_FILE} DEFAULT vcpu_pin_set $(python /usr/local/bin/get_vcpu_pin_set.py)",
}
exec { 'restart_ovs':
command => 'service openvswitch-switch restart',
} ->