RHSM: when using proxy, test its connectivity first
authorEmilien Macchi <emilien@redhat.com>
Thu, 19 Oct 2017 21:39:36 +0000 (14:39 -0700)
committerVincent S. Cojot <vincent@cojot.name>
Thu, 2 Nov 2017 21:49:00 +0000 (21:49 +0000)
commit1b1739c5ebf677ba12ad53a6b11785471e5f52b5
tree48807fb0901d4d3421c5a4102cd7ded0d0099cc5
parent7bfae61023d34043d8fe9523f88febac6e7597be
RHSM: when using proxy, test its connectivity first

When using RHSM with a proxy, we want to make sure the proxy can be
reached. This patch verify that a tcp socket can be open from the client
to the proxy.

This patch also does a bit of refactoring:
- --retry-delay 10 --max-time 30 is now used in a parameter everytime we
  use curl.
- proxy options are now used everytime curl is used, even for detecting
  which version of Satellite is running, now we use proxy options.

Co-Authored-By: Vincent S. Cojot <vincent@cojot.name>
Change-Id: I4dcac1528c10f698338383445e27c8a613f9bcd9
Closes-Bug: #1724970
(cherry picked from commit f4e46f4b3ddac3f536a3a1955c91447e8b26ffca)
extraconfig/pre_deploy/rhel-registration/scripts/rhel-registration
releasenotes/notes/rhsm_proxy_verify-548f104c97cf5f90.yaml [new file with mode: 0644]