Horizon debian-binary missing policy files in /etc/openstack-dashboard

Bug #1933759 reported by Michal Arbet
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla
Fix Released
Medium
Michal Arbet

Bug Description

Hi,

Found a bug in horizon-debian-binary image built by kolla in stable/wallaby version.
Log below:

[Sun Jun 27 10:05:07.953839 2021] [wsgi:error] [pid 26:tid 140704647472896] [remote 192.168.205.10:52188] Failed to open the policy file for image /etc/openstack-dashboard/default_policies/glance.yaml: [Errno 2] No such file or directory: '/etc/openstack-dashboard/default_policies/glance.yaml'
[Sun Jun 27 10:05:07.954192 2021] [wsgi:error] [pid 26:tid 140704647472896] [remote 192.168.205.10:52188] No policy rules for service 'image' in /etc/openstack-dashboard/glance_policy.yaml
[Sun Jun 27 10:05:07.955625 2021] [wsgi:error] [pid 26:tid 140704647472896] [remote 192.168.205.10:52188] Failed to open the policy file for network /etc/openstack-dashboard/default_policies/neutron.yaml: [Errno 2] No such file or directory: '/etc/openstack-dashboard/default_policies/neutron.yaml'
[Sun Jun 27 10:05:07.955993 2021] [wsgi:error] [pid 26:tid 140704647472896] [remote 192.168.205.10:52188] No policy rules for service 'network' in /etc/openstack-dashboard/neutron_policy.yaml
[Sun Jun 27 10:05:07.958509 2021] [wsgi:error] [pid 26:tid 140704647472896] [remote 192.168.205.10:52188] Failed to open the policy file for identity /etc/openstack-dashboard/default_policies/keystone.yaml: [Errno 2] No such file or directory: '/etc/openstack-dashboard/default_policies/keystone.yaml'
[Sun Jun 27 10:05:07.958861 2021] [wsgi:error] [pid 26:tid 140704647472896] [remote 192.168.205.10:52188] No policy rules for service 'identity' in /etc/openstack-dashboard/keystone_policy.yaml
[Sun Jun 27 10:05:07.960351 2021] [wsgi:error] [pid 26:tid 140704647472896] [remote 192.168.205.10:52188] Failed to open the policy file for compute /etc/openstack-dashboard/default_policies/nova.yaml: [Errno 2] No such file or directory: '/etc/openstack-dashboard/default_policies/nova.yaml'
[Sun Jun 27 10:05:07.960808 2021] [wsgi:error] [pid 26:tid 140704647472896] [remote 192.168.205.10:52188] No policy rules for service 'compute' in /etc/openstack-dashboard/nova_policy.yaml and files under ['/etc/openstack-dashboard/nova_policy.d']
[Sun Jun 27 10:05:07.962283 2021] [wsgi:error] [pid 26:tid 140704647472896] [remote 192.168.205.10:52188] Failed to open the policy file for volume /etc/openstack-dashboard/default_policies/cinder.yaml: [Errno 2] No such file or directory: '/etc/openstack-dashboard/default_policies/cinder.yaml'
[Sun Jun 27 10:05:07.962739 2021] [wsgi:error] [pid 26:tid 140704647472896] [remote 192.168.205.10:52188] No policy rules for service 'volume' in /etc/openstack-dashboard/cinder_policy.yaml and files under ['/etc/openstack-dashboard/cinder_policy.d']
[Sun Jun 27 10:05:07.964195 2021] [wsgi:error] [pid 26:tid 140704647472896] [remote 192.168.205.10:52188] Failed to open the policy file for image /etc/openstack-dashboard/default_policies/glance.yaml: [Errno 2] No such file or directory: '/etc/openstack-dashboard/default_policies/glance.yaml'
[Sun Jun 27 10:05:07.964541 2021] [wsgi:error] [pid 26:tid 140704647472896] [remote 192.168.205.10:52188] No policy rules for service 'image' in /etc/openstack-dashboard/glance_policy.yaml
[Sun Jun 27 10:05:07.966221 2021] [wsgi:error] [pid 26:tid 140704647472896] [remote 192.168.205.10:52188] Failed to open the policy file for network /etc/openstack-dashboard/default_policies/neutron.yaml: [Errno 2] No such file or directory: '/etc/openstack-dashboard/default_policies/neutron.yaml'
[Sun Jun 27 10:05:07.966570 2021] [wsgi:error] [pid 26:tid 140704647472896] [remote 192.168.205.10:52188] No policy rules for service 'network' in /etc/openstack-dashboard/neutron_policy.yaml
[Sun Jun 27 10:05:07.968441 2021] [wsgi:error] [pid 26:tid 140704647472896] [remote 192.168.205.10:52188] Failed to open the policy file for identity /etc/openstack-dashboard/default_policies/keystone.yaml: [Errno 2] No such file or directory: '/etc/openstack-dashboard/default_policies/keystone.yaml'
[Sun Jun 27 10:05:07.968789 2021] [wsgi:error] [pid 26:tid 140704647472896] [remote 192.168.205.10:52188] No policy rules for service 'identity' in /etc/openstack-dashboard/keystone_policy.yaml
[Sun Jun 27 10:05:07.970420 2021] [wsgi:error] [pid 26:tid 140704647472896] [remote 192.168.205.10:52188] Failed to open the policy file for compute /etc/openstack-dashboard/default_policies/nova.yaml: [Errno 2] No such file or directory: '/etc/openstack-dashboard/default_policies/nova.yaml'
[Sun Jun 27 10:05:07.970979 2021] [wsgi:error] [pid 26:tid 140704647472896] [remote 192.168.205.10:52188] No policy rules for service 'compute' in /etc/openstack-dashboard/nova_policy.yaml and files under ['/etc/openstack-dashboard/nova_policy.d']
[Sun Jun 27 10:05:07.972458 2021] [wsgi:error] [pid 26:tid 140704647472896] [remote 192.168.205.10:52188] Failed to open the policy file for volume /etc/openstack-dashboard/default_policies/cinder.yaml: [Errno 2] No such file or directory: '/etc/openstack-dashboard/default_policies/cinder.yaml'
[Sun Jun 27 10:05:07.972918 2021] [wsgi:error] [pid 26:tid 140704647472896] [remote 192.168.205.10:52188] No policy rules for service 'volume' in /etc/openstack-dashboard/cinder_policy.yaml and files under ['/etc/openstack-dashboard/cinder_policy.d']
[Sun Jun 27 10:05:07.974409 2021] [wsgi:error] [pid 26:tid 140704647472896] [remote 192.168.205.10:52188] Failed to open the policy file for image /etc/openstack-dashboard/default_policies/glance.yaml: [Errno 2] No such file or directory: '/etc/openstack-dashboard/default_policies/glance.yaml'
[Sun Jun 27 10:05:07.974756 2021] [wsgi:error] [pid 26:tid 140704647472896] [remote 192.168.205.10:52188] No policy rules for service 'image' in /etc/openstack-dashboard/glance_policy.yaml
[Sun Jun 27 10:05:07.976209 2021] [wsgi:error] [pid 26:tid 140704647472896] [remote 192.168.205.10:52188] Failed to open the policy file for network /etc/openstack-dashboard/default_policies/neutron.yaml: [Errno 2] No such file or directory: '/etc/openstack-dashboard/default_policies/neutron.yaml'
[Sun Jun 27 10:05:07.976555 2021] [wsgi:error] [pid 26:tid 140704647472896] [remote 192.168.205.10:52188] No policy rules for service 'network' in /etc/openstack-dashboard/neutron_policy.yaml
.
.
.
.
.
.
.
.

Thanks,
Michal Arbet ( kevko )

Changed in kolla:
assignee: nobody → Michal Arbet (michalarbet)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/kolla/+/798212

Changed in kolla:
status: New → In Progress
Mark Goddard (mgoddard)
Changed in kolla:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla (master)

Reviewed: https://review.opendev.org/c/openstack/kolla/+/798212
Committed: https://opendev.org/openstack/kolla/commit/01d02be25ed043b4541db3ebfc102d013cdc578a
Submitter: "Zuul (22348)"
Branch: master

commit 01d02be25ed043b4541db3ebfc102d013cdc578a
Author: Michal Arbet <email address hidden>
Date: Sun Jun 27 14:56:46 2021 +0200

    Add missing default policy files for debian-binary-horizon

    The debian-binary-horizon image is missing the default policies files
    which should be in /etc/openstack-dashboard/default_policies. By copying
    everything from /etc/openstack-dashboard/policy
    into /etc/openstack-dashboard, we get the default policy files, as well
    as commented out policy files (e.g. cinder_policy.yaml) and the
    nova_policy.d directory containing api-extensions.yaml.

    Change was merged for ubuntu in [1] but unfortunatelly
    not for debian, this trivial patch fixes it also
    for debian.

    [1] https://review.opendev.org/c/openstack/kolla/+/794589

    Closes-Bug: #1933759
    Change-Id: I822d640a251e6ed9f71c76a922513e23e4218418

Changed in kolla:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla (stable/wallaby)

Fix proposed to branch: stable/wallaby
Review: https://review.opendev.org/c/openstack/kolla/+/802946

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla (stable/wallaby)

Reviewed: https://review.opendev.org/c/openstack/kolla/+/802946
Committed: https://opendev.org/openstack/kolla/commit/b927e6a41fde204af2f8507dcb1f91005a2c6424
Submitter: "Zuul (22348)"
Branch: stable/wallaby

commit b927e6a41fde204af2f8507dcb1f91005a2c6424
Author: Michal Arbet <email address hidden>
Date: Sun Jun 27 14:56:46 2021 +0200

    Add missing default policy files for debian-binary-horizon

    The debian-binary-horizon image is missing the default policies files
    which should be in /etc/openstack-dashboard/default_policies. By copying
    everything from /etc/openstack-dashboard/policy
    into /etc/openstack-dashboard, we get the default policy files, as well
    as commented out policy files (e.g. cinder_policy.yaml) and the
    nova_policy.d directory containing api-extensions.yaml.

    Change was merged for ubuntu in [1] but unfortunatelly
    not for debian, this trivial patch fixes it also
    for debian.

    [1] https://review.opendev.org/c/openstack/kolla/+/794589

    Closes-Bug: #1933759
    Change-Id: I822d640a251e6ed9f71c76a922513e23e4218418
    (cherry picked from commit 01d02be25ed043b4541db3ebfc102d013cdc578a)

tags: added: in-stable-wallaby
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla 13.0.0.0rc1

This issue was fixed in the openstack/kolla 13.0.0.0rc1 release candidate.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla 12.1.0

This issue was fixed in the openstack/kolla 12.1.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.