[MXS-4078] maxctrl commands exception with file .maxctrl.cnf Created: 2022-04-06 Updated: 2022-04-13 Resolved: 2022-04-07 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | maxctrl |
| Affects Version/s: | 6.2.4 |
| Fix Version/s: | 6.3.0 |
| Type: | Bug | Priority: | Major |
| Reporter: | suresh ramagiri | Assignee: | markus makela |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
With the .maxctrl.cnf file created, having the details like below: [maxscale@test001 ~]$ cat .maxctrl.cnf Note: I have created a user admin123. Trying to run maxctrl -h <hostname>:8989 -u <user> -p <pass> show maxscale or any commands like show servers, list servers are throwing following error. example: If we remove the .maxctrl.cnf file, all commands with maxctrl are working fine. example: |
| Comments |
| Comment by markus makela [ 2022-04-06 ] |
|
This is a problem with the configuration file, it uses the wrong format for the options: the values must be defined without the -- part. |
| Comment by suresh ramagiri [ 2022-04-06 ] |
|
ha, that looks like the problem here. Tested out, after removing – part defined at the maxctrl.cnf file, it worked normally, no error found which is noted here. maxscale@test001 ~]$ cat .maxctrl.cnf [maxscale@test001 ~]$ maxctrl -h 127.0.0.1:8989 -u admin123 -p password show maxscale Thank You! |
| Comment by suresh ramagiri [ 2022-04-06 ] |
|
It's not a bug. Removing the "--" part from the file, made the things work as expected. |
| Comment by markus makela [ 2022-04-06 ] |
|
It's sort of a bug in the way that maxctrl doesn't give an error for the wrong format. We'll fix it so that it will notify the user about the wrong format. |