Page MenuHomePhabricator

Replace deployment-echostore02 (Bullseye deprecation)
Closed, ResolvedPublic

Description

Details

Related Changes in GitLab:
TitleReferenceAuthorSource BranchDest Branch
echostore, sessionstore: Stop connecting to Cassandra over IPv6cloudvps-repos/deployment-prep/tofu-provisioning!50southparkfancassandra-ipv4main
echostore: Add deployment-echostore03cloudvps-repos/deployment-prep/tofu-provisioning!49southparkfanT436479-initialmain
Customize query in GitLab

Event Timeline

Southparkfan changed the task status from Open to In Progress.Wed, Nov 4, 11:03 PM
Southparkfan claimed this task.

deployment-echostore02 has an interesting history. It looks like that back in 2024, I forgot to upgrade the former deployment-echostore02, which used to run Buster: T361383. In 2025, this instance has been re-created using a Bullseye image.

However, the cluster_name in cluster_name: sessions-beta is sessions-beta which seems wrong, and because /etc/cassandra/service-enabled has not been touched, Cassandra doesn't start and Kask is indefinitely being restarted. Because of how horribly broken EchoStore is [1], I'll just deploy a new VM instead.

[1] 2026-11-05 22:28:51.110410 [182205eb-40a6-4e1e-9894-8536e9d3ab1e] deployment-mediawiki16 enwiki 1.48.0-alpha objectcache ERROR: Error fetching URL "http://echostore.svc.deployment-prep.eqiad1.wikimedia.cloud:8080/echoseen/v1/global%3Aecho%3Aseen%3Amessage%3Atime%3A290318": (curl error: 7) Couldn't connect to server Failed to connect to echostore.svc.deployment-prep.eqiad1.wikimedia.cloud port 8080 after 0 ms: Couldn't connect to server {"url":"http://echostore.svc.deployment-prep.eqiad1.wikimedia.cloud:8080/echoseen/v1/global%3Aecho%3Aseen%3Amessage%3Atime%3A290318","error":"(curl error: 7) Couldn't connect to server Failed to connect to echostore.svc.deployment-prep.eqiad1.wikimedia.cloud port 8080 after 0 ms: Couldn't connect to server","method":"Wikimedia\\Http\\MultiHttpClient::run"}

Fortunately, the process of setting up Cassandra is not as involved as in T436471#12519535 and T370461#10007736. The cassandra package actually contains a postinst which adds a system user and a group. Nevertheless, I had to:

  • touch the /etc/cassandra/service-enabled file;
  • rm -rf /var/lib/cassandra/, followed by a restart, due to Saved cluster name Test Cluster != configured name echostore-beta;
  • change the list of hosts in Kask to only use primary IPv4 addresses of Cassandra nodes, because Cassandra does not listen on the node's primary IPv6 address (returned due to AAAA lookup);
  • load the kask keyspace: CQLSH_HOST=$(hostname -i) cqlsh -f cassandra_schema.cql -u cassandra -p cassandra.

Confirmed working:

cassandra@cqlsh> select * FROM kask.values;

 key                                | value
------------------------------------+------------------------------------------------
 global:echo:seen:message:time:7503 | 0x4a534f4e2e2e22323032363131303630303033333522

(1 rows)

Mentioned in SAL (#wikimedia-releng) [2026-11-06T00:15:18Z] <Southparkfan> Decommission deployment-echostore02 - T436479

Mentioned in SAL (#wikimedia-releng) [2026-11-08T16:24:02Z] <Southparkfan> Delete deployment-echostore02 in Horizon - T436479