invalid_index_name_exception on second deploy of Elasticsearch 6.x
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla-ansible |
Invalid
|
Medium
|
XiaojueGuan | ||
Train |
Fix Released
|
Medium
|
XiaojueGuan | ||
Ussuri |
Fix Released
|
Medium
|
XiaojueGuan |
Bug Description
(deploy) root@k-node1:~# pip freeze | grep kolla
kolla==9.1.0.dev387
kolla-ansible=
the globals.yml file is https:/
code in fiel kolla-ansible/
```
- name: Register the kibana index in elasticsearch
become: true
kolla_toolbox:
module_name: uri
module_args:
url: "{{ internal_protocol }}://{{ kolla_internal_fqdn | put_address_
method: PUT
body: "{{ kibana_
body_format: json
status_code: 200, 201, 400
validate_
register: result
failed_when:
# If the index already exists, Elasticsearch will respond with a 400 error.
- result.status == 400
# Format: {"json": {"error": {"type": "index_
- result.get('json', {}).get('error', {}).get('type') != 'index_
run_once: true
```
can not handle all exceptions which will failed if you don't run it successfully at first try.
Changed in kolla-ansible: | |
assignee: | nobody → XiaojueGuan (xiaojuegaun) |
summary: |
- invalid_index_name_exception + invalid_index_name_exception on second deploy of Elasticsearch 6.x |
Changed in kolla-ansible: | |
milestone: | 10.0.0 → none |
status: | In Progress → Invalid |
TASK [kibana : Register the kibana index in elasticsearch] ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ****** when_result" : true, "json": {"error": {"index": ".kibana", "index_uuid": "DoSrTo_ eQWqlo00sQXBRjA ", "reason": "index [.kibana/ DoSrTo_ eQWqlo00sQXBRjA ] already exists", "root_cause": [{"index": ".kibana", "index_uuid": "DoSrTo_ eQWqlo00sQXBRjA ", "reason": "index [.kibana/ DoSrTo_ eQWqlo00sQXBRjA ] already exists", "type": "resource_ already_ exists_ exception" }], "type": "resource_ already_ exists_ exception" }, "status": 400}, "msg": "HTTP Error 400: Bad Request", "redirected": false, "status": 400, "url": "https:/ /10.10. 1.205:9200/ .kibana"}
fatal: [10.10.1.201]: FAILED! => {"action": "uri", "changed": false, "connection": "close", "content_length": "369", "content_type": "application/json; charset=UTF-8", "elapsed": 0, "failed_