Merge lp:~james-page/charms/trusty/neutron-api/subordinate-plugins into lp:~openstack-charmers/charms/trusty/neutron-api/vpp

Proposed by James Page
Status: Merged
Merged at revision: 129
Proposed branch: lp:~james-page/charms/trusty/neutron-api/subordinate-plugins
Merge into: lp:~openstack-charmers/charms/trusty/neutron-api/vpp
Diff against target: 43 lines (+3/-11)
2 files modified
files/patched-icehouse (+0/-4)
hooks/neutron_api_hooks.py (+3/-7)
To merge this branch: bzr merge lp:~james-page/charms/trusty/neutron-api/subordinate-plugins
Reviewer Review Type Date Requested Status
OpenStack Charmers Pending
Review via email: mp+264849@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== removed file 'files/patched-icehouse'
--- files/patched-icehouse 2015-07-08 08:19:34 +0000
+++ files/patched-icehouse 1970-01-01 00:00:00 +0000
@@ -1,4 +0,0 @@
1[ /etc/apt/preferences.d/patched-icehouse ]
2Package: *
3Pin: release o=LP-PPA-sdn-charmers-cisco-vpp-testing
4Pin-Priority: 990
50
=== modified file 'hooks/neutron_api_hooks.py'
--- hooks/neutron_api_hooks.py 2015-07-14 10:18:26 +0000
+++ hooks/neutron_api_hooks.py 2015-07-15 14:10:48 +0000
@@ -9,7 +9,6 @@
9from charmhelpers.core.hookenv import (9from charmhelpers.core.hookenv import (
10 Hooks,10 Hooks,
11 UnregisteredHookError,11 UnregisteredHookError,
12 charm_dir,
13 config,12 config,
14 is_relation_made,13 is_relation_made,
15 local_unit,14 local_unit,
@@ -144,11 +143,7 @@
144def install():143def install():
145 execd_preinstall()144 execd_preinstall()
146 configure_installation_source(config('openstack-origin'))145 configure_installation_source(config('openstack-origin'))
147 # XXX Remove me when patched nova and neutron are in the main ppa146
148 configure_installation_source('ppa:sdn-charmers/cisco-vpp-testing')
149 apt_pin_file = charm_dir() + '/files/patched-icehouse'
150 import shutil
151 shutil.copyfile(apt_pin_file, '/etc/apt/preferences.d/patched-icehouse')
152 apt_update()147 apt_update()
153 apt_install(determine_packages(config('openstack-origin')),148 apt_install(determine_packages(config('openstack-origin')),
154 fatal=True)149 fatal=True)
@@ -484,7 +479,8 @@
484 users="neutron")479 users="neutron")
485480
486481
487@hooks.hook('zeromq-configuration-relation-changed')482@hooks.hook('zeromq-configuration-relation-changed',
483 'neutron-plugin-api-subordinate-relation-changed')
488@restart_on_change(restart_map(), stopstart=True)484@restart_on_change(restart_map(), stopstart=True)
489def zeromq_configuration_relation_changed():485def zeromq_configuration_relation_changed():
490 CONFIGS.write_all()486 CONFIGS.write_all()

Subscribers

People subscribed via source and target branches

to all changes: