Merge lp:~cprov/adt-cloud-worker/uci-nova into lp:adt-cloud-worker

Proposed by Celso Providelo
Status: Merged
Approved by: Celso Providelo
Approved revision: 19
Merged at revision: 19
Proposed branch: lp:~cprov/adt-cloud-worker/uci-nova
Merge into: lp:adt-cloud-worker
Diff against target: 75 lines (+11/-11)
2 files modified
adt_cloud_worker/__init__.py (+3/-5)
adt_cloud_worker/tests/test_cloud_worker.py (+8/-6)
To merge this branch: bzr merge lp:~cprov/adt-cloud-worker/uci-nova
Reviewer Review Type Date Requested Status
Joe Talbott (community) Approve
Review via email: mp+252770@code.launchpad.net

Commit message

Adjust `adt-run` call to use our 'uci-nova' ssh-setup.

Description of the change

Adjust `adt-run` call to use our 'uci-nova' ssh-setup.

Took the opportunity to enable debug in all channels, so we have more information about failures during development. It doesn't necessarily have to be released.

To post a comment you must log in.
Revision history for this message
Joe Talbott (joetalbott) wrote :

LGTM

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'adt_cloud_worker/__init__.py'
2--- adt_cloud_worker/__init__.py 2015-03-11 00:18:45 +0000
3+++ adt_cloud_worker/__init__.py 2015-03-12 16:09:05 +0000
4@@ -161,6 +161,7 @@
5 :returns: A tuple of arguments.
6 """
7 adt_run_args = [
8+ '-d',
9 '--apt-source', request_configuration['package_name'],
10 '--output-dir', request_configuration['result_dir'],
11 ]
12@@ -171,10 +172,7 @@
13 ]
14 adt_ssh_nova_args = [
15 '--',
16- # Deployment (charm) creates a keypair named after the worker and
17- # a restricted security-group named as '<worker_name>-testbed'.
18- '-k', request_configuration['worker'],
19- '-s', '{}-testbed'.format(request_configuration['worker']),
20+ '-d',
21 '--flavor', request_configuration['nova_flavor'],
22 '--image', request_configuration['nova_image'],
23 ]
24@@ -183,7 +181,7 @@
25
26 return (
27 adt_run_args +
28- ['---', 'ssh', '-s', 'nova'] +
29+ ['---', 'ssh', '-s', 'uci-nova', '-d'] +
30 adt_ssh_nova_args
31 )
32
33
34=== modified file 'adt_cloud_worker/tests/test_cloud_worker.py'
35--- adt_cloud_worker/tests/test_cloud_worker.py 2015-03-11 00:18:45 +0000
36+++ adt_cloud_worker/tests/test_cloud_worker.py 2015-03-12 16:09:05 +0000
37@@ -60,14 +60,15 @@
38 )
39 self.assertEqual(
40 [
41+ '-d',
42 '--apt-source', 'some_package_name',
43 '--output-dir', '/tmp/some/dir',
44 '---',
45 'ssh',
46- '-s', 'nova',
47+ '-s', 'uci-nova',
48+ '-d',
49 '--',
50- '-k', 'worker-foo',
51- '-s', 'worker-foo-testbed',
52+ '-d',
53 '--flavor', 'some-nova-flavour',
54 '--image', 'some-nova-image',
55 ],
56@@ -79,15 +80,16 @@
57 )
58 self.assertEqual(
59 [
60+ '-d',
61 '--apt-source', 'some_package_name',
62 '--output-dir', '/tmp/some/dir',
63 '--apt-pocket', 'foo', '--apt-upgrade',
64 '---',
65 'ssh',
66- '-s', 'nova',
67+ '-s', 'uci-nova',
68+ '-d',
69 '--',
70- '-k', 'worker-foo',
71- '-s', 'worker-foo-testbed',
72+ '-d',
73 '--flavor', 'some-nova-flavour',
74 '--image', 'some-nova-image',
75 ],

Subscribers

People subscribed via source and target branches