Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1370582

Summary: Capsule ca-consumer rpm not available on https
Product: Red Hat Satellite Reporter: Peter Vreman <peter.vreman>
Component: InstallationAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Katello QA List <katello-qa-list>
Severity: high Docs Contact:
Priority: high    
Version: 6.2.0CC: bbuckingham, brubisch, daniele, egolov, jcallaha, johan.bergstrom, rjerrido, stbenjam, will_darton
Target Milestone: UnspecifiedKeywords: PrioBumpPM, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-04-13 15:36:39 UTC Type: Bug
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: 1122832, 1422756, 1426423    

Description Peter Vreman 2016-08-26 16:14:04 UTC
Description of problem:
The katello-ca-consumer-latest.noarch.rpm  is not available on port 443 on the capsule.

[crash] root@li-lc-1442:~# curl -k https://li-lc-1589.hag.hilti.com:443/pub/katello-ca-consumer-latest.noarch.rpm
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /pub/katello-ca-consumer-latest.noarch.rpm was not found on this server.</p>
</body></html>


In the problem is that the pulp https is ctaching the request to /pub on port 443:

[crash] root@li-lc-1589:/var/log/httpd# tail -n1 /var/log/httpd/pulp-https_error_ssl.log
[Fri Aug 26 16:05:21 2016] [error] [client 10.92.14.90] File does not exist: /usr/share/pulp/wsgi/pub


Log from port 8443 on the reverse proxy

[crash] root@li-lc-1589:/var/log/httpd# tail -n1 /var/log/httpd/katello-reverse-proxy_access_ssl.log
10.92.14.90 - - [26/Aug/2016:16:05:26 +0000] "GET /pub/katello-ca-consumer-latest.noarch.rpm HTTP/1.1" 200 6500 "-" "curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.19.1 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2"


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Peter Vreman 2016-08-26 16:16:40 UTC
Our security department is not allowing plain http to be configured on a firewall port. Therefor we must be able to use https.

Comment 2 Peter Vreman 2016-08-26 16:34:14 UTC
Patch is to make the /pub not fixed into the :80 virtual hsot

[crash] root@li-lc-1589:/etc/httpd/conf.d# diff -u 05-capsule.conf.160826-1 05-capsule.conf
--- 05-capsule.conf.160826-1    2016-08-26 12:15:39.550278546 +0000
+++ 05-capsule.conf     2016-08-26 16:33:06.907575532 +0000
@@ -25,6 +25,7 @@

   ## Custom fragment
   Include /etc/pulp/vhosts80/*.conf
+</VirtualHost>

 alias /pub /var/www/html/pub

@@ -34,5 +35,3 @@
   Allow from all

 </Location>
-
-</VirtualHost>

Comment 6 Evgeni Golov 2016-08-31 07:43:50 UTC
Wouldn't it be cleaner to add a stanza for /pub/ with "PassengerEnabled off" for the 443 VHost? Like documented in https://www.phusionpassenger.com/library/config/apache/reference/#passengerenabled?

Comment 8 Stephen Benjamin 2016-10-13 15:19:58 UTC
Created redmine issue http://projects.theforeman.org/issues/16904 from this bug

Comment 10 Stephen Benjamin 2017-04-13 15:36:39 UTC
This one is older, but I already started working on BZ1432580 which is the same issue, so marking this is a dupe.

*** This bug has been marked as a duplicate of bug 1432580 ***