Set sahara-api and sahara-engine process count to 2 in sahara system tests

sahara-api has one process with root priv and forks (corresponding to
api_workers parameter in sahara.conf. By default fork numbers is one.
So sahara-api count should be equal to 2.

sahara-engine process count is hardcoded to 2.

Change-Id: I252c2a00bd63294c7ee148e142358c9cc4c7ec41
Closes-Bug: #1550021
This commit is contained in:
Maksym Strukov 2016-02-26 14:55:53 +02:00
parent b340f64e94
commit c3be9d2d4a
1 changed files with 12 additions and 4 deletions

View File

@ -85,12 +85,16 @@ class SaharaHAOneController(TestBasic):
logger.debug('Verify Sahara service on controller')
_ip = self.fuel_web.get_nailgun_node_by_name("slave-01")['ip']
with self.env.d_env.get_ssh_to_remote(_ip) as remote:
# count = 1 + api_workers (from sahara.conf)
checkers.verify_service(
remote,
service_name='sahara-api')
service_name='sahara-api',
count=2)
# count = 2 * 1 (hardcoded by deployment team)
checkers.verify_service(
remote,
service_name='sahara-engine')
service_name='sahara-engine',
count=2)
logger.debug('Check MD5 sum of Vanilla2 image')
check_image = checkers.check_image(
@ -195,12 +199,16 @@ class SaharaHA(TestBasic):
for slave in ["slave-01", "slave-02", "slave-03"]:
_ip = self.fuel_web.get_nailgun_node_by_name(slave)['ip']
with self.env.d_env.get_ssh_to_remote(_ip) as remote:
# count = 1 + api_workers (from sahara.conf)
checkers.verify_service(
remote,
service_name='sahara-api')
service_name='sahara-api',
count=2)
# count = 2 * 1 (hardcoded by deployment team)
checkers.verify_service(
remote,
service_name='sahara-engine')
service_name='sahara-engine',
count=2)
logger.debug('Check MD5 sum of Vanilla2 image')
check_image = checkers.check_image(