You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling instance.wait_for_stop() followed by instance.start() will sometimes result in the following exception:
> raise RuntimeError(errmsg)
E RuntimeError: Failure (rc=1): Error: The instance is already running
I think that lxc is reporting STOPPED prior to the image actually being (re)bootable. I've seen the same issue on occasion when manually doing a stop/start on images, but didn't realize that this was a problem for our integration tests until debugging a flaky integration test which does this.
In the observed case that I've seen this, the shutdown is initiated by the image. I don't know whether a pycloudlib-initiated shutdown will produce the same effect, but I think that it would, given the effect.
I've filed an issue against lxd, but until it gets fixed we could probably introduce a retry loop. I don't see this tested in the integration test, so we should probably add it too. The comment in that test "Test is unstable but most stable on lxd containers" leads me to suspect that other platforms are similarly affected.
The text was updated successfully, but these errors were encountered:
Calling
instance.wait_for_stop()
followed byinstance.start()
will sometimes result in the following exception:I think that lxc is reporting
STOPPED
prior to the image actually being (re)bootable. I've seen the same issue on occasion when manually doing a stop/start on images, but didn't realize that this was a problem for our integration tests until debugging a flaky integration test which does this.In the observed case that I've seen this, the shutdown is initiated by the image. I don't know whether a pycloudlib-initiated shutdown will produce the same effect, but I think that it would, given the effect.
I've filed an issue against lxd, but until it gets fixed we could probably introduce a retry loop. I don't see this tested in the integration test, so we should probably add it too. The comment in that test "Test is unstable but most stable on lxd containers" leads me to suspect that other platforms are similarly affected.
The text was updated successfully, but these errors were encountered: