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
1=== modified file '.project'
2--- .project 2012-12-06 10:22:24 +0000
3+++ .project 2015-09-16 08:26:02 +0000
4@@ -1,6 +1,6 @@
5 <?xml version="1.0" encoding="UTF-8"?>
6 <projectDescription>
7- <name>quantum-gateway</name>
8+ <name>neutron-gateway</name>
9 <comment></comment>
10 <projects>
11 </projects>
12
13=== modified file '.pydevproject'
14--- .pydevproject 2013-07-19 09:46:25 +0000
15+++ .pydevproject 2015-09-16 08:26:02 +0000
16@@ -3,7 +3,7 @@
17 <pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python 2.7</pydev_property>
18 <pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">Default</pydev_property>
19 <pydev_pathproperty name="org.python.pydev.PROJECT_SOURCE_PATH">
20-<path>/quantum-gateway/hooks</path>
21-<path>/quantum-gateway/unit_tests</path>
22+<path>/neutron-gateway/hooks</path>
23+<path>/neutron-gateway/unit_tests</path>
24 </pydev_pathproperty>
25 </pydev_project>
26
27=== modified file 'hooks/neutron_utils.py'
28--- hooks/neutron_utils.py 2015-07-09 11:02:45 +0000
29+++ hooks/neutron_utils.py 2015-09-16 08:26:02 +0000
30@@ -250,6 +250,13 @@
31 packages.append('openswan')
32 if source >= 'kilo':
33 packages.append('python-neutron-fwaas')
34+ if source >= 'liberty':
35+ # Switch out mysql driver
36+ packages.remove('python-mysqldb')
37+ packages.append('python-pymysql')
38+ # Switch out to actual metering agent package
39+ packages.remove('neutron-plugin-metering-agent')
40+ packages.append('neutron-metering-agent')
41 packages.extend(determine_l3ha_packages())
42
43 if git_install_requested():
44
45=== modified file 'unit_tests/test_neutron_hooks.py'
46--- unit_tests/test_neutron_hooks.py 2015-07-09 11:02:45 +0000
47+++ unit_tests/test_neutron_hooks.py 2015-09-16 08:26:02 +0000
48@@ -162,7 +162,7 @@
49 self.assertTrue(_amqp_joined.called)
50 self.assertTrue(_amqp_nova_joined.called)
51 self.assertTrue(_zmq_joined.called)
52- self.create_sysctl.assert_called()
53+ self.assertTrue(self.create_sysctl.called)
54
55 @patch.object(hooks, 'git_install_requested')
56 def test_config_changed_upgrade(self, git_requested):
57@@ -235,7 +235,7 @@
58 self.assertTrue(_amqp_joined.called)
59 self.assertTrue(_amqp_nova_joined.called)
60 self.assertTrue(_zmq_joined.called)
61- self.create_sysctl.assert_called()
62+ self.assertTrue(self.create_sysctl.called)
63
64 def test_upgrade_charm(self):
65 _install = self.patch('install')
66
67=== modified file 'unit_tests/test_neutron_utils.py'
68--- unit_tests/test_neutron_utils.py 2015-07-09 11:02:45 +0000
69+++ unit_tests/test_neutron_utils.py 2015-09-16 08:26:02 +0000
70@@ -159,6 +159,17 @@
71 self.assertTrue('python-neutron-fwaas' in neutron_utils.get_packages())
72
73 @patch.object(neutron_utils, 'git_install_requested')
74+ def test_get_packages_ovs_liberty(self, git_requested):
75+ git_requested.return_value = False
76+ self.config.return_value = 'ovs'
77+ self.get_os_codename_install_source.return_value = 'liberty'
78+ packages = neutron_utils.get_packages()
79+ self.assertTrue('neutron-metering-agent' in packages)
80+ self.assertFalse('neutron-plugin-metering-agent' in packages)
81+ self.assertFalse('python-mysqldb' in packages)
82+ self.assertTrue('python-pymysql' in packages)
83+
84+ @patch.object(neutron_utils, 'git_install_requested')
85 def test_get_packages_l3ha(self, git_requested):
86 git_requested.return_value = False
87 self.config.return_value = 'ovs'

Subscribers

People subscribed via source and target branches