Bug 1295597

Summary: mongodb IPv6 disabled because configuration does not include net.ipv6 option
Product: Red Hat OpenStack Reporter: Dan Sneddon <dsneddon>
Component: openstack-tripleo-heat-templatesAssignee: Jay Dobies <jason.dobies>
Status: CLOSED NOTABUG QA Contact: yeylon <yeylon>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.0 (Liberty)CC: apevec, lhh, mburns, rhel-osp-director-maint, srevivo, yeylon, zbitter
Target Milestone: ---   
Target Release: 8.0 (Liberty)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-01-06 21:15:06 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:

Description Dan Sneddon 2016-01-05 00:33:12 UTC
Description of problem:
In the OpenStack puppet modules for mongodb, the value net.ipv6 is unset. This means that IPv6 is disabled in MongoDB. Native IPv6 is under development for OSP, but in order for that to work we need to enable IPv6 in MongoDB.

Version-Release number of selected component (if applicable):
OSP 8.0 trunk, RDO upstream

How reproducible:
100%

Steps to Reproduce:
1. Deploy overcloud using IPv6 native network templates
2. Network is deployed with IPv6 addresses


Actual results:
MongoDB ignores the bind_ip in /etc/mongod.conf because net.ipv6 is unset

Expected results:
MongoDB should accept an IPv6 bind_ip so it will work in native IPv6

Additional info:
This can be a value which is set to false by default, but we need the ability to set this value to true. Once that exists, Heat can output "True" if the bind_ip is IPv6, or "False" if the bind_ip is IPv4.

From the MongoDB docs:

net.ipv6

    Type: boolean

    Default: False

    Enable or disable IPv6 support and allows the mongos or mongod to connect to the MongoDB instance using an IPv6 network. All MongoDB programs and processes disable IPv6 support by default.

Comment 2 Dan Sneddon 2016-01-05 00:34:10 UTC
Upstream bug filed as well:
https://bugs.launchpad.net/puppet-ceilometer/+bug/1531032

Comment 3 Dan Sneddon 2016-01-05 20:37:07 UTC
Upstream bug in Puppet labs bugtracker:
https://tickets.puppetlabs.com/browse/MODULES-2946

Comment 4 Dan Sneddon 2016-01-05 20:37:50 UTC
(In reply to Dan Sneddon from comment #2)
> Upstream bug filed as well:
> https://bugs.launchpad.net/puppet-ceilometer/+bug/1531032

This bug was rejected on the Launchpad site, and I was asked to file a bug with Puppet labs, see comment #3 for external bug URL.

Comment 5 Dan Sneddon 2016-01-06 21:15:06 UTC
(In reply to Dan Sneddon from comment #4)

This is not actually a bug in the puppet modules, but rather missing data from the TripleO Heat templates. I closed the upstream bug, and made changes to T-H-T to accomodate.