Bug 1748677

Summary: virt-who hangs on empty vCenter
Product: Red Hat Enterprise Linux 8 Reporter: Anand Jambhulkar <ajambhul>
Component: virt-whoAssignee: William Poteat <wpoteat>
Status: CLOSED ERRATA QA Contact: Eko <hsun>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.0CC: bkearney, csnyder, jhnidek, jsefler, mhulan, redakkan, wpoteat, yuefliu
Target Milestone: rcKeywords: Triaged
Target Release: 8.2   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-28 15:37:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Anand Jambhulkar 2019-09-04 01:29:05 UTC
Q1 - What is the exact version of Satellite Server that you are using?

A1 - This doesn't matter which version of Satellite Server I am running, it doesn't make it that far. virt-who-0.24.7-1.el7.noarch is part of the OS and not Satelilte. @rhel-7-server-rpms


Q2 - What is the version of "virt-who" that is causing this issue?

A2 - This is pretty much any version of virt-who.   virt-who-0.24.7-1.el7.noarch  This has been going on for as long as I can remember.


Q3 - Do you see any error message that is being presented to you on the screen?

A3 - 

# virt-who -d -o -c 24.conf
2019-09-03 12:31:01,187 [virtwho.rhsm_log INFO] MainProcess(48577):MainThread @config.py:init_config:1465 - Using configuration passed in by -c/--configs; ignoring configuration files in '/etc/virt-who.d/'
2019-09-03 12:31:01,189 [virtwho.rhsm_log INFO] MainProcess(48577):MainThread @executor.py:__init__:54 - Using config named 'apsep9169'
2019-09-03 12:31:01,190 [virtwho.rhsm_log INFO] MainProcess(48577):MainThread @main.py:main:162 - Using configuration "apsep9169" ("esx" mode)
2019-09-03 12:31:01,190 [virtwho.rhsm_log INFO] MainProcess(48577):MainThread @main.py:main:164 - Using reporter_id='apsrp09228-b6ef2a6a5df846b6b31943daaa99835a'
2019-09-03 12:31:01,197 [rhsm.https DEBUG] MainProcess(48577):MainThread @https.py:<module>:56 - Using standard libs to provide httplib and ssl
2019-09-03 12:31:01,206 [virtwho.main DEBUG] MainProcess(48577):Thread-2 @virt.py:run:407 - Thread 'apsep9169' started
2019-09-03 12:31:01,207 [virtwho.main DEBUG] MainProcess(48577):Thread-2 @esx.py:_prepare:130 - Log into ESX
2019-09-03 12:31:01,561 [virtwho.main DEBUG] MainProcess(48577):Thread-2 @esx.py:_prepare:133 - Creating ESX event filter
Control C was pressed, but it never returns, yo
2019-09-03 12:31:18,766 [virtwho.main DEBUG] MainProcess(48577):MainThread @executor.py:terminate:225 - virt-who is shutting down
2019-09-03 12:31:18,818 [virtwho.main DEBUG] MainProcess(48577):Thread-2 @esx.py:_prepare:130 - Log into ESX
2019-09-03 12:31:19,111 [virtwho.main DEBUG] MainProcess(48577):Thread-2 @esx.py:_prepare:133 - Creating ESX event filter
2019-09-03 12:32:19,192 [virtwho.main DEBUG] MainProcess(48577):Thread-2 @esx.py:_run:181 - Wait for ESX event finished, timeout
2019-09-03 12:33:19,282 [virtwho.main DEBUG] MainProcess(48577):Thread-2 @esx.py:_run:181 - Wait for ESX event finished, timeout
2019-09-03 12:34:19,369 [virtwho.main DEBUG] MainProcess(48577):Thread-2 @esx.py:_run:181 - Wait for ESX event finished, timeout


Q4 - If yes to Q3, then please attach the screenshot of the error message.


Q5 - Since when did you start observing this issue?

A5 - This happens whenever our VMWare team moves things around and we are left with an empty vCenter.  This has been going on for years.

	
Q6 - Did you upgrade the Satellite Server after which this issue started to appear? or was it present even before the upgrade?

A6 - Again this doesn't matter what version of Satellite, it never gets far enough to even talk to Satellite.

Comment 4 Chris Snyder 2019-09-09 18:23:33 UTC
Is there ever a point at which there are systems that could be reported on in the vCenter? Is virt-who running at these points? If so does the existing virt-who process successfully report those systems?
From what's been described it seems like the answer is no, but I'd like to confirm before we begin work so we might come up with the best solution.

Thanks!

Comment 6 William Poteat 2019-09-12 17:30:30 UTC
What is the behavior when virt-who is run as a service as intended? Does it timeout before the next cycle?
If you start the service against the empty vCenter and then add a hypervisor, does it start reporting again?

Comment 13 errata-xmlrpc 2020-04-28 15:37:04 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:1592