Merge lp:~james-page/charms/trusty/neutron-gateway/liberty into lp:~openstack-charmers-archive/charms/trusty/neutron-gateway/next

Proposed by James Page
Status: Merged
Merged at revision: 137
Proposed branch: lp:~james-page/charms/trusty/neutron-gateway/liberty
Merge into: lp:~openstack-charmers-archive/charms/trusty/neutron-gateway/next
Diff against target: 87 lines (+23/-5)
5 files modified
.project (+1/-1)
.pydevproject (+2/-2)
hooks/neutron_utils.py (+7/-0)
unit_tests/test_neutron_hooks.py (+2/-2)
unit_tests/test_neutron_utils.py (+11/-0)
To merge this branch: bzr merge lp:~james-page/charms/trusty/neutron-gateway/liberty
Reviewer Review Type Date Requested Status
Liam Young (community) Approve
Review via email: mp+271245@code.launchpad.net
To post a comment you must log in.
Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_lint_check #10121 neutron-gateway-next for james-page mp271245
    LINT OK: passed

Build: http://10.245.162.77:8080/job/charm_lint_check/10121/

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_unit_test #9284 neutron-gateway-next for james-page mp271245
    UNIT OK: passed

Build: http://10.245.162.77:8080/job/charm_unit_test/9284/

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_amulet_test #6459 neutron-gateway-next for james-page mp271245
    AMULET FAIL: amulet-test failed

AMULET Results (max last 2 lines):
make: *** [functional_test] Error 1
ERROR:root:Make target returned non-zero.

Full amulet test output: http://paste.ubuntu.com/12425404/
Build: http://10.245.162.77:8080/job/charm_amulet_test/6459/

Revision history for this message
Liam Young (gnuoy) wrote :

Approve, amulet fail looks unrelated

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file '.project'
--- .project 2012-12-06 10:22:24 +0000
+++ .project 2015-09-16 08:26:02 +0000
@@ -1,6 +1,6 @@
1<?xml version="1.0" encoding="UTF-8"?>1<?xml version="1.0" encoding="UTF-8"?>
2<projectDescription>2<projectDescription>
3 <name>quantum-gateway</name>3 <name>neutron-gateway</name>
4 <comment></comment>4 <comment></comment>
5 <projects>5 <projects>
6 </projects>6 </projects>
77
=== modified file '.pydevproject'
--- .pydevproject 2013-07-19 09:46:25 +0000
+++ .pydevproject 2015-09-16 08:26:02 +0000
@@ -3,7 +3,7 @@
3<pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python 2.7</pydev_property>3<pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python 2.7</pydev_property>
4<pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">Default</pydev_property>4<pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">Default</pydev_property>
5<pydev_pathproperty name="org.python.pydev.PROJECT_SOURCE_PATH">5<pydev_pathproperty name="org.python.pydev.PROJECT_SOURCE_PATH">
6<path>/quantum-gateway/hooks</path>6<path>/neutron-gateway/hooks</path>
7<path>/quantum-gateway/unit_tests</path>7<path>/neutron-gateway/unit_tests</path>
8</pydev_pathproperty>8</pydev_pathproperty>
9</pydev_project>9</pydev_project>
1010
=== modified file 'hooks/neutron_utils.py'
--- hooks/neutron_utils.py 2015-07-09 11:02:45 +0000
+++ hooks/neutron_utils.py 2015-09-16 08:26:02 +0000
@@ -250,6 +250,13 @@
250 packages.append('openswan')250 packages.append('openswan')
251 if source >= 'kilo':251 if source >= 'kilo':
252 packages.append('python-neutron-fwaas')252 packages.append('python-neutron-fwaas')
253 if source >= 'liberty':
254 # Switch out mysql driver
255 packages.remove('python-mysqldb')
256 packages.append('python-pymysql')
257 # Switch out to actual metering agent package
258 packages.remove('neutron-plugin-metering-agent')
259 packages.append('neutron-metering-agent')
253 packages.extend(determine_l3ha_packages())260 packages.extend(determine_l3ha_packages())
254261
255 if git_install_requested():262 if git_install_requested():
256263
=== modified file 'unit_tests/test_neutron_hooks.py'
--- unit_tests/test_neutron_hooks.py 2015-07-09 11:02:45 +0000
+++ unit_tests/test_neutron_hooks.py 2015-09-16 08:26:02 +0000
@@ -162,7 +162,7 @@
162 self.assertTrue(_amqp_joined.called)162 self.assertTrue(_amqp_joined.called)
163 self.assertTrue(_amqp_nova_joined.called)163 self.assertTrue(_amqp_nova_joined.called)
164 self.assertTrue(_zmq_joined.called)164 self.assertTrue(_zmq_joined.called)
165 self.create_sysctl.assert_called()165 self.assertTrue(self.create_sysctl.called)
166166
167 @patch.object(hooks, 'git_install_requested')167 @patch.object(hooks, 'git_install_requested')
168 def test_config_changed_upgrade(self, git_requested):168 def test_config_changed_upgrade(self, git_requested):
@@ -235,7 +235,7 @@
235 self.assertTrue(_amqp_joined.called)235 self.assertTrue(_amqp_joined.called)
236 self.assertTrue(_amqp_nova_joined.called)236 self.assertTrue(_amqp_nova_joined.called)
237 self.assertTrue(_zmq_joined.called)237 self.assertTrue(_zmq_joined.called)
238 self.create_sysctl.assert_called()238 self.assertTrue(self.create_sysctl.called)
239239
240 def test_upgrade_charm(self):240 def test_upgrade_charm(self):
241 _install = self.patch('install')241 _install = self.patch('install')
242242
=== modified file 'unit_tests/test_neutron_utils.py'
--- unit_tests/test_neutron_utils.py 2015-07-09 11:02:45 +0000
+++ unit_tests/test_neutron_utils.py 2015-09-16 08:26:02 +0000
@@ -159,6 +159,17 @@
159 self.assertTrue('python-neutron-fwaas' in neutron_utils.get_packages())159 self.assertTrue('python-neutron-fwaas' in neutron_utils.get_packages())
160160
161 @patch.object(neutron_utils, 'git_install_requested')161 @patch.object(neutron_utils, 'git_install_requested')
162 def test_get_packages_ovs_liberty(self, git_requested):
163 git_requested.return_value = False
164 self.config.return_value = 'ovs'
165 self.get_os_codename_install_source.return_value = 'liberty'
166 packages = neutron_utils.get_packages()
167 self.assertTrue('neutron-metering-agent' in packages)
168 self.assertFalse('neutron-plugin-metering-agent' in packages)
169 self.assertFalse('python-mysqldb' in packages)
170 self.assertTrue('python-pymysql' in packages)
171
172 @patch.object(neutron_utils, 'git_install_requested')
162 def test_get_packages_l3ha(self, git_requested):173 def test_get_packages_l3ha(self, git_requested):
163 git_requested.return_value = False174 git_requested.return_value = False
164 self.config.return_value = 'ovs'175 self.config.return_value = 'ovs'

Subscribers

People subscribed via source and target branches