Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 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 "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". 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 "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-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 1244113

Summary: error when there is a unauthentized proxy between client and satellite: IndexError: list index out of range
Product: Red Hat Enterprise Linux 6 Reporter: Jan Hutař <jhutar>
Component: redhat-access-insightsAssignee: jcrafts
Status: CLOSED ERRATA QA Contact: Martin Kyral <mkyral>
Severity: high Docs Contact:
Priority: high    
Version: 6.7CC: cww, dkutalek, jherrman, jhutar, kroberts, salmy
Target Milestone: rcKeywords: ZStream
Target Release: 6.7   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: redhat-access-insights-1.0.7-3.el6 Doc Type: Bug Fix
Doc Text:
When using Red Hat Satellite with the Red Hat Access Insight plug-in and an unauthenticated proxy between Satellite and the Red Hat Access Insight client, attempting to run the client failed with a "list index out of range" error. This update fixes the bug, and the Red Hat Access Insight client now starts correctly in the above situation.
Story Points: ---
Clone Of:
: 1247363 1248012 1295934 (view as bug list) Environment:
Last Closed: 2016-05-11 00:42:48 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: 1172231, 1247363, 1248012    

Description Jan Hutař 2015-07-17 07:40:43 UTC
Description of problem:
There is an error produced by redhat-access-insights when there is a unauthentized proxy between client and satellite: IndexError: list index out of range


Version-Release number of selected component (if applicable):
Client: redhat-access-insights-1.0.4-0.el6.noarch
Server: redhat-access-plugin-sat5-2.0.0-27.el6.noarch


How reproducible:
always on 1 setup


Steps to Reproduce:
1. Setup Satellite 5.7.0 with all updates and RHAI plugin installed
2. Setup client which is communicating to server via Squid proxy:
   # grep -e enableProxy= -e httpProxy= /etc/sysconfig/rhn/up2date
   enableProxy=1
   httpProxy=squid.redhat.com:3128
   # rhn_check; echo $?
   0
3. Attempt to run RHAI client:
   # redhat-access-insights [--register]


Actual results:
['Traceback (most recent call last):\n', '  File "/usr/bin/redhat-access-insights", line 9, in <module>\n    load_entry_point(\'redhat-access-insights==1.0.4\', \'console_scripts\', \'redhat-access-insights\')()\n', '  File "/usr/lib/python2.6/site-packages/redhat_access_insights/__init__.py", line 362, in _main\n    try_auto_configuration(config)\n', '  File "/usr/lib/python2.6/site-packages/redhat_access_insights/auto_config.py", line 182, in try_auto_configuration\n    _try_satellite5_configuration(config)\n', '  File "/usr/lib/python2.6/site-packages/redhat_access_insights/auto_config.py", line 167, in _try_satellite5_configuration\n    set_auto_configuration(config, hostname, rhn_ca, proxy)\n', '  File "/usr/lib/python2.6/site-packages/redhat_access_insights/auto_config.py", line 55, in set_auto_configuration\n    if not verify_connectivity(config):\n', '  File "/usr/lib/python2.6/site-packages/redhat_access_insights/auto_config.py", line 20, in verify_connectivity\n    ic = InsightsConnection(config)\n', '  File "/usr/lib/python2.6/site-packages/redhat_access_insights/connection.py", line 59, in __init__\n    self.get_proxies(config)\n', '  File "/usr/lib/python2.6/site-packages/redhat_access_insights/connection.py", line 136, in get_proxies\n    password = conf_proxy.split(\'@\')[0].split(\':\')[2]\n', 'IndexError: list index out of range\n']


Expected results:
Should work

Comment 11 errata-xmlrpc 2016-05-11 00:42:48 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://rhn.redhat.com/errata/RHBA-2016-0928.html