Bug 794883

Summary: promotion failed: Pulp::Repository: 409 Conflict "Sync already in process for repo
Product: Red Hat Satellite Reporter: James Laska <jlaska>
Component: Content ManagementAssignee: Ivan Necas <inecas>
Status: CLOSED CURRENTRELEASE QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.0.1CC: ansmith, bkearney, ehelms, inecas, jturner
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:27:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
katello-setup.sh
none
/var/log/pulp/pulp.log
none
Script for reproducing the error none

Description James Laska 2012-02-17 20:38:19 UTC
Created attachment 563983 [details]
katello-setup.sh

Description of problem:

Attempting a promotion that consists of 3 system templates fails with the error:

Changeset [ 03 - templates ] promotion failed: Pulp::Repository: 409 Conflict "Sync already in process for repo 
                   [redhat-Stage-Red_Hat_Enterprise_Linux_Server-Red_Hat_Enterprise_Linux_6_Server_RPMs_x86_64_6Server]" (POST 
                   /pulp/api/repositories/redhat-Stage-Red_Hat_Enterprise_Linux_Server-Red_Hat_Enterprise_Linux_6_Server_RPMs_x86_64_6Server/sync/)

Promoting the same templates individually, works without error.

Version-Release number of selected component (if applicable):
 * candlepin-0.5.20-1.el6.src.rpm
 * katello-0.1.238-4.el6.src.rpm
 * katello-certs-tools-1.0.2-2.el6.src.rpm
 * katello-cli-0.1.54-2.el6.src.rpm
 * katello-configure-0.1.64-5.el6.src.rpm
 * katello-httpd-ssl-key-pair-1.0-1.src.rpm
 * katello-qpid-broker-key-pair-1.0-1.src.rpm
 * katello-selinux-0.1.5-2.el6.src.rpm
 * katello-trusted-ssl-cert-1.0-1.src.rpm
 * pulp-0.0.265-1.el6.src.rpm

How reproducible:
 * Seems consistent on my VM with 4G memory and 4 vcpus

Steps to Reproduce:
1. See attached script that performs a series of katello CLI commands
  
Actual results:

Changeset [ 03 - templates ] promotion failed: Pulp::Repository: 409 Conflict "Sync already in process for repo 
                   [redhat-Stage-Red_Hat_Enterprise_Linux_Server-Red_Hat_Enterprise_Linux_6_Server_RPMs_x86_64_6Server]" (POST 
                   /pulp/api/repositories/redhat-Stage-Red_Hat_Enterprise_Linux_Server-Red_Hat_Enterprise_Linux_6_Server_RPMs_x86_64_6Server/sync/)

Expected results:

Changeset [ 03 - templates ] promoted

Additional info:

 * See attached pulp.log

Comment 1 James Laska 2012-02-17 20:40:16 UTC
Created attachment 563984 [details]
/var/log/pulp/pulp.log

Comment 4 Ivan Necas 2012-03-05 11:30:23 UTC
Created attachment 567562 [details]
Script for reproducing the error

Attaching a script that reproduces the error using katello repository

Comment 5 Ivan Necas 2012-03-07 14:39:13 UTC
Promotion of repositories in template wasn't waiting for tasks to finish. Fixed in commit d4c6fd1c74d7dfb7346c95ef63c0a9a0afab25fc

Comment 7 Mike McCune 2012-03-07 23:43:12 UTC
mass move ON_QA after brewing

Comment 8 Jeff Weiss 2012-03-17 01:23:32 UTC
Verified, (Ivan's script works): katello-0.2.14-1.git.5.08fde78.el6.noarch

Comment 10 Mike McCune 2013-08-16 18:09:35 UTC
getting rid of 6.0.0 version since that doesn't exist