New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tests: reboot the node when restoring after a test involving lxd #7198
Conversation
LXD makes changes to the mount namespace of the host. Make sure to reboot, so that the next test runs with a clean state. Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 on the concept. I think it still needs fixing because ubuntu-core-* systems reboot up front. I'm afraid you have to store $SPREAD_REBOOT in prepare and decide upon the current value in restore. Otherwise you will either reboot or not depending on the history of other tests and the backend/system preparation.
AFAIK |
Ah, indeed. I read the docs now and you can either do comparison on SPREAD_REBOOT or just use REBOOT with a numeric argument. |
This looks good but fails in practice:
I wonder if this has to be in the |
Apparently using REBOOT in spread task restore fails on 16.04 only. Needs further investigation.
|
Needs a fix in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice fix, thanks for this!
I set the PR as blocked until spread is fixed. |
Deprecated by #7435 |
LXD makes changes to the mount namespace of the host. Make sure to reboot, so
that the next test runs with a clean state.
cc @zyga