258 Commits

Author SHA1 Message Date
James Page
dee3e41231 Restore relation with neutron-api service
A previous commit removed the use of the NeutronAPIContext with
the nova.conf template; restore this context to ensure that
a) the relation is detected when assessing status and b) that
neutron-api relation data is avaliable to the nova.conf template.

Change-Id: Id55800095b9a2d0a5807288ff5f67d71755f9948
2016-04-11 12:02:57 +01:00
James Page
c2bc02e3ab Drop support for Neutron functionality
Neutron functionality was deprecated last release; remove
direct support for managing the neutron-server process and
associated plugin support from this charm.

All neutron-server support is now provided by the neutron-api
charm.

Change-Id: Iec7bd5ec6d835b573a15f8163fa5f78842bd672b
2016-04-08 11:46:52 +01:00
Edward Hope-Morley
24514dcd5b 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: I0f13fa1ab66864859d3adb37e5ec64bd95d7025d
2016-04-01 12:40:06 +01:00
Liam Young
bb9ef8b039 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.

Change-Id: Ia422aa4077fbdd8cdb0353306c14f5633e2affb8
Partial-Bug: 1558642
2016-03-23 15:41:30 +00:00
James Page
6e8dcf8af8 Drop support for OpenStack releases < Icehouse
Rollup all old configuration file templates, remove any related
to Quantum which was renamed in the Havana release.

Drop references in code to Quantum, refactor unit tests to baseline
on Icehouse rather than anything older.

Drop relation and associated references to nova-volume service;
deprecated in Folsom and removed in Havana.

Drop ml2 migration - this was required when migrating to Icehouse
from older releases.

Change-Id: I6f5d641ffef2599d0dfc8e16a2dce3cc7be88bd4
2016-03-23 12:40:37 +00:00
James Page
90f376453b Add nova-api database setup for Mitaka
Mitaka requires the use of a separate nova-api database;
ensure that this is setup on the shared-db relation and add
a new [api_database] section to the mitaka nova.conf file.

Add a new NovaAPISharedDBContext wrapper to prefix the key
names for the nova-api database with 'nova_api_' so that we
can present two database connections to the same configuration
file.

Ensure that 'nova-manage api_db sync' is called for database
setup for >= mitaka release.

For upgrades, ensure that the database migration and service
start is deferred until the nova_api database has been
setup by the related mysql service.

Closes-Bug: #1556896

Change-Id: If1c9a037b1e0745a486a57fddf885e26aa7e313d
2016-03-18 12:28:57 +00:00
Liam Young
e394d07e66 [gandelman-a, r=gnuoy]
Advertise Nova API readiness

    Adds a new relation 'nova-api' that can be used by services that consume
    the nova api in some way or another. We use it to simply pass a flag to
    remote services that states whether the API service is ready to be used,
    based on the complete context of required interfaces.
2016-02-22 12:03:52 +00:00
James Page
ee3afc15a8 Fixup lint and test failures 2016-02-09 11:38:46 +00:00
James Page
96082675e3 Fixup 2016-02-09 11:24:48 +00:00
James Page
df8816d07c Use pop 2016-02-09 11:23:41 +00:00
James Page
374a284b20 Initial stab at xenial support 2016-02-09 11:19:34 +00:00
Adam Gandelman
962790239b Advertise Nova API readiness
Adds a new relation 'nova-api' that can be used by services that consume
the nova api in some way or another. We use it to simply pass a flag to
remote services that states whether the API service is ready to be used,
based on the complete context of required interfaces.
2016-02-03 11:38:43 -08:00
Edward Hope-Morley
8c875c4009 [hopem,r=]
Fix upgrade breakage whereby if upgrading from
version of charm that did not support
dbsync_state peer setting db ops get stuck
waiting infinitely for db to be intialised.

Closes-Bug: 1519035
2016-01-08 12:30:31 +00:00
James Page
383fcceb10 Add unit status support 2015-10-08 17:19:14 -07:00
Liam Young
8e85f1e272 Add workload status 2015-10-07 09:32:28 +00:00
Liam Young
2d405cc744 Updated after mp review from hopem 2015-10-06 16:47:35 +01:00
Liam Young
5aa0f7b1e4 Fix type in length check. If all is well the cmd should return two lines 2015-10-06 13:17:05 +01:00
Liam Young
5ac25bf361 Process empty output from ssh-keygen safely incase charm is running on precise 2015-10-06 08:37:21 +00:00
Christopher Glass
ca94f0699d Enable rate-limiting for the API. 2015-10-02 14:05:06 +02:00
Edward Hope-Morley
d0f0aa0f15 [hopem,r=gnuoy]
No more trusty-backports for haproxy >= Liberty

Closes-Bug: 1499435
2015-09-25 18:20:51 +01:00
Edward Hope-Morley
0bc90edd3c [hopem,r=]
No more trusty-backports for haproxy >= Liberty

Closes-Bug: 1499435
2015-09-24 17:32:02 +01:00
James Page
7fae6a199c [thedac,r=james-page] Add support for action managed openstack upgrades.
Also fix misc assert_called problems in unit tests.
2015-09-24 17:29:26 +01:00
David Ames
468f3ae945 Action managed upgrades 2015-09-21 16:06:54 -07:00
Hui Xiang
00c3a1a05d Add note 2015-08-06 14:04:08 +08:00
Hui Xiang
2b3bd28527 Fix key formats 2015-07-29 19:23:06 +08:00
Hui Xiang
3d8ed0298c fetch the right part of key 2015-07-29 18:41:19 +08:00
Hui Xiang
128a62e023 Fix live-migration fail if re-add unit 2015-07-29 17:31:20 +08:00
Hui Xiang
d61aa28daf Fix comments. 2015-07-22 20:01:24 +08:00
Hui Xiang
7267a2c30e Fix more 2015-07-22 13:33:03 +08:00
Hui Xiang
6eef99c3af Support noVNC session for SSL. 2015-07-21 10:42:36 +08:00
Corey Bryant
e030b38ba0 Enable neutron-db-manage for deploy from source. 2015-07-16 20:51:15 +00:00
Corey Bryant
f2a4cdf056 Merge next branch 2015-06-10 15:48:34 +00:00
Corey Bryant
160e840a9b Add libyaml-dev as base git package 2015-05-12 19:53:58 +00:00
Corey Bryant
bce4dd1c13 Also need to install libmysqlclient-dev for deploy from source 2015-05-12 16:37:36 +00:00
Corey Bryant
2022c3053a Install mysql-python with base git packages 2015-05-12 16:16:43 +00:00
Corey Bryant
73bd7eae35 Add nova-manage to symlinks 2015-05-12 15:46:18 +00:00
Corey Bryant
74b8c1376c Add virtualenv support 2015-05-12 15:17:42 +00:00
Corey Bryant
655b0d6d83 Merge next branch 2015-05-12 13:21:27 +00:00
Liam Young
d418994ea6 Merged trunk in + LE charmhelper sync 2015-05-11 08:38:35 +01:00
Corey Bryant
58aee16171 Drop libffi-dev, libssl-dev, and libyaml-dev. 2015-04-23 15:36:41 +00:00
Corey Bryant
d0592366a9 Install neutorn-common as python-six conflict workaround 2015-04-23 14:02:05 +00:00
Corey Bryant
f4ca5fe744 Put base packages in correct list 2015-04-23 01:11:01 +00:00
Corey Bryant
db0d7750aa Generalize neutron-db-manage and quantum-db-manage executable names as they may come from /usr/local/bin when deploying from source. 2015-04-22 20:06:21 +00:00
Corey Bryant
b49f97657b Add nova serial proxy upstart script 2015-04-22 19:59:45 +00:00
Corey Bryant
d2a7198635 Add libffi-dev, libssl-dev, and libyaml-dev to base git install packages 2015-04-22 19:35:29 +00:00
Liam Young
7169074cb1 Fix bug and log message 2015-04-22 14:36:20 +00:00
Liam Young
8a748906a2 Stop running db migrations when deployment is kilo or migrating to kilo 2015-04-22 13:49:57 +00:00
James Page
4ba38a7c53 Revert previous commit, work incomplete 2015-04-20 11:21:36 +01:00
Corey Bryant
101aec20a2 Add neutron support 2015-04-16 18:26:16 +00:00
Corey Bryant
8b209b9728 Don't install neutron-plugin-ml2 ubuntu package when deploying from source 2015-04-16 13:46:14 +00:00