config/sysinv/sysinv/sysinv/sysinv/objects
Heitor Matsui ebd16cc31b Align API types with database types
In more recent versions of SQLAlchemy library the datatypes
filters are stricter and now rejects strings with boolean values
such as "True"/"False" to a field mapped as boolean in the
underlying database.

This commit:

1. Aligns fields with API types mapped as string but with its
database counterparts mapped as boolean, also changing places
where the value was being compared as a string

2. Fixes the bool_or_none function used to parse boolean types,
as it was returning True when strings like 'false', 'n' and 'no'
were passed as parameter

3. Removes code from sensor and sensorgroup API that was checking
the now boolean field against string values (confirmed that there
are no references to force-action in hwmon code on metal repo)

Test Plan:
PASS: install/bootstrap/unlock host
PASS: test cgtsclient system commands for changed attributes:
      - host: ttys_dcd
        (verified manifest apply msg on logs)
      - memory: hugepages_configured, vm_pending_as_percentage,
                vm_hugepages_use_1G
        (executed "grep Huge /proc/meminfo" after host-unlock)
      - sensor: suppress
        (verified suppress/unsuppress msgs on logs)
      - sensorgroup: suppress
        (verified suppress/unsuppress msgs on logs)
        (verified propagated suppress/suppress msgs on logs)
PASS: run AIO-SX upgrade successfully
PASS: all of the above on Debian (except upgrade)

Closes-bug: 1977517
Change-Id: Ie78f98b1b6141dc7ea5e4a125c64d50e1993f582
Signed-off-by: Heitor Matsui <HeitorVieira.Matsui@windriver.com>
2022-07-14 18:27:31 -03:00
..
__init__.py Fix DetachedInstanceError 2022-01-27 08:27:07 +00:00
address.py Fixed address interface foreign key inconsistency 2020-03-03 16:50:12 -05:00
address_mode.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
address_pool.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
base.py Re-enable important py3k checks for sysinv 2021-11-10 11:08:12 -03:00
ceph_mon.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
certificate.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
cluster.py Eliminate unnecessary import modules in the objects directory 2019-09-24 15:23:30 +08:00
controller_fs.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
cpu.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
datanetwork.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
device_image.py Preserve states for functional user and bmc image 2021-11-22 14:41:28 -05:00
device_image_label.py Sysinv extensions for FPGA support 2020-05-13 16:20:37 -04:00
device_image_state.py Device image update alarm and audit 2020-06-05 12:47:07 -04:00
device_label.py Update device image state in device label API 2020-06-04 06:22:09 -04:00
disk.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
dns.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
drbdconfig.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
fpga_device.py Display retimer version of the FPGA device 2021-10-13 16:29:27 -04:00
helm_overrides.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
host.py Align API types with database types 2022-07-14 18:27:31 -03:00
host_fs.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
host_upgrade.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
interface.py [PTP dual NIC config] 2nd review of PTP data model 2021-12-08 13:37:57 -03:00
interface_ae.py Add bond option primary_reselect 2021-03-23 12:10:02 -04:00
interface_base.py Change VLAN interface naming scheme 2019-10-16 15:11:50 -04:00
interface_datanetwork.py Eliminate unnecessary import modules in the objects directory 2019-09-24 15:23:30 +08:00
interface_ethernet.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
interface_network.py Multiple networks to interface association 2018-09-13 13:28:24 -04:00
interface_vf.py Introduce VF interface type 2019-12-03 15:19:38 -06:00
interface_virtual.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
interface_vlan.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
journal.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
kube_app.py Rework platform managed apps 2021-03-09 18:24:44 +02:00
kube_app_releases.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
kube_cmd_version.py Add new kube_cmd_versions table and API endpoint 2021-08-04 16:31:25 +03:00
kube_host_upgrade.py Provide infrastructure for kubernetes upgrades 2019-11-22 15:13:52 -06:00
kube_rootca_host_update.py kube-rootca-update procedure list/show API's 2021-07-19 11:17:55 -03:00
kube_rootca_update.py Setting DB schemas for kube rootCA update APIs 2021-06-11 16:58:13 -03:00
kube_upgrade.py Provide infrastructure for kubernetes upgrades 2019-11-22 15:13:52 -06:00
kube_version.py Adding support for displaying kubernetes versions 2019-10-23 14:10:10 -05:00
label.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
lldp_agent.py Eliminate unnecessary import modules in the objects directory 2019-09-24 15:23:30 +08:00
lldp_neighbour.py Eliminate unnecessary import modules in the objects directory 2019-09-24 15:23:30 +08:00
lldp_tlv.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
load.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
lvg.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
memory.py Align API types with database types 2022-07-14 18:27:31 -03:00
network.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
network_oam.py Add support for AIO-SX to DX migration on subcloud 2021-03-29 14:00:52 -04:00
node.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
ntp.py Support for NTP/PTP coexistence 2019-09-17 14:45:18 -04:00
partition.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
pci_device.py Display retimer version of the FPGA device 2021-10-13 16:29:27 -04:00
peer.py Eliminate unnecessary import modules in the objects directory 2019-09-24 15:23:30 +08:00
port.py Align with latest SR-IOV CNI and device plugin images 2019-10-10 13:30:29 -05:00
port_ethernet.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
ptp.py Support for NTP/PTP coexistence 2019-09-17 14:45:18 -04:00
ptp_instance.py [PTP dual NIC config] Changes from new data model 2021-12-23 15:59:02 -03:00
ptp_instance_map.py [PTP dual NIC config] Changes from new data model 2021-12-23 15:59:02 -03:00
ptp_interface.py [PTP dual NIC config] Changes from new data model 2021-12-23 15:59:02 -03:00
ptp_interface_map.py [PTP dual NIC config] Changes from new data model 2021-12-23 15:59:02 -03:00
ptp_parameter.py [PTP dual NIC config] Changes from new data model 2021-12-23 15:59:02 -03:00
ptp_paramowner.py [PTP dual NIC config] Changes from new data model 2021-12-23 15:59:02 -03:00
ptp_paramownership.py [PTP dual NIC config] Changes from new data model 2021-12-23 15:59:02 -03:00
pv.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
remote_logging.py Eliminate unnecessary import modules in the objects directory 2019-09-24 15:23:30 +08:00
restore.py Migrate to database backend for backup and restore 2021-02-24 13:48:04 +02:00
route.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
sdn_controller.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
sensor.py Align API types with database types 2022-07-14 18:27:31 -03:00
sensor_analog.py Align API types with database types 2022-07-14 18:27:31 -03:00
sensor_discrete.py Align API types with database types 2022-07-14 18:27:31 -03:00
sensorgroup.py Align API types with database types 2022-07-14 18:27:31 -03:00
sensorgroup_analog.py Align API types with database types 2022-07-14 18:27:31 -03:00
sensorgroup_discrete.py Align API types with database types 2022-07-14 18:27:31 -03:00
service.py Eliminate unnecessary import modules in the objects directory 2019-09-24 15:23:30 +08:00
service_parameter.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
software_upgrade.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
storage.py Eliminate unnecessary import modules in the objects directory 2019-09-24 15:23:30 +08:00
storage_backend.py StarlingX open source release updates 2018-05-31 07:35:52 -07:00
storage_ceph.py Allow configurable ceph storage backend network 2021-05-07 14:31:39 +03:00
storage_ceph_external.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
storage_ceph_rook.py Introduce rook ceph 2021-01-27 06:46:02 +08:00
storage_external.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
storage_file.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
storage_lvm.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
storage_tier.py Eliminate unnecessary import modules in the objects directory 2019-09-24 15:23:30 +08:00
system.py Introducing GEO location new fields for System 2021-03-12 13:15:40 -05:00
tpmconfig.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
tpmdevice.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
user.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
utils.py Align API types with database types 2022-07-14 18:27:31 -03:00