hassio-addons / addon-unifi

UniFi Network Application - Home Assistant Community Add-ons
https://addons.community
MIT License
278 stars 138 forks source link

Revert "Update base image to ubuntu-base:9.0.4" #497

Closed frenck closed 8 months ago

frenck commented 8 months ago

Reverts hassio-addons/addon-unifi#491

As this breaks existing installations. The new MongoDB version removes the deprecated mmap engine, and makes WiredTiger the new default. However, the PR listed, doesn't take that into account (no migration).

This shipping this, would break the add-on.

/CC @cfergeau

cfergeau commented 8 months ago

However, the PR listed, doesn't take that into account (no migration).

Ah definitely no idea about this :-/ Migration seems tricky, and might need to involve an intermediate 3.6 mongodb instance in order to mongodbdump the old data, and then try to restore it in the new mongodb instance. How sophisticated can we get in the HA upgrade machinery? :) Run commands in the old addon image before the upgrade? or have the new addon pull a second container it will use for the migration?

One alternative would be to install 3.6 on the 9.0.4 image, which might be doable. Not great as this has been EOL'ed for about 3 years now