tsuna-server / build-server-ansible

1 stars 0 forks source link

do_create_endpoint.yml will add endpoint with wrong region name #33

Closed TsutomuNakamura closed 3 years ago

TsutomuNakamura commented 3 years ago
# openstack endpoint list
+------+-----------------------------------------------------------------------+--------------+--------------+---------+-----------+-----------------------------------------+
| ID   | Region                                                                | Service Name | Service Type | Enabled | Interface | URL                                     |
+------+-----------------------------------------------------------------------+--------------+--------------+---------+-----------+-----------------------------------------+
| .... | RegionOne                                                             | placement    | placement    | True    | public    | http://openstack-controller-node01:8778 |
| .... | {'name': 'RegionOne', 'url': 'http://dev-private-router01:8774/v2.1'} | nova         | compute      | True    | admin     | http://dev-private-router01:8774/v2.1   |
| .... | {'name': 'RegionOne', 'url': 'http://dev-private-router01:9292'}      | glance       | image        | True    | public    | http://dev-private-router01:9292        |
| .... | {'name': 'RegionOne', 'url': 'http://dev-private-router01:8774/v2.1'} | nova         | compute      | True    | internal  | http://dev-private-router01:8774/v2.1   |
| .... | {'name': 'RegionOne', 'url': 'http://dev-private-router01:8778'}      | placement    | placement    | True    | public    | http://dev-private-router01:8778        |
| .... | {'name': 'RegionOne', 'url': 'http://dev-private-router01:8778'}      | placement    | placement    | True    | admin     | http://dev-private-router01:8778        |
| .... | {'name': 'RegionOne', 'url': 'http://dev-private-router01:9292'}      | glance       | image        | True    | admin     | http://dev-private-router01:9292        |
| .... | RegionOne                                                             | keystone     | identity     | True    | admin     | http://dev-private-router01:5000/v3/    |
| .... | {'name': 'RegionOne', 'url': 'http://dev-private-router01:8774/v2.1'} | nova         | compute      | True    | public    | http://dev-private-router01:8774/v2.1   |
| .... | RegionOne                                                             | keystone     | identity     | True    | public    | http://dev-private-router01:5000/v3/    |
| .... | {'name': 'RegionOne', 'url': 'http://dev-private-router01:9292'}      | glance       | image        | True    | internal  | http://dev-private-router01:9292        |
| .... | {'name': 'RegionOne', 'url': 'http://dev-private-router01:8778'}      | placement    | placement    | True    | internal  | http://dev-private-router01:8778        |
| .... | RegionOne                                                             | keystone     | identity     | True    | internal  | http://dev-private-router01:5000/v3/    |
+------+-----------------------------------------------------------------------+--------------+--------------+---------+-----------+-----------------------------------------+

Region {'name': 'RegionOne', 'url': 'http://dev-private-router01:8774/v2.1'} should be RegionOne. Script adding endpoint might add endpoint with wrong parameters.