-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
rhel-9.5
-
None
-
No
-
Low
-
rhel-sst-csi-client-tools
-
None
-
False
-
-
None
-
None
-
None
-
None
-
-
x86_64
-
None
What were you trying to do that didn't work?
When a hidden file /etc/virt-who.d/.conf exists and no any other virt-who files configured under /etc/virt-who.d/, virt-who always run the hidden file by default but fails to report it even though it's an available configuration.
More behaviors please refer to the detailed steps.
Please provide the package NVR for which bug is seen:
virt-who-1.31.28-1.el9.noarch
How reproducible:
Always
Steps to reproduce
1.Delete all the file under /etc/virt-who.d/
2.Create an available hidden file /etc/virt-who.d/.conf
#ls /etc/virt-who.d/ #ls -la /etc/virt-who.d/ total 16 drwx------. 2 root root 19 Aug 21 21:48 . drwxr-xr-x. 122 root root 8192 Aug 21 09:35 .. -rw-r--r--. 1 root root 267 Aug 21 21:45 .conf #cat /etc/virt-who.d/.conf [hyperv] type=hyperv hypervisor_id=hostname server=10.73.131.238 username=administrator password=Welcome1 owner=17799821 rhsm_hostname=subscription.rhsm.stage.redhat.com rhsm_port=443 rhsm_prefix=/subscription rhsm_username=virtwho_ci_83 rhsm_password=redhatvirtwho
3.Run virt-who and it fails to start due to no valid configuration found
# virt-who -do 2024-08-21 21:51:19,142 [virtwho.rhsm_log ERROR] MainProcess(57407):MainThread @config.py:init_config:1582 - The configuration files do not have any valid section headers 2024-08-21 21:51:19,142 [virtwho.rhsm_log DEBUG] MainProcess(57407):MainThread @config.py:init_config:1582 - [global]: Value for "status" not set, using default: False 2024-08-21 21:51:19,142 [virtwho.rhsm_log DEBUG] MainProcess(57407):MainThread @config.py:init_config:1582 - [global]: Value for "json" not set, using default: False 2024-08-21 21:51:19,142 [virtwho.rhsm_log DEBUG] MainProcess(57407):MainThread @config.py:init_config:1582 - [global]: Value for "print_" not set, using default: False 2024-08-21 21:51:19,142 [virtwho.rhsm_log DEBUG] MainProcess(57407):MainThread @config.py:init_config:1582 - [global]: Value for "log_per_config" not set, using default: False 2024-08-21 21:51:19,142 [virtwho.rhsm_log DEBUG] MainProcess(57407):MainThread @config.py:init_config:1582 - [global]: Value for "configs" not set, using default: [] 2024-08-21 21:51:19,142 [virtwho.rhsm_log DEBUG] MainProcess(57407):MainThread @config.py:init_config:1582 - [global]: Value for "reporter_id" not set, using default: hp-dl360g9-08-vm-01.rhts.eng.pek2.redhat.com-f01daf2ea920462489a3ca6b5532c6f4 2024-08-21 21:51:19,142 [virtwho.rhsm_log DEBUG] MainProcess(57407):MainThread @config.py:init_config:1582 - [global]: Value for "interval" not set, using default: 3600 2024-08-21 21:51:19,143 [virtwho.rhsm_log DEBUG] MainProcess(57407):MainThread @config.py:init_config:1582 - [global]: Value for "log_file" not set, using default: rhsm.log 2024-08-21 21:51:19,143 [virtwho.rhsm_log DEBUG] MainProcess(57407):MainThread @config.py:init_config:1582 - [global]: Value for "log_dir" not set, using default: /var/log/rhsm 2024-08-21 21:51:19,143 [virtwho.rhsm_log ERROR] MainProcess(57407):MainThread @main.py:main:92 - virt-who can't be started: no valid configuration found
4.Run #virt-who -doc /etc/virt-who.d/.conf, which can report the mapping successfully.
5.Create another valid /etc/virt-who.d/esx.conf, and run #virt-who -do, which will ignore the hidden .conf file and report the esx successfully.
Expected results
Virt-who ignores the hidden .conf file absolutely and run the local libvirt mode when no configuration file under /etc/virt-who.d/.
Actual results
Virt-who run the hidden .conf file when no normal files under /etc/virt-who.d/, but actually it cannot report it successfully.
- is cloned by
-
RHEL-55705 Virt-who should ignore the hidden file /etc/virt-who.d/.conf absolutely
- Planning