Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1355752 - content view publish may fail if 'publish via http' was changed to false on a repo
content view publish may fail if 'publish via http' was changed to false on a...
Status: CLOSED ERRATA
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Pulp (Show other bugs)
6.2.0
Unspecified Unspecified
unspecified Severity high (vote)
: 6.2.8
: Unused
Assigned To: Justin Sherrill
jcallaha
http://projects.theforeman.org/issues...
: Triaged
: 1219558 1222367 (view as bug list)
Depends On:
Blocks: GSS_Sat6Beta_Tracker/GSS_Sat6_Tracker 1417089
  Show dependency treegraph
 
Reported: 2016-07-12 08:36 EDT by Justin Sherrill
Modified: 2017-10-02 05:35 EDT (History)
13 users (show)

See Also:
Fixed In Version: pulp-katello-1.0.2-2
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1417089 (view as bug list)
Environment:
Last Closed: 2017-03-06 03:27:20 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Foreman Issue Tracker 15649 None None None 2016-07-12 09:02 EDT
Red Hat Product Errata RHBA-2017:0447 normal SHIPPED_LIVE Satellite 6.2.8 Async Bug Release 2017-03-06 08:23:41 EST

  None (edit)
Description Justin Sherrill 2016-07-12 08:36:16 EDT
There is a conflict in the way that $SUBJECTs work together, because:

1.  when setting a repo to not be published via http after it has been already been published leaves a dangling symlink
2.  the yum clone distributor first starts by using the http symlink to find the path to copy its content from

We can exploit this by:

1.  Create a repo with 'publish via http' set to true, url set to some upstream repo (https://jlsherrill.fedorapeople.org/fake-repos/needed-errata/)
2.  Sync the repo
3.  Set 'publish via http' to false
4.  Create a content view
5.  Add this repo to the content view
6.  Publish the content view

Your publish will fail on the yum clone distributor step.
Comment 1 Justin Sherrill 2016-07-12 08:36:17 EDT
Created from redmine issue http://projects.theforeman.org/issues/15649
Comment 2 Justin Sherrill 2016-07-12 08:36:20 EDT
Upstream bug assigned to jsherril@redhat.com
Comment 5 Bryan Kearney 2016-08-01 10:16:25 EDT
Moving to POST since upstream bug http://projects.theforeman.org/issues/15649 has been closed
Comment 6 Bryan Kearney 2016-09-11 11:42:02 EDT
*** Bug 1222367 has been marked as a duplicate of this bug. ***
Comment 7 Brad Buckingham 2016-09-14 14:47:36 EDT
*** Bug 1219558 has been marked as a duplicate of this bug. ***
Comment 9 Perry Gagne 2016-10-20 16:09:03 EDT
I Verified this fix, but doing the steps Justin described above:

1.  Create a repo with 'publish via http' set to true, url set to some upstream repo (https://jlsherrill.fedorapeople.org/fake-repos/needed-errata/)
2.  Sync the repo
3.  Set 'publish via http' to false
4.  Create a content view
5.  Add this repo to the content view
6.  Publish the content view

And the content view was successfully published.

Verified in Satellite 6.3 Snap 5.0
Comment 10 jcallaha 2017-02-13 13:57:37 EST
Verified in Satellite 6.2.8 Snap 2.

I followed the steps out lined in the initial bug report, and was able to publish the content view without any issues. Then I created a content view with mixed settings (some yes, some no) and was also able to publish the content views without any problems.
Comment 12 errata-xmlrpc 2017-03-06 03:27:20 EST
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:0447

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