Merge lp:~niedbalski/charms/trusty/nova-cloud-controller/fix-1350085 into lp:~openstack-charmers-archive/charms/trusty/nova-cloud-controller/next

Proposed by Jorge Niedbalski
Status: Rejected
Rejected by: James Page
Proposed branch: lp:~niedbalski/charms/trusty/nova-cloud-controller/fix-1350085
Merge into: lp:~openstack-charmers-archive/charms/trusty/nova-cloud-controller/next
Diff against target: 70 lines (+18/-2) (has conflicts)
2 files modified
config.yaml (+5/-0)
hooks/nova_cc_hooks.py (+13/-2)
Text conflict in config.yaml
Text conflict in hooks/nova_cc_hooks.py
To merge this branch: bzr merge lp:~niedbalski/charms/trusty/nova-cloud-controller/fix-1350085
Reviewer Review Type Date Requested Status
James Page Disapprove
Review via email: mp+228772@code.launchpad.net

Description of the change

- Fix for LP:#1350085 if the node is clustered, then use the vip address for db relation.

To post a comment you must log in.
Revision history for this message
James Page (james-page) wrote :

Please see my comments on bug 1350085. I don't think that using the VIP as the source for access is correct - its only ever owned by a single node, so other nodes would not be able to access in this case and the nova-cloud-controller is a scale out charm.

There are a few merge conflicts as well

review: Disapprove

Unmerged revisions

79. By Jorge Niedbalski

- Fix for 1350085 , if node is clustered, then use vip, ifnot use ip-address

78. By James Page

[james-page,r=gnuoy] Cherry pick fixes for NSX on icehouse

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'config.yaml'
--- config.yaml 2014-07-29 11:50:07 +0000
+++ config.yaml 2014-07-29 23:00:54 +0000
@@ -159,6 +159,7 @@
159 nvp-l3-uuid:159 nvp-l3-uuid:
160 type: string160 type: string
161 description: |161 description: |
162<<<<<<< TREE
162 This is uuid of the default NVP/NSX L3 Gateway Service.163 This is uuid of the default NVP/NSX L3 Gateway Service.
163 # end of NVP/NSX configuration164 # end of NVP/NSX configuration
164 # Network configuration options165 # Network configuration options
@@ -203,3 +204,7 @@
203 * shared-db or (pgsql-nova-db, pgsql-neutron-db)204 * shared-db or (pgsql-nova-db, pgsql-neutron-db)
204 * amqp205 * amqp
205 * identity-service206 * identity-service
207=======
208 This is uuid of the default NVP/NSX L3 Gateway Service.
209 # end of NVP/NSX configuration
210>>>>>>> MERGE-SOURCE
206211
=== modified file 'hooks/nova_cc_context.py'
=== modified file 'hooks/nova_cc_hooks.py'
--- hooks/nova_cc_hooks.py 2014-07-29 12:25:27 +0000
+++ hooks/nova_cc_hooks.py 2014-07-29 23:00:54 +0000
@@ -44,10 +44,14 @@
44 neutron_plugin_attribute,44 neutron_plugin_attribute,
45)45)
4646
47<<<<<<< TREE
47from nova_cc_context import (48from nova_cc_context import (
48 NeutronAPIContext49 NeutronAPIContext
49)50)
5051
52=======
53
54>>>>>>> MERGE-SOURCE
51from nova_cc_utils import (55from nova_cc_utils import (
52 api_port,56 api_port,
53 auth_token_config,57 auth_token_config,
@@ -79,6 +83,7 @@
79 eligible_leader,83 eligible_leader,
80 get_hacluster_config,84 get_hacluster_config,
81 is_leader,85 is_leader,
86 is_clustered
82)87)
8388
84from charmhelpers.payload.execd import execd_preinstall89from charmhelpers.payload.execd import execd_preinstall
@@ -161,14 +166,20 @@
161 log(e, level=ERROR)166 log(e, level=ERROR)
162 raise Exception(e)167 raise Exception(e)
163168
169 if is_clustered():
170 addr = config('vip')
171 else:
172 addr = unit_get('private-address')
173
164 relation_set(nova_database=config('database'),174 relation_set(nova_database=config('database'),
165 nova_username=config('database-user'),175 nova_username=config('database-user'),
166 nova_hostname=unit_get('private-address'))176 nova_hostname=addr)
177
167 if network_manager() in ['quantum', 'neutron']:178 if network_manager() in ['quantum', 'neutron']:
168 # XXX: Renaming relations from quantum_* to neutron_* here.179 # XXX: Renaming relations from quantum_* to neutron_* here.
169 relation_set(neutron_database=config('neutron-database'),180 relation_set(neutron_database=config('neutron-database'),
170 neutron_username=config('neutron-database-user'),181 neutron_username=config('neutron-database-user'),
171 neutron_hostname=unit_get('private-address'))182 neutron_hostname=addr)
172183
173184
174@hooks.hook('pgsql-nova-db-relation-joined')185@hooks.hook('pgsql-nova-db-relation-joined')

Subscribers

People subscribed via source and target branches