Puppet Setup Database - failed

Hi @Inderpreet / @Tej-Singh-Rana,

My task is fail with this error “- package ‘mariadb-server’ is not installed on DB Server”, however my verifications shows mariadb is run and managed to connect to db.

Pls advise, if it’s a bug or I did something wrong.

  1. Puppet agent

[root@stdb01 ~]# puppet agent -tv
Info: Using configured environment ‘production’
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Retrieving locales
Info: Loading facts
Info: Caching catalog for stdb01.stratos.xfusioncorp.com
Info: Applying configuration version ‘1635752783’
Notice: /Stage[main]/Mysql_database/Exec[run_my_script]/returns: executed successfully
Notice: /Stage[main]/Mysql_database/Service[mysql]/ensure: ensure changed ‘stopped’ to ‘running’ (corrective)
Info: /Stage[main]/Mysql_database/Service[mysql]: Unscheduling refresh on Service[mysql]
Notice: /Stage[main]/Mysql_database/Mysql::Db[kodekloud_db2]/Mysql_database[kodekloud_db2]/charset: charset changed ‘utf8mb3’ to ‘utf8’ (corrective)
Notice: /Stage[main]/Mysql_database/Mysql::Db[kodekloud_db2]/Mysql_database[kodekloud_db2]/collate: collate changed ‘utf8mb3_general_ci’ to ‘utf8_general_ci’ (corrective)
Notice: Applied catalog in 2.00 seconds

  1. Mariadb services

[root@stdb01 ~]# systemctl status mariadb
● mariadb.service - MariaDB 10.6.4 database server
Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)
Drop-In: /etc/systemd/system/mariadb.service.d
└─migrated-from-my.cnf-settings.conf
Active: active (running) since Mon 2021-11-01 07:46:04 UTC; 27s ago
Docs: man:mariadbd(8)

Main PID: 3494 (mariadbd)
Status: “Taking your SQL requests now…”
CGroup: /docker/1c93d0e52ed874a09cda03d216cd1507629548631253af5d93741e6e8cbec770/system.slice/mariadb.service
└─3494 /usr/sbin/mariadbd

  1. Able to connect to kodekloud_db2 databse

[root@stdb01 ~]# mysql -u kodekloud_tim -p kodekloud_db2 -h localhost
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 52
Server version: 10.6.4-MariaDB MariaDB Server

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.

MariaDB [kodekloud_db2]>

Hi @Inderpreet,

Pls advise

Hello, @DTsg
It’s available in the Review page?

Might be a technical issue, please wait for response.

Hi @Tej-Singh-Rana,

Yes, it was and there is a irksome user instead of assisting what’s wrong, gave the link to follow (this is really horrendous act). That’s why I posted here.

BTW, the task is “Failed” now.

Looking forward for your finding.

Hi @Tej-Singh-Rana,

any update?

@Inderpreet / @Tej-Singh-Rana / @Ayman ,

Any update?

@Inderpreet / @Tej-Singh-Rana / @mmumshad / @Ayman ,

Any update?

Hello, @DTsg
Sorry for the late response. I haven’t got a chance to check.

Please DM me your puppet configuration file.

I just sent the config file

Helo @Tej-Singh-Rana,

Pls update my query in DM.