[MCOL-943] multi-node postConfigure fails when mysql password is set. Created: 2017-09-27 Updated: 2023-10-26 Resolved: 2017-11-04 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | ? |
| Affects Version/s: | 1.0.11, 1.1.0 |
| Fix Version/s: | 1.0.12, 1.1.1 |
| Type: | Bug | Priority: | Minor |
| Reporter: | David Hill (Inactive) | Assignee: | Daniel Lee (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
multi-node um and pm system |
||
| Sprint: | 2017-20, 2017-21, 2017-22 |
| Description |
|
Customer reported that the postConfigure install failed when they had the mysql password configured in the $HOME/.my.cnf file. So it looks like postConfigure and the installs scripts arent checking for a mysql password that is configured. It does have a command line argument for it. |
| Comments |
| Comment by Geoff Montee (Inactive) [ 2017-09-28 ] |
|
See also |
| Comment by David Hill (Inactive) [ 2017-10-20 ] |
|
fixed in 1.0, 1.1 and 1.2 1.0 commit 539edb51beac372555681ddf8aa0934fb264e86a 1.1 commit 8f5748d50a8c272fdb0b779aa32a7c6523b92100 1.2 commit d21eac4951b81a419e107de1132d944f51aecc66 |
| Comment by David Hill (Inactive) [ 2017-10-23 ] |
|
To test out the mysql password setup, follow these instructions to setup the .my.cnf file https://mariadb.com/kb/en/library/mariadb-columnstore-system-usage/#mysql-root-user-password here is an example I tested with: [mariadb-user@ip-172-30-0-161 ~]$ cat .my.cnf so to test... 1. do installs without a password including local query |
| Comment by David Hill (Inactive) [ 2017-11-01 ] |
|
NOTES from Daniel Lee Build tested: 1.1.1-1 Because of the issue of 1) Installed a 1um2pm local query stack (replication is not working because of Here is the content of my .my.cnf file [client] The bug ticket indicated that the section name should be [mysqladmin], but it did not work for me. 4) shutdownsystem I also did a shutsystem again and startsystem, the stack came up and mcsmysql work with .my.cnf on all nodes. I also add a addmodule test and the .my.cnf file did get push to the newly added module. |
| Comment by David Hill (Inactive) [ 2017-11-01 ] |
|
Also Daniel discovered the client should be in the .my.cnf file with username and password. When client is there, mysqld will automatically log in. With this being the case, OAM code doesnt need to try to parse the .my.cnf file to extract the password and pass it in via command line argument. Will test that out and hopefully will resolve the issues Daniel is having.. |
| Comment by David Hill (Inactive) [ 2017-11-02 ] |
|
all of our scripts where we are calling mysqld will now just have mysqld extract the password from .my.cnf. previous code OAM was parsing the password from this file and passing it as a command line argument... Daniel showed me yesterday that is you setup .my.cnf with 'client' subsection, then mysqld will automatically read the password from there... so no need for our code to pass it as a command line argument.. |
| Comment by David Hill (Inactive) [ 2017-11-02 ] |
|
commit f9bdec3225cf383811fbdd6aa61754473a950221 |