Fix vm cannot be created with non-admin user in horizon

VM cannot be created due to non-admin user cannot retrieve resource
limits info. The reason is nova code since Ussuri has changed limits/
os-availability-zone's policy to any user. But the policy config in
openstack-helm is not updated yet, and cause the mismatch between
code and config.
Overwrite nova's policy config to align with the code.
Here is upstream's patch for this policy change:
limits: 4d37ffc111ae8bb43bd33fe995bc3686b065131b
os-availability-zone: b8c2de86ed46caf7768027e82519c2418989c36b
Patch is uploaded in openstack-helm also, and we could abandon this
overwrite later when we upgrade openstack-helm to include the fix:
https://review.opendev.org/744392

Closes-Bug: 1887589

Change-Id: If637c40fb6b887cdc017aa70c4c5ba145eb5bec3
Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
This commit is contained in:
Shuicheng Lin 2020-08-03 15:45:32 +08:00
parent 9a212cdbe9
commit c6eaec81a6
1 changed files with 3 additions and 0 deletions

View File

@ -1041,6 +1041,9 @@ data:
conf:
ceph:
enabled: true
policy:
os_compute_api:limits: '@'
os_compute_api:os-availability-zone:list: '@'
nova:
DEFAULT:
allow_resize_to_same_host: true