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

Proposed by James Page
Status: Merged
Merged at revision: 159
Proposed branch: lp:~james-page/charms/trusty/neutron-api/lp1527230
Merge into: lp:~openstack-charmers-archive/charms/trusty/neutron-api/next
Diff against target: 58 lines (+6/-6)
3 files modified
hooks/neutron_api_hooks.py (+1/-1)
hooks/neutron_api_utils.py (+2/-2)
unit_tests/test_neutron_api_hooks.py (+3/-3)
To merge this branch: bzr merge lp:~james-page/charms/trusty/neutron-api/lp1527230
Reviewer Review Type Date Requested Status
David Ames (community) Approve
Review via email: mp+280834@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 #15554 neutron-api-next for james-page mp280834
    LINT OK: passed

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

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

charm_unit_test #14514 neutron-api-next for james-page mp280834
    UNIT OK: passed

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

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

charm_amulet_test #8324 neutron-api-next for james-page mp280834
    AMULET OK: passed

Build: http://10.245.162.77:8080/job/charm_amulet_test/8324/

Revision history for this message
David Ames (thedac) wrote :

Looks good.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'hooks/neutron_api_hooks.py'
2--- hooks/neutron_api_hooks.py 2015-10-27 14:50:30 +0000
3+++ hooks/neutron_api_hooks.py 2015-12-17 12:21:55 +0000
4@@ -169,7 +169,7 @@
5
6 add_source(config('extra-source'), config('extra-key'))
7 status_set('maintenance', 'Installing apt packages')
8- apt_update()
9+ apt_update(fatal=True)
10 packages = determine_packages(config('openstack-origin'))
11 apt_install(packages, fatal=True)
12
13
14=== modified file 'hooks/neutron_api_utils.py'
15--- hooks/neutron_api_utils.py 2015-12-03 22:43:30 +0000
16+++ hooks/neutron_api_utils.py 2015-12-17 12:21:55 +0000
17@@ -207,8 +207,8 @@
18
19 add_source(calico_source)
20
21- apt_update()
22- apt_upgrade()
23+ apt_update(fatal=True)
24+ apt_upgrade(fatal=True)
25
26
27 def force_etcd_restart():
28
29=== modified file 'unit_tests/test_neutron_api_hooks.py'
30--- unit_tests/test_neutron_api_hooks.py 2015-10-27 14:50:30 +0000
31+++ unit_tests/test_neutron_api_hooks.py 2015-12-17 12:21:55 +0000
32@@ -128,7 +128,7 @@
33 self.configure_installation_source.assert_called_with(
34 'distro'
35 )
36- self.apt_update.assert_called_with()
37+ self.apt_update.assert_called_with(fatal=True)
38 self.apt_install.assert_has_calls([
39 call(_pkgs, fatal=True),
40 ])
41@@ -151,7 +151,7 @@
42 self.configure_installation_source.assert_called_with(
43 'distro'
44 )
45- self.apt_update.assert_called_with()
46+ self.apt_update.assert_called_with(fatal=True)
47 self.apt_install.assert_has_calls([
48 call(_expected_pkgs, fatal=True),
49 ])
50@@ -184,7 +184,7 @@
51 self._call_hook('install')
52 self.assertTrue(self.execd_preinstall.called)
53 self.configure_installation_source.assert_called_with(repo)
54- self.apt_update.assert_called_with()
55+ self.apt_update.assert_called_with(fatal=True)
56 self.apt_install.assert_has_calls([
57 call(_pkgs, fatal=True),
58 ])

Subscribers

People subscribed via source and target branches