Remove cassandra seed check

Change-Id: I49c05ff2dae0cd8fab0d88bbef8fa60ab94bef60
Closes-Bug: #1632238
This commit is contained in:
Vitalii Kovalchuk 2016-10-11 13:26:06 +00:00
parent 3b0731c7cb
commit 9aed16cea1
1 changed files with 1 additions and 10 deletions

View File

@ -150,21 +150,12 @@ class contrail::database {
subscribe => File['/etc/cassandra/cassandra.yaml']
}
$cassandra_seed = $cassandra_seeds[0]
exec { 'wait_for_cassandra_seed':
provider => 'shell',
command => "nodetool status|grep ^UN|grep ${cassandra_seed}",
tries => 10, # wait for whole cluster is up: 10 tries every 30 seconds = 5 min
try_sleep => 30,
require => Service['supervisor-database'],
}
exec { 'wait_for_cassandra':
provider => 'shell',
command => "nodetool status|grep ^UN|grep ${contrail::address}",
tries => 10, # wait for whole cluster is up: 10 tries every 30 seconds = 5 min
try_sleep => 30,
require => [Service['supervisor-database'],Exec['wait_for_cassandra_seed']]
require => Exec['wait_for_cassandra_seed']
}
Package['contrail-openstack-database'] -> Contrail_database_nodemgr_config <||>
Contrail_database_nodemgr_config <||> ~> Service['supervisor-database']