Skip to content

Commit 88ac3fb

Browse files
Merge pull request #1287 from vyzigold/fix_rabbitmq_ipv6
[OSPRH-13152] Fix RabbitMQ on IPv6
2 parents 847bc61 + 6cf1dd3 commit 88ac3fb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pkg/openstack/rabbitmq.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,10 +393,17 @@ func reconcileRabbitMQ(
393393
Log.Info("Setting AdditionalConfig")
394394
// This is the same situation as RABBITMQ_UPGRADE_LOG above,
395395
// except for the "main" rabbitmq log we can just force it to use the console.
396+
397+
// By default the prometheus and management endpoints always bind to ipv4.
398+
// We need to set the correct address based on the IP version in use.
396399
var settings []string
397400
settings = append(settings, "log.console = true")
401+
settings = append(settings, "prometheus.tcp.ip = ::")
402+
settings = append(settings, "management.tcp.ip = ::")
398403
if tlsCert != "" {
399404
settings = append(settings, "ssl_options.verify = verify_none")
405+
settings = append(settings, "prometheus.ssl.ip = ::")
406+
// management ssl ip needs to be set in the AdvancedConfig
400407
}
401408
rabbitmq.Spec.Rabbitmq.AdditionalConfig = strings.Join(settings, "\n")
402409
}
@@ -436,6 +443,7 @@ func reconcileRabbitMQ(
436443
]},
437444
{rabbitmq_management, [
438445
{ssl_config, [
446+
{ip,"::"},
439447
{cacertfile,"/etc/rabbitmq-tls/ca.crt"},
440448
{certfile,"/etc/rabbitmq-tls/tls.crt"},
441449
{keyfile,"/etc/rabbitmq-tls/tls.key"},

0 commit comments

Comments
 (0)