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.

Bug 1186760

Summary: Repo creation fails with internal server error in production.log
Product: Red Hat Satellite Reporter: Sachin Ghai <sghai>
Component: WebUIAssignee: Katello Bug Bin <katello-bugs>
WebUI sub component: Katello QA Contact: Katello QA List <katello-qa-list>
Status: CLOSED DUPLICATE Docs Contact:
Severity: high    
Priority: high CC: bbuckingham, jaudet, jsherril, sghai
Version: Unspecified   
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-01-29 18:53:59 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:
Attachments:
Description Flags
logs from production.log on repo creation none

Description Sachin Ghai 2015-01-28 13:45:55 UTC
Created attachment 985161 [details]
logs from production.log on repo creation

Description of problem:
on creating a repository from webUI with Satellite 6.1.0 Snap 0 Compose 6

UI throws:
Task aa839a3f-f445-445d-84f4-a2beeb43c72b: RestClient::RequestTimeout: Request Timeout

Version-Release number of selected component (if applicable):
Satellite 6.1.0 Snap 0 Compose 6  on rhel7

* candlepin-0.9.38-1.el7.noarch
* candlepin-common-1.0.18-1.el7.noarch
* candlepin-guice-3.0-2_redhat_1.el7.noarch
* candlepin-scl-1-5.el7.noarch
* candlepin-scl-quartz-2.1.5-6.el7.noarch
* candlepin-scl-rhino-1.7R3-3.el7.noarch
* candlepin-scl-runtime-1-5.el7.noarch
* candlepin-selinux-0.9.38-1.el7.noarch
* candlepin-tomcat-0.9.38-1.el7.noarch
* elasticsearch-0.90.10-6.el7sat.noarch
* foreman-1.7.2.1-1.el7sat.noarch
* foreman-compute-1.7.2.1-1.el7sat.noarch
* foreman-gce-1.7.2.1-1.el7sat.noarch
* foreman-libvirt-1.7.2.1-1.el7sat.noarch
* foreman-ovirt-1.7.2.1-1.el7sat.noarch
* foreman-postgresql-1.7.2.1-1.el7sat.noarch
* foreman-proxy-1.7.2.1-1.el7sat.noarch
* foreman-selinux-1.7.2.2-1.el7sat.noarch
* foreman-vmware-1.7.2.1-1.el7sat.noarch
* katello-2.2.0.2-1.el7sat.noarch
* katello-certs-tools-2.2.1-1.el7sat.noarch
* katello-common-2.2.0.2-1.el7sat.noarch
* katello-default-ca-1.0-1.noarch
* katello-installer-2.2.0.3-1.el7sat.noarch
* katello-installer-base-2.2.0.3-1.el7sat.noarch
* katello-server-ca-1.0-1.noarch
* openldap-2.4.39-3.el7.x86_64
* pulp-docker-plugins-0.2.1-0.2.beta.el7.noarch
* pulp-katello-0.3-4.el7sat.noarch
* pulp-nodes-common-2.5.0-0.7.beta.el7.noarch
* pulp-nodes-parent-2.5.0-0.7.beta.el7.noarch
* pulp-puppet-plugins-2.5.0-0.7.beta.el7sat.noarch
* pulp-puppet-tools-2.5.0-0.7.beta.el7sat.noarch
* pulp-rpm-plugins-2.5.0-0.7.beta.el7.noarch
* pulp-selinux-2.5.0-0.7.beta.el7.noarch
* pulp-server-2.5.0-0.7.beta.el7.noarch
* python-ldap-2.4.6-6.el7.x86_64
* ruby193-rubygem-ldap_fluff-0.3.2-1.el7.noarch
* ruby193-rubygem-net-ldap-0.3.1-3.el7sat.noarch
* ruby193-rubygem-runcible-1.3.0-1.el7.noarch
* rubygem-hammer_cli-0.1.4.3-1.el7sat.noarch
* rubygem-hammer_cli_foreman-0.1.4.3-1.el7sat.noarch
* rubygem-hammer_cli_foreman_bootdisk-0.1.2.4-1.el7.noarch
* rubygem-hammer_cli_foreman_tasks-0.0.3.1-1.el7.noarch
* rubygem-hammer_cli_gutterball-0.0.1.1-1.el7sat.noarch
* rubygem-hammer_cli_import-0.10.6-1.el7sat.noarch
* rubygem-hammer_cli_katello-0.0.7.1-1.el7sat.noarch


How reproducible:
always 

Steps to Reproduce:
1. create repo from webUI
2.
3.

Actual results:
repo creation fails from webUI, on clicking 'save' button, spinner keeps on rotating for long time and end-up with internal server error.


Expected results:
it should work

Additional info:


Processing by Katello::Api::V2::RepositoriesController#create as JSON
  Parameters: {"product_id"=>"670", "unprotected"=>true, "checksum_type"=>nil, "name"=>"r2", "label"=>"r2", "content_type"=>"yum", "url"=>"http://download.eng.pnq.redhat.com/pub/rhel/released/RHEL-6/6.65/Server/x86_64/os/", "organization_id"=>"1", "api_version"=>"v2", "repository"=>{"name"=>"r2", "label"=>"r2", "url"=>"http://download.eng.pnq.redhat.com/pub/rhel/released/RHEL-6/6.65/Server/x86_64/os/", "unprotected"=>true, "content_type"=>"yum", "product_id"=>"670", "checksum_type"=>nil}}
[ERROR 2015-01-28 08:39:58 pulp_rest  #24616] RestClient.post "https://qe-sat6-rhel7.usersys.redhat.com/pulp/api/v2/repositories/Default_Organization-p1-r2/actions/publish/", "{\"id\":\"Default_Organization-p1-r2\"}", "Accept"=>"*/*; q=0.5, application/xml", "Accept-Encoding"=>"gzip, deflate", "Authorization"=>"OAuth oauth_body_hash=\"2jmj7l5rSw0yVb%2FvlWAYkK%2FYBwk%3D\", oauth_consumer_key=\"katello\", oauth_nonce=\"IbGaYyNlNvkAqNVS3hWpOYL1HBDFaf9OFdR8ymcRXfk\", oauth_signature=\"%2FrA1YEU%2Bpf7ngRQ4AVm0UAWEYDE%3D\", oauth_signature_method=\"HMAC-SHA1\", oauth_timestamp=\"1422452278\", oauth_version=\"1.0\"", "Content-Length"=>"35", "accept"=>"application/json", "content_type"=>"application/json", "pulp-user"=>"admin-c3a10780"
 | 
Request Timeout (RestClient::RequestTimeout)
/opt/rh/ruby193/root/usr/share/gems/gems/rbovirt-0.0.29/lib/restclient_ext/request.rb:56:in `rescue in transmit'
/opt/rh/ruby193/root/usr/share/gems/gems/rbovirt-0.0.29/lib/restclient_ext/request.rb:11:in `transmit'
/opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:64:in `execute'
/opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:33:in `execute'
/opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/resource.rb:67:in `post'
/opt/rh/ruby193/root/usr/share/gems/gems/runcible-1.3.0/lib/runcible/base.rb:91:in `get_response'
/opt/rh/ruby193/root/usr/share/gems/gems/runcible-1.3.0/lib/runcible/base.rb:82:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/runcible-1.3.0/lib/runcible/resources/repository.rb:171:in `publish'

Comment 2 Justin Sherrill 2015-01-28 20:18:12 UTC
can we get a full foreman-debug?

Comment 4 Justin Sherrill 2015-01-28 20:39:56 UTC
Was selinux enabled at all?   Nearly nothing will work if selinux is enabled due to https://bugzilla.redhat.com/show_bug.cgi?id=1185401

Which will require a new pulp build (2.6)

Comment 5 jaudet 2015-01-28 20:41:03 UTC
`getenforce` returns "Enforcing".

Comment 6 Brad Buckingham 2015-01-29 18:53:59 UTC
Based on comment #4 & #5, going to close this one as a duplicate of bug 1185401.  Please re-open if selinux was disabled.

*** This bug has been marked as a duplicate of bug 1185401 ***

Comment 7 Sachin Ghai 2015-04-20 11:10:53 UTC
Clearing need_info flag..