Fix overcloud services connectivity validation

The overcloud services validation uses the Keystone API version 2 to generate a
token. This doesn't work anymore since Queens.

This patch changes the validation to use  API version 3 instead.

Closes-Bug: #1757187

Change-Id: I4e080521a334fca4999b9bc6e3e1bcacd24c476b
(cherry picked from commit 496ab519fe)
This commit is contained in:
Florian Fuchs 2018-03-16 11:44:05 -04:00 committed by Gael Chamoulaud
parent 0744e1b801
commit d93fb6357f
1 changed files with 11 additions and 5 deletions

View File

@ -25,16 +25,22 @@
# Check that we can obtain an auth token from horizon
- name: Check Keystone
uri:
url: "{{ overcloud_keystone_url }}/tokens"
url: "{{ overcloud_keystone_url }}/v3/auth/tokens"
method: POST
body_format: json
body:
auth:
passwordCredentials:
username: admin
password: "{{ overcloud_admin_password }}"
tenantName: admin
identity:
methods:
- password
password:
user:
name: admin
domain:
name: Default
password: "{{ overcloud_admin_password }}"
return_content: yes
status_code: 201
register: auth_token
when: overcloud_keystone_url|default('')