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

qubes manager throws an exception when quickly restarting an AppVM #315

Closed
marmarek opened this Issue Mar 8, 2015 · 4 comments

Comments

Projects
None yet
2 participants
@marmarek
Member

marmarek commented Mar 8, 2015

Reported by joanna on 28 Jul 2011 19:06 UTC
When I shutdown, and the quickly start again the same VM, the manager usually shows this eception:

TypeError: can't compare datetime.datetime to strat line 332 of file main.py

After I dismiss the message window, it continues to work fine though.

Migrated-From: https://wiki.qubes-os.org/ticket/315

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Mar 8, 2015

Member

Modified by joanna on 1 Aug 2011 19:09 UTC

Member

marmarek commented Mar 8, 2015

Modified by joanna on 1 Aug 2011 19:09 UTC

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Mar 8, 2015

Member

Modified by joanna on 10 Sep 2011 08:17 UTC

Member

marmarek commented Mar 8, 2015

Modified by joanna on 10 Sep 2011 08:17 UTC

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Mar 8, 2015

Member

Comment by joanna on 14 Sep 2011 18:14 UTC
Seems like the problem is in this code:

if not vm.is_running() or vm.get_start_time() >= datetime.utcnow() - timedelta(0,vm_shutdown_timeout/1000):

specifically, if a VM has been 'running' at the time of the first condition check (not vm.is_running), but later became '!running' and so the vm.get_start_time() returns something that is not of type datatime.

Member

marmarek commented Mar 8, 2015

Comment by joanna on 14 Sep 2011 18:14 UTC
Seems like the problem is in this code:

if not vm.is_running() or vm.get_start_time() >= datetime.utcnow() - timedelta(0,vm_shutdown_timeout/1000):

specifically, if a VM has been 'running' at the time of the first condition check (not vm.is_running), but later became '!running' and so the vm.get_start_time() returns something that is not of type datatime.

@marmarek marmarek closed this Mar 8, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment