-
Bug
-
Resolution: Done
-
Minor
-
None
-
rhos-17.1.z
-
None
[Problem description]
Some ERROR logs are always reported in horizon.log about missing policies files for manila, octavia and heat regardless those services are deployed or not in the platform:
2025-01-09 10:27:27,733 38 ERROR openstack_auth.policy Failed to open the policy file for load-balancer /etc/openstack-dashboard/default_policies/octavia.yaml: [Errno 2] No such file or directory: '/etc/openstack-dashboard/default_policies/octavia.yaml' 2025-01-09 10:27:27,733 38 WARNING openstack_auth.policy No policy rules for service 'load-balancer' in /etc/openstack-dashboard/octavia_policy.yaml 2025-01-09 10:27:27,734 38 ERROR openstack_auth.policy Failed to open the policy file for orchestration /etc/openstack-dashboard/default_policies/heat.yaml: [Errno 2] No such file or directory: '/etc/openstack-dashboard/default_policies/heat.yaml' 2025-01-09 10:27:27,735 38 WARNING openstack_auth.policy No policy rules for service 'orchestration' in /etc/openstack-dashboard/heat_policy.yaml 2025-01-09 10:27:27,736 38 ERROR openstack_auth.policy Failed to open the policy file for share /etc/openstack-dashboard/default_policies/manila.yaml: [Errno 2] No such file or directory: '/etc/openstack-dashboard/default_policies/manila.yaml' 2025-01-09 10:27:27,736 38 WARNING openstack_auth.policy No policy rules for service 'share' in /etc/openstack-dashboard/manila_policy.yaml
*[How to reproduce]
* (reproduced on 17.1.4)
- navigate through dashboards tabs
[Current behavior]
ERROR logs reported in horizon's logs
[Expected behavior]
no ERROR logs reported in horizon's logs
[Investigations]
as soon as a "service" file is present under openstack-dashboard/local_settings.d directory, horizon will starts looking for $service policies file.
It looks like _90_manila_shares.py, _1499_load_balancer_settings.py and _1699_orchestration_settings.py are there by default.
Horizon container's view:
[root@controller-2 etc]# podman exec -ti horizon /bin/bash [root@controller-2 local_settings.d]# pwd /etc/openstack-dashboard/local_settings.d [root@controller-2 local_settings.d]# ls -ltr total 36 -rw-r--r--. 1 apache apache 1458 Jul 8 2022 _90_manila_shares.py -rw-r--r--. 1 apache apache 213 Feb 8 2024 _9030_profiler_settings.py.example -rw-r--r--. 1 apache apache 296 Feb 8 2024 _2010_integration_tests_deprecated.py.example -rw-r--r--. 1 apache apache 49 Feb 8 2024 _11_toggle_angular_features.py.example -rw-r--r--. 1 apache apache 133 Feb 8 2024 _10_set_custom_theme.py.example -rw-r--r--. 1 apache apache 326 Feb 8 2024 _20_integration_tests_scaffolds.py.example -rw-r--r--. 1 apache apache 129 Aug 30 14:34 _11_rcue_theme.py -rwxr-xr-x. 1 apache apache 842 Jan 8 18:42 _1699_orchestration_settings.py -rwxr-xr-x. 1 apache apache 902 Jan 8 18:42 _1499_load_balancer_settings.py
Looking at undercloud's /usr/share/openstack-puppet/modules/horizon/templates, we do find:
(undercloud) [stack@undercloud-0 templates]$ ls -ltr total 48 -rw-r--r--. 1 root root 1582 Jul 8 2022 _90_manila_shares.py.erb -rw-r--r--. 1 root root 932 Jul 8 2022 _1699_orchestration_settings.py.erb -rw-r--r--. 1 root root 35635 Aug 20 2022 local_settings.py.erb -rw-r--r--. 1 root root 989 Apr 23 2023 _1499_load_balancer_settings.py.erb (undercloud) [stack@undercloud-0 templates.bck]$