Merge "Use http request to check cinder api availability"

This commit is contained in:
Jenkins 2016-01-26 12:16:13 +00:00 committed by Gerrit Code Review
commit 86013b33c4
2 changed files with 9 additions and 5 deletions

View File

@ -232,6 +232,7 @@ cinder_requires_pip_packages:
- virtualenv
- virtualenv-tools
- python-keystoneclient # Keystoneclient needed to OSA keystone lib
- httplib2
# Common pip packages
cinder_pip_packages:

View File

@ -13,11 +13,14 @@
# See the License for the specific language governing permissions and
# limitations under the License.
- name: Ensure cinder api ip/port are responsive
wait_for:
port: "{{ cinder_service_port }}"
delay: 10
host: "{{ internal_lb_vip_address }}"
- name: Ensure cinder api is available
uri:
url: "{{ cinder_service_internaluri }}"
status_code: 200
register: api_status
until: api_status |success
retries: 10
delay: 10
tags:
- cinder-backends