Fix endpoint creational in ironic
The openstack command, when an endpoint is checked directly returns a code of 1 if no endpoint is found. This by default for ansible is a failure, and causes the task to fail, however we check for the return code later. We should ignore the errors upon these information gathering tasks being executed. Change-Id: I4cb7eb2878f1495a17821b895765093205f43c98
This commit is contained in:
parent
6bdea867b0
commit
03f26d1366
@ -118,6 +118,7 @@
|
|||||||
--region "{{ keystone.bootstrap.region_name | default('RegionOne') }}"
|
--region "{{ keystone.bootstrap.region_name | default('RegionOne') }}"
|
||||||
no_log: true
|
no_log: true
|
||||||
register: test_ironic_admin_endpoint
|
register: test_ironic_admin_endpoint
|
||||||
|
ignore_errors: true
|
||||||
|
|
||||||
- name: "Check ironic public endpoint exists"
|
- name: "Check ironic public endpoint exists"
|
||||||
command: |
|
command: |
|
||||||
@ -131,6 +132,7 @@
|
|||||||
--region "{{ keystone.bootstrap.region_name | default('RegionOne') }}"
|
--region "{{ keystone.bootstrap.region_name | default('RegionOne') }}"
|
||||||
no_log: true
|
no_log: true
|
||||||
register: test_ironic_public_endpoint
|
register: test_ironic_public_endpoint
|
||||||
|
ignore_errors: true
|
||||||
|
|
||||||
- name: "Check ironic internal endpoint exists"
|
- name: "Check ironic internal endpoint exists"
|
||||||
command: |
|
command: |
|
||||||
@ -144,6 +146,7 @@
|
|||||||
--region "{{ keystone.bootstrap.region_name | default('RegionOne') }}"
|
--region "{{ keystone.bootstrap.region_name | default('RegionOne') }}"
|
||||||
no_log: true
|
no_log: true
|
||||||
register: test_ironic_internal_endpoint
|
register: test_ironic_internal_endpoint
|
||||||
|
ignore_errors: true
|
||||||
|
|
||||||
- name: "Create ironic admin endpoint"
|
- name: "Create ironic admin endpoint"
|
||||||
command: |
|
command: |
|
||||||
|
Loading…
Reference in New Issue
Block a user