[MXS-653] maxpasswd writes notice message to stdout Created: 2016-03-31  Updated: 2016-03-31  Resolved: 2016-03-31

Status: Closed
Project: MariaDB MaxScale
Component/s: maxpasswd
Affects Version/s: None
Fix Version/s: 2.0.0

Type: Bug Priority: Blocker
Reporter: Kolbe Kegel (Inactive) Assignee: Johan Wikman
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to MXS-654 Add test that verifies that maxpasswd... Closed

 Description   

The maxpasswd utility writes a notice message to stdout, which means it's very difficult to capture the output of the maxpasswd tool, which is required in order to obtain the password in a script.

This broke my automated MaxScale deployments.

# maxpasswd /var/lib/maxscale/data/ mypassword 2>/dev/null
6E37E9B0CA3BF6020A3DBCD0DE113546
2016-03-31 17:17:37   notice : Using encrypted passwords. Encryption key: '/var/lib/maxscale/data/.secrets'.



 Comments   
Comment by Johan Wikman [ 2016-03-31 ]

Commit b827ba9de34cb9766754ce187f6ebea5ac1fd136 causes maxpasswd not to log any debug, info or notice messages.

Further, the implementation of MXS-654 ensures that there cannot be regressions either.

Generated at Thu Feb 08 04:00:56 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.