Install and configure in Installation Guide

Bug #1642757 reported by cargonza
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-manuals
Invalid
High
Phil Hopkins

Bug Description

I'm stepping through the MYSQL configuration: http://docs.openstack.org/newton/install-guide-ubuntu/keystone-install.html

Stepping through "$ mysql -u root -p" this command does not work out of the box. There seems to be a bug with mysql where you have to clear the root password by utilizing the steps outlined http://superuser.com/questions/949496/cant-reset-mysql-mariadb-root-password in this page in order to get into the database.

MariaDB [mysql]> Use mysql
MariaDB [mysql]> SELECT user, plugin FROM user;
UPDATE user SET plugin="";
UPDATE user SET password=PASSWORD("my_password") WHERE user="root";
FLUSH PRIVILEGES;

$ sudo service mysql restart

I think its well worth nothing the issue here in order to make the experience a bit easier for the user. Initially, I was having a painless experience going through the documentation steps. However, the above was my first challenge which resulted in deciding on opening a bug. There were some minor items but it was small compared to this one.

-----------------------------------
Release: 0.1 on 2016-11-17 09:11
SHA: fee9331b58b9dd551d5bf2d889d35811d5b9d0ce
Source: http://git.openstack.org/cgit/openstack/openstack-manuals/tree/doc/install-guide/source/keystone-install.rst
URL: http://docs.openstack.org/newton/install-guide-ubuntu/keystone-install.html

Revision history for this message
Alexandra Settle (alexandra-settle) wrote :

I see, since this is a bug in mysql we should definitely include a notation explaining this.

Fix: Include a note in http://docs.openstack.org/newton/install-guide-ubuntu/keystone-install.html explaining that there is a known issue with mysql and password resets. See above link for more context.

Changed in openstack-manuals:
importance: Undecided → High
status: New → Confirmed
milestone: none → ocata
Revision history for this message
Phil Hopkins (phil-hopkins-a) wrote :

MariaDB is by default now using a unix_socket to connect to the database server. This eliminates the need for a password for the root user. As such the install manual is correct, you should be root when performing these commands. As root you will not need a password to connect to the database, nor can you set one to be used in this context.

Please see bug - https://bugs.launchpad.net/openstack-manuals/+bug/1647848

Changed in openstack-manuals:
status: Confirmed → Invalid
Revision history for this message
Phil Hopkins (phil-hopkins-a) wrote :

This is one of several bugs posted regarding the same issue. This problem will be resolved in:
https://bugs.launchpad.net/openstack-manuals/+bug/1647848

Closing this bug report.

Phil

Changed in openstack-manuals:
assignee: nobody → Phil Hopkins (phil-hopkins-a)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.