Skip to content

Commit c40c060

Browse files
committed
Add known issue for stuck agent upgrade (8.12.0, 8.12.1) (#908)
* Add known issue for stuck agent upgrade (8.12.0, 8.12.1) * Fix workaround steps (cherry picked from commit c29d352)
1 parent e0399d6 commit c40c060

File tree

1 file changed

+111
-0
lines changed

1 file changed

+111
-0
lines changed

docs/en/ingest-management/release-notes/release-notes-8.12.asciidoc

+111
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,50 @@ So, if you are relying on an integration level custom ingest pipeline introduced
132132
Refer to the <<data-streams-pipelines,Ingest pipelines>> documentation for details and examples.
133133
====
134134

135+
[discrete]
136+
[[known-issues-8.12.1]]
137+
=== Known issues
138+
139+
[[known-issue-3263-8121]]
140+
.Agents upgraded to 8.12.0 are stuck in a non-upgradeable state
141+
[%collapsible]
142+
====
143+
144+
*Details*
145+
146+
An issue discovered in {fleet-server} prevents {agents} that have been upgraded to version 8.12.0 from being upgraded again, using the {fleet} UI, to version 8.12.1 or higher.
147+
148+
*Impact* +
149+
150+
As a workaround, we recommend you to use the {kib} {fleet} API to upgrade these agents using the `force` flag.
151+
152+
To upgrade a single {agent}:
153+
154+
[source,"shell"]
155+
----
156+
POST kbn:/api/fleet/agents/<agent_id>/upgrade
157+
{
158+
"version": "8.12.1",
159+
"force": true
160+
}
161+
----
162+
163+
To bulk upgrade a set of {agents}:
164+
165+
[source,"shell"]
166+
----
167+
POST kbn:/api/fleet/agents/bulk_upgrade
168+
{
169+
"agents": "agent.version:8.12.0",
170+
"version": "8.12.1",
171+
"force": true
172+
}
173+
----
174+
175+
This issue is planned to be fixed in versions 8.12.2 and 8.13.0.
176+
177+
====
178+
135179
[discrete]
136180
[[bug-fixes-8.12.1]]
137181
=== Bug fixes
@@ -405,6 +449,73 @@ Note that according to our <<agent-policy-scaling-recommendations,policy scaling
405449
406450
====
407451

452+
[[known-issue-3263-8120]]
453+
.Agents upgraded to 8.12.0 are stuck in a non-upgradeable state
454+
[%collapsible]
455+
====
456+
457+
*Details*
458+
459+
An issue discovered in {fleet-server} prevents {agents} that have been upgraded to version 8.12.0 from being upgraded again, using the {fleet} UI, to version 8.12.1 or higher.
460+
461+
This issue is planned to be fixed in versions 8.12.2 and 8.13.0.
462+
463+
*Impact* +
464+
465+
As a workaround, we recommend you to use the {kib} {fleet} API to update any documents in which `upgrade_details` is either `null` or not defined. Note that these steps must be run as a superuser.
466+
467+
[source,"shell"]
468+
----
469+
POST _security/role/fleet_superuser
470+
{
471+
"indices": [
472+
{
473+
"names": [".fleet*",".kibana*"],
474+
"privileges": ["all"],
475+
"allow_restricted_indices": true
476+
}
477+
]
478+
}
479+
----
480+
481+
[source,"shell"]
482+
----
483+
POST _security/user/fleet_superuser
484+
{
485+
"password": "password",
486+
"roles": ["superuser", "fleet_superuser"]
487+
}
488+
----
489+
490+
[source,"shell"]
491+
----
492+
curl -sk -XPOST --user fleet_superuser:password -H 'content-type:application/json' \
493+
-H'x-elastic-product-origin:fleet' \
494+
http://localhost:9200/.fleet-agents/_update_by_query \
495+
-d '{
496+
"script": {
497+
"source": "ctx._source.remove(\"upgrade_details\")",
498+
"lang": "painless"
499+
},
500+
"query": {
501+
"bool": {
502+
"must_not": {
503+
"exists": {
504+
"field": "upgrade_details"
505+
}
506+
}
507+
}
508+
}
509+
}'
510+
----
511+
512+
[source,"shell"]
513+
----
514+
DELETE _security/user/fleet_superuser
515+
DELETE _security/role/fleet_superuser
516+
----
517+
====
518+
408519
[discrete]
409520
[[new-features-8.12.0]]
410521
=== New features

0 commit comments

Comments
 (0)