Bug 794883 - promotion failed: Pulp::Repository: 409 Conflict "Sync already in process for repo
Summary: promotion failed: Pulp::Repository: 409 Conflict "Sync already in process for...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Management
Version: 6.0.1
Hardware: Unspecified
OS: Unspecified
unspecified
medium vote
Target Milestone: Unspecified
Assignee: Ivan Necas
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-17 20:38 UTC by James Laska
Modified: 2019-09-26 13:31 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-22 18:27:54 UTC
Target Upstream Version:


Attachments (Terms of Use)
katello-setup.sh (10.42 KB, text/plain)
2012-02-17 20:38 UTC, James Laska
no flags Details
/var/log/pulp/pulp.log (64.00 KB, text/plain)
2012-02-17 20:40 UTC, James Laska
no flags Details
Script for reproducing the error (1.61 KB, application/x-shellscript)
2012-03-05 11:30 UTC, Ivan Necas
no flags Details

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


Note You need to log in before you can comment on or make changes to this bug.