Bug 900997 (JBEWS-21) - mod_cluster: advertising doesn't work in mixed IPv4/IPv6 setting
Summary: mod_cluster: advertising doesn't work in mixed IPv4/IPv6 setting
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: JBEWS-21
Product: JBoss Enterprise Web Server 2
Classification: JBoss
Component: mod_cluster
Version: 2.0.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 2.0.1
Assignee: Weinan Li
QA Contact: Libor Fuka
URL: http://jira.jboss.org/jira/browse/JBE...
Whiteboard: ews httpd mod_cluster
Depends On:
Blocks: 956987 956990
TreeView+ depends on / blocked
 
Reported: 2012-10-04 09:19 UTC by Ladislav Thon
Modified: 2014-08-08 04:24 UTC (History)
14 users (show)

Fixed In Version:
Clone Of:
Environment:
RHEL 6
Last Closed: 2014-01-03 12:58:45 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 900723 1 None None None 2021-01-20 06:05:38 UTC
Red Hat Issue Tracker JBEWS-21 0 Major Closed mod_cluster: advertising doesn't work in mixed IPv4/IPv6 setting 2020-04-21 08:07:27 UTC

Internal Links: 900723

Description Ladislav Thon 2012-10-04 09:19:24 UTC
Affects: Release Notes
project_key: JBEWS

Advertising in mod_cluster doesn't work in mixed IPv4/IPv6 setting. Specifically, I have this configuration:

{code:title=.../conf.d/mod_cluster.conf|borderColor=#ccc|titleBGColor=#F7D6C1|bgColor=#FFFFCE}
LoadModule slotmem_module modules/mod_slotmem.so
LoadModule manager_module modules/mod_manager.so
LoadModule proxy_cluster_module modules/mod_proxy_cluster.so
LoadModule advertise_module modules/mod_advertise.so

MemManagerFile "/home/test/jboss-ews-2.0/httpd/cache/mod_cluster"

<IfModule manager_module>
  Listen 6666
  LogLevel debug
  <VirtualHost 127.0.0.1:6666>
    <Directory />
      Order deny,allow
      Deny from all
      Allow from all
    </Directory>
    KeepAliveTimeout 60
    MaxKeepAliveRequests 0
    ServerAdvertise on
    AdvertiseFrequency 5
    ManagerBalancerName qacluster
    AdvertiseGroup 224.0.1.105:25533
    #AdvertiseGroup [ff01::1]:25533
    EnableMCPMReceive

    <Location /mcm>
      SetHandler mod_cluster-manager
      Order deny,allow
      Deny from all
      Allow from all
    </Location>
  </VirtualHost>
</IfModule>
{code}

This works just fine, I can see advertising using {{java Advertize 224.0.1.105 25533}} both on RHEL 5 and RHEL 6 (on RHEL 5, I have to add {{-Djava.net.preferIPv4Stack=true}}).

If I change the {{AdvertiseGroup}} setting to the IPv6 one (it's commented out in the listing above), it stops working on RHEL 6. "Stops working" means I can no longer see it advertise using {{java Advertize \[ff01::1\] 25533}}. It still works just fine on RHEL 5.

I can see these messages in {{error_log}}:

{code:title=.../logs/error_log|borderColor=#ccc|titleBGColor=#F7D6C1|bgColor=#FFFFCE}
...
[Thu Oct 04 04:58:45 2012] [error] (22)Invalid argument: mod_advertise: ma_group_join apr_mcast_hops failed
[Thu Oct 04 04:58:45 2012] [error] (22)Invalid argument: mod_advertise: multicast join failed for ff01::1:25533.
...
{code}

These messages look like MODCLUSTER-290, but it is in different setting (mixed IPv4 and IPv6).

I have one RHEL 5 box and one RHEL 6 box from Beaker where I can reproduce this issue -- ask me if you want access.

Comment 1 Ladislav Thon 2012-10-04 09:21:40 UTC
Link: Added: This issue relates to JBPAPP-9551


Comment 2 Jean-Frederic Clere 2012-10-04 09:41:34 UTC
It is  MODCLUSTER-290.

Comment 3 Ladislav Thon 2012-10-04 09:45:34 UTC
Fair enough. But MODCLUSTER-290 is set to be fixed in 1.2.1.Beta1 and this still happens in EWS 2.0.0-CR1.

Comment 4 Jean-Frederic Clere 2012-10-04 09:48:42 UTC
See JBPAPP-9087. it requires a patch in apr are you sure you have the latest version of apr?

Comment 5 Jean-Frederic Clere 2012-10-04 09:51:02 UTC
https://bugzilla.redhat.com/show_bug.cgi?id=824515

Comment 6 Ladislav Thon 2012-10-04 10:21:39 UTC
Sorry, I didn't notice JBPAPP-9087. I didn't realize that native mod_cluster libraries use system-wide {{apr}} in EWS. Looks like the patch for {{apr}} was already delivered in RHEL 6.2, but not yet in 6.3 -- which is the one I installed. Once again, sorry for bugging you.

Comment 7 Radim Hatlapatka 2012-10-17 11:16:33 UTC
In RHEL 6.3 is regression in apr libraries => this issue is still there, in repository is the newest apr-devel/apr-util-devel in version 1.3.9-3.el6_1.2

Comment 8 Radim Hatlapatka 2012-10-17 11:19:44 UTC
Fix is available in apr-devel-1.3.9-5.el6_2, which is not installable from repository => not available for customer in default, he needs to have subscription to RHN channel to get this version

Comment 9 Radim Hatlapatka 2012-10-17 11:20:09 UTC
Information about this should be added to release notes as known issue

Comment 10 Radim Hatlapatka 2012-10-17 11:25:11 UTC
Release Notes Docs Status: Added: Documented as Known Issue
Affects: Added: Release Notes


Comment 11 Radim Hatlapatka 2012-10-17 11:53:51 UTC
Release Notes Docs Status: Removed: Documented as Known Issue Added: Not Yet Documented


Comment 12 Permaine Cheung 2012-10-17 13:09:31 UTC
Assigning to Weinan to follow up.
Weinan, can you also check on a VM to see if that particular build is available from base RHEL? Looks like it should be available in base RHEL 6.

Comment 13 Radim Hatlapatka 2012-10-18 15:04:31 UTC
If user is registered to RHN channel then he is able to get update of the apr libraries to version containing fix.

Comment 14 Misha H. Ali 2012-10-23 05:36:34 UTC
Release Notes Docs Status: Removed: Not Yet Documented Added: Documented as Known Issue


Comment 15 Misha H. Ali 2012-10-23 05:36:57 UTC
Writer: Added: mhusnain


Comment 16 Misha H. Ali 2012-10-23 05:49:41 UTC
Release Notes Text: Added: When using JBoss Enterprise Web Server with Red Hat Enterprise Linux 5 and 6, advertising using mod_cluster fails when a mixed protocol setting (IPv4 and IPv6) is used. The following error message displays in the error_log:

[error] (22)Invalid argument: mod_advertise: ma_group_join apr_mcast_hops failed
[error] (22)Invalid argument: mod_advertise: multicast join failed for ff01::1:25533.

This occurs due to an old version of the apr library available with Red Hat Enterprise Linux 5 and 6 through the RHN channels.


Comment 17 Misha H. Ali 2012-10-23 05:50:25 UTC
Added Release Note. Can someone confirm if the following part of the note is accurate:

This occurs due to an old version of the apr library available with Red Hat Enterprise Linux 5 and 6 through the RHN channels.

Comment 18 Radim Hatlapatka 2012-10-23 06:49:12 UTC
No it is not correct. this is only issue of RHEL 6

Comment 19 Misha H. Ali 2012-10-23 06:53:15 UTC
Release Notes Text: Removed: When using JBoss Enterprise Web Server with Red Hat Enterprise Linux 5 and 6, advertising using mod_cluster fails when a mixed protocol setting (IPv4 and IPv6) is used. The following error message displays in the error_log:

[error] (22)Invalid argument: mod_advertise: ma_group_join apr_mcast_hops failed
[error] (22)Invalid argument: mod_advertise: multicast join failed for ff01::1:25533.

This occurs due to an old version of the apr library available with Red Hat Enterprise Linux 5 and 6 through the RHN channels. Added: When using JBoss Enterprise Web Server with Red Hat Enterprise Linux 5 and 6, advertising using mod_cluster fails when a mixed protocol setting (IPv4 and IPv6) is used. The following error message displays in the error_log:

[error] (22)Invalid argument: mod_advertise: ma_group_join apr_mcast_hops failed
[error] (22)Invalid argument: mod_advertise: multicast join failed for ff01::1:25533.

This occurs due to an old version of the apr library available with Red Hat Enterprise Linux 6 through the RHN channels.


Comment 20 Misha H. Ali 2012-10-23 06:53:27 UTC
Thanks, Radhim. Now corrected.

Comment 21 Radim Hatlapatka 2012-10-23 07:01:06 UTC
Still not entirely, you can get new version which repairs the bug from RHN channel => thereby if you retrieve apr via RHN channel it is already without this bug. This error is only with apr version which you are able to get without subscription to RHN channel.

Comment 22 Misha H. Ali 2012-10-23 07:06:41 UTC
Release Notes Text: Removed: When using JBoss Enterprise Web Server with Red Hat Enterprise Linux 5 and 6, advertising using mod_cluster fails when a mixed protocol setting (IPv4 and IPv6) is used. The following error message displays in the error_log:

[error] (22)Invalid argument: mod_advertise: ma_group_join apr_mcast_hops failed
[error] (22)Invalid argument: mod_advertise: multicast join failed for ff01::1:25533.

This occurs due to an old version of the apr library available with Red Hat Enterprise Linux 6 through the RHN channels. Added: When using JBoss Enterprise Web Server with Red Hat Enterprise Linux 5 and 6, advertising using mod_cluster fails when a mixed protocol setting (IPv4 and IPv6) is used. The following error message displays in the error_log:

[error] (22)Invalid argument: mod_advertise: ma_group_join apr_mcast_hops failed
[error] (22)Invalid argument: mod_advertise: multicast join failed for ff01::1:25533.

This occurs due to an old version of the apr library available in Red Hat Enterprise Linux 6. As a workaround, use RHN to get the package apr-devel-1.3.9-5.el6_2 or newer, which fixes this problem.


Comment 23 Misha H. Ali 2012-10-23 07:07:54 UTC
Release Notes Text: Removed: When using JBoss Enterprise Web Server with Red Hat Enterprise Linux 5 and 6, advertising using mod_cluster fails when a mixed protocol setting (IPv4 and IPv6) is used. The following error message displays in the error_log:

[error] (22)Invalid argument: mod_advertise: ma_group_join apr_mcast_hops failed
[error] (22)Invalid argument: mod_advertise: multicast join failed for ff01::1:25533.

This occurs due to an old version of the apr library available in Red Hat Enterprise Linux 6. As a workaround, use RHN to get the package apr-devel-1.3.9-5.el6_2 or newer, which fixes this problem. Added: When using JBoss Enterprise Web Server with Red Hat Enterprise Linux 5 and 6, advertising using mod_cluster fails when a mixed protocol setting (IPv4 and IPv6) is used. The following error message displays in the error_log:

[error] (22)Invalid argument: mod_advertise: ma_group_join apr_mcast_hops failed
[error] (22)Invalid argument: mod_advertise: multicast join failed for ff01::1:25533.

This occurs due to an old version of the apr library available in Red Hat Enterprise Linux 6. As a workaround, use RHN to get the package apr-devel-1.3.9-5.el6_2 or newer, which fixes this problem. Users without access to RHN cannot access the apr package version that fixes this problem


Comment 24 Radim Hatlapatka 2012-10-25 11:21:39 UTC
[~mhusnain] This error doesn't occur only in mixed IPv4/IPv6 setting environment, but also in only IPv6 environment as is also visible from referenced JIRAs in comments

Comment 25 Misha H. Ali 2012-10-25 14:37:07 UTC
Release Notes Text: Removed: When using JBoss Enterprise Web Server with Red Hat Enterprise Linux 5 and 6, advertising using mod_cluster fails when a mixed protocol setting (IPv4 and IPv6) is used. The following error message displays in the error_log:

[error] (22)Invalid argument: mod_advertise: ma_group_join apr_mcast_hops failed
[error] (22)Invalid argument: mod_advertise: multicast join failed for ff01::1:25533.

This occurs due to an old version of the apr library available in Red Hat Enterprise Linux 6. As a workaround, use RHN to get the package apr-devel-1.3.9-5.el6_2 or newer, which fixes this problem. Users without access to RHN cannot access the apr package version that fixes this problem Added: When using JBoss Enterprise Web Server with Red Hat Enterprise Linux 5 and 6, advertising using mod_cluster fails when IPv6 is used by itself and when a mixed protocol setting (IPv4 and IPv6) is used. The following error message displays in the error_log:

[error] (22)Invalid argument: mod_advertise: ma_group_join apr_mcast_hops failed
[error] (22)Invalid argument: mod_advertise: multicast join failed for ff01::1:25533.

This occurs due to an old version of the apr library available in Red Hat Enterprise Linux 6. As a workaround, use RHN to get the package apr-devel-1.3.9-5.el6_2 or newer, which fixes this problem. Users without access to RHN cannot access the apr package version that fixes this problem


Comment 26 Jiri Skrabal 2012-11-13 15:56:33 UTC
Release Notes Docs Status: Removed: Documented as Known Issue 
Writer: Removed: mhusnain 
Release Notes Text: Removed: When using JBoss Enterprise Web Server with Red Hat Enterprise Linux 5 and 6, advertising using mod_cluster fails when IPv6 is used by itself and when a mixed protocol setting (IPv4 and IPv6) is used. The following error message displays in the error_log:

[error] (22)Invalid argument: mod_advertise: ma_group_join apr_mcast_hops failed
[error] (22)Invalid argument: mod_advertise: multicast join failed for ff01::1:25533.

This occurs due to an old version of the apr library available in Red Hat Enterprise Linux 6. As a workaround, use RHN to get the package apr-devel-1.3.9-5.el6_2 or newer, which fixes this problem. Users without access to RHN cannot access the apr package version that fixes this problem 
Docs QE Status: Removed: NEW 


Comment 27 Weinan Li 2013-04-23 07:58:30 UTC
Seems no patch is needed for this bug. I'll update the status of this bug to 'modified' and please verify it during EWS2.0.1 engineering phase.

Comment 28 Jean-frederic Clere 2013-04-23 12:37:40 UTC
In fact in EWS we shouldn't be affected our version of apr already has the patch correct?

Comment 29 Radim Hatlapatka 2013-04-23 12:49:21 UTC
On RHEL in EWS there is only link to system apr libraries, therefore it depends on version of apr library in the system

Comment 30 Radim Hatlapatka 2013-04-23 12:57:45 UTC
This issue is already described in release notes [1] where it is noted what version of apr should be used to make it work as expected.


[1]
http://documentation-devel.engineering.redhat.com/docs/en-US/JBoss_Enterprise_Web_Server/2/html/2.0.0_Release_Notes/Release_Notes_JBEWS-Known_Issues.html#sect-Known_Issues-General

Comment 31 Michal Karm Babacek 2013-05-13 12:56:45 UTC
Verified on
system: RHEL6.4-20130130.0 x86_64
apr: libapr-1.so.0.3.9

Comment 32 Mandar Joshi 2013-05-14 06:19:37 UTC
Added DocText.

@Wei Nan Li, can you please review the Doc Text content?

Comment 33 Weinan Li 2013-05-14 07:37:48 UTC
Hi Mandar, I've reviewed the doc and looks good. So I set 'needinfo' to +, for 'requires_doc_text', I don't have permission to set it.

Comment 34 Misha H. Ali 2013-05-30 02:01:13 UTC
This bug is part of the RH internal group and therefore should not be included in the release notes. I am removing the release notes flag.

Comment 36 John Doyle 2013-06-17 15:52:46 UTC
I approve.

Comment 37 Michal Karm Babacek 2013-06-17 17:33:35 UTC
There has never been any reason for keeping it private anyway.


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