In botvinnik-1-RC2
OVA, we’re seeing issues with connections to vCenter failing silently after approximately 25 minutes of runtime. This prevents the ems workers from being able to properly refresh the current state of vCenter, as well as the event catcher from catching events generated by vCenter. After a services restart, things return to normal for another 25 minutes, before silently beginning to fail again.
There are no obvious errors in the logs. We are seeing mIQ attempt to connect but never returning a “Connected” log entry, like so:
[----] I, [2015-04-13T14:05:17.876385 #2521:11b9e90] INFO -- : MIQ(MiqFaultTolerantVim._connect) EMS: [DEV vCenter] [Broker] Connecting with address: [vcenterhost.oregonstate.edu], userid: [username@vsphere.local]...
[----] I, [2015-04-13T14:05:17.898688 #2521:11b9e90] INFO -- : MIQ(MiqFaultTolerantVim._connect) EMS: [DEV vCenter] [Broker] vcenterhost.oregonstate.edu is VC, API version: 5.5
[----] I, [2015-04-13T14:05:17.898799 #2521:11b9e90] INFO -- : MIQ(MiqFaultTolerantVim._connect) EMS: [DEV vCenter] [Broker] Connected
[----] I, [2015-04-13T14:05:48.770934 #2521:11b9e90] INFO -- : MIQ(MiqFaultTolerantVim._connect) EMS: [DEV vCenter] [Broker] Connecting with address: [vcenterhost.oregonstate.edu], userid: [username@vsphere.local]...
[----] I, [2015-04-13T14:05:48.792914 #2521:11b9e90] INFO -- : MIQ(MiqFaultTolerantVim._connect) EMS: [DEV vCenter] [Broker] vcenterhost.oregonstate.edu is VC, API version: 5.5
[----] I, [2015-04-13T14:05:48.793017 #2521:11b9e90] INFO -- : MIQ(MiqFaultTolerantVim._connect) EMS: [DEV vCenter] [Broker] Connected
[----] I, [2015-04-13T14:09:16.739780 #2487:10b5e90] INFO -- : MIQ(MiqFaultTolerantVim._connect) EMS: [DEV vCenter] [Broker] Connecting with address: [vcenterhost.oregonstate.edu], userid: [username@vsphere.local]...
[----] I, [2015-04-13T14:09:16.762562 #2487:10b5e90] INFO -- : MIQ(MiqFaultTolerantVim._connect) EMS: [DEV vCenter] [Broker] vcenterhost.oregonstate.edu is VC, API version: 5.5
[----] I, [2015-04-13T14:09:16.762674 #2487:10b5e90] INFO -- : MIQ(MiqFaultTolerantVim._connect) EMS: [DEV vCenter] [Broker] Connected
[----] I, [2015-04-13T14:09:39.797028 #2521:11b9e90] INFO -- : MIQ(MiqFaultTolerantVim._connect) EMS: [DEV vCenter] [Broker] Connecting with address: [vcenterhost.oregonstate.edu], userid: [username@vsphere.local]...
[----] I, [2015-04-13T14:09:39.818807 #2521:11b9e90] INFO -- : MIQ(MiqFaultTolerantVim._connect) EMS: [DEV vCenter] [Broker] vcenterhost.oregonstate.edu is VC, API version: 5.5
[----] I, [2015-04-13T14:09:39.818928 #2521:11b9e90] INFO -- : MIQ(MiqFaultTolerantVim._connect) EMS: [DEV vCenter] [Broker] Connected
[----] I, [2015-04-13T14:15:51.553632 #2487:10b5e90] INFO -- : MIQ(MiqFaultTolerantVim._connect) EMS: [DEV vCenter] [Broker] Connecting with address: [vcenterhost.oregonstate.edu], userid: [username@vsphere.local]...
[----] I, [2015-04-13T14:15:51.576668 #2487:10b5e90] INFO -- : MIQ(MiqFaultTolerantVim._connect) EMS: [DEV vCenter] [Broker] vcenterhost.oregonstate.edu is VC, API version: 5.5
[----] I, [2015-04-13T14:15:51.576795 #2487:10b5e90] INFO -- : MIQ(MiqFaultTolerantVim._connect) EMS: [DEV vCenter] [Broker] Connected
[----] I, [2015-04-13T14:19:04.919127 #2484:5bde98] INFO -- : MIQ(MiqFaultTolerantVim._connect) EMS: [DEV vCenter] [Broker] Connecting with address: [vcenterhost.oregonstate.edu], userid: [username@vsphere.local]...
[----] I, [2015-04-13T14:29:00.393795 #4441:ae7e8c] INFO -- : MIQ(MiqFaultTolerantVim._connect) EMS: [DEV vCenter] [Broker] Connecting with address: [vcenterhost.oregonstate.edu], userid: [username@vsphere.local]...
[----] I, [2015-04-13T14:34:18.096573 #4563:a93e90] INFO -- : MIQ(MiqFaultTolerantVim._connect) EMS: [DEV vCenter] [Broker] Connecting with address: [vcenterhost.oregonstate.edu], userid: [username@vsphere.local]...
Corresponding tcpdump on the mIQ box shows no traffic after 14:19:50:
14:16:50.094157 IP miqhost.oregonstate.edu.32859 > vcenterhost.oregonstate.edu.https: Flags [.], ack 9185, win 286, options [nop,nop,TS val 268333211 ecr 131351346], length 0
14:19:05.039284 IP miqhost.oregonstate.edu.32964 > vcenterhost.oregonstate.edu.https: Flags [P.], seq 2602:2639, ack 5420, win 181, options [nop,nop,TS val 268468155 ecr 131337004], length 37
14:19:05.039412 IP miqhost.oregonstate.edu.32964 > vcenterhost.oregonstate.edu.https: Flags [F.], seq 2639, ack 5420, win 181, options [nop,nop,TS val 268468156 ecr 131337004], length 0
14:19:05.040098 IP vcenterhost.oregonstate.edu.https > miqhost.oregonstate.edu.32964: Flags [.], ack 2639, win 172, options [nop,nop,TS val 131385093 ecr 268468155], length 0
14:19:05.040264 IP vcenterhost.oregonstate.edu.https > miqhost.oregonstate.edu.32964: Flags [F.], seq 5420, ack 2640, win 172, options [nop,nop,TS val 131385093 ecr 268468156], length 0
14:19:05.040274 IP miqhost.oregonstate.edu.32964 > vcenterhost.oregonstate.edu.https: Flags [.], ack 5421, win 181, options [nop,nop,TS val 268468157 ecr 131385093], length 0
14:19:05.040983 IP miqhost.oregonstate.edu.32982 > vcenterhost.oregonstate.edu.https: Flags [S], seq 2274512904, win 14600, options [mss 1460,sackOK,TS val 268468157 ecr 0,nop,wscale 7], length 0
14:19:05.042174 IP vcenterhost.oregonstate.edu.https > miqhost.oregonstate.edu.32982: Flags [S.], seq 2941576007, ack 2274512905, win 14480, options [mss 1380,sackOK,TS val 131385094 ecr 268468157,nop,wscale 7], length 0
14:19:05.042185 IP miqhost.oregonstate.edu.32982 > vcenterhost.oregonstate.edu.https: Flags [.], ack 1, win 115, options [nop,nop,TS val 268468158 ecr 131385094], length 0
14:19:05.042511 IP miqhost.oregonstate.edu.32982 > vcenterhost.oregonstate.edu.https: Flags [P.], seq 1:304, ack 1, win 115, options [nop,nop,TS val 268468159 ecr 131385094], length 303
14:19:05.043101 IP vcenterhost.oregonstate.edu.https > miqhost.oregonstate.edu.32982: Flags [.], ack 304, win 122, options [nop,nop,TS val 131385094 ecr 268468159], length 0
14:19:05.043421 IP vcenterhost.oregonstate.edu.https > miqhost.oregonstate.edu.32982: Flags [.], seq 1:1369, ack 304, win 122, options [nop,nop,TS val 131385094 ecr 268468159], length 1368
14:19:05.043428 IP miqhost.oregonstate.edu.32982 > vcenterhost.oregonstate.edu.https: Flags [.], ack 1369, win 136, options [nop,nop,TS val 268468160 ecr 131385094], length 0
14:19:05.043450 IP vcenterhost.oregonstate.edu.https > miqhost.oregonstate.edu.32982: Flags [P.], seq 1369:2573, ack 304, win 122, options [nop,nop,TS val 131385094 ecr 268468159], length 1204
14:19:05.043455 IP miqhost.oregonstate.edu.32982 > vcenterhost.oregonstate.edu.https: Flags [.], ack 2573, win 157, options [nop,nop,TS val 268468160 ecr 131385094], length 0
14:19:05.044102 IP miqhost.oregonstate.edu.32982 > vcenterhost.oregonstate.edu.https: Flags [P.], seq 304:630, ack 2573, win 157, options [nop,nop,TS val 268468160 ecr 131385094], length 326
14:19:05.050848 IP vcenterhost.oregonstate.edu.https > miqhost.oregonstate.edu.32982: Flags [P.], seq 2573:2632, ack 630, win 130, options [nop,nop,TS val 131385096 ecr 268468160], length 59
14:19:05.090138 IP miqhost.oregonstate.edu.32982 > vcenterhost.oregonstate.edu.https: Flags [.], ack 2632, win 157, options [nop,nop,TS val 268468207 ecr 131385096], length 0
14:19:50.070873 IP vcenterhost.oregonstate.edu.https > miqhost.oregonstate.edu.32982: Flags [F.], seq 2632, ack 630, win 130, options [nop,nop,TS val 131396351 ecr 268468207], length 0
14:19:50.110127 IP miqhost.oregonstate.edu.32982 > vcenterhost.oregonstate.edu.https: Flags [.], ack 2633, win 157, options [nop,nop,TS val 268513227 ecr 131396351], length 0
vim.log
:
[----] I, [2015-04-13T14:15:52.607945 #2556:30dc494] INFO -- : HandSoap Request [62557840]: length: [855], URI: [https://vcenterhost.oregonstate.edu/sdk], Content-Type: [text/xml;charset=UT
F-8], SOAPAction: [RetrieveProperties]
[----] I, [2015-04-13T14:15:52.611962 #2556:30dc494] INFO -- : HandSoap Response [62557840]: length: [541], HTTP-Status: [200], Content-Type: [text/xml; charset=utf-8]
[----] I, [2015-04-13T14:15:52.690647 #2556:3a2021c] INFO -- : HandSoap Response [57241200]: length: [1314], HTTP-Status: [200], Content-Type: [text/xml; charset=utf-8]
[----] I, [2015-04-13T14:15:52.691776 #2556:3a2021c] INFO -- : MiqVimUpdate.monitorUpdatesSince (vcenterhost.oregonstate.edu_username@vsphere.local): call to waitForUpdates...Complete (version
= 30)
[----] I, [2015-04-13T14:15:52.691921 #2556:3a2021c] INFO -- : MiqVimUpdate.monitorUpdatesSince (vcenterhost.oregonstate.edu_username@vsphere.local): applying update...Starting (version = 32)
[----] D, [2015-04-13T14:15:52.692607 #2556:3a2021c] DEBUG -- : MiqVimUpdate.updateProps (vcenterhost.oregonstate.edu_username@vsphere.local): server = vcenterhost.oregonstate.edu, mor = (Vir
tualMachine, vm-109)
[----] D, [2015-04-13T14:15:52.692697 #2556:3a2021c] DEBUG -- : MiqVimUpdate.updateProps (vcenterhost.oregonstate.edu_username@vsphere.local): changedProps = [ config.hardware.device[3002].conn
ectable.status, summary.runtime.bootTime, summary.runtime.powerState, summary.storage.committed, summary.storage.unshared ]
[----] I, [2015-04-13T14:15:52.692923 #2556:3a2021c] INFO -- : MiqVimUpdate.monitorUpdatesSince (vcenterhost.oregonstate.edu_username@vsphere.local): applying update...Complete (version = 32)
[----] I, [2015-04-13T14:15:52.693037 #2556:3a2021c] INFO -- : MiqVimUpdate.monitorUpdatesSince (vcenterhost.oregonstate.edu_username@vsphere.local): call to waitForUpdates...Starting (version
= 32)
[----] I, [2015-04-13T14:15:52.693445 #2556:3a2021c] INFO -- : HandSoap Request [62701040]: length: [379], URI: [https://vcenterhost.oregonstate.edu/sdk], Content-Type: [text/xml;charset=UT
F-8], SOAPAction: [WaitForUpdates]
[----] I, [2015-04-13T14:15:53.099669 #2526:32ff3c0] INFO -- : HandSoap Request [71846660]: length: [379], URI: [https://10.214.4.11/sdk], Content-Type: [text/xml;charset=UTF-8], SOAPAction:
[WaitForUpdates]
[----] I, [2015-04-13T14:15:53.613522 #2556:30dc494] INFO -- : HandSoap Request [64430940]: length: [855], URI: [https://vcenterhost.oregonstate.edu/sdk], Content-Type: [text/xml;charset=UT
F-8], SOAPAction: [RetrieveProperties]
[----] I, [2015-04-13T14:19:05.037780 #2556:3fa73ac] INFO -- : MiqVimBroker.getMiqVim: found connection for vcenterhost.oregonstate.edu_username@vsphere.local
[----] I, [2015-04-13T14:19:05.038074 #2556:3fa73ac] INFO -- : MiqVimInventory(vcenterhost.oregonstate.edu, username@vsphere.local).getMoProp_local: calling retrieveProperties(SessionManager)
[----] I, [2015-04-13T14:19:05.038785 #2556:3fa73ac] INFO -- : HandSoap Request [33384100]: length: [792], URI: [https://vcenterhost.oregonstate.edu/sdk], Content-Type: [text/xml;charset=UTF-8], SOAPAction: [RetrieveProperties]
[----] I, [2015-04-13T14:25:51.480935 #2556:318f5bc] INFO -- : MiqBrokerObjRegistry.release: MiqVimVm object_id: 60180640
[----] I, [2015-04-13T14:25:51.481077 #2556:318f5bc] INFO -- : MiqBrokerObjRegistry.unregisterBrokerObj: MiqVimVm object_id: 60180640 => SessionId: 2487
[----] I, [2015-04-13T14:25:51.481222 #2556:318f5bc] INFO -- : MiqBrokerObjRegistry.unregisterBrokerObj: MiqVimVm object_id: 60180640 => Connection: vcenterhost.oregonstate.edu_username@vsphere.local
[----] I, [2015-04-13T14:25:51.584716 #2487:10b5e90] INFO -- : Client releaseSession: 2487
[----] I, [2015-04-13T14:25:51.585400 #2556:318f5bc] INFO -- : Server releaseSession: 2487
[----] I, [2015-04-13T14:26:13.757570 #2307:951e88] INFO -- : Client releaseSession: 2487
[----] I, [2015-04-13T14:26:13.760155 #2556:30e2bf0] INFO -- : Server releaseSession: 2487
[----] I, [2015-04-13T14:26:58.298910 #2556:22ea23c] INFO -- : MiqVimBroker status start
We’re seeing the same behavior with selinux and iptables disabled.
We also have a mIQ instance running anand-1
which is connecting to the exact same vCenter, and it is working properly.
Any ideas on how to troubleshoot this further would be welcome. Thanks!