Duplicate region_config key in /etc/platform/platform.conf
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Medium
|
Iago Regiani |
Bug Description
Brief Description
-----------------
There are 2 region_config keys in /etc/platform/
Python2 SafeConfigParser ignores duplicate keys, while Python3 SafeConfigParser will throw an error.
This was uncovered on centos8 branch where Python3 is used, while Python2 is used on the master branch.
The issue may be lurking here for quite a while.
controller-0:~$ cat /etc/platform/
nodetype=controller
subfunction=
system_
security_
management_
http_port=8080
INSTALL_
UUID=7ffcbb3c-
sdn_enabled=no
region_config=no
system_mode=simplex
sw_version=21.05
security_
vswitch_type=none
region_config=False
oam_interface=
cluster_
Severity
--------
Minor: System/Feature is usable with minor issue
Steps to Reproduce
------------------
Deploy AIO-SX
Expected Behavior
------------------
One region_config key in platform.conf
Actual Behavior
----------------
Two region_config keys in platform.conf.
Reproducibility
---------------
100%
System Configuration
-------
Checked on 2 types: AIO-SX, AIO-DX, didn't check the others, but may be present.
Branch/Pull Time/Commit
-------
Any June 2021 load.
Last Pass
---------
Didn't check, but I have a feeling this is old, very old.
Timestamp/Logs
--------------
Not needed.
Test Activity
-------------
Developer Testing
Workaround
----------
For python3 environments this commit will work around the issue, and use the last occurrence of the key: https:/
tags: | added: stx.python3 |
Changed in starlingx: | |
assignee: | nobody → Iago Regiani (iregiani) |
screening: stx.7.0 / medium as this is required for python3 which is currently planned for that release