Merge lp:~gnuoy/charms/trusty/nova-compute/cell-support into lp:~openstack-charmers-archive/charms/trusty/nova-compute/next

Proposed by Liam Young
Status: Rejected
Rejected by: James Page
Proposed branch: lp:~gnuoy/charms/trusty/nova-compute/cell-support
Merge into: lp:~openstack-charmers-archive/charms/trusty/nova-compute/next
Diff against target: 84 lines (+30/-0)
5 files modified
config.yaml (+7/-0)
hooks/nova_compute_context.py (+3/-0)
templates/havana/nova.conf (+5/-0)
templates/juno/nova.conf (+5/-0)
unit_tests/test_nova_compute_contexts.py (+10/-0)
To merge this branch: bzr merge lp:~gnuoy/charms/trusty/nova-compute/cell-support
Reviewer Review Type Date Requested Status
James Page Needs Fixing
Review via email: mp+239357@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Ryan Beisner (1chb1n) wrote :

UOSCI bot says:
charm_lint_check #749 nova-compute-next for gnuoy mp239357
    LINT OK: believed to pass, but you should confirm results

LINT Results (max last 4 lines) from
/var/lib/jenkins/workspace/charm_lint_check/make-lint.749:
I: config.yaml: option config-flags has no default value
I: config.yaml: option instances-path has no default value
W: config.yaml: option disable-neutron-security-groups has no default value
I: config.yaml: option migration-auth-type has no default value

Full lint output: http://paste.ubuntu.com/8651864/
Build: http://10.98.191.181:8080/job/charm_lint_check/749/

Revision history for this message
Ryan Beisner (1chb1n) wrote :

UOSCI bot says:
charm_unit_test #557 nova-compute-next for gnuoy mp239357
    UNIT OK: believed to pass, but you should confirm results

UNIT Results (max last 4 lines) from
/var/lib/jenkins/workspace/charm_unit_test/unit-test.557:
----------------------------------------------------------------------
Ran 57 tests in 3.145s

OK (SKIP=5)

Full unit output: http://paste.ubuntu.com/8651865/
Build: http://10.98.191.181:8080/job/charm_unit_test/557/

Revision history for this message
Ryan Beisner (1chb1n) wrote :

UOSCI bot says:
charm_amulet_test #302 nova-compute-next for gnuoy mp239357
    AMULET OK: believed to pass, but you should confirm results

AMULET Results (max last 4 lines) from
/var/lib/jenkins/workspace/charm_amulet_test/make-test.302:
juju-test.conductor DEBUG : Tearing down osci-sv05 juju environment
juju-test.conductor DEBUG : Calling "juju destroy-environment -y osci-sv05"
WARNING cannot delete security group "juju-osci-sv05-0". Used by another environment?
juju-test INFO : Results: 3 passed, 0 failed, 0 errored

Full amulet output: http://paste.ubuntu.com/8652045/
Build: http://10.98.191.181:8080/job/charm_amulet_test/302/

Revision history for this message
James Page (james-page) :
review: Needs Fixing

Unmerged revisions

81. By Liam Young

Add vif unit_test

80. By Liam Young

Simplified vif plugin setup

79. By Liam Young

Remove hardcoded debug=True from havana template

78. By Liam Young

Tidy lint

77. By Liam Young

Add vif setting to juno template

76. By Liam Young

Merged next in

75. By Liam Young

Merged next in

74. By Liam Young

Rebased

73. By Liam Young

Default debug on

72. By Liam Young

Fix typo in nova template and allow vif_plugging_timeout to be toggled off

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'config.yaml'
2--- config.yaml 2014-09-25 16:43:39 +0000
3+++ config.yaml 2014-10-23 14:10:22 +0000
4@@ -127,6 +127,13 @@
5 .
6 This network will be used for tenant network traffic in overlay
7 networks.
8+ vif-plugging-timeout:
9+ type: int
10+ default:
11+ description: |
12+ Setting this > 0 tells nova how long to wait for a vif plugin
13+ notification from neutron, a lack of response also stops being fatal.
14+ It is currently needed for cell deployments due to Bug#1348103.
15 prefer-ipv6:
16 type: boolean
17 default: False
18
19=== modified file 'hooks/nova_compute_context.py'
20--- hooks/nova_compute_context.py 2014-09-30 20:33:51 +0000
21+++ hooks/nova_compute_context.py 2014-10-23 14:10:22 +0000
22@@ -310,6 +310,9 @@
23
24 if self.restart_trigger():
25 ctxt['restart_trigger'] = self.restart_trigger()
26+ if config('vif-plugging-timeout') and \
27+ config('vif-plugging-timeout') > 0:
28+ ctxt['vif_plugging_timeout'] = config('vif-plugging-timeout')
29 return ctxt
30
31
32
33=== modified file 'templates/havana/nova.conf'
34--- templates/havana/nova.conf 2014-07-31 15:32:21 +0000
35+++ templates/havana/nova.conf 2014-10-23 14:10:22 +0000
36@@ -99,6 +99,11 @@
37 instances_path = {{ instances_path }}
38 {% endif -%}
39
40+{% if vif_plugging_timeout -%}
41+vif_plugging_is_fatal = False
42+vif_plugging_timeout = {{ vif_plugging_timeout }}
43+{% endif -%}
44+
45 {% if sections and 'DEFAULT' in sections -%}
46 {% for key, value in sections['DEFAULT'] -%}
47 {{ key }} = {{ value }}
48
49=== modified file 'templates/juno/nova.conf'
50--- templates/juno/nova.conf 2014-10-14 13:20:36 +0000
51+++ templates/juno/nova.conf 2014-10-23 14:10:22 +0000
52@@ -89,6 +89,11 @@
53 instances_path = {{ instances_path }}
54 {% endif -%}
55
56+{% if vif_plugging_timeout -%}
57+vif_plugging_is_fatal = Fatal
58+vif_plugging_timeout = {{ vif_plugging_timeout }}
59+{% endif -%}
60+
61 {% if sections and 'DEFAULT' in sections -%}
62 {% for key, value in sections['DEFAULT'] -%}
63 {{ key }} = {{ value }}
64
65=== modified file 'unit_tests/test_nova_compute_contexts.py'
66--- unit_tests/test_nova_compute_contexts.py 2014-07-14 13:24:51 +0000
67+++ unit_tests/test_nova_compute_contexts.py 2014-10-23 14:10:22 +0000
68@@ -102,6 +102,16 @@
69 self.assertEquals({'volume_service': 'nova-volume'}, cloud_compute())
70
71 @patch.object(context, '_network_manager')
72+ def test_cloud_compute_volume_context_vif(self, netman):
73+ netman.return_value = None
74+ self.test_config.set('vif-plugging-timeout', '10')
75+ self.relation_ids.return_value = 'cloud-compute:0'
76+ self.related_units.return_value = 'nova-cloud-controller/0'
77+ cloud_compute = context.CloudComputeContext()
78+ self.os_release.return_value = 'juno'
79+ self.assertEquals({'vif_plugging_timeout': '10'}, cloud_compute())
80+
81+ @patch.object(context, '_network_manager')
82 def test_cloud_compute_volume_context_nova_vol_unsupported(self, netman):
83 self.skipTest('TODO')
84 netman.return_value = None

Subscribers

People subscribed via source and target branches