100 Commits

Author SHA1 Message Date
James Page
c59e76217b Use network space binding for shared-db relation
To ensure that the charm presents the right IP address for
accessing the MySQL database over the shared-db relation,
ensure that any network space binding provided by the user
is preferred over the default of 'private-address'.

If network spaces is not supported (juju < 2.0), fallback to
using 'private-address'.

Change-Id: I8e70be47250c650e4b0135b0f2707f7eb1d46d1e
2016-04-12 14:50:54 +01:00
James Page
e1d5e7ef68 Full control of db migrations
Earlier versions of the nova-cloud-controller charm controlled
upgrades of the neutron databases; this has now been dropped
from the nova-cloud-controller charm.

Drop logic around conditional migration related to OpenStack
releases and always migrate the neutron database, so long as
the unit is the lead unit.

Change-Id: I944621203e8f4a2337151f2d406fe0f2c7d1a71f
2016-04-11 16:37:03 +01:00
Edward Hope-Morley
1ef99d852e Add hardening support
Add charmhelpers.contrib.hardening and calls to install,
config-changed, upgrade-charm and update-status hooks.
Also add new config option to allow one or more hardening
modules to be applied at runtime.

Change-Id: I46e1b43df3a5e59018f604ce1ae20bd62744a45b
2016-03-31 10:40:23 +01:00
James Page
5746b198bc Resync charm-helpers
Also fix some mocking issues which cause test failures when not
executing on ubuntu trusty.

Change-Id: Ia72c4fc57a68b3f2c1bcec4d00d57da3b8912b96
2016-03-02 12:08:34 +00:00
sunny.verma@nuagenetworks.net
8dd25c9aa0 Merged from lp:~openstack-charmers/charms/trusty/neutron-api/next 2016-02-24 17:35:54 -05:00
sunny.verma@nuagenetworks.net
75f56e9e43 removed commented statement 2016-02-24 17:29:12 -05:00
sunny.verma@nuagenetwork.net
a6b315e66f Removed lint errors and Added correct unit test 2016-02-19 21:27:40 -05:00
Sunny Verma
c8da373120 Merged to lp:~openstack-charmers/charms/trusty/neutron-api/next 2016-02-19 19:08:57 -05:00
Sunny Verma
ec48ad5f90 Added united test and added kilo/juno condition 2016-02-19 19:01:11 -05:00
sunny.verma@nuagenetworks.net
9f6cab60ab first draft for Nuage R4 2016-02-13 17:12:10 -05:00
Adam Gandelman
86f6174d5f Advertise API readiness to subordinates, allow subordinate specification of api_extensions
This advertises API readiness to subordinates via a new flag int the subordinate
relation. It determines readiness by the completion of required contexts. This
simply means the API service has enough of its topology completed to begin
servicing requests, and it has at least *started* the service (from the POV of
the init system). Its up to the subordinate service to ensure the API is
functional.

It also allows subordinates to specify custom api_extension_paths to neutron-api.
2016-02-03 11:17:14 -08:00
Liam Young
ee569eef3c Rename catalogue entry published to keystone from quantum to neutron 2016-01-12 11:16:17 +00:00
James Page
aca69aa643 Ensure that apt_update calls are made with fatal=True to detect and source configuration problems. 2015-12-17 12:20:46 +00:00
Subbarayudu Mukkamala
428b5d1918 Merge from lp:~openstack-charmers/charms/trusty/.../next/ 2015-10-27 07:50:30 -07:00
James Page
e66e58938f Proposed fixes based on openstack-charmers review. 2015-10-07 06:25:23 -07:00
Corey Bryant
b321fd7b91 [corey.bryant,trivial] Add test for action-managed upgrade path in config-changed 2015-09-29 21:04:16 +00:00
James Page
e44d898e0c Fixup more lint 2015-09-16 10:20:49 +01:00
James Page
d36d90689e Fixups for liberty b3 support 2015-09-15 09:28:02 +01:00
Cory Benfield
8d5aa82328 synced /next 2015-08-21 08:33:43 +01:00
Subbarayudu Mukkamala
37802d3866 Merge from lp:~openstack-charmers/.../next 2015-08-20 06:45:36 -07:00
Subbarayudu Mukkamala
97d0cc4d07 Merge from lp:~openstack-charmers/.../next 2015-07-26 19:42:50 -07:00
Cory Benfield
af9e25bb3d Add support for Canonical etcd charm 2015-06-19 09:18:26 +01:00
Billy Olsen
3b96c016b4 Fix unit test error from c-h sync 2015-06-04 16:28:14 -07:00
Billy Olsen
acdb35633e Change config option to be os-public-hostname 2015-06-03 11:25:21 -07:00
Billy Olsen
3f601c5824 [wolsen,r=] Add support for overriding public endpoint addresses.
Adds in the config option for overriding public endpoint addresses
and introduces a unit tests to ensure that the override for the
public address is functioning correctly.

Closes-Bug: #1398182
2015-06-02 14:49:10 -07:00
Subbarayudu Mukkamala
ce0b5b9dcd Merge with ~openstack-charmers/charms/trusty/neutron-api/next 2015-05-27 15:53:45 -07:00
Cory Benfield
eff8938d26 synced /next 2015-04-23 14:10:48 +01:00
Liam Young
52a55ec0e8 Only run migration if allowed units is present 2015-04-23 09:49:03 +01:00
Liam Young
b74d932f86 Merge next 2015-04-23 08:35:40 +01:00
Liam Young
25a505a986 Add unit tests and fix up conditional_neutron_migration 2015-04-22 18:50:48 +00:00
Liam Young
88701a5445 Test that neutron can be queried before checking dvr and l3ha settings. Add unit tests for this change and a few additional tests to improve l3ha and dvr coverage 2015-04-21 08:46:00 +00:00
Subbarayudu Mukkamala
d49d7a5ca4 Add unit tests and Fix lint errors 2015-04-19 14:46:06 -07:00
Cory Benfield
5bb662b2bc Templates and tests. 2015-04-16 15:06:49 +01:00
Subbarayudu Mukkamala
1f2e43cd1f Fix unit-test errors 2015-04-12 17:12:06 -07:00
Subbarayudu Mukkamala
9f28b92b55 Fix unit-test errors 2015-04-12 16:32:31 -07:00
Subbarayudu Mukkamala
7c482421d6 Fix unit-test errors and code-cleanup 2015-04-12 13:34:46 -07:00
Subbarayudu Mukkamala
52bc2e4ec5 fix: unit test lint errors 2015-04-10 06:09:52 -07:00
Subbarayudu Mukkamala
2ab51d4272 Merge from lp:~openstack-charmers/.../next 2015-04-09 19:35:50 -07:00
Subbarayudu Mukkamala
df550b9782 Add nuage vsp unit tests 2015-04-09 10:23:02 -07:00
Corey Bryant
18be463b62 Deploy from source 2015-04-02 20:15:28 +00:00
James Page
7524f7a9c8 Rebase 2015-04-01 15:20:32 +01:00
Liam Young
33303b66cf Pass over auth_protocol 2015-04-01 12:26:15 +01:00
James Page
7b27f8305a Rebase 2015-03-31 15:54:38 +01:00
Liam Young
724bf8a25a Fix unit_tests 2015-03-31 14:52:11 +00:00
Edward Hope-Morley
83905b1852 [hopem,r=wolsen,gnuoy]
Ensure apache2 reloaded/restarted when https configured

Closes-Bug: #1410568
2015-03-31 09:37:29 +01:00
Edward Hope-Morley
a7855d8fe1 use service_reload() 2015-03-30 18:26:30 +01:00
James Page
30f01ba5b1 Rebase resync 2015-03-30 16:59:24 +01:00
Edward Hope-Morley
cfead311f3 [hopem,r=]
Ensure apache2 reloaded/restarted when https configured

Closes-Bug: #1410568
2015-03-29 21:09:15 +01:00
Liam Young
edbf76c678 Error on disabling l3ha when l3ha routers are present. 2015-03-27 10:59:50 +00:00
Liam Young
e15de93835 Merged next in 2015-03-23 13:17:46 +00:00