Skip to content

Create cassandra superuser manually in test env#4786

Closed
karol-kokoszka with Copilot wants to merge 1 commit into
ml/create-cassandra-superuser-in-test-envfrom
copilot/sub-pr-4785
Closed

Create cassandra superuser manually in test env#4786
karol-kokoszka with Copilot wants to merge 1 commit into
ml/create-cassandra-superuser-in-test-envfrom
copilot/sub-pr-4785

Conversation

Copilot AI commented Mar 9, 2026

Copy link
Copy Markdown
Contributor

Starting from Scylla 2026.2, the cassandra superuser is no longer created by default on cluster startup and must be configured manually via the maintenance socket. This PR adapts the test environment to match the new behavior while remaining backward-compatible with older Scylla versions.

chore(testing): create cassandra superuser manually

  • Enables maintenance_socket: workdir in testing/scylla/config/scylla.yaml, exposing a Unix socket at /var/lib/scylla/cql.m that accepts unauthenticated, no-TLS CQL connections before any users exist.
  • After cluster startup in testing/Makefile, connects to that socket and creates the cassandra superuser explicitly:
    cqlsh /var/lib/scylla/cql.m --cqlshrc=/dev/null \
      -e "CREATE ROLE cassandra WITH PASSWORD = 'cassandra' AND LOGIN = true AND SUPERUSER = true" || true
    The || true ensures backward compatibility — on Scylla < 2026.2 where the role already exists by default, the failure is silently ignored.

chore(treewide): stabilize CI

  • TestServiceStorageIntegration: sort clusters by ID before comparison to fix non-deterministic ordering flakiness.
  • TestRestoreGetTargetUnitsViewsIntegration: replace exact TombstoneGC value comparison with a non-empty check, as the default mode changed between Scylla versions.
  • TestServiceRepairIntegration/repair_ignore_hosts: increase timeout from shortWait to longWait to address flakiness on tablet keyspaces.

Please make sure that:

  • Code is split to commits that address a single change
  • Commit messages are informative
  • Commit titles have module prefix
  • Commit titles have issue nr. suffix

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Create cassandra superuser manually in test env Create cassandra superuser manually in test env Mar 9, 2026
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

Successfully merging this pull request may close these issues.

3 participants