From checkmk-werks-lvl1@lists.checkmk.com Thu Jul 4 12:51:59 2024 From: Checkmk werks level 1 To: checkmk-werks-lvl1@lists.checkmk.com Subject: [2.3.0] Checkmk Werk 16431 adapted: omd restore: Fix RuntimeError: Failed to determine site version Date: Thu, 04 Jul 2024 12:51:56 +0000 Message-ID: <1720097516.752820.779.nullmailer@localhost> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0105139059177495879==" --===============0105139059177495879== 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. [//]: # (werk v2) # omd restore: Fix RuntimeError: Failed to determine site version key | value ---------- | --- compatible | yes version | 2.3.0p10 date | 2024-06-11T12:03:43+00:00 level | 1 class | fix component | omd edition | cre Due to a regression introduced by = Werk #16422, the command `omd restore ` could fail: ``` 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") ``` 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`. -----------------------------------------------------------------------= -------- [//]: # (werk v2) # omd restore: Fix RuntimeError: Failed to determine site version =20 key | value ---------- | --- compatible | yes - version | 2.3.0p9 ? ^ + version | 2.3.0p10 ? ^^ date | 2024-06-11T12:03:43+00:00 level | 1 class | fix component | omd edition | cre =20 Due to a regression introduced by Werk #16422, the command `omd restore ` could fail: =20 ``` 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") ``` =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 --===============0105139059177495879==--