From c1336faa6acb750d9eabf5fbfa21a01e8fc206e0 Mon Sep 17 00:00:00 2001 From: Francesco Santoro Date: Wed, 6 Apr 2016 12:52:35 +0200 Subject: [PATCH] 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 --- .../puppet/modules/virtual_accelerator/manifests/service.pp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deployment_scripts/puppet/modules/virtual_accelerator/manifests/service.pp b/deployment_scripts/puppet/modules/virtual_accelerator/manifests/service.pp index 592115e..9cb51d1 100644 --- a/deployment_scripts/puppet/modules/virtual_accelerator/manifests/service.pp +++ b/deployment_scripts/puppet/modules/virtual_accelerator/manifests/service.pp @@ -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', } ->