refactor(seaweedfs): split the object store from its browser consoles

web-app-seaweedfs becomes two roles. web-svc-seaweedfs keeps the storage
engine: the container, the seaweedfs_data volume, the per-consumer S3
identities and the single canonical domain api. web-app-seaweedfs-console
takes the filer and master web UIs into its own compose stack behind the
admin-only oauth2 proxy, reaching the engine over the shared object-store
network. A node can now run the store without the consoles.

The console needs a distinct role name because get_entity_name strips the
category prefix: both halves would have resolved to the entity seaweedfs and
collided on the compose project, the instance directory and the container
name.

The filer and master ports move into the engine's services.seaweedfs.ports
.internal as their single owner; 01_init_consumer.yml consumes the master
port and would otherwise have resolved it only by role-var leakage from the
console, breaking bucket provisioning on exactly the console-less node the
split makes possible.

The engine's api vhost gains the prometheus locations. It never had them: the
override satisfied the cross-cutting-include lint only because the strings sat
in the SSO branch that the api domain never took.

Consumers, the objstore lookup and the catalogs follow the role id.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
kevinveenbirkenbachandClaude Opus 5 committed 2026-10-01 02:20:12 +02:00
1 parent 909e08311f
commit e8e89d293d
273 files changed
+1504 -689

No files matched your search

@@ -110,7 +110,7 @@ class TestComputeAttachments(unittest.TestCase):
},
},
"seaweedfs": {
"role": "web-app-seaweedfs",
"role": "web-svc-seaweedfs",
"entity_name": "seaweedfs",
"overlay": {
"modes": ["swarm"],
@@ -19,7 +19,7 @@ from ._render_helpers import (
_PROVIDER_REGISTRY = {
"seaweedfs": {
"role": "web-app-seaweedfs",
"role": "web-svc-seaweedfs",
"entity_name": "seaweedfs",
"overlay": {"modes": ["compose", "swarm"], "topology": "shared_net"},
},
@@ -52,11 +52,11 @@ class TestOwnSharedNetProvider(unittest.TestCase):
def test_helper_true_only_for_own_shared_net_provider(self):
own = [
{"role": "web-app-seaweedfs", "topology": "shared_net", "is_provider": True}
{"role": "web-svc-seaweedfs", "topology": "shared_net", "is_provider": True}
]
consumer = [
{
"role": "web-app-seaweedfs",
"role": "web-svc-seaweedfs",
"topology": "shared_net",
"is_provider": False,
}
@@ -67,7 +67,7 @@ class TestOwnSharedNetProvider(unittest.TestCase):
def test_compose_default_drops_name_and_subnet(self):
rendered = render_compose_networks(
application_id="web-app-seaweedfs",
application_id="web-svc-seaweedfs",
deployment_mode="compose",
registry=_PROVIDER_REGISTRY,
get_entity_name=_entity_name,
@@ -83,7 +83,7 @@ class TestOwnSharedNetProvider(unittest.TestCase):
def test_swarm_default_is_nameless_overlay(self):
rendered = render_compose_networks(
application_id="web-app-seaweedfs",
application_id="web-svc-seaweedfs",
deployment_mode="swarm",
registry=_PROVIDER_REGISTRY,
get_entity_name=_entity_name,
@@ -96,7 +96,7 @@ class TestOwnSharedNetProvider(unittest.TestCase):
def test_main_publishes_alias_sidecar_does_not(self):
kwargs = {
"application_id": "web-app-seaweedfs",
"application_id": "web-svc-seaweedfs",
"deployment_mode": "compose",
"registry": _PROVIDER_REGISTRY,
"get_entity_name": _entity_name,
@@ -131,7 +131,7 @@ class TestSharedNetworkComposeKey(unittest.TestCase):
for mode in ("compose", "swarm"):
with self.subTest(mode=mode):
self.assertEqual(
self._key("web-app-seaweedfs", _PROVIDER_REGISTRY, mode),
self._key("web-svc-seaweedfs", _PROVIDER_REGISTRY, mode),
"seaweedfs",
)
@@ -154,7 +154,7 @@ class TestSharedNetworkComposeKey(unittest.TestCase):
def test_node_local_forces_the_compose_answer(self):
self.assertEqual(
shared_network_compose_key(
application_id="web-app-seaweedfs",
application_id="web-svc-seaweedfs",
deployment_mode="swarm",
registry=_PROVIDER_REGISTRY,
get_entity_name=_entity_name,
@@ -170,7 +170,7 @@ class TestSharedNetworkComposeKey(unittest.TestCase):
function reports must be the key the rendered networks block actually
uses for the entity network."""
cases = (
("web-app-seaweedfs", _PROVIDER_REGISTRY),
("web-svc-seaweedfs", _PROVIDER_REGISTRY),
("web-app-baserow", {}),
)
for application_id, registry in cases:
+2 -2
View File
@@ -56,7 +56,7 @@ class TestSwarmNfsBacked(unittest.TestCase):
"""The predicate mirrors the compose_volumes rewrite decision: swarm mode
with an nfs backend backs every volume of a non-manager-pinned role unless
the entry opts out with ``nfs: false``. web-app-nextcloud carries no
placement pin; web-app-seaweedfs is pinned to the manager on purpose."""
placement pin; web-svc-seaweedfs is pinned to the manager on purpose."""
def test_backed_in_swarm_with_nfs(self):
self.assertTrue(
@@ -92,7 +92,7 @@ class TestSwarmNfsBacked(unittest.TestCase):
self.assertFalse(
swarm_nfs_backed(
{"name": "seaweedfs_data"},
application_id="web-app-seaweedfs",
application_id="web-svc-seaweedfs",
deployment_mode="swarm",
storage_backend="nfs",
)