Merge "Use http request to check cinder api availability"
This commit is contained in:
commit
86013b33c4
@ -232,6 +232,7 @@ cinder_requires_pip_packages:
|
|||||||
- virtualenv
|
- virtualenv
|
||||||
- virtualenv-tools
|
- virtualenv-tools
|
||||||
- python-keystoneclient # Keystoneclient needed to OSA keystone lib
|
- python-keystoneclient # Keystoneclient needed to OSA keystone lib
|
||||||
|
- httplib2
|
||||||
|
|
||||||
# Common pip packages
|
# Common pip packages
|
||||||
cinder_pip_packages:
|
cinder_pip_packages:
|
||||||
|
@ -13,11 +13,14 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
- name: Ensure cinder api ip/port are responsive
|
- name: Ensure cinder api is available
|
||||||
wait_for:
|
uri:
|
||||||
port: "{{ cinder_service_port }}"
|
url: "{{ cinder_service_internaluri }}"
|
||||||
delay: 10
|
status_code: 200
|
||||||
host: "{{ internal_lb_vip_address }}"
|
register: api_status
|
||||||
|
until: api_status |success
|
||||||
|
retries: 10
|
||||||
|
delay: 10
|
||||||
tags:
|
tags:
|
||||||
- cinder-backends
|
- cinder-backends
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user