OVM - Unable to get_rpm_version when trying to restart ovs-agent
(Doc ID 2528235.1)
Last updated on MAY 26, 2021
Applies to:
Oracle VM - Version 3.4.5 and laterInformation in this document applies to any platform.
Symptoms
- Not able to restart OVS Agent.
# strace -f -tT -s1024 service ovs-agent restart
-----------------------------------------------------------<snip>-----------------------------------------------------------
[pid 3373] 13:44:06 futex(0x7fd4653aa2f4, FUTEX_WAIT, 12, NULL <unfinished ...>
[pid 3372] 13:44:07 <... select resumed> ) = 0 (Timeout) <1.001116>
[pid 3372] 13:44:16 select(5, [4], [], [], {1, 0}) = 0 (Timeout) <1.001126>
[pid 3372] 13:44:17 select(5, [4], [], [], {1, 0}) = 0 (Timeout) <1.001129>
-----------------------------------------------------------<snip>-----------------------------------------------------------
[pid 3372] 14:00:04 select(5, [4], [], [], {1, 0}^CProcess 3347 detached
Process 3354 detached
Process 3366 detached
Process 3373 detached
Process 3372 detached
<detached ...>
Traceback (most recent call last):
File "/usr/sbin/agtctl", line 118, in <module>
main()
File "/usr/sbin/agtctl", line 105, in main
agent_startup()
File "/usr/sbin/agtctl", line 40, in agent_startup
init_target()
File "/usr/lib64/python2.6/site-packages/agent/target/startup.py", line 22, in init_target
logging.info('ovs-agent: %s', get_rpm_version('ovs-agent'))
File "/usr/lib64/python2.6/site-packages/agent/lib/linux.py", line 579, in get_rpm_version
return run_cmd(['rpm', '-q', '--queryformat', '%{VERSION}-%{RELEASE}', package])
File "/usr/lib64/python2.6/site-packages/agent/lib/linux.py", line 74, in run_cmd
(stdoutdata, stderrdata) = proc.communicate()
File "/usr/lib64/python2.6/subprocess.py", line 732, in communicate
[root@hcondo103 ~]# stdout, stderr = self._communicate(input, endtime)
File "/usr/lib64/python2.6/subprocess.py", line 1328, in _communicate
stdout, stderr = self._communicate_with_poll(input, endtime)
File "/usr/lib64/python2.6/subprocess.py", line 1400, in _communicate_with_poll
ready = poller.poll(self._remaining_time(endtime))
KeyboardInterrupt
[FAILED]
#
- rpm commands get hung( futex() ) in Sleep Status forever
# cat /proc/31885/stack
[] futex_wait_queue_me+0xcb/0x140
[] futex_wait+0x119/0x2a0
[] do_futex+0xdb/0x610
[] SyS_futex+0x76/0x170
[] tracesys_phase2+0x6d/0x72
[] 0xffffffffffffffff
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Cause |
Solution |