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 1413136 - Problem with default AJP hostname in IPv6 environment.
Summary: Problem with default AJP hostname in IPv6 environment.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: pki-core
Version: 7.3
Hardware: All
OS: Linux
urgent
urgent
Target Milestone: rc
: ---
Assignee: RHCS Maintainers
QA Contact: Asha Akkiangady
Petr Bokoc
URL:
Whiteboard:
Depends On:
Blocks: 1398600 1417190
TreeView+ depends on / blocked
 
Reported: 2017-01-13 17:35 UTC by Endi Sukma Dewata
Modified: 2020-10-04 21:21 UTC (History)
6 users (show)

Fixed In Version: pki-core-10.4.0-1.el7
Doc Type: Bug Fix
Doc Text:
*Tomcat* now works with *IPv6* by default The *IPv4*-specific `127.0.0.1` loopback address was previously used in the default server configuration file as the default *AJP* host name. This caused connections to fail on servers which run in *IPv6*-only environments. With this update, the default value is changed to `localhost`, which works with both *IPv4* and *IPv6* protocols. Additionally, an upgrade script is available to automatically change the *AJP* host name on existing server instances.
Clone Of:
: 1417190 (view as bug list)
Environment:
Last Closed: 2017-08-01 22:50:57 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github dogtagpki pki issues 2690 0 None closed Problem with default AJP hostname in IPv6 environment. 2021-02-17 11:20:31 UTC
Red Hat Product Errata RHBA-2017:2110 0 normal SHIPPED_LIVE pki-core bug fix and enhancement update 2017-08-01 19:36:59 UTC

Description Endi Sukma Dewata 2017-01-13 17:35:10 UTC
This bug is cloned from https://fedorahosted.org/pki/ticket/2570.

Currently the IPv4-specific "127.0.0.1" loopback address is used as the default AJP hostname in the default deployment configuration file which may cause problems in IPv6 environment. See the following issues:

* ​https://bugzilla.redhat.com/show_bug.cgi?id=1081561
* ​https://bugzilla.redhat.com/show_bug.cgi?id=1398600 

The default AJP hostname should be changed to use a generic "localhost" address which should work in both IPv4 and IPv6 environments. The man page should be updated as well.

Steps to reproduce:
1. Install basic CA. Do not install IPA to validate this bug since it overrides the default AJP hostname.
2. Check the following entry in server.xml:

 <Connector port="8009"
     protocol="AJP/1.3"
     redirectPort="8443"
     address="..." />

Actual result: The address attribute contains "127.0.0.1" which may not work in IPv6 environment.

Expected result: The address attribute should contain "localhost" which will work in both IPv4 and IPv6 environments.

The workaround is to override the default AJP hostname in the deployment configuration as follows:

[Tomcat]
pki_ajp_host=localhost

Comment 2 Endi Sukma Dewata 2017-01-19 19:43:10 UTC
Fixed in master:
* 5ec9701229b4945cadcf60d84863521ad8485ca5

Comment 3 Endi Sukma Dewata 2017-01-20 14:07:54 UTC
Added upgrade script:
* cb839206d6c1d562e2e4385f6822c7934e9455c6

Backported to 10.3 branch:
* 3a49b9b3738befc03914b0a96aad61f9650fb935
* 6b8c54d29cfc4f448566f50cb27a40eda07052ca

Comment 4 Endi Sukma Dewata 2017-01-20 14:17:45 UTC
The fix should be backported to RHEL 7.3 to address IPA bug #1398600.

Please note that when backporting to RHEL the upgrade script needs to be moved to the upgrade folder matching the RHEL version number (i.e. 10.3.3) and the sequence number in the script file name needs to be updated as well.

Comment 7 Sumedh Sidhaye 2017-05-05 08:31:36 UTC
Build used to verify fix:

[root@pki1 ~]# pki --version
PKI Command-Line Interface 10.4.1-3.el7
[root@pki1 ~]# rpm -qi pki-base
Name        : pki-base
Version     : 10.4.1
Release     : 3.el7
Architecture: noarch
Install Date: Friday 05 May 2017 01:31:47 AM EDT
Group       : System Environment/Base
Size        : 2086078
License     : GPLv2
Signature   : RSA/SHA256, Tuesday 02 May 2017 04:38:09 PM EDT, Key ID 199e2f91fd431d51
Source RPM  : pki-core-10.4.1-3.el7.src.rpm
Build Date  : Tuesday 02 May 2017 03:15:26 PM EDT
Build Host  : ppc-015.build.eng.bos.redhat.com
Relocations : (not relocatable)
Packager    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
Vendor      : Red Hat, Inc.
URL         : http://pki.fedoraproject.org/
Summary     : Certificate System - PKI Framework

Result:

After configuring a pure IPV6 environment and installing a CA instance on it,
the address attribute contains localhost.

Comment 8 errata-xmlrpc 2017-08-01 22:50:57 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/RHBA-2017:2110


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