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 1582293

Summary: Unable to unset proxy settings once set
Product: Red Hat Satellite Reporter: Ade Bradshaw <abradshaw>
Component: InstallationAssignee: Chris Roberts <chrobert>
Status: CLOSED ERRATA QA Contact: Perry Gagne <pgagne>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.3.1CC: chrobert, ehelms, pcreech, sghai
Target Milestone: 6.5.0Keywords: Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-05-14 12:37:19 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:

Description Ade Bradshaw 2018-05-24 18:36:12 UTC
Description of problem:
If you set proxy settings they cant be unset

https://access.redhat.com/solutions/1455833 has instructions for 6.1 and 6.2 but if you use the 6.2 instructions you get an error

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

How reproducible:
100 %

Steps to Reproduce:
1.Install sat6.3 and do a setup, setting proxy and port
2.try to unset them


Actual results:
# satellite-installer --katello-proxy-url="" --katello-proxyport=null
Parameter katello-proxy-url invalid:  must match one of (?-mix:^https?:\/\/)
Parameter katello-proxy-port invalid: "null" is not a valid integer
Error during configuration, exiting  

Expected results:
Proxy settings become unset and Satellite uses direct access

Additional info:
Spoke in #satellite6 and we were able to unset the url with 

satellite-installer --katello-proxy-url=UNDEF  

but using the same method for the --katello-proxyport doesnt work


So we need 

a) a method to unset url AND port
b) updated documentation to reflect these changes

Comment 2 Eric Helms 2018-05-31 02:10:06 UTC
One  method to clear these is to remove them from the answers file and then re-run the installer. This should re-set things back to their default empty values.

Comment 3 Chris Roberts 2018-10-03 17:00:14 UTC
Currently in upstream and should be in 6.5

    --reset-katello-proxy-password Reset proxy_password to the default value (UNDEF)
    --reset-katello-proxy-port    Reset proxy_port to the default value (UNDEF)
    --reset-katello-proxy-url     Reset proxy_url to the default value (UNDEF)
    --reset-katello-proxy-username Reset proxy_username to the default value (UNDEF)

Comment 5 Suraj Bora 2018-11-29 08:03:46 UTC
Hi Chris,

I am not able to find 
--reset-katello-proxy-password 
--reset-katello-proxy-port 
--reset-katello-proxy-url 
--reset-katello-proxy-username 

flags in help for satellite-installer utility with satellite-6.5.0-5.beta.el7sat.noarch build.

Can you please let me know if its accepted behavior?

# satellite-installer --help | grep reset
    --reset                       This option will drop the Katello database and clear all subsequent backend data stores. You will lose all data!
    --certs-reset                 This option will reset any custom certificates and use the self-signed CA instead. Note that any clients will need to be updated with the latest katello-ca-consumer RPM, and any external proxies will need to have the certs updated by generating a new certs tarball. (default: false)
#

Comment 6 Suraj Bora 2018-11-29 09:21:38 UTC
Able to see required flags using satellite-installer --full-help option

Comment 7 Suraj Bora 2018-12-04 08:49:12 UTC
Verified bug on: satellite-6.5.0-5

Scenario tested:

1. Verify current proxy setting using satellite-installer --help | grep katello-proxy command.
2. Set the proxy if its not configured

satellite-installer --katello-proxy-url=http://XXXX.XXXX.XX --katello-proxy-port=XXXX --katello-proxy-username=XXXX --katello-proxy-password=XXXXXXXX

3. Verify if proxy is configured using satellite-installer --help | grep katello-proxy command.

4. Reset the proxy setting using following command:
# satellite-installer --reset-katello-proxy-password  --reset-katello-proxy-port --reset-katello-proxy-url --reset-katello-proxy-username

5. Verify if proxy is getting reset using satellite-installer --help | grep katello-proxy command.

Comment 9 Suraj Bora 2018-12-04 08:52:08 UTC
Reset flags can be seen using satellite-installer --full-help option.

Comment 13 errata-xmlrpc 2019-05-14 12:37:19 UTC
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-2019:1222