38 Commits

Author SHA1 Message Date
Liam Young
d57a6e9a4e Do not create MTU upstart scripts on xenial+
MTU scripts are no longer needed as MAAS 1.9 can set the mtu and
bring up the interfaces.

The charm has no systemd versions of the 'os-charm-phy-mic-mtu'
and 'ext-port' scripts either so for xenial to set mtu sizes
on physical nics use MAAS 1.9 and appropriate network config

Change-Id: I3aa4d2a80a08dd605d4ae08d53f35282017e1009
Partial-Bug: 1566786
2017-01-05 13:51:29 +00:00
Liam Young
4463c334ca Restart openvswitch-vswitch when requested
Restart requests can be sent by related charms. A request to restart
services did not previously restart openvswitch. This change adds the
ability to restart it.

Closes-Bug: 1628093
Change-Id: I0f57d84e2cdaa103c18a1cdacd996f9421fba46c
2016-09-27 15:20:04 +00:00
James Page
7e4bd68494 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: Ia91a2de062fbc13fdb2b366217278bb96fc648fa
2016-09-20 12:32:57 +01:00
Corey Bryant
faaf51e7ba 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: I7d031e86853a3fb8b91501dc6bbd7f5f1b67701d
2016-07-13 19:25:46 +00:00
James Page
ed83413331 Re-license charm as Apache-2.0
All contributions to this charm where made under Canonical
copyright; switch to Apache-2.0 license as agreed so we
can move forward with official project status.

Change-Id: I7bd44dc15ad951bf2536e5ee10de01ec592b8970
2016-07-01 17:36:39 +01:00
Corey Bryant
9ad5cf9637 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: I032cb58283d54a9ccfcc268a7fd70b460a03aa58
2016-06-20 09:42:16 -04:00
Alex Kavanagh
1dfe139242 Modify add_bridge_ports(...) to include port up and permisc code
This fixes bug#1570411 where the add_bridge_port(...) function was
modified to include a port type but missed off port up and promisc
features.

Change-Id: I2a304270be97ed1eae5a7ceeb5777514460d8b4f
Closes-Bug: #1570411
2016-04-15 12:18:13 +00:00
James Page
acd617f4ca Add support for DPDK userspace networking
Add full support for DPDK; this includes a number of configuration
options to allow the number of cores and memory allocated per
NUMA node to be changed.  By default, the first core and 1024MB of
RAM of each NUMA node will be configured for DPDK use.

When DPDK is enabled, OVS bridges are configured as datapath type
'netdev' rather than type 'system' to allow use of userspace
DPDK packet processing; Security groups are also disabled, as
iptables based rules cannot be applied against userspace sockets.

DPDK device binding is undertaken using /etc/dpdk/interfaces and
the dpdk init script provided as part of the DPDK package; device
resolution is determined using the data-port configuration option
using the <bridge:<mac address> format - MAC addresses are used
to resolve underlying PCI device names for binding with DPDK.

It's assumed that hugepage memory configuration is either done as
part of system boot as kernel command line options (set via MAAS)
or using the hugepages configuration option on the nova-compute
charm.

Change-Id: Ieb2ac522b07e495f1855e304d31eef59c316c0e4
2016-04-07 12:42:16 +01:00
Alex Kavanagh
a9b41dfbed Enhanced pause/resume for maintenance mode
Add in pause/resume feature for maintenance mode along with tests.
Sync charmhelpers with support for the maintenance mode feature.

Change-Id: I075459e56ce34e78f5206d116208165aa43aae21
2016-03-30 19:57:58 +00:00
James Page
fb8c6021b3 Deal with neutron changes forthcoming 2016-02-23 14:32:45 +00:00
Liam Young
bbecca866a Added workload status 2015-10-07 10:41:12 +00:00
James Page
8381190bc0 Tidy lint 2015-09-25 14:49:08 +01:00
James Page
13ac86f9e8 Sortout racey dkms install for 12.04 installs 2015-09-25 14:34:04 +01:00
Liam Young
b07b9bb64b Fix determine_packages 2015-09-08 15:36:08 +01:00
Liam Young
883c01903a Unit test updates 2015-09-08 15:12:14 +01:00
Corey Bryant
68bdede60f Drop base mysql unit test updates 2015-05-07 18:48:58 +00:00
Corey Bryant
f09e9909a1 Unit test updates 2015-05-07 17:51:05 +00:00
Corey Bryant
6d2d6dcac1 Unit test updates 2015-05-07 17:14:18 +00:00
Corey Bryant
9069c17347 Update unit tests 2015-05-05 19:57:51 +00:00
Corey Bryant
37de2dc33c Change default mkdir permissions to 755 for deploy from source 2015-04-17 12:13:07 +00:00
Corey Bryant
0b199d2704 Bulk copy files to /etc/neutron 2015-04-13 18:57:01 +00:00
Corey Bryant
42001f843c Move deploy from source template files to templates/git 2015-04-13 14:08:56 +00:00
Corey Bryant
b22c6aebbf Deploy from source 2015-04-02 20:35:37 +00:00
Liam Young
83d814c810 Fix up lint and unit tests. Unit tests needed fixing as _ensure_bridge has been removed from the OVSPluginContext in favour of doing it explicitly in configure_ovs() 2015-04-01 09:57:10 +01:00
Liam Young
8f1827f88c Lint cleanup 2015-03-26 10:27:32 +00:00
Liam Young
c13cd7e0c8 Stop managing the bridges in two places 2015-03-26 10:22:41 +00:00
Liam Young
f87b3d5a6d Add mtu fixes to configure ovs and fix unit tests 2015-03-26 10:00:52 +00:00
Liam Young
0f1309df41 Fixed lint 2015-03-25 10:31:44 +00:00
Liam Young
67b068f3f8 Merged next in 2015-03-25 09:49:01 +00:00
Liam Young
8b5d14e345 More unit tests 2015-02-25 13:50:38 +00:00
Liam Young
e3bc81a2eb Merged trunk in and tidyup 2015-02-19 15:55:06 +00:00
Edward Hope-Morley
5f162c20bd reverted last commit 2015-02-12 12:31:58 +00:00
Edward Hope-Morley
41c60693e8 more 2015-02-12 12:21:35 +00:00
Edward Hope-Morley
9e6c6355a4 support multiple phy nics for mtu 2015-02-10 19:09:25 +00:00
Edward Hope-Morley
86dac4c72f add support for ext-port 2015-02-10 13:06:32 +00:00
Liam Young
392ed152dc determine_packages should return a list of lists which the install hook should iterate over passing each inner list to apt_install in turn to ensure the dkms module gets install prior to openvswitch-switch trying to load it 2014-06-24 15:04:51 +01:00
Liam Young
a600002f41 More lint fixes 2014-06-19 11:01:12 +01:00
Liam Young
3c85d2249a Lint tidyup and unit tests 2014-06-19 10:56:25 +01:00