From 046f739d1b5b1202e6614855fd0190930c7094ea Mon Sep 17 00:00:00 2001
From: Takeaki Matsumoto <takeaki.matsumoto@ntt.com>
Date: Wed, 3 Aug 2016 02:35:58 +0000
Subject: [PATCH] Change workers to be static when using kubernates

When orchestration engine is Kubernates,
ansible_processor_vcpus is not defined.

This patch changes workers to be static when using kubernates

Change-Id: I4d77b2e48ea24c4ca8b86ec5b7e6029c054b247a
Closes-Bug: #1609206
---
 ansible/group_vars/all.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ansible/group_vars/all.yml b/ansible/group_vars/all.yml
index e5ff91e3be..b5c472ad6b 100644
--- a/ansible/group_vars/all.yml
+++ b/ansible/group_vars/all.yml
@@ -185,7 +185,7 @@ openstack_logging_debug: "False"
 
 openstack_region_name: "RegionOne"
 
-openstack_service_workers: "{{ [ansible_processor_vcpus, 5]|min }}"
+openstack_service_workers: "{{ [ansible_processor_vcpus, 5]|min if orchestration_engine == 'ANSIBLE' else '1'}}"
 
 # Optionally allow Kolla to set sysctl values
 set_sysctl: "yes"