Skip to content

🐞 Cassandra initialisation fails with incorrect data center DC setting #25

@gallenc

Description

@gallenc

related opennms docker issue https://opennms.atlassian.net/browse/NMS-16025

horizon  | 08:23:58.539 [s0-admin-0] WARN  com.datastax.oss.driver.internal.core.loadbalancing.helper.OptionalLocalDcHelper - [s0|default] 
You specified datacenter1 as the local DC, 
but some contact points are from a different 
DC: Node(endPoint=cassandra-01/172.22.0.3:9042, 
hostId=55c2b03b-2c5e-43a0-b9be-a29f2ba0128f, 
hashCode=1b957ce8)=opennms-lab; 
please provide the correct local DC, or check your contact points

Waiting for this PR before fix - in mean time use work around below.
fixed config in https://github.com/opennms-forge/stack-play/tree/issue25-NMS-16025 but cant use until NMS-16025 merged in OpenNMS

cassandra expects data center to be set as datecenter1 but in docker-compose set to opennms-lab
CASSANDRA_DC: opennms-lab
a work around is to add a im opennms.properties changing
#org.opennms.newts.config.datacenter=datacenter1
to
org.opennms.newts.config.datacenter=opennms-lab

The https://opennms.atlassian.net/browse/NMS-16025 pull request adds a new env cariable to toml
so that scripts in stack play can chane opennms environment using an environment variable

OPENNMS_CASSANDRA_DATACENTER=opennms-lab

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions