ansible-collections / community.cassandra

Cassandra Ansible Collection
http://galaxy.ansible.com/community/cassandra
GNU General Public License v3.0
25 stars 17 forks source link

Bug in CI: Cannot start node if snitch's data center (DC1) differs from previous data center (datacenter1) #252

Closed rhysmeister closed 4 months ago

rhysmeister commented 1 year ago

SUMMARY

The CI is breaking with the following error...

"ERROR [main] 2023-07-03 03:59:44,978 CassandraDaemon.java:911 - Cannot start node if snitch's data center (DC1) differs from previous data center (datacenter1). Please fix the snitch configuration, decommission and rebootstrap this node or use the flag -Dcassandra.ignore_dc=true."

https://github.com/ansible-collections/community.cassandra/actions/runs/5440216494/jobs/9892944392

Weirdly this happens only sometimes. with multiple retries the CI can complete successfully. The following fix was applied...

-Dcassandra.ignore_dc=true shoudl be removed at some point, see https://stackoverflow.com/questions/38405983/apache-cassandra-3-7-snitch-issue-cannot-start-data-center

But only for RedHat. This should be applied globally somehow.

ISSUE TYPE
COMPONENT NAME

setup_cassandra

rhysmeister commented 10 months ago

Need to replace the default init script for Ubuntu/Debian

rhysmeister commented 4 months ago

Fixed in https://github.com/ansible-collections/community.cassandra/pull/266