Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
+++ This bug was initially created as a clone of Bug #813291 +++
Created attachment 578013[details]
db_seed.log
Description of problem:
We use email addresses as username in RHN/RHSM (for example our QA account is qa). While SAM is supposed to act as sort of proxy to RHSM, I've expected it to support such user names too.
So I tried:
# katello-configure --deployment=sam --user-name=qa --user-pass=redhatqa --org-name="Red Hat"
and I got failure (in the log):
Validation failed: Username cannot contain characters other than alpha numerals,'_', '-'.
Then I tried:
# katello-configure --deployment=sam --user-name=admin --user-pass=admin --org-name="Red Hat"
and I got the same failure again.
Version-Release number of selected component (if applicable):
katello-configure-0.1.107-1.el6.noarch
How reproducible:
Install RHEL-6.2 GA and register to RHN, add SAM-2012-04-12.2 repository.
Steps to Reproduce:
1. yum -y install katello-headpin-all
2. katello-configure --deployment=sam --user-name=qa --user-pass=redhatqa --org-name="Red Hat"
3. katello-configure --deployment=sam --user-name=admin --user-pass=admin --org-name="Red Hat"
Actual results:
[root@hp-dl360g5-01 ~]# katello-configure --deployment=sam --user-name=qa --user-pass=redhatqa --org-name="Red Hat"
Starting Katello configuration
The top-level log file is [/var/log/katello/katello-configure-20120417-072817/main.log]
Creating Katello database user
############################################################ ... OK
Creating Katello database
############################################################ ... OK
Creating Candlepin database user
############################################################ ... OK
Creating Candlepin database
############################################################ ... OK
Candlepin setup
############################################################ ... OK
Populating Katello database schema
############################################################ ... OK
Initializing Katello data
###########################################################
Failed, please check [/var/log/katello/katello-configure/db_seed.log]
[root@hp-dl360g5-01 ~]# echo $?
6
[root@hp-dl360g5-01 ~]# katello-configure --deployment=sam --user-name=admin --user-pass=admin --org-name="Red Hat"
Starting Katello configuration
The top-level log file is [/var/log/katello/katello-configure-20120417-073559/main.log]
Initializing Katello data
###########################################################
Failed, please check [/var/log/katello/katello-configure/db_seed.log]
[root@hp-dl360g5-01 ~]#
Expected results:
1. katello-configure should support '@' in user names.
2. katello-configure should either refuse wrong the username beforehand or be able to resume, when run again with correct params.
Additional info:
db_seed.log attached
--- Additional comment from pm-rhel on 2012-04-17 08:13:59 EDT ---
Since this issue was entered in bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.
--- Additional comment from pm-rhel on 2012-04-17 08:14:41 EDT ---
Thank you for your bug report. This issue was evaluated for inclusion
in the current release of Subscription Asset Manager (SAM). Unfortunately,
we are unable to address this request. Because we are in the final stages
of development in the current release, only significant, release-blocking
issues involving serious regressions and data corruption can be considered.
If you believe this issue meets the release blocking criteria as defined and
communicated to you by your Red Hat Support representative, please ask
your representative to file this issue as a blocker for the current release.
Otherwise, ask that it be evaluated for inclusion in the next release of SAM.
--- Additional comment from pm-rhel on 2012-04-17 08:33:58 EDT ---
Thank you for your bug report. This issue was evaluated for inclusion
in the current release of Subscription Asset Manager (SAM). Unfortunately,
we are unable to address this request. Because we are in the final stages
of development in the current release, only significant, release-blocking
issues involving serious regressions and data corruption can be considered.
If you believe this issue meets the release blocking criteria as defined and
communicated to you by your Red Hat Support representative, please ask
your representative to file this issue as a blocker for the current release.
Otherwise, ask that it be evaluated for inclusion in the next release of SAM.
--- Additional comment from bkearney on 2012-04-27 13:49:55 EDT ---
Did not make it in. Moving to 1.2.
--- Additional comment from tomckay on 2012-10-29 13:56:49 EDT ---
We will allow these usernames in headpin mode only for now. Katello will remain restrictive until pulp is fixed.
Short version.
We need to allow @ and "." in usernames. Pulp v2 does not like these characters (even though they have an RFE on it). So either we need to change katello to use user db ids for pulp username or wait for pulp to accept everything. We may need to do the db id or UUID for i18n usernames also in the future..