Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1037861 - rhevm-dwh-setup doesn't check for valid read-only username
rhevm-dwh-setup doesn't check for valid read-only username
Status: CLOSED ERRATA
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-dwh (Show other bugs)
3.3.0
Unspecified Unspecified
unspecified Severity high
: ---
: 3.3.0
Assigned To: Itamar Heim
Barak Dagan
integration
: Triaged
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-12-03 18:46 EST by John Call
Modified: 2014-01-21 10:03 EST (History)
6 users (show)

See Also:
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 10:03:51 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
error log from rhevm-dwh-setup (22.04 KB, text/plain)
2013-12-03 18:46 EST, John Call
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2014:0036 normal SHIPPED_LIVE rhevm-dwh 3.3 bug fix and enhancement update 2014-01-21 14:53:35 EST

  None (edit)
Description John Call 2013-12-03 18:46:24 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.
Comment 2 Barak Dagan 2013-12-18 05:54:39 EST
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 10:03:51 EST
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

Note You need to log in before you can comment on or make changes to this bug.