RodrigoDLopez commented on pull request #4586:
URL: https://github.com/apache/cloudstack/pull/4586#issuecomment-897884985


   I ran some tests with this propose. But I'm not sure about my environment. I 
couldn't see my kvm agent stop at any point.
   anyway, I managed to verify that the behavior of the externalized parameter 
is in accordance with what was proposed.
   
   forcing my heartbeat timeout on two kvm hosts it's possible to see that the 
ones without the parameter 
`reboot.host.and.alert.management.on.heartbeat.timeout=false` will  log the 
mensage `failed: timeout; stopping cloudstack-agent.`
   
   **Kvm-nd01**
   ```
   heartbeat.update.timeout=10
   reboot.host.and.alert.management.on.heartbeat.timeout=true
   ```
   ```
   Thread-1:null) (logid:) The command 
(/usr/share/cloudstack-common/scripts/vm/hypervisor/kvm/kvmheartbeat.sh -i 
201.200.102.10 -p /export/primary -m /mnt/0727b905-35cb-36cb-961c-ea27b1a83333 
-h 201.200.101.3 ), to the pool [0727b905-35cb-36cb-961c-ea27b1a83333], has the 
result [timeout].
   (Thread-1:null) (logid:) Write heartbeat for pool 
[0727b905-35cb-36cb-961c-ea27b1a83333] failed: timeout; try: 5 of 5.
   (Thread-1:null) (logid:) [IGNORED] Interrupted between heartbeat retries.
   java.lang.InterruptedException: sleep interrupted
        at java.base/java.lang.Thread.sleep(Native Method)
        at 
com.cloud.hypervisor.kvm.resource.KVMHAMonitor.runHeartBeat(KVMHAMonitor.java:129)
        at 
com.cloud.hypervisor.kvm.resource.KVMHAMonitor.run(KVMHAMonitor.java:176)
        at java.base/java.lang.Thread.run(Thread.java:829)
   (Thread-1:null) (logid:) Write heartbeat for pool 
[0727b905-35cb-36cb-961c-ea27b1a83333] failed: timeout; stopping 
cloudstack-agent. 
   ```
   
   **Kvm-nd02**
   ```
   heartbeat.update.timeout=10
   reboot.host.and.alert.management.on.heartbeat.timeout=false
   ```
   ```
   (Thread-1:null) (logid:) The command 
(/usr/share/cloudstack-common/scripts/vm/hypervisor/kvm/kvmheartbeat.sh -i 
201.200.102.10 -p /export/primary -m /mnt/0727b905-35cb-36cb-961c-ea27b1a83333 
-h 201.200.101.4 ), to the pool [0727b905-35cb-36cb-961c-ea27b1a83333], has the 
result [timeout].
   (Thread-1:null) (logid:) Write heartbeat for pool 
[0727b905-35cb-36cb-961c-ea27b1a83333] failed: timeout; try: 5 of 5.
   (Thread-1:null) (logid:) [IGNORED] Interrupted between heartbeat retries.
   java.lang.InterruptedException: sleep interrupted
        at java.base/java.lang.Thread.sleep(Native Method)
        at 
com.cloud.hypervisor.kvm.resource.KVMHAMonitor.runHeartBeat(KVMHAMonitor.java:129)
        at 
com.cloud.hypervisor.kvm.resource.KVMHAMonitor.run(KVMHAMonitor.java:176)
        at java.base/java.lang.Thread.run(Thread.java:829)
   ```
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to