We have a problem with updating our OneAgents during the defined OneAgent Updates window.
As soon as we update wished version of OA to higher as current, it immediately starts an update and ignores the Update window, which is set in the future.
Hi @Ingrida if I understand you correctly, your problem is that you’ve set a OneAgent update schedule that should trigger agent updates at a specific time and date only, but OneAgents are still updating outside of this window?
If yes, is the global/host group/individual host update policy set to ‘No automatic updates’? If it is not, then that would be the problem. You’d need to disable auto-updates, after which your update window should work.
Did you create the maintenance window via the Dynatrace web UI?
If not, you have to define a OneAgent update maintenance window there, as it is currently not possible to create a OneAgent maintenance window for updates via the API (unless I’m missing something? ).
After that’s done, you have to set the agents to update based on the created OneAgent maintenance window, created in the previous step above.
You can use the API to set the agent/host group/global setting
What I’m struggling with here, is getting the ID for the OneAgent update maintenance window I’ve created; it doesn’t seem to be listed under the normal maintenance windows API?
Perhaps I’m looking at the wrong API and someone can help me out here?
The Dev team has determined this is a bug and is going to work to improve here but it won’t be immediate. Here is what we know:
In WebUI, a maintenance window can only be selected with autoUpdate enabled
Via API, a maintenance window can be defined together with disabled autoUpdate + a version (=updateNow)
Backend logic now only evaluates maintenance window for autoUpdate enabled, not for updateNow
So, while we can’t do what you are looking for now, we are discussing updates to the API which would handle this situation much better. Long term we are looking to improve the autoUpdate process as a whole.
“Development has made us aware that they have fixed this bug, and the fix will be rolled out in v238. To be clear, this fix involves invalidation of the scenario that you experienced - specifically the use of the Dynatrace API to create a Maintenance Window while the AutoUpdate was disabled. This specific use case has led the team to begin working on improvements for Maintenance Windows as a whole, however this is a long term fix that will take some time to implement with no current date set in sight”
So, fix is actually removing not working feature and we habe to wait for new MW improvements.
Late update to this one with somepartial good news: during internal discussions “how should we do it now” , @mark_bley propossed to use OneAgent Maintence window without nailing down OneAgent versino to be updated, so that latest available on Cluster will be used. So, we tested it. And it works!
So, if you set up Mainenance window and do not touch verion, it actually works.
So, only thing we need to be carefull about is to make sure latest version of OA is always the one we want to update… It’s kinda semisolution but better as to set up update dynamically last minute.