178 Commits

Author SHA1 Message Date
Liam Young
68685d59df Send remote restart to neutron plugin post upgrade
When this principle charm performs and Openstack upgrade the
subordinates packages are also upgraded. The subordinate may need
to render new config for the new release so the charm now sends a
restart trigger to the subordinate

Change-Id: Ifd5dea4e67d09dc29bb0bba579fd8903fb64490a
Partial-Bug: 1571634
2016-04-18 17:35:08 +00: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
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
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
b1d232f866 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: I525c15a14662175f2a68cdcd25a3ab2c92237850
2016-03-24 11:18:41 +00: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
Liam Young
1bea39d454 [hopem,r=gnuoy]
Ensure libvirt image backend pool is configured if
RBDImageBackend enabled post-deploy.
Closes-Bug: 1489463
2016-02-22 09:33:49 +00:00
Edward Hope-Morley
6303b20ee3 [hopem,r=]
Ensure libvirt image backend pool is configured if
RBDImageBackend enabled post-deploy.
Closes-Bug: 1489463
2016-02-09 15:55:14 +00:00
Liam Young
ffd4b62965 Actually run designate hooks 2016-01-22 10:34:03 +00:00
Liam Young
7747f7f997 [gnuoy, r=james-page]
Allow a subordinate to request a metadata proxy without setting a shared secret
2016-01-15 14:13:25 +00:00
Liam Young
ec34b4851b Inform subordinate about changes to hugepages 2015-11-25 12:48:50 +00:00
James Page
e54b35d225 Delay configuration of lxd until lxd subordinate has configure user access for nova 2015-11-16 14:39:46 +00:00
Liam Young
52655c238d Allow a subordinate to request a metadata proxy without setting a shared secret 2015-11-16 11:53:00 +00:00
Corey Bryant
8f6874d8b8 [ddellav,r=corey.bryant] Action-managed upgrade support 2015-10-09 11:02:40 -04:00
David Ames
b162735770 Run even on unknown hook 2015-10-07 20:45:02 +00:00
David Ames
075143538f Run set_os_workload_status after every hook 2015-10-07 18:15: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
James Page
321812a64d Rebase 2015-10-01 08:59:03 +01: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 Della Vecchia
26162963a3 Implementing new charmhelpers-based upgrade action 2015-09-28 21:24:44 +00: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
d195ba9a7e Ensure all settings provided on lxd relation before configuring 2015-09-22 15:22:50 +01:00
James Page
52e826edc4 Rebase wily support 2015-09-22 15:19:59 +01:00
James Page
ebe5493873 Revert 2015-09-22 15:19:29 +01:00
James Page
62527f7dd5 Ensure python2 is installed before hook execution 2015-09-22 14:53:11 +01:00
James Page
6253816638 Fixup wily support 2015-09-22 10:05:23 +01:00
James Page
e96f0fcb00 Add compatibility wrapper for >= wily 2015-09-22 09:29:20 +01:00
James Page
6b587f1a99 Rebase 2015-09-21 14:02:58 +01:00
Liam Young
4bdbac9656 [gnuoy, r=hopem] Update ceph broker code to fix Bug #1453940 2015-09-12 07:31:45 +01:00
Liam Young
0de2f1c7a7 Fix unit tests 2015-09-07 09:43:08 +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
Liam Young
0a0c0a3832 Only create ceph secret if there is enough info 2015-08-27 09:41:11 +00:00
Liam Young
fea4bfe536 Switch to using shared Ceph broker code in charmhelpers 2015-08-27 09:04:55 +00:00
Liam Young
3e1adc877e Enabling hugepages should be conditional on it being requested 2015-08-19 15:07:10 +00: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
28ae950dc7 Refactor LXD and add build from support source. 2015-07-23 22:24:48 -04:00
Edward Hope-Morley
1b78d9d56d [hopem,r=]
Ensure nova-compute service is restarted when we recieve
ack from ceph broker request so that we are sure it is
able to connect to newly created ceph resources.

Closes-Bug: 1450543
2015-04-30 19:01:22 +02:00
Jorge Niedbalski
ec99a18730 Fixes bug LP: #1448143 2015-04-24 10:43:58 -03:00
James Page
3de027273a Tidy, drop storage config 2015-04-22 10:21:01 +01:00
Corey Bryant
621b671521 Deploy from source 2015-04-15 14:21:42 +00:00
Chuck Short
d5901bb6d3 Re-add block device configuration 2015-04-02 08:49:22 -04:00
James Page
b09a482854 Rebase, resync 2015-03-31 16:01:48 +01:00