-
Notifications
You must be signed in to change notification settings - Fork 445
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TSDB] k8 package upgrade failure from 8.6.2 to 8.8.1 #6554
Comments
Thanks @constanca-m for separating. Is there anything else I can provide to help narrow this down? |
We need to see that the issue has occurred only because of series of steps that has been used here to upgrade ES from: ES 8.6.2 to 8.7.1 to 8.8.0. So, can you help re-confirm that on a fresh installation of 8.8.0 with the k8 package, no such issue occurs at your side? |
@lalit-satapathy I can try later today, but if it worked for you all I would think that is probably fine. I think the bigger question for me is if it's ES 8.6.2 to 8.7.1 to 8.8.0, or if it's related to the k8 package update from 1.32.2 to 1.41.0. |
I did the following:
Still could not reproduce the error. Then I uninstalled Kubernetes 1.42.0 and installed 1.41.0. Still nothing. |
@constanca-m Hmm, is there anything I can run to try to get more details on which component field it's failing on? |
I am out of ideas for now @lincolncoe-vca. Did you try to install Kubernetes 1.42.0 (latest version) after you deleted everything? |
@constanca-m Just tried 1.42.0, same thing |
hey @lincolncoe-vca could you please provide some details on your setup? like what is your k8s environment (GKE,EKS/etc)? Do you have any custom integration configuration (like processors)? or you use the default configuration? in case you have an index mapping of any of the data_stream that are failing now, before the package version was upgraded to 1.41.0, could you provide it as well?
correctly I understand that you see this error at the package installation time? or it fails after some time of running? |
@tetianakravchenko It's when trying to install the integration in Fleet, not even down to the k8s integration part. None of the datastreams persist, it removes them all after it fails. These are the 2 persisting component templates it's failing on - .fleet_agent_id_verification-1 .fleet_globals-1 |
The first time issue was seen during an upgrade only? Which date was 8.8.0 upgrade was run first time? |
@lalit-satapathy It was after I updated to 8.8.0 that I tried to update k8s package from 1.32.2 to 1.41.0, I do not know if updating the k8s package from 1.32.2 to 1.41.0 while on ES 8.6.2 would have caused the issue unfortunately. 06/05 is when the upgrade was run the first time. |
For me the @juliaElastic also maybe you have any idea of any changes from the fleet side to cause such an issue after upgrading a stack from 8.6.2 -> 8.7.1 and then to 8.8.0? As mentioned in the comment @lincolncoe-vca could you please try to install version |
I could reproduce this by installing the latest
So the issue is that the kubernetes package defines |
@lincolncoe-vca could you please try to update have you updated |
@tetianakravchenko @juliaElastic I don't know how enabled was added, I rarely touch the API's tho, the vast majority of things I manage are via Kibana. I went back and looked at the dev tools history in Kibana and don't see anything that would suggest I touched that previously. Thanks for all your help on this. |
@lincolncoe-vca did you maybe have |
@tetianakravchenko |
@lincolncoe-vca |
As the reported issue was resolved, I am closing it. |
This issue is for the problem exposed by elastic/elasticsearch#96254 (comment).
Summary:
Deleting every data from Kubernetes on Index Management does not seem to fix the problem.
@constanca-m @lalit-satapathy
Good to know I shouldn't be encountering this error. I am using an Elastic cluster via Elastic Cloud.
How did you install the k8 package. Did you upgrade the stack? Did you upgrade the package version?
Originally I had it installed under ES 8.6.2 and the k8s package was 1.32.2. On 06/05 I upgraded the cluster first to 8.7.1 and then to 8.8.0 and tried to update the k8s package to 1.41.0 and the error I observed from the call via browser dev tools was this -
{"statusCode":500,"error":"Internal Server Error","message":"illegal_argument_exception\n\tCaused by:\n\t\tillegal_argument_exception: invalid composite mappings for [metrics-kubernetes.pod]\n\tRoot causes:\n\t\tillegal_argument_exception: composable template [metrics-kubernetes.pod] template after composition with component templates [metrics-kubernetes.pod@package, metrics-kubernetes.pod@custom, .fleet_globals-1, .fleet_agent_id_verification-1] is invalid"}
I opened a support ticket and was advised to remove mappings and templates, I uninstalled the k8s package and tried to install it as a fresh 1.41.0 and it continues to run into this error. The mappings it fails on changes sometimes, but it always has the same general error.
I've gone through and verified there are no components, datastreams, indicies or index templates with kubernetes in it. In the logs when I try to install it, I can see it add some of the templates and then remove them once it fails.
I've also updated to 8.8.1 but same error.
Which version of the package you are getting the error?
1.41.0 on ES 8.8.1
Please provide the specific error you are getting.
I get this error if I click either to add Kubernetes and then choose an agent policy, or if I click to install the assets for the integration.
{
"statusCode": 500,
"error": "Internal Server Error",
"message": "illegal_argument_exception\n\tCaused by:\n\t\tillegal_argument_exception: invalid composite mappings for [metrics-kubernetes.state_daemonset]\n\tRoot causes:\n\t\tillegal_argument_exception: composable template [metrics-kubernetes.state_daemonset] template after composition with component templates [metrics-kubernetes.state_daemonset@package, metrics-kubernetes.state_daemonset@custom, .fleet_globals-1, .fleet_agent_id_verification-1] is invalid"
}
You'll see this one fails on metrics-kubernetes.state_daemonset but if I click the same button to install the assets it fails on metrics-kubernetes.state_deployment so it's seemingly random which one it fails on.
{
"statusCode": 500,
"error": "Internal Server Error",
"message": "illegal_argument_exception\n\tCaused by:\n\t\tillegal_argument_exception: invalid composite mappings for [metrics-kubernetes.state_deployment]\n\tRoot causes:\n\t\tillegal_argument_exception: composable template [metrics-kubernetes.state_deployment] template after composition with component templates [metrics-kubernetes.state_deployment@package, metrics-kubernetes.state_deployment@custom, .fleet_globals-1, .fleet_agent_id_verification-1] is invalid"
}
I also attached the ES log from when I tried to add it but not much interesting to me.
k8saddassets.txt
@lincolncoe-vca That should not happen, since TSDB is not enabled on the events data stream. Are you enabling it yourself?
I did not know what TSDB was until I came across this thread so I believe the answer is no but I am happy to check if you let me know how I can do so.
The text was updated successfully, but these errors were encountered: