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
1=== modified file 'config.yaml'
2--- config.yaml 2014-07-29 11:50:07 +0000
3+++ config.yaml 2014-07-29 23:00:54 +0000
4@@ -159,6 +159,7 @@
5 nvp-l3-uuid:
6 type: string
7 description: |
8+<<<<<<< TREE
9 This is uuid of the default NVP/NSX L3 Gateway Service.
10 # end of NVP/NSX configuration
11 # Network configuration options
12@@ -203,3 +204,7 @@
13 * shared-db or (pgsql-nova-db, pgsql-neutron-db)
14 * amqp
15 * identity-service
16+=======
17+ This is uuid of the default NVP/NSX L3 Gateway Service.
18+ # end of NVP/NSX configuration
19+>>>>>>> MERGE-SOURCE
20
21=== modified file 'hooks/nova_cc_context.py'
22=== modified file 'hooks/nova_cc_hooks.py'
23--- hooks/nova_cc_hooks.py 2014-07-29 12:25:27 +0000
24+++ hooks/nova_cc_hooks.py 2014-07-29 23:00:54 +0000
25@@ -44,10 +44,14 @@
26 neutron_plugin_attribute,
27 )
28
29+<<<<<<< TREE
30 from nova_cc_context import (
31 NeutronAPIContext
32 )
33
34+=======
35+
36+>>>>>>> MERGE-SOURCE
37 from nova_cc_utils import (
38 api_port,
39 auth_token_config,
40@@ -79,6 +83,7 @@
41 eligible_leader,
42 get_hacluster_config,
43 is_leader,
44+ is_clustered
45 )
46
47 from charmhelpers.payload.execd import execd_preinstall
48@@ -161,14 +166,20 @@
49 log(e, level=ERROR)
50 raise Exception(e)
51
52+ if is_clustered():
53+ addr = config('vip')
54+ else:
55+ addr = unit_get('private-address')
56+
57 relation_set(nova_database=config('database'),
58 nova_username=config('database-user'),
59- nova_hostname=unit_get('private-address'))
60+ nova_hostname=addr)
61+
62 if network_manager() in ['quantum', 'neutron']:
63 # XXX: Renaming relations from quantum_* to neutron_* here.
64 relation_set(neutron_database=config('neutron-database'),
65 neutron_username=config('neutron-database-user'),
66- neutron_hostname=unit_get('private-address'))
67+ neutron_hostname=addr)
68
69
70 @hooks.hook('pgsql-nova-db-relation-joined')

Subscribers

People subscribed via source and target branches