GitHub user TadiosAbebe added a comment to the discussion: Need help! Time synchronization issue.
@SviridoffA, this sounds very similar to an issue I encountered while testing VM HA. As documented here: https://github.com/apache/cloudstack/discussions/12183 using a custom timezone can impact certain CloudStack operations. In my case, the root cause was a timezone mismatch in the following code: ``` long milliSecondsSinceLastStateUpdate = currentTime.getTime() - vmStateUpdateTime.getTime(); ``` One of these values was returned in UTC, while the other was returned in local time because it relied on NOW() in MySQL. As a result, CloudStack ended up comparing timestamps from two different timezones, which caused a consistent offset (3 hours in my case). Switching the system and database timezone back to the default UTC resolved the issue. I suspect doing the same would likely fix your problem as well. GitHub link: https://github.com/apache/cloudstack/discussions/12514#discussioncomment-15594371 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected]
