Advertisement
Guest User

Untitled

a guest
Jun 15th, 2017
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.96 KB | None | 0 0
  1. Jun 15 13:51:44 infra1 ansible-systemd[10601]: Invoked with no_block=False name=mysql enabled=True daemon_reload=False state=None user=False masked=None
  2. Jun 15 13:51:44 infra1 su[10587]: pam_unix(su-l:session): session closed for user root
  3. Jun 15 13:51:44 infra1 su[10606]: (to root) root on none
  4. Jun 15 13:51:44 infra1 systemd-logind[30]: Existing logind session ID 7 used by new audit session, ignoring
  5. Jun 15 13:51:44 infra1 systemd[1]: Started Session c401 of user root.
  6. Jun 15 13:51:44 infra1 systemd[1]: Starting Session c401 of user root.
  7. Jun 15 13:51:44 infra1 su[10606]: pam_unix(su-l:session): session opened for user root by (uid=0)
  8. Jun 15 13:51:44 infra1 su[10606]: pam_unix(su-l:session): session closed for user root
  9. Jun 15 13:51:44 infra1 su[10615]: (to root) root on none
  10. Jun 15 13:51:44 infra1 systemd-logind[30]: Existing logind session ID 7 used by new audit session, ignoring
  11. Jun 15 13:51:44 infra1 systemd[1]: Started Session c402 of user root.
  12. Jun 15 13:51:44 infra1 systemd[1]: Starting Session c402 of user root.
  13. Jun 15 13:51:44 infra1 su[10615]: pam_unix(su-l:session): session opened for user root by (uid=0)
  14. Jun 15 13:51:44 infra1 su[10615]: pam_unix(su-l:session): session closed for user root
  15. Jun 15 13:51:45 infra1 su[10628]: (to root) root on none
  16. Jun 15 13:51:45 infra1 systemd-logind[30]: Existing logind session ID 7 used by new audit session, ignoring
  17. Jun 15 13:51:45 infra1 systemd[1]: Started Session c403 of user root.
  18. Jun 15 13:51:45 infra1 systemd[1]: Starting Session c403 of user root.
  19. Jun 15 13:51:45 infra1 su[10628]: pam_unix(su-l:session): session opened for user root by (uid=0)
  20. Jun 15 13:51:45 infra1 su[10628]: pam_unix(su-l:session): session closed for user root
  21. Jun 15 13:51:45 infra1 su[10638]: (to root) root on none
  22. Jun 15 13:51:45 infra1 systemd-logind[30]: Existing logind session ID 7 used by new audit session, ignoring
  23. Jun 15 13:51:45 infra1 systemd[1]: Started Session c404 of user root.
  24. Jun 15 13:51:45 infra1 systemd[1]: Starting Session c404 of user root.
  25. Jun 15 13:51:45 infra1 su[10638]: pam_unix(su-l:session): session opened for user root by (uid=0)
  26. Jun 15 13:51:45 infra1 ansible-command[10652]: Invoked with warn=True executable=None chdir=None _raw_params=service mysql start || true
  27. # Reset the root password, at this time there is no password set
  28. mysqladmin --no-defaults --port=3306 --socket=/var/run/mysqld/mysqld.sock --host=127.0.0.1 --user=root password "s
  29. # Setup the root user for MySQL
  30. mysql -u root -h localhost -e "UPDATE mysql.user SET Password=PASSWORD('$rootpass') WHERE User='root';"
  31. mysql -u root -h localhost -e "DELETE FROM mysql.user WHERE user='';"
  32. mysql -u root -h localhost -e "DELETE FROM mysql.user WHERE User='root' AND Host NOT IN ('%', 'localhost', '127.0.
  33. mysql -u root -h localhost -e "FLUSH PRIVILEGES;"
  34. # Create a marker file to ensure this script is not run again
  35. touch /etc/mysql/rhel_configured
  36. service mysql stop removes=None creates=/etc/mysql/rhel_configured _uses_shell=True
  37. Jun 15 13:51:45 infra1 systemd[1]: Starting MariaDB database server...
  38. Jun 15 13:51:45 infra1 systemd[10670]: Failed at step NAMESPACE spawning /bin/sh: Invalid argument
  39. Jun 15 13:51:45 infra1 systemd[1]: mariadb.service: control process exited, code=exited status=226
  40. Jun 15 13:51:45 infra1 systemd[1]: Failed to start MariaDB database server.
  41. Jun 15 13:51:45 infra1 systemd[1]: Unit mariadb.service entered failed state.
  42. Jun 15 13:51:45 infra1 systemd[1]: mariadb.service failed.
  43. Jun 15 13:51:45 infra1 ansible-command[10652]: [WARNING] Consider using service module rather than running service
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement