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 784093 - Can't re-promote a product if repos are unsynced
Summary: Can't re-promote a product if repos are unsynced
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: API
Version: 6.0.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: Unspecified
Assignee: Bryan Kearney
QA Contact: Jitendra Yejare
URL:
Whiteboard:
Depends On:
Blocks: katello-blockers
TreeView+ depends on / blocked
 
Reported: 2012-01-23 19:35 UTC by Mike McCune
Modified: 2019-02-25 21:56 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-01-23 19:37:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Mike McCune 2012-01-23 19:35:18 UTC
If you try and promote a product that has one of the enabled repos unsynced the promotion will fail with a pulp error.  We need to be able to promote a Product if one of the repos remains unsynced.

Steps to reproduce:

1) import RHEL manifest
2) Enable: "Red Hat Enterprise Linux 6 Server - Optional RPMs x86_64 62"
3) Enable: "Red Hat Enterprise Linux 6 Server RPMs x86_64 62"
4) Sync  "Red Hat Enterprise Linux 6 Server RPMs x86_64 62"
5) Do NOT sync the Optional repo
6) Create a changeset, review and promote the RHEL product.  Should go OK
7) Create a 2nd changeset and try and promote RHEL again.  Will get stuck with a pulp error in the logfile:

2012-01-24 03:09:37,467 27151:140291405244160: pulp.server.api.synchronizers:INFO: synchronizers:1211 Copying repodata from /var/lib/pulp//repos/ACME_Corporation/Locker/content/dist/rhel/server/6/6.2/x86_64/optional/os/repodata to /var/lib/pulp//repos/ACME_Corporation/Dev/content/dist/rhel/server/6/6.2/x86_64/optional/os/repodata
2012-01-24 03:09:37,468 27151:140291405244160: pulp.server.api.synchronizers:ERROR: synchronizers:1216 Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/pulp/server/api/synchronizers.py", line 1214, in local
    shutil.copytree(src_repodata_dir, dst_repodata_dir)
  File "/usr/lib64/python2.6/shutil.py", line 136, in copytree
    names = os.listdir(src)
OSError: [Errno 2] No such file or directory: '/var/lib/pulp//repos/ACME_Corporation/Locker/content/dist/rhel/server/6/6.2/x86_64/optional/os/repodata'

Comment 1 Mike McCune 2012-01-23 19:37:01 UTC
nevermind, it promoted, just took forever :)  

will file a new bug that repromotions take too long:

2012-01-24T03:22:39-0500: [Worker(delayed_job host:sat-perf-04.idm.lab.bos.redhat.com pid:27728)] Changeset#promote_content completed after 783.1144

Comment 3 Mike McCune 2013-08-16 18:14:20 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.