Merge lp:~cprov/adt-cloud-worker/ps4-flavor into lp:adt-cloud-worker

Proposed by Celso Providelo
Status: Merged
Approved by: Celso Providelo
Approved revision: 31
Merged at revision: 31
Proposed branch: lp:~cprov/adt-cloud-worker/ps4-flavor
Merge into: lp:adt-cloud-worker
Diff against target: 41 lines (+8/-5)
2 files modified
adt_cloud_worker/_cloud_support.py (+4/-1)
adt_cloud_worker/tests/test_cloud.py (+4/-4)
To merge this branch: bzr merge lp:~cprov/adt-cloud-worker/ps4-flavor
Reviewer Review Type Date Requested Status
Joe Talbott (community) Approve
Review via email: mp+253686@code.launchpad.net

Commit message

Using a PS4 'canonical' nova flavor name "cpu2-ram2-disk10" instead of the custom "m1.adt.*".

Description of the change

Using a PS4 'canonical' nova flavor name "cpu2-ram2-disk10" instead of the custom "m1.adt.*".

Mainly because the "first flavor" fallback on ps4 is very poor choice, "cpu1-ram9-disk50".

We can revisit this change once we have better understand of jobs dynamics, but I am also inclined to move this responsibility away from the cloud-worker.

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

I'm not in love with seeing a string repeated that many times but I'll survive. :-)

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/_cloud_support.py'
2--- adt_cloud_worker/_cloud_support.py 2015-03-17 20:27:47 +0000
3+++ adt_cloud_worker/_cloud_support.py 2015-03-20 15:02:16 +0000
4@@ -50,7 +50,10 @@
5
6 """
7 flavor_names = [f.name for f in nova_query_flavor_fn()]
8- default = 'm1.adt.large'
9+ # XXX cprov 20150320: This is the preferred stackystack (ps4) flavor, we
10+ # will work with IS to create specific flavors (m1.adt.*) soon.
11+ default = 'cpu2-ram2-disk10'
12+ # This is the alternative bootstack/cannistack/generic one.
13 alternative = 'm1.small'
14 if default in flavor_names:
15 return default
16
17=== modified file 'adt_cloud_worker/tests/test_cloud.py'
18--- adt_cloud_worker/tests/test_cloud.py 2015-03-08 22:30:42 +0000
19+++ adt_cloud_worker/tests/test_cloud.py 2015-03-20 15:02:16 +0000
20@@ -47,9 +47,9 @@
21 q = create_flavor_query_fn(['m1.smaller', 'm1.small'])
22 cs.get_default_testbed_flavor(q)
23 self.assertEqual(
24- "Custom flavor 'm1.adt.large' not configured. Using "
25+ "Custom flavor 'cpu2-ram2-disk10' not configured. Using "
26 "'m1.small' instead. To reduce testbed memory consumption, "
27- "configure the 'm1.adt.large' flavor.\n",
28+ "configure the 'cpu2-ram2-disk10' flavor.\n",
29 f.output
30 )
31
32@@ -69,8 +69,8 @@
33 cs.get_default_testbed_flavor(q)
34 self.assertEqual(
35 "Nova has not been configured with either the default flavor "
36- "(m1.adt.large) of the alternative flavor (m1.small). Using "
37- "the first reported flavor 'unknown' instead.\n",
38+ "(cpu2-ram2-disk10) of the alternative flavor (m1.small). "
39+ "Using the first reported flavor 'unknown' instead.\n",
40 f.output
41 )
42

Subscribers

People subscribed via source and target branches