Merge lp:~vila/uci-engine/1328170-final-msg-option into lp:uci-engine

Proposed by Vincent Ladeuil
Status: Merged
Approved by: Vincent Ladeuil
Approved revision: 562
Merged at revision: 710
Proposed branch: lp:~vila/uci-engine/1328170-final-msg-option
Merge into: lp:uci-engine
Diff against target: 41 lines (+4/-2)
2 files modified
test_runner/setup.py (+1/-1)
test_runner/tstrun/testbed.py (+3/-1)
To merge this branch: bzr merge lp:~vila/uci-engine/1328170-final-msg-option
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Evan (community) Approve
Review via email: mp+222839@code.launchpad.net

Commit message

Use a specific cloud-init final message for the testbed

Description of the change

/!\ This complements https://code.launchpad.net/~vila/uci-vms/1328170-final-msg-option/+merge/222834 which needs to land first.

This address a point raised during a previous review (https://code.launchpad.net/~vila/uci-engine/1302473-uci-vms/+merge/222373) about using a specific message for the testbed.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:562
http://s-jenkins.ubuntu-ci:8080/job/uci-engine-ci/835/
Executed test runs:

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/uci-engine-ci/835/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Evan (ev) wrote :

Looks good. One comment before you mark it as approved.

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

PASSED: Continuous integration, rev:562
http://s-jenkins.ubuntu-ci:8080/job/uci-engine-ci/1167/
Executed test runs:

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/uci-engine-ci/1167/rebuild

review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'test_runner/setup.py'
--- test_runner/setup.py 2014-06-06 15:43:47 +0000
+++ test_runner/setup.py 2014-06-11 16:35:15 +0000
@@ -27,7 +27,7 @@
27 'amqplib==1.0.0',27 'amqplib==1.0.0',
28 'mock==1.0.1',28 'mock==1.0.1',
29 'ucitests==0.1.3',29 'ucitests==0.1.3',
30 'ucivms==0.1.1',30 'ucivms==0.1.2',
31]31]
3232
33extra = {33extra = {
3434
=== modified file 'test_runner/tstrun/testbed.py'
--- test_runner/tstrun/testbed.py 2014-06-09 16:08:07 +0000
+++ test_runner/tstrun/testbed.py 2014-06-11 16:35:15 +0000
@@ -140,6 +140,7 @@
140 os.path.abspath(os.path.join(HERE, '..', 'run_test.py')))140 os.path.abspath(os.path.join(HERE, '..', 'run_test.py')))
141 # No need to reboot a nova instance141 # No need to reboot a nova instance
142 self.conf.set('vm.poweroff', 'False')142 self.conf.set('vm.poweroff', 'False')
143 self.conf.set('vm.final_message', 'testbed setup completed.')
143144
144 def build_nova_client(self):145 def build_nova_client(self):
145 args = [self.conf.get('os.username'),146 args = [self.conf.get('os.username'),
@@ -267,6 +268,7 @@
267 # get_ip_timeout and probably the two can be merged) -- vila 2014-01-30268 # get_ip_timeout and probably the two can be merged) -- vila 2014-01-30
268 cloud_init_timeout = 1200 # in seconds so 20 minutes269 cloud_init_timeout = 1200 # in seconds so 20 minutes
269 timeout_limit = time.time() + cloud_init_timeout270 timeout_limit = time.time() + cloud_init_timeout
271 final_message = self.conf.get('vm.final_message')
270 while time.time() < timeout_limit:272 while time.time() < timeout_limit:
271 # A relatively cheap way to catch cloud-init completion is to watch273 # A relatively cheap way to catch cloud-init completion is to watch
272 # the console for the specific message we specified in user-data).274 # the console for the specific message we specified in user-data).
@@ -287,7 +289,7 @@
287 ' retrying)'.format(self.instance.id))289 ' retrying)'.format(self.instance.id))
288 time.sleep(5)290 time.sleep(5)
289 continue291 continue
290 if 'uci-vms finished installing in ' in console:292 if final_message in console:
291 # We're good to go293 # We're good to go
292 log.info(294 log.info(
293 'cloud-init completed for {}'.format(self.instance.id))295 'cloud-init completed for {}'.format(self.instance.id))

Subscribers

People subscribed via source and target branches