e2e: add rollback, pause/resume, and non-existing image tests - #115
e2e: add rollback, pause/resume, and non-existing image tests#115ptalgulk01 wants to merge 1 commit into
Conversation
94fdba1 to
c706b7e
Compare
c706b7e to
944e840
Compare
944e840 to
1d5f923
Compare
jlebon
left a comment
There was a problem hiding this comment.
Thanks for working on this!
|
|
||
| t.Logf("Node %q staged update image (paused, not rebooted)", nodeName) | ||
|
|
||
| // Phase 4: Change the target back to the original image while still |
There was a problem hiding this comment.
This is not very different from TestPauseResume. Not quite what I had in mind for #69 (comment). Instead we do something like:
- provision two nodes (let's say A and B)
- set the new updated image
- wait for node A to be Rebooting
- immediately switch the target image to another updated image
- wait until both node A and node B eventually are running the updated image
- verify that node B did not incur an additional reboot into the first update image (e.g. check
journalctl --list-bootsperhaps?)
There was a problem hiding this comment.
immediately switch the target image to another updated image
here you mean to update the node A when it is rebooting to new image already we have patched to other new image?
And keep node B as it is
There was a problem hiding this comment.
immediately switch the target image to another updated image
here you mean to update the node A when it is rebooting to new image already we have patched to other new image? And keep node B as it is
I mean changing the pool targetImage to another image. We don't mutate the nodes directly. Node A will reboot into the wrong image, which is fine and expected, but it should then realize that it's not in sync and immediately restage and reboot again. Node B should be able to avoid that reboot and directly stage the new image (abandoning the staged deployment it already had for the previous targetImage).
1d5f923 to
843c8c4
Compare
|
Changes added:
|
Signed-off-by: Prachiti Talgulkar <ptalgulk01@users.noreply.github.com>
843c8c4 to
e1eb5c5
Compare
|
Looks sane overall. If you want you can drop the |
Fixes #69 (items 1, 2, 3) : Add three new e2e test scenarios from #69:
All three tests pass against a bink cluster.
Test plan