Skip to content

Commit

Permalink
Require explicitly clearing old update status before starting a new one
Browse files Browse the repository at this point in the history
  • Loading branch information
jgallagher committed Dec 8, 2023
1 parent 865d281 commit 8a65c20
Show file tree
Hide file tree
Showing 3 changed files with 333 additions and 45 deletions.
40 changes: 38 additions & 2 deletions openapi/sled-agent.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"/boot-disk/{boot_disk}/os/write/status": {
"get": {
"summary": "Get the status of writing a new host OS",
"operationId": "host_os_write_status",
"operationId": "host_os_write_status_get",
"parameters": [
{
"in": "path",
Expand Down Expand Up @@ -100,6 +100,42 @@
}
}
},
"/boot-disk/{boot_disk}/os/write/status/{update_id}": {
"delete": {
"summary": "Clear the status of a completed write of a new host OS",
"operationId": "host_os_write_status_delete",
"parameters": [
{
"in": "path",
"name": "boot_disk",
"required": true,
"schema": {
"$ref": "#/components/schemas/M2Slot"
}
},
{
"in": "path",
"name": "update_id",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
}
}
],
"responses": {
"204": {
"description": "resource updated"
},
"4XX": {
"$ref": "#/components/responses/Error"
},
"5XX": {
"$ref": "#/components/responses/Error"
}
}
}
},
"/cockroachdb": {
"post": {
"summary": "Initializes a CockroachDB cluster",
Expand Down Expand Up @@ -2297,7 +2333,7 @@
"description": "Status of an update to a boot disk OS.",
"oneOf": [
{
"description": "No update has been started for this disk since this server started.",
"description": "No update has been started for this disk, or any previously-started update has completed and had its status cleared.",
"type": "object",
"properties": {
"status": {
Expand Down
Loading

0 comments on commit 8a65c20

Please sign in to comment.