Bug 2112918 - oslo-config-validator fails on key_manager/backend is not part of sample config
Summary: oslo-config-validator fails on key_manager/backend is not part of sample config
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-validations
Version: 16.2 (Train)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: z4
: 16.2 (Train on RHEL 8.4)
Assignee: Alan Bishop
QA Contact: nlevinki
URL:
Whiteboard:
Depends On: 2122705
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-08-01 14:12 UTC by Ravi Singh
Modified: 2022-12-07 19:24 UTC (History)
14 users (show)

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.
Clone Of:
: 2122705 (view as bug list)
Environment:
Last Closed: 2022-12-07 19:24:04 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 854844 0 None stable/train: MERGED tripleo-validations: oslo-config-validator: fix cinder's namespaces (I3395cb30b4e970fae6573faa25ad3ae9d2050c7e) 2022-10-31 17:26:15 UTC
Red Hat Issue Tracker OSP-17936 0 None None None 2022-08-01 14:24:33 UTC
Red Hat Issue Tracker VALFRWK-755 0 None None None 2022-08-01 14:24:37 UTC
Red Hat Product Errata RHBA-2022:8794 0 None None None 2022-12-07 19:24:22 UTC

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


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