Uh oh!
There was an error while loading. Please reload this page.
only update powerstate if sure it is the latest - #3743
Conversation
DaanHoogland
commented
Dec 5, 2019
any vmware users or HA users are invited to have a look at this. |
DaanHoogland
commented
Dec 5, 2019
will be backporting to 4.13 |
c67c413 to
ee718bcCompareandrijapanicsb
commented
Dec 6, 2019
/CC @Doni7722 |
andrijapanicsb
left a comment
There was a problem hiding this comment.
I can only give LGTM based on the internal discussion we had - since it's impossible to test this edge case of race condition we are fixing here.
(can't comment the code, since not developer myself)
andrijapanicsb
commented
Dec 31, 2019
This needs testing with VMware specifically |
blueorangutan
commented
Dec 31, 2019
@andrijapanicsb unsupported parameters provided. Supported mgmt server os are: |
andrijapanicsb
commented
Dec 31, 2019
@blueorangutan test centos7 vmware-65u2 |
nvazquez
left a comment
There was a problem hiding this comment.
Code LGTM. Thanks @DaanHoogland
DaanHoogland
commented
Jan 3, 2020
revert snapshot error does not seem related but doing a re-package/re-test to be sure. |
andrijapanicsb
commented
Jan 4, 2020
@blueorangutan test centos7 vmware-65u2 |
DaanHoogland
commented
Jan 6, 2020
@blueorangutan package |
blueorangutan
commented
Jan 6, 2020
@DaanHoogland a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
Jan 6, 2020
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-540 |
DaanHoogland
commented
Jan 6, 2020
@blueorangutan test centos7 vmware-65u2 |
blueorangutan
commented
Jan 6, 2020
@DaanHoogland a Trillian-Jenkins test job (centos7 mgmt + vmware-65u2) has been kicked to run smoke tests |
blueorangutan
commented
Jan 7, 2020
Trillian test result (tid-708)
|
| ", power state: PowerReportMissing, last state update: " + vmStateUpdateTime.getTime()); | ||
| if (s_logger.isInfoEnabled()) { | ||
| s_logger.info( | ||
| String.format("Detected missing VM. host: %l, vm id: %l(%s), power state: %s, last state update: %l" |
There was a problem hiding this comment.
Hi @DaanHoogland, I'm getting this error in latest master:
INFO [c.c.a.m.AgentManagerImpl] (AgentTaskPool-98:ctx-ad691272) (logid:1a451217) The agent from host 1 state determined is Up
INFO [c.c.a.m.AgentManagerImpl] (AgentTaskPool-98:ctx-ad691272) (logid:1a451217) Agent is determined to be up and running
WARN [c.c.a.m.AgentManagerImpl] (AgentManager-Handler-8:null) (logid:) Caught: java.util.UnknownFormatConversionException: Conversion = 'l'
at java.util.Formatter$FormatSpecifier.conversion(Formatter.java:2691)
at java.util.Formatter$FormatSpecifier.<init>(Formatter.java:2720)
at java.util.Formatter.parse(Formatter.java:2560)
at java.util.Formatter.format(Formatter.java:2501)
at java.util.Formatter.format(Formatter.java:2455)
at java.lang.String.format(String.java:2940)
at com.cloud.vm.VirtualMachinePowerStateSyncImpl.processReport(VirtualMachinePowerStateSyncImpl.java:141)
at com.cloud.vm.VirtualMachinePowerStateSyncImpl.processHostVmStatePingReport(VirtualMachinePowerStateSyncImpl.java:66)
at com.cloud.vm.VirtualMachineManagerImpl.processCommands(VirtualMachineManagerImpl.java:3245)
at com.cloud.agent.manager.AgentManagerImpl.handleCommands(AgentManagerImpl.java:309)
at com.cloud.agent.manager.AgentManagerImpl$AgentHandler.processRequest(AgentManagerImpl.java:1287)
at com.cloud.agent.manager.AgentManagerImpl$AgentHandler.doTask(AgentManagerImpl.java:1370)
at com.cloud.agent.manager.ClusteredAgentManagerImpl$ClusteredAgentHandler.doTask(ClusteredAgentManagerImpl.java:702)
at com.cloud.utils.nio.Task.call(Task.java:83)
at com.cloud.utils.nio.Task.call(Task.java:29)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Description
On update powerstate check if we have the latest knowledge before doing so.
When report is missing don't try to stop the VM on the host that doesn't know the VM.
Fixes: #3741
Types of changes
How Has This Been Tested?
This is purely based on log- and code analysis. intensiove review is requested. Also advise on environmental consequences is welcomed.
HA may be impacted do I suspect not in a negative way.