Contrail API check script updated
Change-Id: Iace1917d610b8018b159bd21b9242bdb8e5e2a2d Closes-bug: #1603959 Signed-off-by: Illia Polliul <ipolliul@mirantis.com>
This commit is contained in:
@@ -22,8 +22,8 @@ class contrail::provision::analytics {
|
||||
notify {'Waiting for contrail API':} ->
|
||||
|
||||
exec {'wait_for_api':
|
||||
command => "if ! [[ `curl --silent --output /dev/null --write-out \"%{http_code}\" http://${contrail::contrail_mgmt_vip}:8082` =~ ^(200|401)$ ]];\
|
||||
then exit 1; fi",
|
||||
command => "bash -c 'if ! [[ $(curl -s -o /dev/null -w \"%{http_code}\" http://${contrail::contrail_mgmt_vip}:8082) =~ ^(200|401)$ ]];\
|
||||
then exit 1; fi'",
|
||||
tries => 10,
|
||||
try_sleep => 10,
|
||||
} ->
|
||||
|
||||
@@ -26,8 +26,8 @@ class contrail::provision::compute {
|
||||
content => template('contrail/vnc_api_lib.ini.erb')
|
||||
} ->
|
||||
exec {'wait_for_api':
|
||||
command => "if ! [[ `curl --silent --output /dev/null --write-out \"%{http_code}\" http://${contrail::contrail_mgmt_vip}:8082` =~ ^(200|401)$ ]];\
|
||||
then exit 1; fi",
|
||||
command => "bash -c 'if ! [[ $(curl -s -o /dev/null -w \"%{http_code}\" http://${contrail::contrail_mgmt_vip}:8082) =~ ^(200|401)$ ]];\
|
||||
then exit 1; fi'",
|
||||
tries => 10,
|
||||
try_sleep => 10,
|
||||
} ->
|
||||
|
||||
@@ -22,8 +22,8 @@ class contrail::provision::config {
|
||||
notify {'Waiting for contrail API':} ->
|
||||
|
||||
exec {'wait_for_api':
|
||||
command => "if ! [[ `curl --silent --output /dev/null --write-out \"%{http_code}\" http://${contrail::contrail_mgmt_vip}:8082` =~ ^(200|401)$ ]];\
|
||||
then exit 1; fi",
|
||||
command => "bash -c 'if ! [[ $(curl -s -o /dev/null -w \"%{http_code}\" http://${contrail::contrail_mgmt_vip}:8082) =~ ^(200|401)$ ]];\
|
||||
then exit 1; fi'",
|
||||
tries => 10,
|
||||
try_sleep => 10,
|
||||
} ->
|
||||
|
||||
@@ -47,8 +47,8 @@ class contrail::provision::control {
|
||||
notify {'Waiting for contrail API':} ->
|
||||
|
||||
exec {'wait_for_api':
|
||||
command => "if ! [[ `curl --silent --output /dev/null --write-out \"%{http_code}\" http://${contrail::contrail_mgmt_vip}:8082` =~ ^(200|401)$ ]];\
|
||||
then exit 1; fi",
|
||||
command => "bash -c 'if ! [[ $(curl -s -o /dev/null -w \"%{http_code}\" http://${contrail::contrail_mgmt_vip}:8082) =~ ^(200|401)$ ]];\
|
||||
then exit 1; fi'",
|
||||
tries => 10,
|
||||
try_sleep => 10,
|
||||
}
|
||||
|
||||
@@ -27,8 +27,8 @@ class contrail::provision::db {
|
||||
notify {'Waiting for contrail API':} ->
|
||||
|
||||
exec {'wait_for_api':
|
||||
command => "if ! [[ `curl --silent --output /dev/null --write-out \"%{http_code}\" http://${contrail::contrail_mgmt_vip}:8082` =~ ^(200|401)$ ]];\
|
||||
then exit 1; fi",
|
||||
command => "bash -c 'if ! [[ $(curl -s -o /dev/null -w \"%{http_code}\" http://${contrail::contrail_mgmt_vip}:8082) =~ ^(200|401)$ ]];\
|
||||
then exit 1; fi'",
|
||||
tries => 10,
|
||||
try_sleep => 10,
|
||||
} ->
|
||||
|
||||
Reference in New Issue
Block a user