Skip to content

Commit 00cedd9

Browse files
kilfoylemergify[bot]
authored andcommitted
Fix known issue for stuck upgrade in 8.12.1 release notes (#918)
(cherry picked from commit 576dd32)
1 parent 65ac696 commit 00cedd9

File tree

1 file changed

+45
-15
lines changed

1 file changed

+45
-15
lines changed

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

+45-15
Original file line numberDiff line numberDiff line change
@@ -147,32 +147,60 @@ An issue discovered in {fleet-server} prevents {agents} that have been upgraded
147147
148148
*Impact* +
149149
150-
As a workaround, we recommend you to use the {kib} {fleet} API to upgrade these agents using the `force` flag.
150+
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.
151151
152-
To upgrade a single {agent}:
152+
[source,"shell"]
153+
----
154+
POST _security/role/fleet_superuser
155+
{
156+
"indices": [
157+
{
158+
"names": [".fleet*",".kibana*"],
159+
"privileges": ["all"],
160+
"allow_restricted_indices": true
161+
}
162+
]
163+
}
164+
----
153165
154166
[source,"shell"]
155167
----
156-
POST kbn:/api/fleet/agents/<agent_id>/upgrade
157-
{
158-
"version": "8.12.1",
159-
"force": true
160-
}
168+
POST _security/user/fleet_superuser
169+
{
170+
"password": "password",
171+
"roles": ["superuser", "fleet_superuser"]
172+
}
161173
----
162174
163-
To bulk upgrade a set of {agents}:
175+
[source,"shell"]
176+
----
177+
curl -sk -XPOST --user fleet_superuser:password -H 'content-type:application/json' \
178+
-H'x-elastic-product-origin:fleet' \
179+
http://localhost:9200/.fleet-agents/_update_by_query \
180+
-d '{
181+
"script": {
182+
"source": "ctx._source.remove(\"upgrade_details\")",
183+
"lang": "painless"
184+
},
185+
"query": {
186+
"bool": {
187+
"must_not": {
188+
"exists": {
189+
"field": "upgrade_details"
190+
}
191+
}
192+
}
193+
}
194+
}'
195+
----
164196
165197
[source,"shell"]
166198
----
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-
}
199+
DELETE _security/user/fleet_superuser
200+
DELETE _security/role/fleet_superuser
173201
----
174202
175-
This issue is planned to be fixed in versions 8.12.2 and 8.13.0.
203+
After running these API requests, wait at least 10 minutes, and then the agents should be upgradeable again.
176204
177205
====
178206

@@ -514,6 +542,8 @@ curl -sk -XPOST --user fleet_superuser:password -H 'content-type:application/jso
514542
DELETE _security/user/fleet_superuser
515543
DELETE _security/role/fleet_superuser
516544
----
545+
546+
After running these API requests, wait at least 10 minutes, and then the agents should be upgradeable again.
517547
====
518548

519549
[discrete]

0 commit comments

Comments
 (0)