Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1194204 - Unable to register discovered host via https proxy
Unable to register discovered host via https proxy
Status: CLOSED ERRATA
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Discovery Plugin (Show other bugs)
6.1.0
Unspecified Unspecified
high Severity high (vote)
: Unspecified
: Unused
Assigned To: Lukas Zapletal
Sachin Ghai
http://projects.theforeman.org/issues...
: Triaged
Depends On:
Blocks: 1193977
  Show dependency treegraph
 
Reported: 2015-02-19 05:41 EST by Sachin Ghai
Modified: 2017-02-23 15:28 EST (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-08-12 01:25:16 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
we can register the host via https proxy (33.06 KB, image/png)
2015-04-02 09:01 EDT, Sachin Ghai
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
Foreman Issue Tracker 9459 None None None 2016-04-22 12:16 EDT
Red Hat Product Errata RHSA-2015:1592 normal SHIPPED_LIVE Important: Red Hat Satellite 6.1.1 on RHEL 6 2015-08-12 05:04:35 EDT

  None (edit)
Description Sachin Ghai 2015-02-19 05:41:27 EST
Description of problem:
I ran the discovery via https proxy and while registering the host with server, I got following error:

---
[2015-02-19T15:37:45.309389 #914] ERROR -- : Unable to resolve hostname for connecting client - 192.168.100.34. If it's to be a trusted host, ensure it has a reverse DNS entry.

no name for 192.168.100.34
192.168.100.34 - - [19/Feb/2015 15:37:45] "POST /discovery/create HTTP/1.1" 403 159 0.0256
E, [2015-02-19T15:38:15.854556 #914] ERROR -- : Unable to resolve hostname for connecting client - 192.168.100.34. If it's to be a trusted host, ensure it has a reverse DNS entry.
--


Version-Release number of selected component (if applicable):
sat6.1 beta snap3
Satellite-6.1.0-RHEL-6-20150217.0

How reproducible:
always

Steps to Reproduce:
1. discover the host via https proxy
2.
3.

Actual results:
Unable to register discovered host via https proxy

Expected results:
Host should be successfully discovered and registered with sat6 server

Additional info:
Comment 1 Lukas Zapletal 2015-02-19 08:56:19 EST
Fix awaiting review upstream.
Comment 5 Sachin Ghai 2015-02-26 06:04:55 EST
Verified with

sat6.1 beta snap4
Satellite-6.1.0-RHEL-6-20150224.0

I can discover host via proxy and it returns 200 in proxy.log

--
192.168.100.13 - - [26/Feb/2015 10:56:05] "POST /discovery/create HTTP/1.1" 200 - 0.8850
192.168.100.15 - - [26/Feb/2015 11:03:24] "POST /discovery/create HTTP/1.1" 200 - 0.5615
--
Comment 9 Sachin Ghai 2015-03-13 08:02:46 EDT
Installed sat6.1 beta snap6 compose2 (Satellite-6.1.0-RHEL-6-20150311.1). 

When I installed discovery smart_proxy package, I didn't restart the foreman-proxy service and discovery got failed with 404 error. But when I restarted the foreman-proxy service on sat6 server, discovery succeed.

So not sure what changes we have made as per comment 6 ? Is it expected that user has to restart the service after installing proxy package ?
Comment 10 Lukas Zapletal 2015-03-13 08:18:29 EDT
The smart_proxy_discovery package is expected to be installed by default, thus no manual installation and restart is needed. If it was not installed by default in the latest compose, then it failed QA I guess.
Comment 11 Sachin Ghai 2015-03-13 11:16:17 EDT
I Think it was discused earlier that foreman discovery plugin will be auto installed but smart_proxy_plugin will be installed manually. 

If this requirement is changed now and both needs to be installed automatically then its not working as per new requirement with recent snap.

User still needs to install smart_proxy_discovery package manually and need to restart the foreman-proxy service.
Comment 12 Sachin Ghai 2015-03-13 11:18:31 EDT
Moving to assigned state as per comment 10 and 11. Please make the appropriate change so that mart_proxy_discovery package installed automatically.
Comment 16 Sachin Ghai 2015-04-02 09:00:14 EDT
Verified with snap9(Satellite-6.1.0-RHEL-6-20150331.1).

Now foreman discovery plugin and smart_proxy package installed automatically via installer. And we can register the discovered host via https proxy.
Comment 17 Sachin Ghai 2015-04-02 09:01:36 EDT
Created attachment 1010155 [details]
we can register the host via https proxy
Comment 18 Bryan Kearney 2015-08-11 09:19:02 EDT
This bug is slated to be released with Satellite 6.1.
Comment 19 errata-xmlrpc 2015-08-12 01:25:16 EDT
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/RHSA-2015:1592

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