Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2112918

Summary: oslo-config-validator fails on key_manager/backend is not part of sample config
Product: Red Hat OpenStack Reporter: Ravi Singh <ravsingh>
Component: openstack-tripleo-validationsAssignee: Alan Bishop <abishop>
Status: CLOSED ERRATA QA Contact: nlevinki <nlevinki>
Severity: medium Docs Contact:
Priority: medium    
Version: 16.2 (Train)CC: abishop, eharney, erpeters, ifrangs, jamsmith, jelynch, jjoyce, jpodivin, jschluet, lmadsen, ltoscano, slinaber, tkajinam, tvignaud
Target Milestone: z4Keywords: Triaged, ZStream
Target Release: 16.2 (Train on RHEL 8.4)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-validations-11.6.1-2.20220921004739.61366bc.el8ost Doc Type: Bug Fix
Doc Text:
Before this update, the oslo-config-validation falsely reported errors with the "key_manager" and "barbican" sections of Block Storage (cinder) configuration. With this update, oslo-config-validation no longer falsely reports Block Storage configuration errors.
Story Points: ---
Clone Of:
: 2122705 (view as bug list) Environment:
Last Closed: 2022-12-07 19:24:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2122705    
Bug Blocks:    

Description Ravi Singh 2022-08-01 14:12:40 UTC
Description of problem:

We have following failed oslo-config-validation reported by couple of cu's. I think this needs to be updated since we see this is being set as default.

~~~
 "action": "assert",
                        "changed": false,
                        "failed": true,
                        "msg": "All items completed",
                        "results": [
                            {
                                "_ansible_item_label": "/var/lib/config-data/puppet-generated/cinder/etc/cinder/cinder.conf/cinder",
                                "_ansible_no_log": false,
                                "_ansible_verbose_always": true,
                                "ansible_loop_var": "service",
                                "assertion": "not service.output | count",
                                "changed": false,
                                "evaluated_to": false,
                                "failed": true,
                                "msg": "Config file /var/lib/config-data/puppet-generated/cinder/etc/cinder/cinder.conf for cinder has returned validation errors:\n  ERROR:root:key_manager/backend is not part of the sample config\n",
                                "service": {
                                    "config_file": "/var/lib/config-data/puppet-generated/cinder/etc/cinder/cinder.conf",
                                    "namespaces": [
                                        "cinder",
                                        "keystonemiddleware.auth_token",
                                        "oslo.log",
                                        "oslo.messaging",
                                        "oslo.policy",
                                        "oslo.privsep",
                                        "oslo.service.periodic_task",
                                        "oslo.service.service",
                                        "oslo.db",
                                        "oslo.db.concurrency",
                                        "oslo.middleware",
                                        "oslo.concurrency",
                                        "osprofiler"
                                    ],
                                    "output": [
                                        "ERROR:root:key_manager/backend is not part of the sample config"
                                    ],
                                    "service": "cinder"
~~~



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

How reproducible:


Steps to Reproduce:
1. Run validation post ffu
2. failure reported for oslo-config validation.
3.

Actual results:
failed validation

Expected results:
should pass 

Additional info:

Comment 3 Alan Bishop 2022-08-23 16:42:05 UTC
I wasn't familiar with the validation framework until now, but I believe I see the problem and will post a patch.

But I'm not sure why the problem was detected only after performing an FFU.

Comment 4 Alan Bishop 2022-08-30 16:18:18 UTC
Patch has merged on stable/train, and should be available downstream on the next import.

Comment 17 errata-xmlrpc 2022-12-07 19:24:04 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 16.2.4), 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/RHBA-2022:8794