Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 6144

MariaDB Access Denied for Root User During KYPO-Lite Installation on VPS using Kolla-Ansible

$
0
0

I'm trying to install KYPO-Lite on my VPS by following the instructions provided in the GitLab repository. My VPS meets all the required specifications, and I haven't modified the provided Vagrant file.

However, when I run the vagrant up command, the installation fails at step 61 of the Vagrant file during the execution of the following command:

kolla-ansible -i /root/all-in-one deploy || kolla-ansible -i /root/all-in-one deploy

I manually tested the preceding commands, which seem to work correctly. However, the logs show the following error at this step:

TASK [mariadb : Fail on existing but stopped cluster] **skipping: [localhost]TASK [mariadb : Check MariaDB service WSREP sync status] **fatal: [localhost]: FAILED! => {"changed": false, "cmd": ["docker", "exec", "mariadb", "mysql", "-uroot", "-pqFWb65EZu0h3hI9o7fP9OlwXB0zCHkdKeRT389a7", "--silent", "--skip-column-names", "-e", "SHOW STATUS LIKE \"wsrep_local_state_comment\""], "delta": "0:00:00.174879", "end": "2024-08-14 22:15:51.919677", "msg": "non-zero return code", "rc": 1, "start": "2024-08-14 22:15:51.744798", "stderr": "ERROR 1045 (28000): Access denied for user 'root'@'openstack' (using password: YES)", "stderr_lines": ["ERROR 1045 (28000): Access denied for user 'root'@'openstack' (using password: YES)"], "stdout": "", "stdout_lines": []}

The playbook recap is:

PLAY RECAP **localhost : ok=64   changed=0    unreachable=0    failed=1    skipped=109  rescued=0    ignored=0

Additional Details

  • I tried modifying the root password, but it seems that the change isn't being applied.
  • In the passwords.yml file, there is no specific entry for the root password related to MariaDB.
  • I'm also unable to connect to MariaDB through Docker. When I try to access it directly, I receive the following error:
docker exec -it mariadb mysql -u root -pEnter password:ERROR 1045 (28000): Access denied for user 'root'@'openstack'

I also attempted to start MariaDB with --skip-grant-tables, but that didn’t resolve the authentication issue.

Environment

  • VPS running Ubuntu 22.04
  • Vagrant 2.3.4
  • Libvirt 7.0.0
  • Kubernetes installed via Snap
  • MariaDB version: 10.11.9
  • Kolla-Ansible deployed via Docker

Question

Why does the connection to MariaDB fail even though the root password is correct? How can I resolve the access denied issue for MariaDB and continue with the KYPO-Lite installation? Additionally, what changes should be made to ensure that MariaDB deploys correctly without generating these errors?


Viewing all articles
Browse latest Browse all 6144

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>