From 3b2e938445221a6465ac5a84d95eff91bb3ac878 Mon Sep 17 00:00:00 2001 From: Olivier Le Thanh Duong Date: Thu, 23 Jan 2025 12:25:35 +0100 Subject: [PATCH] Fix instance ip4 network stopping (nat) Temporary disable tearing down the network when stopping supervisor Fix issue of persistent instances running inside systemd controller losing their ipv4 Nat access upon supervisor restart or upgrade. Github issue https://github.com/aleph-im/support/issues/9 --- src/aleph/vm/pool.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/aleph/vm/pool.py b/src/aleph/vm/pool.py index 58a3e6fa..9a9e69f3 100644 --- a/src/aleph/vm/pool.py +++ b/src/aleph/vm/pool.py @@ -81,7 +81,11 @@ def setup(self) -> None: def teardown(self) -> None: """Stop the VM pool and the network properly.""" if self.network: - self.network.teardown() + # self.network.teardown() + # FIXME Temporary disable tearing down the network + # Fix issue of persistent instances running inside systemd controller losing their ipv4 nat access + # upon supervisor restart or upgrade. + pass async def create_a_vm( self, vm_hash: ItemHash, message: ExecutableContent, original: ExecutableContent, persistent: bool