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
=== modified file 'config.yaml'
--- config.yaml 2014-09-25 16:43:39 +0000
+++ config.yaml 2014-10-23 14:10:22 +0000
@@ -127,6 +127,13 @@
127 .127 .
128 This network will be used for tenant network traffic in overlay128 This network will be used for tenant network traffic in overlay
129 networks.129 networks.
130 vif-plugging-timeout:
131 type: int
132 default:
133 description: |
134 Setting this > 0 tells nova how long to wait for a vif plugin
135 notification from neutron, a lack of response also stops being fatal.
136 It is currently needed for cell deployments due to Bug#1348103.
130 prefer-ipv6:137 prefer-ipv6:
131 type: boolean138 type: boolean
132 default: False139 default: False
133140
=== modified file 'hooks/nova_compute_context.py'
--- hooks/nova_compute_context.py 2014-09-30 20:33:51 +0000
+++ hooks/nova_compute_context.py 2014-10-23 14:10:22 +0000
@@ -310,6 +310,9 @@
310310
311 if self.restart_trigger():311 if self.restart_trigger():
312 ctxt['restart_trigger'] = self.restart_trigger()312 ctxt['restart_trigger'] = self.restart_trigger()
313 if config('vif-plugging-timeout') and \
314 config('vif-plugging-timeout') > 0:
315 ctxt['vif_plugging_timeout'] = config('vif-plugging-timeout')
313 return ctxt316 return ctxt
314317
315318
316319
=== modified file 'templates/havana/nova.conf'
--- templates/havana/nova.conf 2014-07-31 15:32:21 +0000
+++ templates/havana/nova.conf 2014-10-23 14:10:22 +0000
@@ -99,6 +99,11 @@
99instances_path = {{ instances_path }}99instances_path = {{ instances_path }}
100{% endif -%}100{% endif -%}
101101
102{% if vif_plugging_timeout -%}
103vif_plugging_is_fatal = False
104vif_plugging_timeout = {{ vif_plugging_timeout }}
105{% endif -%}
106
102{% if sections and 'DEFAULT' in sections -%}107{% if sections and 'DEFAULT' in sections -%}
103{% for key, value in sections['DEFAULT'] -%}108{% for key, value in sections['DEFAULT'] -%}
104{{ key }} = {{ value }}109{{ key }} = {{ value }}
105110
=== modified file 'templates/juno/nova.conf'
--- templates/juno/nova.conf 2014-10-14 13:20:36 +0000
+++ templates/juno/nova.conf 2014-10-23 14:10:22 +0000
@@ -89,6 +89,11 @@
89instances_path = {{ instances_path }}89instances_path = {{ instances_path }}
90{% endif -%}90{% endif -%}
9191
92{% if vif_plugging_timeout -%}
93vif_plugging_is_fatal = Fatal
94vif_plugging_timeout = {{ vif_plugging_timeout }}
95{% endif -%}
96
92{% if sections and 'DEFAULT' in sections -%}97{% if sections and 'DEFAULT' in sections -%}
93{% for key, value in sections['DEFAULT'] -%}98{% for key, value in sections['DEFAULT'] -%}
94{{ key }} = {{ value }}99{{ key }} = {{ value }}
95100
=== modified file 'unit_tests/test_nova_compute_contexts.py'
--- unit_tests/test_nova_compute_contexts.py 2014-07-14 13:24:51 +0000
+++ unit_tests/test_nova_compute_contexts.py 2014-10-23 14:10:22 +0000
@@ -102,6 +102,16 @@
102 self.assertEquals({'volume_service': 'nova-volume'}, cloud_compute())102 self.assertEquals({'volume_service': 'nova-volume'}, cloud_compute())
103103
104 @patch.object(context, '_network_manager')104 @patch.object(context, '_network_manager')
105 def test_cloud_compute_volume_context_vif(self, netman):
106 netman.return_value = None
107 self.test_config.set('vif-plugging-timeout', '10')
108 self.relation_ids.return_value = 'cloud-compute:0'
109 self.related_units.return_value = 'nova-cloud-controller/0'
110 cloud_compute = context.CloudComputeContext()
111 self.os_release.return_value = 'juno'
112 self.assertEquals({'vif_plugging_timeout': '10'}, cloud_compute())
113
114 @patch.object(context, '_network_manager')
105 def test_cloud_compute_volume_context_nova_vol_unsupported(self, netman):115 def test_cloud_compute_volume_context_nova_vol_unsupported(self, netman):
106 self.skipTest('TODO')116 self.skipTest('TODO')
107 netman.return_value = None117 netman.return_value = None

Subscribers

People subscribed via source and target branches