Bug 956650
| Summary: | katello-configure w/ user name containing @ fails during creation of pulp user | |||
|---|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Tom McKay <tomckay> | |
| Component: | Content Management | Assignee: | David Davis <daviddavis> | |
| Status: | CLOSED NOTABUG | QA Contact: | Corey Welton <cwelton> | |
| Severity: | high | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | Nightly | CC: | asaleh, cwelton, gkhachik, jmontleo, mmccune, omaciel | |
| Target Milestone: | Unspecified | Keywords: | Regression, Triaged | |
| Target Release: | Unused | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | Bug Fix | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1016761 (view as bug list) | Environment: | ||
| Last Closed: | 2014-05-14 14:06:32 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: | ||
| Embargoed: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1016761 | |||
|
Description
Tom McKay
2013-04-25 11:30:07 UTC
this is definitely still present in 6.0.1 SNAP5. would like to propose moving to MDP2 ACK for 6.0.2 Looks like an error in pulp:
2013-10-08 11:53:42,587 pulp.server.webservices.application:CRITICAL: *************************************************************
2013-10-08 11:53:42,588 pulp.server.webservices.application:ERROR: The Pulp server encountered an unexpected failure during initialization
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py", line 177, in wsgi_application
_initialize_pulp()
File "/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py", line 138, in _initialize_pulp
user_manager.ensure_admin()
File "/usr/lib/python2.6/site-packages/pulp/server/managers/auth/user/cud.py", line 215, in ensure_admin
admin = factory.user_manager().create_user(login=default_login, password=default_password)
File "/usr/lib/python2.6/site-packages/pulp/server/managers/auth/user/cud.py", line 76, in create_user
raise InvalidValue(invalid_values)
InvalidValue: Invalid properties: ['login']
2013-10-08 11:53:42,589 pulp.server.webservices.application:CRITICAL: *************************************************************
katello-installer PR https://github.com/Katello/katello-installer/pull/54 katello PR https://github.com/Katello/katello/pull/3157 katello-installer fe1742ffafa4b53719097d068302b71652326297 956650: Escaping pulp login katello 41babac72a3d418ba271ded07ad2b1ea99ae5bcc 956650: Escape the remote_id for pulp # REOPEN
making run of "katello-configure --db-name=katello --db-user=katello --db-password=katello --deployment=katello --user-name="gkhachik" --user-pass="asdf\!" --user-email=gkhachik --katello-web-workers=2 --org-name=Garik --job-workers=2 --es-min-mem=512M --es-max-mem=1024M --reset-data=YES --no-bars -b" I got $? == 0 for this, ... BUT:
===
subscription-manager orgs --username "gkhachik" --password "asd\!" fails:
"Resource not found on the server"
===
log: /var/log/rhsm/rhsm.log
---
2013-10-21 10:23:21,091 [DEBUG] @connection.py:415 - Making request: GET /katello/api/users/gkhachik%40redhat.com/owners
2013-10-21 10:23:21,185 [DEBUG] @connection.py:434 - Response status: 404
2013-10-21 10:23:21,186 [ERROR] @managercli.py:669 - Resource not found on the server
Traceback (most recent call last):
File "/usr/share/rhsm/subscription_manager/managercli.py", line 655, in _do_command
owners = self.cp.getOwnerList(self.username)
File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 789, in getOwnerList
return self.conn.request_get(method)
File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 481, in request_get
return self._request("GET", method)
File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 443, in _request
self.validateResponse(result)
File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 468, in validateResponse
raise RestlibException(response['status'], error_msg)
RestlibException: Resource not found on the server
2013-10-21 10:23:21,191 [ERROR] @managercli.py:670 - Error: Unable to retrieve org list from server: Resource not found on the server
===
checked on:
* apr-util-ldap-1.3.9-3.el6_0.1.x86_64
* candlepin-0.8.25-1.el6sam.noarch
* candlepin-scl-1-5.el6_4.noarch
* candlepin-scl-quartz-2.1.5-5.el6_4.noarch
* candlepin-scl-rhino-1.7R3-1.el6_4.noarch
* candlepin-scl-runtime-1-5.el6_4.noarch
* candlepin-selinux-0.8.25-1.el6sam.noarch
* candlepin-tomcat6-0.8.25-1.el6sam.noarch
* elasticsearch-0.19.9-8.el6sat.noarch
* foreman-1.3.0-18.el6sat.noarch
* foreman-compute-1.3.0-18.el6sat.noarch
* foreman-libvirt-1.3.0-18.el6sat.noarch
* foreman-postgresql-1.3.0-18.el6sat.noarch
* foreman-proxy-1.3.0-3.el6sat.noarch
* katello-1.4.6-39.el6sat.noarch
* katello-all-1.4.6-39.el6sat.noarch
* katello-candlepin-cert-key-pair-1.0-1.noarch
* katello-certs-tools-1.4.4-1.el6sat.noarch
* katello-cli-1.4.3-24.el6sat.noarch
* katello-cli-common-1.4.3-24.el6sat.noarch
* katello-common-1.4.6-39.el6sat.noarch
* katello-configure-1.4.7-5.el6sat.noarch
* katello-configure-foreman-1.4.7-5.el6sat.noarch
* katello-configure-foreman-proxy-1.4.7-5.el6sat.noarch
* katello-foreman-all-1.4.6-39.el6sat.noarch
* katello-glue-candlepin-1.4.6-39.el6sat.noarch
* katello-glue-elasticsearch-1.4.6-39.el6sat.noarch
* katello-glue-pulp-1.4.6-39.el6sat.noarch
* katello-qpid-broker-key-pair-1.0-1.noarch
* katello-qpid-client-key-pair-1.0-1.noarch
* katello-selinux-1.4.4-4.el6sat.noarch
* openldap-2.4.23-31.el6.x86_64
* pulp-katello-plugins-0.2-1.el6sat.noarch
* pulp-nodes-common-2.3.0-0.22.beta.el6sat.noarch
* pulp-nodes-parent-2.3.0-0.22.beta.el6sat.noarch
* pulp-puppet-plugins-2.3.0-0.22.beta.el6sat.noarch
* pulp-rpm-plugins-2.3.0-0.22.beta.el6sat.noarch
* pulp-selinux-2.3.0-0.22.beta.el6sat.noarch
* pulp-server-2.3.0-0.22.beta.el6sat.noarch
* python-ldap-2.3.10-1.el6.x86_64
* ruby193-rubygem-ldap_fluff-0.2.2-2.el6sat.noarch
* ruby193-rubygem-net-ldap-0.3.1-3.el6sat.noarch
* ruby193-rubygem-runcible-1.0.7-1.el6sat.noarch
* signo-0.0.22-2.el6sat.noarch
* signo-katello-0.0.22-2.el6sat.noarch
Garik, did you test this also with a user without @? And you're not hitting this 404 when your user doesn't have @? @David, of course: we are doing it tons of times during our QA testing (i mean both install and reset of data). Garik, thanks for confirming. I found that comment8 is not related to this bug. If you install a system without using a user who has @ in their name but then create a user that has an @ in their username and call "subscription-manager orgs", it fails as well. For example, I created the admin user with username admin and then went in and created a new user admin. Here's the call from subscription manager: subscription-manager orgs --username "admin" --password "admin" Resource not found on the server Here's a curl request to the url subscription manager is calling: curl http://127.0.0.1:3000/katello/api/users/admin@mail.com/owners -u "admin:admin" {"displayMessage":"Resource not found on the server","errors":["Not found"]}% Here's the rails log: [ INFO 2013-10-25 11:17:35 app] Started GET "/katello/api/users/admin/owners" for 127.0.0.1 at 2013-10-25 11:17:35 -0400 [ INFO 2013-10-25 11:17:35 app] Processing by Api::V1::ErrorsController#render_404 as */* [ INFO 2013-10-25 11:17:35 app] Parameters: {"a"=>"/users/admin/owners"} [DEBUG 2013-10-25 11:17:35 app] Setting locale: en [DEBUG 2013-10-25 11:17:35 app] Setting current user thread-local variable to nil [DEBUG 2013-10-25 11:17:35 app] Checking params for api/v1/errors/render_404 [DEBUG 2013-10-25 11:17:35 app] Setting current user thread-local variable to nil [ INFO 2013-10-25 11:17:35 app] Completed 404 Not Found in 3ms (Views: 0.8ms | ActiveRecord: 0.0ms) [DEBUG 2013-10-25 11:17:35 app] With body: {"displayMessage":"Resource not found on the server","errors":["Not found"]} Here's a curl request for my initial user admin to show that the URL does in fact work: curl http://127.0.0.1:3000/katello/api/users/admin/owners -u "admin:admin" [{"key":"ACME_Corporation","displayName":"ACME_Corporation"}] Here's the rails log: [ INFO 2013-10-25 11:17:55 app] Started GET "/katello/api/users/admin/owners" for 127.0.0.1 at 2013-10-25 11:17:55 -0400 [ INFO 2013-10-25 11:17:55 app] Processing by Api::V1::UsersController#list_owners as */* [ INFO 2013-10-25 11:17:55 app] Parameters: {"username"=>"admin"} [DEBUG 2013-10-25 11:17:55 app] Setting locale: en [DEBUG 2013-10-25 11:17:55 app] Warden is authenticating admin against database [DEBUG 2013-10-25 11:17:55 app] User admin authenticated: database [DEBUG 2013-10-25 11:17:55 app] Setting current user thread-local variable to admin [DEBUG 2013-10-25 11:17:55 app] Checking params for api/v1/users/list_owners [DEBUG 2013-10-25 11:17:55 app] Authorizing admin for api/v1/users/list_owners [DEBUG 2013-10-25 11:17:55 app] Setting current user thread-local variable to nil [ INFO 2013-10-25 11:17:55 app] Completed 200 OK in 35ms (Views: 0.8ms | ActiveRecord: 7.6ms) [DEBUG 2013-10-25 11:17:55 app] With body: [{"key":"ACME_Corporation","displayName":"ACME_Corporation"}] I went ahead and created a bug for comment#12 https://bugzilla.redhat.com/show_bug.cgi?id=1023518 No longer relevant, katello-installer doesn't allow for assigning the admin's name. |