Ошибка установки Elasticsearch с помощью xpack - PullRequest
0 голосов
/ 27 мая 2020

Я устанавливаю Elasticsearch 6.6 с Xpack, и он не работает из-за проблемы «nativeUser»:

  failed: [elasticsearch1] (item=nativeUser) => {
    "changed": false,
    "content": "",
    "invocation": {
        "module_args": {
            "attributes": null,
            "backup": null,
            "body": "{\"password\": \"<****>\", \"roles\": [\"power_user\", \"user\"]}",
            "body_format": "json",
            "client_cert": "",
            "client_key": "",
            "content": null,
            "creates": null,
            "delimiter": null,
            "dest": null,
            "directory_mode": null,
            "follow": false,
            "follow_redirects": "safe",
            "force": false,
            "force_basic_auth": true,
            "group": null,
            "headers": {
                "Content-Type": "application/json"
            },
            "http_agent": "ansible-httpget",
            "method": "POST",
            "mode": null,
            "owner": null,
            "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
            "regexp": null,
            "remote_src": null,
            "removes": null,
            "return_content": false,
            "selevel": null,
            "serole": null,
            "setype": null,
            "seuser": null,
            "src": null,
            "status_code": [
                "200"
            ],
            "timeout": 30,
            "unsafe_writes": null,
            "url": "https://<hostname1>:9201/_xpack/security/user/nativeUser",
            "url_password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
            "url_username": "es_admin",
            "use_proxy": true,
            "user": "es_admin",
            "validate_certs": false
        }
    },
    "item": "nativeUser",
    "msg": "Status code was -1 and not [200]: Connection failure: ('The read operation timed out',)",
    "redirected": false,
    "status": -1,
    "url": "https://<hostname1>:9201/_xpack/security/user/nativeUser"
}

Я не понимаю, что такое «nativeUser» и как эту ошибку можно исправить?

Я запустил URL-адрес с помощью curl и получил следующую ошибку:

curl -u es_admin:changeMe -X POST "https://illin7040:9201/_xpack/security/user/nativeUser?pretty" -H 'Content-Type: application/json' -d' { "password" : "changeMe", "roles" : [ "admin", "power_user", "user" ], "full_name" : "nativeUser", "email" : null, "metadata" : {"reserved":true},"enabled":true}}' -k


{
  "error" : {
    "root_cause" : [
      {
        "type" : "master_not_discovered_exception",
        "reason" : null
      }
    ],
    "type" : "master_not_discovered_exception",
    "reason" : null
  },
  "status" : 503 
}

Все три узла в моем окружении настроены как главные ..

Я новичок в Ansible и Elasticsearch, будем благодарны за любые советы. Спасибо.

...