From checkmk-werks-lvl1@lists.checkmk.com Mon Jul 15 12:55:09 2024 From: Checkmk werks level 1 To: checkmk-werks-lvl1@lists.checkmk.com Subject: [2.2.0] Checkmk Werk 16431 adapted: omd restore: Fix RuntimeError: Failed to determine site version Date: Mon, 15 Jul 2024 12:55:06 +0000 Message-ID: <1721048106.821182.1026.nullmailer@localhost> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2589029115946326399==" --===============2589029115946326399== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Werk 16431 was adapted. The following is the new Werk, a diff is shown at the= end of the message. Title: omd restore: Fix RuntimeError: Failed to determine site version Class: fix Compatible: compat Component: omd Date: 1718107423 Edition: cre Level: 1 Version: 2.2.0p32 Due to a regression introduced by = Werk #16422, the command `omd restore ` could fail: C+: File "/omd/versions/2.3.0p6.cee/lib/python3/omdlib/main.py", line 3522, in = _restore_backup_from_tar old_site.replacements(), ^^^^^^^^^^^^^^^^^^^^^^^ File "/omd/versions/2.3.0p6.cee/lib/python3/omdlib/contexts.py", line 136, = in replacements raise RuntimeError("Failed to determine site version") C-: The failure only occured, if the user provided a site name, which differed fr= om the original name, and the original site did no longer exist. This crash also affected the `Migr= ate existing Site` function of the appliance. If you are affected by this crash, but are unable to update, then you can sta= rt be restoring the site without a new name. The site can then be renamed with `omd mv`. -----------------------------------------------------------------------= -------- Title: omd restore: Fix RuntimeError: Failed to determine site version Class: fix Compatible: compat Component: omd Date: 1718107423 Edition: cre Level: 1 - Version: 2.2.0p29 ? - + Version: 2.2.0p32 ? + =20 Due to a regression introduced by Werk #16422, the command `omd restore ` could fail: =20 C+: File "/omd/versions/2.3.0p6.cee/lib/python3/omdlib/main.py", line 3522, i= n _restore_backup_from_tar old_site.replacements(), ^^^^^^^^^^^^^^^^^^^^^^^ File "/omd/versions/2.3.0p6.cee/lib/python3/omdlib/contexts.py", line 136= , in replacements raise RuntimeError("Failed to determine site version") C-: =20 The failure only occured, if the user provided a site name, which differed = from the original name, and the original site did no longer exist. This crash also affected the `Mi= grate existing Site` function of the appliance. =20 If you are affected by this crash, but are unable to update, then you can s= tart be restoring the site without a new name. The site can then be renamed with `omd mv`. =20 --===============2589029115946326399==--