What were you trying to do that didn't work?
Failed to start virt-who service in local libvirt mode when no any conf file configured under /etc/virt-who.d/. The error showed "virt-who can't be started: no valid configuration found".
Please provide the package NVR for which bug is seen:
virt-who-1.31.28-1.el9.noarch
How reproducible:
Always
Steps to reproduce
- Deployed rhel9.5 system, and deployed libvirt hypervisor environment on it.
- Install virt-who and keep no any configuration file under /etc/virt-who.d/
- Start virt-who service
#systemctl start virt-who & tail -f /var/log/rhsm/rhsm.log 2024-07-30 22:07:53,287 [virtwho.rhsm_log DEBUG] MainProcess(14113):MainThread @config.py:init_config:1582 - [global]: Value for "json" not set, using default: False 2024-07-30 22:07:53,287 [virtwho.rhsm_log DEBUG] MainProcess(14113):MainThread @config.py:init_config:1582 - [global]: Value for "print_" not set, using default: False 2024-07-30 22:07:53,288 [virtwho.rhsm_log DEBUG] MainProcess(14113):MainThread @config.py:init_config:1582 - [global]: Value for "log_per_config" not set, using default: False 2024-07-30 22:07:53,288 [virtwho.rhsm_log DEBUG] MainProcess(14113):MainThread @config.py:init_config:1582 - [global]: Value for "configs" not set, using default: [] 2024-07-30 22:07:53,288 [virtwho.rhsm_log DEBUG] MainProcess(14113):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-07-30 22:07:53,288 [virtwho.rhsm_log DEBUG] MainProcess(14113):MainThread @config.py:init_config:1582 - [global]: Value for "interval" not set, using default: 3600 2024-07-30 22:07:53,288 [virtwho.rhsm_log DEBUG] MainProcess(14113):MainThread @config.py:init_config:1582 - [global]: Value for "log_file" not set, using default: rhsm.log 2024-07-30 22:07:53,288 [virtwho.rhsm_log DEBUG] MainProcess(14113):MainThread @config.py:init_config:1582 - [global]: Value for "log_dir" not set, using default: /var/log/rhsm 2024-07-30 22:07:53,288 [virtwho.rhsm_log WARNING] MainProcess(14113):MainThread @config.py:init_config:1582 - [global]: oneshot must be a valid boolean, using default: False. See man virt-who-config for more info 2024-07-30 22:07:53,289 [virtwho.rhsm_log ERROR] MainProcess(14113):MainThread @main.py:main:92 - virt-who can't be started: no valid configuration found 2024-07-30 22:08:10,030 [virtwho.rhsm_log ERROR] MainProcess(14119):MainThread @config.py:init_config:1582 - The configuration files do not have any valid section headers 2024-07-30 22:08:10,031 [virtwho.rhsm_log DEBUG] MainProcess(14119):MainThread @config.py:init_config:1582 - [global]: Value for "status" not set, using default: False 2024-07-30 22:08:10,031 [virtwho.rhsm_log DEBUG] MainProcess(14119):MainThread @config.py:init_config:1582 - [global]: Value for "json" not set, using default: False 2024-07-30 22:08:10,032 [virtwho.rhsm_log DEBUG] MainProcess(14119):MainThread @config.py:init_config:1582 - [global]: Value for "print_" not set, using default: False 2024-07-30 22:08:10,032 [virtwho.rhsm_log DEBUG] MainProcess(14119):MainThread @config.py:init_config:1582 - [global]: Value for "log_per_config" not set, using default: False 2024-07-30 22:08:10,032 [virtwho.rhsm_log DEBUG] MainProcess(14119):MainThread @config.py:init_config:1582 - [global]: Value for "configs" not set, using default: [] 2024-07-30 22:08:10,032 [virtwho.rhsm_log DEBUG] MainProcess(14119):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-07-30 22:08:10,032 [virtwho.rhsm_log DEBUG] MainProcess(14119):MainThread @config.py:init_config:1582 - [global]: Value for "interval" not set, using default: 3600 2024-07-30 22:08:10,032 [virtwho.rhsm_log DEBUG] MainProcess(14119):MainThread @config.py:init_config:1582 - [global]: Value for "log_file" not set, using default: rhsm.log 2024-07-30 22:08:10,032 [virtwho.rhsm_log DEBUG] MainProcess(14119):MainThread @config.py:init_config:1582 - [global]: Value for "log_dir" not set, using default: /var/log/rhsm 2024-07-30 22:08:10,033 [virtwho.rhsm_log WARNING] MainProcess(14119):MainThread @config.py:init_config:1582 - [global]: oneshot must be a valid boolean, using default: False. See man virt-who-config for more info 2024-07-30 22:08:10,033 [virtwho.rhsm_log ERROR] MainProcess(14119):MainThread @main.py:main:92 - virt-who can't be started: no valid configuration found Job for virt-who.service failed because the control process exited with error code. See "systemctl status virt-who.service" and "journalctl -xeu virt-who.service" for details. |
Expected results
When no virt-who conf files under /etc/virt-who.d/, virt-who should run local libvirt mode by default.
Actual results
Failed to start the virt-who service.