161 Commits

Author SHA1 Message Date
James Page
fa1451445c Add support for application version
Juju 2.0 provides support for display of the version of
an application deployed by a charm in juju status.

Insert the os_application_version_set function into the
existing assess_status function - this gets called after
all hook executions, and periodically after that, so any
changes in package versions due to normal system updates
will also be reflected in the status output.

This review also includes a resync of charm-helpers to
pickup hookenv and contrib.openstack support for this
feature.

Change-Id: I33cce8efc03f9217552234a8e03133d360ce95e3
2016-09-20 12:25:54 +01:00
Zhang Hua
c5609c54c6 Support to inject config-flags for neutron-api charm
This patch is just to enable adding custom options to
neutron.conf by the following command:

juju set neutron-api config-flags='key1=val1, ...'

Change-Id: I46bc32c250295a511508ced4cbca8f9748229415
Closes-Bug: #1585508
2016-07-21 16:27:17 +08:00
Jenkins
6ee476166b Merge "Added Hyper-V networking support" 2016-07-08 15:56:57 +00:00
Ionut Balutoiu
353ab6f9f8 Added Hyper-V networking support
This patch adds hyperv mechanism driver to ml2_conf.ini template
and the required python package to the list of packages to install.

Change-Id: If23f22aea53ba5549160f44442567d57b8077af6
2016-07-08 11:42:31 +03:00
Corey Bryant
731ca45e07 Add systemd init support for deploy from source
systemd is used instead of upstart by default since Ubuntu 15.10
(Wily).  This adds systemd init file support for nova services
that are deployed from source.

Change-Id: I45757fcd52426369b42916ad2195d2fe2f6a4c15
2016-07-07 10:58:51 +01:00
James Page
69faf85da3 Re-license charm as Apache-2.0
All contributors to this charm have agreed to the switch
from GPL v3 to Apache 2.0; switch to Apache-2.0 license
as agreed so we can move forward with official project status.

Change-Id: Ie7859853644fb819f1cd3062a2fea86766de0afb
2016-07-03 17:47:52 +01:00
Corey Bryant
5251e366b4 Add defaults for openstack-origin-git config option
openstack-origin-git currently only supports YAML that specifies
the git repositories to deploy from.

This adds support for default openstack-origin-git values. The
default values supported are: icehouse, kilo, liberty, mitaka,
and master.  For example: openstack-origin-git=master.

Change-Id: I9e20d58b85d14b830e0394b8603ee018da86f004
2016-06-20 09:29:20 -04:00
Alex Kavanagh
638e06de08 Fix for multiple status-set - related to bug 1588462
This change fixes the obvious race for a status_set() between
check_optional_interfaces() and assess_status() as the later calls the former
which calls status_set(), returns the status, which is then potentially set
again by the assess_status() function.  This cleans up the code so that only a
single status_set() is performed when calling assess_status().

Change-Id: Ic5d0be6e1f7a2283e4dd0594c6465a99497dbbec
Related-Bug:#1588462
2016-06-16 10:35:37 +00:00
Liam Young
dd5bc11622 No db stamp for upgrade from Liberty
Stamping the Neutron db for Liberty fails and appears to be
unneccesary.

Change-Id: I93ff69db57bc3418a4c73e79e884f5c85d533f99
Closes-Bug: 1536675
2016-04-18 14:21:33 +00: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
1ecdb3ff7e Support using internal network for clients
Openstack mostly defaults to using public endpoints for
internal communication between services. This patch adds
a new option use-internal-endpoints which, if set to True,
will configure services to use internal endpoints where
possible.

Closes-Bug: 1456876
Change-Id: Ibff9d2ae7bf978525d4eccacb8f9a535b36d2056
2016-04-01 12:00:05 +01:00
Liam Young
9be47125b5 Add pause/resume actions and sync charm-helpers
Adds pause and resume unit to the charm such that the
charm stays paused during maintenance operations.

Partial-Bug: 1558642
Change-Id: Id5c44143f30305a3c412648cebb4c30caaa3e789
2016-03-20 14:25:47 +00:00
Neil Jerram
892db0dbd7 Changes for Calico networking with OpenStack Liberty
- Stable PPA source for Liberty onwards
- New neutron.conf for Liberty without dhcp_agents_per_network = 1000
- Testing for PPA source

Change-Id: I6ebee0ac3704a56f31ffbd48206360a3f0ba267a
2016-03-04 16:21:18 +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@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
da212dac4f Added nuage-packages , a new config option to specify nuage-packges 2016-02-17 14:07: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
Antoni Segura Puimedon
cdb8db5e5e MidoNet support up until Liberty 2016-01-22 16:14:59 +01: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
David Ames
594fbe9b05 Lint fix 2015-12-03 14:43:30 -08:00
Subbarayudu Mukkamala
428b5d1918 Merge from lp:~openstack-charmers/charms/trusty/.../next/ 2015-10-27 07:50:30 -07:00
James Page
a4a1759924 Drop neutron-plugin-api from optional interfaces as its a provides, not a requires 2015-10-08 18:57:04 -07:00
James Page
e66e58938f Proposed fixes based on openstack-charmers review. 2015-10-07 06:25:23 -07:00
David Ames
a88fc69dc5 [thedac, trivial] s/message/messaging 2015-10-02 14:35:25 -07:00
David Ames
4a47cc9ad4 Pull in upstream 2015-09-28 12:06:04 -07:00
David Ames
4335a6c1b5 Track neutron-plugin-api 2015-09-28 11:58:28 -07:00
David Ames
40b1826b2a Use check_optional_relations 2015-09-25 16:12:12 -07:00
Edward Hope-Morley
1b891829f5 [hopem,r=]
No more trusty-backports for haproxy >= Liberty

Closes-Bug: 1499435
2015-09-24 17:31:53 +01:00
James Page
28e6b34d55 Fixup lint 2015-09-16 10:17:22 +01:00
James Page
d36d90689e Fixups for liberty b3 support 2015-09-15 09:28:02 +01:00
David Ames
15bedef6f6 Renames and add ha check for vip settings 2015-09-11 16:32:34 -07:00
James Page
f87ad07e29 [project-calico,r=james-page] Add support for Calico plugin 2015-09-04 12:03:14 +01:00
James Page
9457427f4d Switch to using neutron-common for package version detection 2015-09-03 10:16:17 +01:00
Cory Benfield
8d5aa82328 synced /next 2015-08-21 08:33:43 +01:00
Sunny Verma
831ee7fd17 Added a condition for including nuage-neutron package if tar location is Empty 2015-08-20 16:38:20 -04:00
Subbarayudu Mukkamala
37802d3866 Merge from lp:~openstack-charmers/.../next 2015-08-20 06:45:36 -07:00
Liam Young
421056efa5 [gnuoy, r=jamespage] Add support for neutron-plugin-api-subordinate relation 2015-08-12 11:40:58 +01:00
Sunny Verma
5fc397cc76 added nuage-neutron package in neutron_api_utils.py 2015-08-10 18:21:22 -04:00
Sunny Verma
f3780fe309 added space 2015-08-10 18:15:06 -04:00
Sunny Verma
c9f10158bd Running Python file required Shell=True in check_ooutput fxn 2015-08-10 17:07:33 -04:00
Sunny Verma
7512c0a473 Error was order of config file that we give.. Fixed it 2015-08-10 15:31:24 -04:00
Sunny Verma
0a88f66a25 Added space in config yaml file 2015-08-07 18:03:27 -04:00
Sunny Verma
9d0fa9743a Changed how cmd for migration is written 2015-08-07 16:27:29 -04:00
Sunny Verma
993d7405db Made changes to Neutron_api_utils mainly in nuage_vsp-juno_neutron_migration() 2015-08-06 14:35:48 -04:00
Sunny Verma
939da24063 Reshuffling the code with same logic for database-migration for juno 2015-08-06 12:56:09 -04:00
David Ames
c850b0a02a Merge Upstream 2015-08-05 11:02:32 -07:00
Subbarayudu Mukkamala
97d0cc4d07 Merge from lp:~openstack-charmers/.../next 2015-07-26 19:42:50 -07:00
Corey Bryant
5e2e16dee6 Fix lint error 2015-07-13 19:07:37 +00:00
Corey Bryant
6951febb97 Install python-neutronclient for deploy from source because utils function imports from neutronclient and charm itself doesn't run in virtualenv. 2015-07-10 13:28:48 +00:00