Merge lp:~psivaa/utah/wait-before-force-vm-shutdown into lp:utah

Proposed by Para Siva
Status: Merged
Merged at revision: 1052
Proposed branch: lp:~psivaa/utah/wait-before-force-vm-shutdown
Merge into: lp:utah
Diff against target: 20 lines (+3/-0)
1 file modified
utah/provisioning/vm.py (+3/-0)
To merge this branch: bzr merge lp:~psivaa/utah/wait-before-force-vm-shutdown
Reviewer Review Type Date Requested Status
Andy Doan (community) Approve
Review via email: mp+222637@code.launchpad.net

Commit message

Wait for sometime before forcing the vm to shutdown. Because forcing shutdown soon after install finish is sometimes causing the reboot of the vm to fail and to hang

Description of the change

Forcing the vm to shutdown is sometimes causing the reboot of the vm to fail and to hang. This appears to be causing by some sort of filesystem corruption. Waiting the unmount operations to complete after installs seems to solve this issue.

To post a comment you must log in.
Revision history for this message
Andy Doan (doanac) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'utah/provisioning/vm.py'
2--- utah/provisioning/vm.py 2014-05-20 14:47:51 +0000
3+++ utah/provisioning/vm.py 2014-06-10 12:37:30 +0000
4@@ -24,6 +24,7 @@
5 import shutil
6 import string
7 import tempfile
8+import time
9
10 from xml.etree import ElementTree
11
12@@ -416,6 +417,8 @@
13 self.logger.info('Logs will be written to %s', log_filename)
14
15 self.rsyslog.wait_for_install()
16+ # bug 1328023
17+ time.sleep(60)
18 vm.shutdown()
19
20 finally:

Subscribers

People subscribed via source and target branches

to all changes: