Bug 2207991 - SRBAC env file conflicts with NovaHostStatus parameter to throw a double declaration error resulting in failed overcloud deployment
Summary: SRBAC env file conflicts with NovaHostStatus parameter to throw a double decl...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 17.1 (Wallaby)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ga
: 17.1
Assignee: Bogdan Dobrelya
QA Contact: OSP DFG:Compute
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-05-17 14:27 UTC by Sree
Modified: 2023-08-16 01:15 UTC (History)
16 users (show)

Fixed In Version: openstack-tripleo-heat-templates-14.3.1-1.20230519151013.el9ost
Doc Type: Bug Fix
Doc Text:
Before this update, secure role-based access control (SRBAC) and the `NovaShowHostStatus` parameter used the same policy key titles. If you configured both SRBAC and `NovaShowHostStatus`, the deployment failed with a conflict. With this update, the policy key for `NovaShowHostStatus` is changed and there are no related conflicts in deployments.
Clone Of:
Environment:
Last Closed: 2023-08-16 01:15:21 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 883502 0 None MERGED Fix mismatching policy keys titles 2023-06-12 14:53:23 UTC
Red Hat Issue Tracker OSP-25120 0 None None None 2023-05-17 14:28:56 UTC
Red Hat Product Errata RHEA-2023:4577 0 None None None 2023-08-16 01:15:48 UTC

Description Sree 2023-05-17 14:27:18 UTC
Description of problem:
17.1 deployment with SRBAC fails at overcloud with the below duplicate declaration error:

<13>May 16 21:07:32 puppet-user: Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Resource Statement, Duplicate declaration: File_line[/etc/nova/policy.yaml-os_compute_api:servers:show:host_status:unknown-only] is already declared at (file: /etc/puppet/modules/openstacklib/manifests/policy/base.pp, line: 101); cannot redeclare (file: /etc/puppet/modules/openstacklib/manifests/policy/base.pp, line: 101) (file: /etc/puppet/modules/openstacklib/manifests/policy/base.pp, line: 101, column: 7) (file: /etc/puppet/modules/nova/manifests/policy.pp, line: 54) on node controller-0.redhat.local

Version-Release number of selected component (if applicable): 17.1 Wallaby


Steps to Reproduce:
1.Deploy openstack with srbac settings. Pass override parameter NovaHostStatus - 'unknown-only'
2.
3.

Actual results:
Overcloud failed with double declaration error

Comment 4 Artom Lifshitz 2023-06-06 17:45:51 UTC
For visibility raising blocker?, even

Comment 5 Artom Lifshitz 2023-06-06 17:46:49 UTC
For visibility, raising blocker? even if this is already in MODIFIED.

Comment 6 Artom Lifshitz 2023-06-06 17:47:38 UTC
Reason for blocker: SRBAC is inoperable without this fix.

Comment 29 errata-xmlrpc 2023-08-16 01:15:21 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Release of components for Red Hat OpenStack Platform 17.1 (Wallaby)), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2023:4577


Note You need to log in before you can comment on or make changes to this bug.