Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gallenc opened this issue Jul 27, 2023 · 0 comments
Open

Comments

@gallenc
Copy link
Contributor

gallenc commented Jul 27, 2023

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

@indigo423 indigo423 changed the title cassandra initialisation fails with incorrect data center DC setting 🐞 assandra initialisation fails with incorrect data center DC setting Oct 9, 2023
@indigo423 indigo423 changed the title 🐞 assandra initialisation fails with incorrect data center DC setting 🐞 Cassandra initialisation fails with incorrect data center DC setting Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant