Bug 1037861

Summary: rhevm-dwh-setup doesn't check for valid read-only username
Product: Red Hat Enterprise Virtualization Manager Reporter: John Call <jcall>
Component: ovirt-engine-dwhAssignee: Itamar Heim <iheim>
Status: CLOSED ERRATA QA Contact: Barak Dagan <bdagan>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.3.0CC: acathrow, iheim, pstehlik, Rhev-m-bugs, yeylon, ylavi
Target Milestone: ---Keywords: Triaged
Target Release: 3.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: integration
Fixed In Version: rhevm-dwh-3.3.0-25.el6ev.noarch.rpm Doc Type: Bug Fix
Doc Text:
rhevm-dwh-setup now checks for valid names when creating a read-only user. The user name can only include alphanumeric characters, otherwise an error message appears.
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-21 15:03:51 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
error log from rhevm-dwh-setup none

Description John Call 2013-12-03 23:46:24 UTC
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.

Comment 2 Barak Dagan 2013-12-18 10:54:39 UTC
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

Comment 5 errata-xmlrpc 2014-01-21 15:03:51 UTC
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