Branch: refs/heads/2.1.0
Home:
https://github.com/tribe29/checkmk
Commit: b77073adad055f3a0db55a0d01f2194015b79c97
https://github.com/tribe29/checkmk/commit/b77073adad055f3a0db55a0d01f219401…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2022-07-25 (Mon, 25 Jul 2022)
Changed paths:
A .werks/14289
M omd/packages/omd/omdlib/main.py
M omd/packages/omd/omdlib/system_apache.py
M tests/unit/omdlib/test_system_apache.py
Log Message:
-----------
14289 FIX Fix PermissionError during 'omd update' related to
'/omd/apache' files
When performing 'omd update' to 2.1.0p7 or newer, a PermissionError could occur,
depending
on the umask settings of your system. A traceback like this was visible in this
situation:
C+:
Traceback (most recent call last):
File "/omd/versions/2.1.0p8.cee/bin/omd", line 63, in <module>
omdlib.main.main()
File "/omd/versions/2.1.0p8.cee/lib/python3/omdlib/main.py", line 4665, in
main
command.handler(version_info, site, global_opts, args, command_options)
File "/omd/versions/2.1.0p8.cee/lib/python3/omdlib/main.py", line 2726, in
main_update
not is_apache_hook_up_to_date(site)
File "/omd/versions/2.1.0p8.cee/lib/python3/omdlib/system_apache.py", line 72,
in is_apache_hook_up_to_date
with open(os.path.join(omdlib.utils.omd_base_path(), "omd/apache/%s.conf" %
site.name)) as f:
PermissionError: [Errno 13] Permission denied: '/omd/apache/checkmk_test.conf'
C-:
The issue is fixed with as of this relase. However, you can workaround this issue by
executing <tt>chmod o+r /omd/apache/*.conf</tt> as root before executing
'omd update'.
Change-Id: I34692032f8d2e8536c603668c8b9e476b6ccb99d
Commit: 2e196cdf696666e4e696cb1d61571eebe9284ca5
https://github.com/tribe29/checkmk/commit/2e196cdf696666e4e696cb1d61571eebe…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2022-07-25 (Mon, 25 Jul 2022)
Changed paths:
M tests/composition/conftest.py
Log Message:
-----------
Fix UnboundLocalError in case SiteFactory initialization fails
Change-Id: Ia863c945f2908351efe0e066e695ab410b794d30
Compare:
https://github.com/tribe29/checkmk/compare/48c5dec31317...2e196cdf6966