Merge lp:~ivoks/charms/precise/nova-cloud-controller/alchemy-flags into lp:~openstack-charmers-archive/charms/precise/nova-cloud-controller/trunk

Proposed by Marco Ceppi
Status: Rejected
Rejected by: Edward Hope-Morley
Proposed branch: lp:~ivoks/charms/precise/nova-cloud-controller/alchemy-flags
Merge into: lp:~openstack-charmers-archive/charms/precise/nova-cloud-controller/trunk
Diff against target: 51 lines (+16/-1)
4 files modified
config.yaml (+5/-0)
revision (+1/-1)
templates/folsom/ovs_quantum_plugin.ini (+5/-0)
templates/parts/section-database (+5/-0)
To merge this branch: bzr merge lp:~ivoks/charms/precise/nova-cloud-controller/alchemy-flags
Reviewer Review Type Date Requested Status
Edward Hope-Morley Disapprove
James Page Pending
Marco Ceppi Pending
Review via email: mp+207164@code.launchpad.net

This proposal supersedes a proposal from 2014-01-30.

Description of the change

This branch makes it possible to define sqlalchemy flags within [DATABASE] section of quantum/neutron agent plugins. This is commonly used to fine tune SQL access.

To post a comment you must log in.
Revision history for this message
Marco Ceppi (marcoceppi) wrote : Posted in a previous version of this proposal

Deferring to openstack-charmers

review: Abstain
Revision history for this message
James Page (james-page) wrote : Posted in a previous version of this proposal

I'm assuming that this is tune things like database pool sizing, timeouts etc?

I'd actually prefer to see that exposed via specific configuration options rather than being generic - this also feels like something we should have more sane default for - I'm assuming we can make a max pool size and lazy fill it as and when required?

review: Needs Information
Revision history for this message
Ante Karamatić (ivoks) wrote : Posted in a previous version of this proposal

Correct, it's only for database tuning.

While I agree that having better defaults would help a lot, I'm pretty sure some people would find this useful. This is oriented to devops that understand how this impacts neutron. I deliberately used 'sqlalchemy' instead of 'database' in the name, to target people who actually do understand what sqlaclchemy is.

I took the same approach we have for nova.conf. We allow various configuration flags to be set for nova, but none for neutron.

63. By Ante Karamatić

Rebased on latest nova-c-c charm

Revision history for this message
Haw Loeung (hloeung) wrote :

Hi,

IS is very interested in getting this change merged upstream. We need to be able to tune pool size and overflow.

Revision history for this message
Haw Loeung (hloeung) wrote :

MP:219952 to fix the missing config type.

Revision history for this message
Haw Loeung (hloeung) wrote :
Revision history for this message
Edward Hope-Morley (hopem) wrote :

Gonna rebase onto <next>. Will resubmit.

review: Needs Fixing
Revision history for this message
Edward Hope-Morley (hopem) wrote :

New up-to-date branch based in /next here lp:~hopem/charms/trusty/nova-cloud-controller/next.lp1273022. Will submit new MP.

review: Disapprove

Unmerged revisions

63. By Ante Karamatić

Rebased on latest nova-c-c charm

62. By Ante Karamatić

Bump revision

61. By Ante Karamatić

Add neutron-alchemy-flags functionality to nova-c-c charm

60. By Ante Karamatić

Add functionality to charm-helpers from:
  lp:~ivoks/charm-helpers/neutron-alchemy

59. By Ante Karamatić

Sync charmhelpers

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-04-16 08:47:14 +0000
3+++ config.yaml 2014-04-18 09:05:01 +0000
4@@ -126,6 +126,11 @@
5 ssl_key:
6 type: string
7 description: SSL key to use with certificate specified as ssl_cert.
8+ neutron-alchemy-flags:
9+ default: None
10+ type: string
11+ Comma separated list of key=value sqlalchemy related config flags to be
12+ set in plugin ini file.
13 ssl_ca:
14 type: string
15 description: |
16
17=== modified file 'revision'
18--- revision 2014-04-16 08:25:14 +0000
19+++ revision 2014-04-18 09:05:01 +0000
20@@ -1,1 +1,1 @@
21-315
22+316
23
24=== modified file 'templates/folsom/ovs_quantum_plugin.ini'
25--- templates/folsom/ovs_quantum_plugin.ini 2014-04-16 08:25:14 +0000
26+++ templates/folsom/ovs_quantum_plugin.ini 2014-04-18 09:05:01 +0000
27@@ -16,6 +16,11 @@
28 {% else -%}
29 connection = sqlite:////var/lib/quantum/quantum.sqlite
30 {% endif -%}
31+{% if neutron_alchemy_flags -%}
32+{% for key, value in neutron_alchemy_flags.iteritems() -%}
33+{{ key }} = {{ value }}
34+{% endfor -%}
35+{% endif -%}
36
37 [SECURITYGROUP]
38 {% if neutron_security_groups -%}
39
40=== modified file 'templates/parts/section-database'
41--- templates/parts/section-database 2014-03-31 11:56:09 +0000
42+++ templates/parts/section-database 2014-04-18 09:05:01 +0000
43@@ -2,3 +2,8 @@
44 [database]
45 connection = {{ database_type }}://{{ database_user }}:{{ database_password }}@{{ database_host }}/{{ database }}{% if database_ssl_ca %}?ssl_ca={{ database_ssl_ca }}{% if database_ssl_cert %}&ssl_cert={{ database_ssl_cert }}&ssl_key={{ database_ssl_key }}{% endif %}{% endif %}
46 {% endif -%}
47+{% if neutron_alchemy_flags -%}
48+{% for key, value in neutron_alchemy_flags.iteritems() -%}
49+{{ key }} = {{ value }}
50+{% endfor -%}
51+{% endif -%}

Subscribers

People subscribed via source and target branches

to status/vote changes: