Debian: Sensor group create fails due to sysinv api text to db bool conversion
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Medium
|
Heitor Matsui |
Bug Description
Brief Description
-----------------
System inventory is rejecting all attempts to create a sensor group.
The hardware monitor sends the suppress member of the group as a boolean string "False | True". In CentOS this was fine. However the Debian version of sqlalchemy's type filters have gotten stricter and is now rejecting sysinv's attempt to pass a "False" string into the database's 'suppress' bool field.
See logs below.
Severity
--------
Critical/Major: Hardware Monitoring feature cannot be used
Steps to Reproduce
------------------
Provision a BMC
Expected Behavior
------------------
Sensor groups get created and monitored
Actual Behavior
----------------
Sensor groups fail to create
Reproducibility
---------------
100% reproducible
System Configuration
-------
Any system with provisionable BMCs
Branch/Pull Time/Commit
-------
master 2022-06-02
Last Pass
---------
N/A
Timestamp/Logs
--------------
sysinv.log
sysinv 2022-05-29 20:27:14.006 77450 WARNING oslo_db.
2022-05-29 20:27:14.006 77450 ERROR oslo_db.
2022-05-29 20:27:14.006 77450 ERROR oslo_db.
2022-05-29 20:27:14.006 77450 ERROR oslo_db.
2022-05-29 20:27:14.006 77450 ERROR oslo_db.
2022-05-29 20:27:14.006 77450 ERROR oslo_db.
2022-05-29 20:27:14.006 77450 ERROR oslo_db.
2022-05-29 20:27:14.006 77450 ERROR oslo_db.
2022-05-29 20:27:14.006 77450 ERROR oslo_db.
2022-05-29 20:27:14.006 77450 ERROR oslo_db.
2022-05-29 20:27:14.006 77450 ERROR oslo_db.
2022-05-29 20:27:14.006 77450 ERROR oslo_db.
2022-05-29 20:27:14.006 77450 ERROR oslo_db.
2022-05-29 20:27:14.006 77450 ERROR oslo_db.
Test Activity
-------------
Debian Integration Testing
Workaround
----------
Exclude the suppress key/value member from sensor and group creation requests.
A code change workaround. https:/
Changed in starlingx: | |
assignee: | nobody → Heitor Matsui (heitormatsui) |
Changed in starlingx: | |
status: | New → In Progress |
tags: | added: stx.config stx.debian |
Changed in starlingx: | |
importance: | Undecided → Medium |
tags: | added: stx.7.0 |
Fix proposed to branch: master /review. opendev. org/c/starlingx /config/ +/848026
Review: https:/