240 Commits

Author SHA1 Message Date
Corey Bryant
53176a829f 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: I094695a343cd3d1e07b516a0c3cdc401437c6c34
2016-06-20 14:05:25 -04:00
James Page
fda0a0da41 Revert "Add apparmor template for nova compute services"
Reverting initial support for AppArmor as this change had
some un-intended side-effects and the profiles still need
further work.

This reverts commit b08fe049066c0519bfab06d871780d45f1b48062.

Change-Id: I8538b491bc0c6bd3ad02ac0b1d4fda190b137c41
2016-04-13 14:37:57 +01:00
David Ames
b08fe04906 Add apparmor template for nova compute services
Charm helpers sync to bring in the AppArmorContext class
Create specific service ApiAppArmorContexts
Add service specific templates for apparmor profiles
Add aa-profile-mode in config.yaml
Apply the apparmor profile as requested: disable, enforce, complain

Change-Id: I886520d9e8296d2fcf0305dd021270c8530d2813
2016-04-11 10:14:01 -07:00
Liam Young
0279111eeb Remove hugepage fstab entry and use qemu-kvm init
The hugepages fstab entry can stop systems from booting if the
/run filesystem is not available. The qemu-kvm init script can
be used to enable hugepages by setting KVM_HUGEPAGES=1

This apporach works for both upstart and systemd (where the old
System V script is used). However, for a systemd system the
prefered approach would be to enable hugepages via kernel
parameters set in MAAS.

Change-Id: Ib91ca930a91da3d75dbd96f7d55e7e259cb50fd1
Closes-Bug: 1518771
2016-04-11 13:41:42 +00:00
James Page
d949eeda57 Drop support for legacy Neutron management
The nova-compute charm originally managed the Neutron services
and configuration files for the hypervisor units; this has be
devolved into subordinate charms such as neutron-openvswitch
providing a nicer separation between Nova and Neutron.

Drop remaining legacy Neutron support from this charm as it was
deprecated for removal last cycle.

Change-Id: If3bd62d169c8e8804570c75e7311bf005c13683a
2016-04-08 11:06:51 +01:00
Ryan Beisner
813e9de8f3 Set smt off and cpu-mode to host-passthrough for ppc64 architectures
When deploying a ppc64el compute node, smt needs to be
turned off and cpu-mode needs to be set to host-passthrough
for nova/libvirt/kvm use.

Change-Id: I48bd8f9e42dbc5f7c626addaa2fdd1e3f8fdd97e
2016-04-07 17:18:34 +00:00
Jenkins
32f17c9462 Merge "Enhanced pause/resume for maintenance mode" 2016-04-06 06:43:55 +00:00
Alex Kavanagh
914e639b52 Enhanced pause/resume for maintenance mode
Implemented pause/resume with some services checking.
Charm-helpers sync to bring in pause/resume support.

Change-Id: I8bcd7464a606f6fc9db374be6004d851935e749a
2016-04-01 11:49:18 +00:00
Edward Hope-Morley
0bf8de365c 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: I736a0a281ec434067bc92fa70898b16a027f7422
2016-04-01 12:17:38 +01:00
James Page
5805659a6f Drop support for OpenStack releases < Icehouse
Rollup configuration file templates, drop templates relating
to Quantum (renamed to Neutron@Havana).

Drop all references to Quantum and related code paths, refactor
tests to baseline on Neutron/Icehouse.

Change-Id: I900a758f2aad77f1730d7a4d822d2cbcca9b63fc
2016-03-23 12:41:02 +00:00
Chuck Short
fd84739de8 Add systemd support for the nova-compute daemon
Add support systemd daemon support. Activate the
virtualenv prior to executing the nova-compute daemon
to ensure that the nova users LXD SSL certificates
are accessible.

Change-Id: Ibadc2a0e1ac1ee7ad0cd1f25b539fff6289c358e
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2016-03-09 08:41:17 -05:00
Liam Young
2c918a46b3 Enable notifications for designate 2016-01-22 10:33:27 +00:00
Liam Young
12a506e0e5 If hugepages config was not set charm breaks due to endswith('%') being applied to None 2015-12-02 09:55:37 +00:00
Liam Young
ec34b4851b Inform subordinate about changes to hugepages 2015-11-25 12:48:50 +00:00
James Page
16a03869c0 Add tox support 2015-10-30 14:49:18 +09:00
Liam Young
acd9e2eebd Simplier solution used by the other charms 2015-10-14 14:17:49 +00:00
Liam Young
a2a9b54e53 Refresh configs after upgrade to ensure the correct templates are used 2015-10-14 14:08:38 +00:00
David Della Vecchia
3cb59eb426 Fixing merge conflict with do_openstack_upgrade 2015-10-06 16:58:22 +00:00
David Della Vecchia
2e971f0ac8 refactoring do_openstack_upgrade to accept configs argument, bringing it in line with the other openstack charms 2015-10-06 15:38:12 +00:00
billy.olsen@canonical.com
c04cded0a7 [tribaal,r=billy-olsen]
Revert changes for the api rate limiting.

Closes-Bug: 1501924
2015-10-02 17:00:02 -07:00
David Ames
a6e22d2b33 [thedac, trivial] s/message/messaging 2015-10-02 14:36:48 -07:00
James Page
b41d7ac335 Update for the latest and greatest LXD updates in wily 2015-10-02 11:33:33 +01:00
Christopher Glass
fc146b2ea5 Reverting previous merge - the amulet tests broke on Precise. Investigating. 2015-10-02 11:40:38 +02:00
James Page
cdabbd2474 Fixup lint 2015-10-01 18:04:09 +01:00
Christopher Glass
85476fdcb7 Fixing iterable idiocy. 2015-10-01 17:07:37 +02:00
James Page
321812a64d Rebase 2015-10-01 08:59:03 +01:00
Christopher Glass
5b4bd57279 Added a api-rate-limit-rules charm config option controlling the rate-limiting
of the nova API.
2015-09-30 11:23:25 +02:00
David Ames
074911ead6 Database is optional for nova-compute. Fix decorator ordering 2015-09-29 08:14:35 -07:00
David Ames
e2874fe0a1 Check for neutron plugin relation 2015-09-28 14:40:59 -07:00
David Ames
dbfd8c3342 List value in dictionary 2015-09-25 15:50:56 -07:00
David Ames
783d5ccc85 Workload Status 2015-09-25 15:12:01 -07:00
James Page
247d8808c0 Move to sub configured access, and triggered restart 2015-09-23 13:11:45 +01:00
James Page
9dcb66637b Move lxd core config to lxd charm 2015-09-23 12:48:09 +01:00
James Page
6b587f1a99 Rebase 2015-09-21 14:02:58 +01:00
Liam Young
50886fc17c Have shmmax set when enabling hugepages 2015-09-17 12:21:15 +01:00
James Page
49addcaaa8 Nope - do it as root 2015-09-09 12:59:09 +01:00
James Page
613d84f5d5 Set lxc configuration for the user 2015-09-09 12:39:09 +01:00
James Page
9f61b0c19a Sortout lxd config options 2015-09-09 12:23:31 +01:00
James Page
23dd8fa2b4 Tidy configure_lxd_host 2015-09-09 09:46:23 +01:00
James Page
f0e3308b0a Fixup casing 2015-09-09 09:42:34 +01:00
Chuck Short
fcdc1431c5 Case out vivid-kilo 2015-09-04 12:58:56 -04:00
James Page
4b803e8479 Rebase on next 2015-09-03 18:04:56 +01:00
James Page
08b313f318 Move hugepages mount point to apparmor profile good location 2015-08-13 15:39:13 +01:00
James Page
3598cd5db6 Fixup imports and unit tests 2015-08-13 11:54:25 +01:00
James Page
9b891ace7a Ensure security is disabled for now if hugepages is enabled 2015-08-13 11:31:20 +01:00
James Page
798369a6f2 psutil install 2015-08-13 10:16:35 +01:00
James Page
182f9602ee Add support for configurable hugepages 2015-08-13 10:11:23 +01:00
Chuck Short
ab18234d43 Morege trunk 2015-08-05 09:35:26 -04:00
Liam Young
b23481208a Update charm to use single SubordinateConfigContext to stop ctxt data being lost 2015-07-29 17:10:07 +01:00
Chuck Short
28ae950dc7 Refactor LXD and add build from support source. 2015-07-23 22:24:48 -04:00