Red Hat Bugzilla – Bug 1037861
rhevm-dwh-setup doesn't check for valid read-only username
Last modified: 2014-01-21 10:03:51 EST
Created attachment 832329 [details] error log from rhevm-dwh-setup Description of problem: The 'rhevm-dwh-setup' utility prompts for a read-only username, but doesn't verify that the username will be accepted by the database. Specifically, usernames with an hyphen "-" are accepted, but cause the utility to fail (e.g. username="rhevm-ro". Version-Release number of selected component (if applicable): 3.3 -- rhevm-dwh-3.3.0-21.el6ev.noarch How reproducible: Run the rhevm-dwh-setup utility, answer yes to creating a read-only user, and supply the username "rhevm-ro" Actual results: Creating read-only user = ERROR Expected results: rhevm-dwh-setup should verify that the provided data is valid. If the data is invalid, such as containing a hyphen which will cause postgresql to fail, a message should be written to the screen, and the user should be prompted for new data. Additional info: Please see attached file, error message is located at the end of the file.
verified in is27, rhevm-dwh-3.3.0-25.el6ev.noarch Provide a username for read-only user : rhev-ro Error: user name can only include alphanumeric characters
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2014-0036.html