-
Notifications
You must be signed in to change notification settings - Fork 25.5k
Add Reason field to elastic-agent upgrade details metadata #134711
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
Add Reason field to elastic-agent upgrade details metadata #134711
Conversation
Add "reason" text field to map a new upgrade details field introduced in PR elastic/elastic-agent#8407
Pinging @elastic/es-core-infra (Team:Core/Infra) |
Hi @pchila, I've created a changelog YAML for you. |
We should update the schema version here: elasticsearch/x-pack/plugin/fleet/src/main/java/org/elasticsearch/xpack/fleet/Fleet.java Line 82 in c47522c
Context: #119087 |
@juliaElastic |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I noticed that @pchila bumped Should we retroactively bump |
@pkoutsovasilis AFAIK the version field should be bumped after every change, it looks like we missed it in #127651. |
Actually @juliaElastic, we didn’t just miss this once — looking at the file history there are multiple commits where
If this bump was truly critical, I’d expect the missing bumps in those commits (where we added new fields) to have triggered a large number of SDHs — but I don’t think that has happened. Just to make sure we handle this correctly going forward; are we certain this bump is strictly required for every field addition? I’d like to double-check the actual impact of missing bumps before we retroactively update all the backport branches. |
I think it's not necessarily causing an issue for every change. |
I get that point - if we added fields that were optional or not relied upon, missing the bump wouldn’t be a big deal. I’ll leave it to @ebeahan @cmacknz to weigh in on the actual impact and whether we should retroactively bump in backports - I might be missing some of the fine-print details here. |
Yes I strongly suspect missing this is the reason we've seen SDHs around the complete field at least, we never found out why it suddenly started appearing but this missing revision bump coupled with something starting to use it in the UI (perhaps synthetics UI?) would do it. Some of the other missing updates aren't used widely yet (e.g. fips). Better safe than sorry on this. Also this is a pretty big foot gun so it would be ideal if we can figure out some way to have this flagged in CI. I am not familiar enough with ES changes to know what to do about that or if it's even possible. I suspect that relying on this revision instead of having a diff mechanism detect the need for it is a problem. |
My vote is we backport this PR to avoid any issues where we have the same revision number for different change sets. I'm not sure if this would be a problem but I'd rather just avoid it entirely, adding the field here is low enough risk to backport. |
…34711) * Add Reason field to elastic-agent upgrade details metadata Add "reason" text field to map a new upgrade details field introduced in PR elastic/elastic-agent#8407 * Update docs/changelog/134711.yaml * Bump FLEET_AGENTS_MAPPINGS_VERSION (cherry picked from commit 67676ae) # Conflicts: # x-pack/plugin/fleet/src/main/java/org/elasticsearch/xpack/fleet/Fleet.java
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation |
…34711) * Add Reason field to elastic-agent upgrade details metadata Add "reason" text field to map a new upgrade details field introduced in PR elastic/elastic-agent#8407 * Update docs/changelog/134711.yaml * Bump FLEET_AGENTS_MAPPINGS_VERSION (cherry picked from commit 67676ae) # Conflicts: # x-pack/plugin/fleet/src/main/java/org/elasticsearch/xpack/fleet/Fleet.java
…34711) * Add Reason field to elastic-agent upgrade details metadata Add "reason" text field to map a new upgrade details field introduced in PR elastic/elastic-agent#8407 * Update docs/changelog/134711.yaml * Bump FLEET_AGENTS_MAPPINGS_VERSION (cherry picked from commit 67676ae) # Conflicts: # x-pack/plugin/fleet/src/main/java/org/elasticsearch/xpack/fleet/Fleet.java
…134752) * Add Reason field to elastic-agent upgrade details metadata Add "reason" text field to map a new upgrade details field introduced in PR elastic/elastic-agent#8407 * Update docs/changelog/134711.yaml * Bump FLEET_AGENTS_MAPPINGS_VERSION (cherry picked from commit 67676ae) # Conflicts: # x-pack/plugin/fleet/src/main/java/org/elasticsearch/xpack/fleet/Fleet.java Co-authored-by: Paolo Chilà <[email protected]>
…134749) * Add Reason field to elastic-agent upgrade details metadata Add "reason" text field to map a new upgrade details field introduced in PR elastic/elastic-agent#8407 * Update docs/changelog/134711.yaml * Bump FLEET_AGENTS_MAPPINGS_VERSION (cherry picked from commit 67676ae) # Conflicts: # x-pack/plugin/fleet/src/main/java/org/elasticsearch/xpack/fleet/Fleet.java Co-authored-by: Paolo Chilà <[email protected]>
…134750) * Add Reason field to elastic-agent upgrade details metadata Add "reason" text field to map a new upgrade details field introduced in PR elastic/elastic-agent#8407 * Update docs/changelog/134711.yaml * Bump FLEET_AGENTS_MAPPINGS_VERSION (cherry picked from commit 67676ae) # Conflicts: # x-pack/plugin/fleet/src/main/java/org/elasticsearch/xpack/fleet/Fleet.java Co-authored-by: Paolo Chilà <[email protected]>
…134751) * Add Reason field to elastic-agent upgrade details metadata Add "reason" text field to map a new upgrade details field introduced in PR elastic/elastic-agent#8407 * Update docs/changelog/134711.yaml * Bump FLEET_AGENTS_MAPPINGS_VERSION (cherry picked from commit 67676ae) # Conflicts: # x-pack/plugin/fleet/src/main/java/org/elasticsearch/xpack/fleet/Fleet.java Co-authored-by: Paolo Chilà <[email protected]>
…34711) * Add Reason field to elastic-agent upgrade details metadata Add "reason" text field to map a new upgrade details field introduced in PR elastic/elastic-agent#8407 * Update docs/changelog/134711.yaml * Bump FLEET_AGENTS_MAPPINGS_VERSION
Asked around in es-core-infra channel, there is an open ES issue to catch missing version bumps in CI: https://elasticco.atlassian.net/browse/ES-10832 |
…34711) * Add Reason field to elastic-agent upgrade details metadata Add "reason" text field to map a new upgrade details field introduced in PR elastic/elastic-agent#8407 * Update docs/changelog/134711.yaml * Bump FLEET_AGENTS_MAPPINGS_VERSION
…34711) (elastic#134751) * Add Reason field to elastic-agent upgrade details metadata Add "reason" text field to map a new upgrade details field introduced in PR elastic/elastic-agent#8407 * Update docs/changelog/134711.yaml * Bump FLEET_AGENTS_MAPPINGS_VERSION (cherry picked from commit 67676ae) # Conflicts: # x-pack/plugin/fleet/src/main/java/org/elasticsearch/xpack/fleet/Fleet.java Co-authored-by: Paolo Chilà <[email protected]>
Add "reason" text field to map a new upgrade details field introduced in PR elastic/elastic-agent#8407.
There is no backport needed as the feature will be released for the first time in 9.2.0.
Edit: it seems that we need a version bump for past updates to the
x-pack/plugin/core/template-resources/src/main/resources/fleet-agents.json
file that did not bump the schema version (see discussion below).If we want to use the bump included in this PR, we need to backport this to all active branches
cc @ebeahan @cmacknz @pkoutsovasilis