I'm trying to upgrade an ES cluster from 7.3.2 to 7.9.3. I'm configuring ES using Ansible and make REST API calls using Ansible's get_url module. After installation/upgrade and start of ES, it tries to make REST API calls to set user passwords.
So I'm now stuck without knowing what's actually happening. I've upgraded two coordinators and one data/ingest/master node. So I don't dare continuing now since I'm unable to find any information about any changes regarding this very subject. After a few hours of looking in the documentation and searching on Google, I've come to complete stop.
This is what the configuration regarding security looks like:
xpack:
security:
enabled: true
Ansible uses basic auth and gets 401 when trying to change password for "elastic":
"error": {
"header": {
"WWW-Authenticate": [
"Basic realm=\"security\" charset=\"UTF-8\"",
"Bearer realm=\"security\"",
"ApiKey"
]
},
"reason": "missing authentication credentials for REST request [/_security/user/elastic/_password]",
"root_cause": [
{
"header": {
"WWW-Authenticate": [
"Basic realm=\"security\" charset=\"UTF-8\"",
"Bearer realm=\"security\"",
"ApiKey"
]
},
"reason": "missing authentication credentials for REST request [/_security/user/elastic/_password]",
"type": "security_exception"
}
],
"type": "security_exception"
}
I really need some clarity, please help.
Thanks in advance.