Misleading info log "admin endpoint config applied" in sysinv.log from conductor
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Low
|
ayyappa |
Bug Description
Brief Description
-----------------
Misleading info log "admin endpoint config applied" in sysinv.log from conductor
Severity
------
Minor - this is a minor inconsistency, but is causing user confusion
Steps to Reproduce
-------------------
1) i noticed the following log in the sysinv.log
sysinv 2023-10-06 21:30:35.237 22002 INFO sysinv.
{'personalities': ['controller'], 'host_uuids': ['13f3d7e8-
'classes': ['platform:
'created_at': datetime.
In the above log only 'platform:
It is from the "_controller_
There is a race condition between sysinv/
While applying 'platform:
if os.path.
LOG.info("admin endpoint config applied %s" % config_dict) os.remove(
so we should remove this log message here and add just "config applied" with class
Expected Behavior
----------------
proper log info should be shown in sysinv.log
Actual Behavior
--------------
misleading log info
Reproducibility
-------------------
100% Reproducible
System Configuration
------------------
DC systems
Load info (eg: 2022-03-
stx.8.0
Branch/Pull Time/Commit
-------
NA.
Last Pass
--------
N/A Day one config
Timestamp/Logs
------------
NA.
Alarms
------
N/A
Test Activity
--------------
Debugging Request
Workaround
-----------
Not required.
Changed in starlingx: | |
status: | New → In Progress |
Changed in starlingx: | |
importance: | Undecided → Low |
assignee: | nobody → ayyappa (mantri425) |
tags: | added: stx.9.0 stx.config |
Reviewed: https:/ /review. opendev. org/c/starlingx /config/ +/897852 /opendev. org/starlingx/ config/ commit/ 352d1ce0b0acb53 8d5a715976cbb3c 0c46cb8d28
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 352d1ce0b0acb53 8d5a715976cbb3c 0c46cb8d28
Author: amantri <email address hidden>
Date: Tue Oct 10 12:02:04 2023 -0400
Fix misleading info log message in the conductor API
The following is the misleading log
sysinv 2023-10-06 21:30:35.237 22002 INFO conductor. manager [-] admin endpoint config applied ties': ['controller'], 6e30-4f6a- 9de7-31fb5709bc 5c'], :firewall: :runtime' ], 'force': False, apply_runtime_ manifest' , datetime( 2023, 10, 6, 21, 30, 35, 237289)}
sysinv.
{'personali
'host_uuids': ['13f3d7e8-
'classes': ['platform:
'config_type': 'config_
'created_at': datetime.
While applying puppet class 'platform: :firewall: :runtime' ADMIN_ENDPOINT_ CONFIG_ REQUIRED flag, this fix
the openstack module could set the
constants.
removes this and adds the proper log message.
Testcases:
PASS: Check sysinv.log and verify that misleading log is no
shown
Closes-bug: 2038948
Change-Id: Ib475bea9a43bf3 ff5b865af85a0b1 558438f022b
Signed-off-by: amantri <email address hidden>