Bug 755107

Summary: Promoting errata fails with connection timed out to pulp
Product: Red Hat Satellite Reporter: Justin Sherrill <jsherril>
Component: APIAssignee: Mike McCune <mmccune>
Status: CLOSED CURRENTRELEASE QA Contact: Garik Khachikyan <gkhachik>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: bkearney, gkhachik, mkoci, mmccune
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-22 18:07:57 UTC Type: ---
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: 747354    

Description Justin Sherrill 2011-11-18 21:07:22 UTC
Description of problem:
Promoting an errata gives the following error as part of the delayed job:


2011-11-18T15:10:35-0500: [Worker(delayed_job host:dhcp77-170.rhndev.redhat.com pid:1933)] Changeset#promote_content failed with RestClient::RequestTimeout: Pulp::Repository: Request Timeout  (GET /pulp/api/repositories/ACME_Corporation-Devel-Red_Hat_Enterprise_Linux_Server-Red_Hat_Enterprise_Linux_6_Server_RPMs_61_x86_64/packages/) - 0 failed attempts
2011-11-18T15:10:36-0500: [Worker(delayed_job host:dhcp77-170.rhndev.redhat.com pid:1933)] PERMANENTLY removing Changeset#promote_content because of 1 consecutive failures.


Version-Release number of selected component (if applicable):
katello-0.1.108-2.el6.x86_64
pulp-0.0.248-3.el6.noarch


How reproducible:
always for me

Steps to Reproduce:
1.  Add an errata to a changeset
2.  Promote said changeset

  
Actual results:
Changeset fails to promote


Additional info:
I'm not sure if this is specific to my environment.  Listing packages for that repo seems to work fine from within the console (and viewing the packages of the product in the UI), so i'm not sure why it would timeout during promotion

Comment 1 Mike McCune 2011-11-30 21:26:14 UTC
A workaround that can be attempted in the short term is increasing the timeout value in our configuration file:

common:
 ...
  rest_client_timeout: 30

change that to 120 and restart katello and katello-jobs services.

Comment 2 Mike McCune 2011-11-30 21:27:00 UTC
forgot to mention the config file is located : /etc/katello/katello.yml

Comment 3 Mike McCune 2011-11-30 23:42:55 UTC
we will be testing with an updated version of pulp that greatly speeds up promotion.  This should help or remove these timeout issues.

Comment 4 Mike McCune 2011-12-02 22:59:57 UTC
Updated version of pulp :

pulp-0.0.253-1.el6.noarch

or greater fixes this issue.  moving to MODIFIED

Comment 5 Mike McCune 2012-01-26 19:07:40 UTC
mass ON_QA move

Comment 8 Garik Khachikyan 2012-02-01 11:42:27 UTC
# VERIFIED

doing promotion of the changeset (having erratas) goes now considerably fast and there is not timeout on pulp side.

done through CLI.

checked against:
---
katello-0.1.208-1.git.0.93b84c2.el6.noarch
pulp-0.0.263-1.el6.noarch
katello-cli-0.1.49-1.git.0.6962a71.el6.noarch