Skip to content

engine/update_attempter: init omaha request params#9

Merged
tormath1 merged 1 commit intoflatcar-masterfrom
tormath1/fix-restart-388
May 27, 2021
Merged

engine/update_attempter: init omaha request params#9
tormath1 merged 1 commit intoflatcar-masterfrom
tormath1/fix-restart-388

Conversation

@tormath1
Copy link
Copy Markdown
Contributor

omaha request params were not loaded after a restart if the status
of the update-engine is set to UPDATE_STATUS_UPDATED_NEED_REBOOT.
It leads to ping Omaha server with missing values in the payload and
an empty update server url.

To not introduce side effect, we duplicated the init code to the "if"
section

Signed-off-by: Mathieu Tortuyaux mathieu@kinvolk.io

Testing done (WIP)

Booted an image and assert that update-engine works as expected with "idle" status and "need reboot" status

closes flatcar/Flatcar#388

@tormath1 tormath1 requested a review from a team May 25, 2021 15:01
@tormath1 tormath1 self-assigned this May 25, 2021
tormath1 pushed a commit to flatcar-archive/coreos-overlay that referenced this pull request May 25, 2021
related to flatcar/update_engine#9

Signed-off-by: Mathieu Tortuyaux <mathieu@kinvolk.io>
@tormath1 tormath1 marked this pull request as ready for review May 26, 2021 09:54
@tormath1
Copy link
Copy Markdown
Contributor Author

For the record, I tried to fix the unittests in my fork (https://github.com/tormath1/update_engine/commit/5552df4e583f6875eafc02bd01063b12c4b2f116) but we now have segfaults 🙃

omaha request params were not loaded after a restart if the status
of the `update-engine` is set to UPDATE_STATUS_UPDATED_NEED_REBOOT.
It leads to ping Omaha server with missing values in the payload and
an empty update server url.

To not introduce side effect, we duplicated the init code to the "if"
section

Signed-off-by: Mathieu Tortuyaux <mathieu@kinvolk.io>
@tormath1 tormath1 force-pushed the tormath1/fix-restart-388 branch from 6cc9745 to 9252647 Compare May 27, 2021 07:37
@tormath1 tormath1 merged commit 6543c95 into flatcar-master May 27, 2021
@tormath1 tormath1 deleted the tormath1/fix-restart-388 branch May 27, 2021 07:47
tormath1 pushed a commit to flatcar-archive/coreos-overlay that referenced this pull request May 27, 2021
related to flatcar/update_engine#9

Signed-off-by: Mathieu Tortuyaux <mathieu@kinvolk.io>
tormath1 pushed a commit to flatcar-archive/coreos-overlay that referenced this pull request May 27, 2021
related to flatcar/update_engine#9

Signed-off-by: Mathieu Tortuyaux <mathieu@kinvolk.io>
tormath1 pushed a commit to flatcar-archive/coreos-overlay that referenced this pull request May 27, 2021
related to flatcar/update_engine#9

Signed-off-by: Mathieu Tortuyaux <mathieu@kinvolk.io>
tormath1 pushed a commit to flatcar-archive/coreos-overlay that referenced this pull request May 27, 2021
related to flatcar/update_engine#9

Signed-off-by: Mathieu Tortuyaux <mathieu@kinvolk.io>
tormath1 pushed a commit to flatcar-archive/coreos-overlay that referenced this pull request May 27, 2021
related to flatcar/update_engine#9

Signed-off-by: Mathieu Tortuyaux <mathieu@kinvolk.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update-engine sends empty requests when restarted before a pending reboot

3 participants