Comment 0 for bug 1397069

Revision history for this message
Timur Sufiev (tsufiev-x) wrote :

Discovered during verifying bug 1371161: it appeared that the dashboard policy files on CentOS are located not in the place they are searched for according to the default value of settings.POLICY_FILES_PATH = os.path.join(ROOT_PATH, "conf"). They are located inside '/etc/openstack-dashboard'.

On CentOS, the file '/usr/share/openstack-dashboard/openstack_dashboard/local/local_settings.py' which overrides is actually a symlink to the file '/etc/openstack-dashboard/local_settings'. Despite that fact, changing POLICY_FILES_PATH inside '/etc/openstack-dashboard/local_settings' to the `os.path.dirname(os.path.realname(__file__))` didn't help (I don't know why). Only when I hard-coded `POLICY_FILES_PATH = '/etc/openstack-dashboard'`, there were no more warnings in '/var/log/dashboard.log' about the policy files that policy engine could not found.

I suggest to customize value POLICY_FILES_PATH inside /etc/openstack-dashboard/local_settings to the value '/etc/openstack-dashboard' using puppet scripts.

Setting to High because no policies on CentOS in current setup are non-functional at all.