You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Most likely the easiest way to accomplish this for 7.16 is to leave the existing functionality in and add a new constant for a list of managed packages that should always have this behavior. If a package is in this list, we ignore the value of the keep_policies_up_to_date field on epm-packages and always attempt to upgrade the policies
We should hide the "Keep policies up to date" toggle in the integrations detail UI for packages in this list as well
Error handling
We also need to verify and potentially improve error handling for policies that fail to upgrade during Fleet Setup. At a minimum we need:
Logging at the error level when a package policy fails to upgrade during setup (or in general) including the exception that caused the error, the stack trace, and if a conflict was encountered, a diff of the package policies that shows the reason for the conflict.
All of this same information should be bubbled up to the UI when the user visits the Fleet app and setup is called and fails.
@kpollich do you know if we already have any of this error handling?
The text was updated successfully, but these errors were encountered:
Logging at the error level when a package policy fails to upgrade during setup (or in general) including the exception that caused the error, the stack trace, and if a conflict was encountered, a diff of the package policies that shows the reason for the conflict.
All of this same information should be bubbled up to the UI when the user visits the Fleet app and setup is called and fails.
@kpollich do you know if we already have any of this error handling?
We don't have error handling like this right now. We're swallowing errors that come from package policy upgrades in order to not block the completion of setup. I will take a look at surfacing these errors as non-fatal during the setup process instead.
Breaking independent issue out of #112831 (comment) for 7.16
This should only be merged if the package owners verify the conditions in the comment above ⬆️
Upgrade behavior
The APM and Synthetics packages need to be:
autoUpdatePackages
list, to have the same behavior as Endpoint:kibana/x-pack/plugins/fleet/common/constants/epm.ts
Line 40 in 84e42e4
keep_policies_up_to_date
field onepm-packages
and always attempt to upgrade the policiesError handling
We also need to verify and potentially improve error handling for policies that fail to upgrade during Fleet Setup. At a minimum we need:
error
level when a package policy fails to upgrade during setup (or in general) including the exception that caused the error, the stack trace, and if a conflict was encountered, a diff of the package policies that shows the reason for the conflict.The text was updated successfully, but these errors were encountered: