270 Commits

Author SHA1 Message Date
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
billy.olsen@canonical.com
8808bf9302 Update code with feedback from code review:
1. Rebase
2. Update the new mitaka/nova.conf template
3. Add related_unit call to get the units
2016-02-17 10:24:59 -07:00
billy.olsen@canonical.com
b492f1a79e Merge with trunk. 2016-02-17 09:35:07 -07:00
billy.olsen@canonical.com
40e3a51461 [jamespage, r=billy-olsen,thedac] Drop ec2 and objectstore checks from restart
tests for liberty or greater.

Closes-Bug: #1537155
Closes-Bug: #1546261
2016-02-16 14:52:04 -07:00
billy.olsen@canonical.com
19df3b6430 [billy-olsen,r=] Add region information to the conf files, relations.
This change adds the appropriate region information to the conf files
and to the cloud-compute relations in order to ensure that the region
can be configured on all nova components.

Closes-Bug: #1468306
2016-02-12 10:38:21 -07:00
David Ames
5c4050e94f Fixes lp bug#1524448. Do not run neutron-server if >= juno 2016-02-11 07:49:38 -08:00
James Page
ee3afc15a8 Fixup lint and test failures 2016-02-09 11:38:46 +00:00
Adam Gandelman
0b55954f77 Remove duplicate hook trigger 2016-02-04 10:24:06 -08: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
8defefbe7c more 2016-01-08 13:46:56 +00: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
Subbarayudu Mukkamala
1525f2129b Merge from lp:~openstack-charmers/charms/trusty/.../next/ 2015-10-27 07:51:11 -07:00
Liam Young
7cafeecb03 Use new format for workload status 2015-10-08 14:31:01 +01:00
Liam Young
8e85f1e272 Add workload status 2015-10-07 09:32:28 +00: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
James Page
f26a5ab508 Ensure python2 is installed before hook execution 2015-09-22 14:52:12 +01:00
David Ames
468f3ae945 Action managed upgrades 2015-09-21 16:06:54 -07:00
Nobuto Murata
880d21af41 fix catch error of "No such file or directory" with python2, LP: #1484605 2015-08-25 22:42:14 +09:00
Subbarayudu Mukkamala
945fceafd2 fix lint errors 2015-08-21 05:05:24 -07:00
Subbarayudu Mukkamala
2fcaeea48c Merge from lp:~openstack-charmers/.../next 2015-07-26 19:42:39 -07:00
Edward Hope-Morley
c95bd4e655 [xianghu,r=hopem]
Add Console SSL support. This allows SSL to be used for
instance console sessions independently of whether SSL
is used for the Nova API endpoint.

Closes-Bug: 1476455
2015-07-24 13:29:29 +01: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
Subbarayudu Mukkamala
034334db30 Fix log stmt within an else block 2015-06-18 11:24:16 -07:00
Edward Hope-Morley
c49974a91a [hopem,r=]
Ensure packages not upgraded unexpectedly.

Closes-Bug: 1464605
2015-06-12 14:03:50 +01:00
Corey Bryant
f2a4cdf056 Merge next branch 2015-06-10 15:48:34 +00:00
Sunny Verma
31e7361c6c Made Changes to Nova-cloud controller for Neutrondb Migration Juno Release 2015-06-09 13:27:05 -04:00
Liam Young
d4b768f673 Resync le charm helpers 2015-06-04 09:45:01 +01:00
Felipe Reyes
7d6af47c82 nova-consoleauth set to manual only if there is a ha relation 2015-05-22 15:19:15 -03:00
Felipe Reyes
e30b0405be Move code into its own function and it's called from config-changed, ha-relation-changed and upgrade-charm 2015-05-22 11:32:59 -03:00
Felipe Reyes
d59435d307 Commit after merge 2015-05-18 16:07:48 -03: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
0421a578c9 Merge next branch 2015-04-22 21:48:17 +00:00
Liam Young
77841512ef Fix spaces in log messages 2015-04-22 14:39:04 +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
c5380c5b30 Drop errant log message 2015-04-21 16:32:08 +01:00
James Page
37af848344 Ensure that migration only occurs when unit can assure that mysql has granted it permissions to access the database 2015-04-21 16:28:53 +01:00
James Page
4ba38a7c53 Revert previous commit, work incomplete 2015-04-20 11:21:36 +01:00
Corey Bryant
709209244d Deploy from source 2015-04-15 14:17:56 +00:00
Edward Hope-Morley
1b19080362 synced /next 2015-04-01 14:38:15 +01:00
James Page
4685c40f52 Rebase 2015-03-31 15:56:11 +01:00
Edward Hope-Morley
ce4091599f use service_reload() 2015-03-30 18:26:30 +01:00
Edward Hope-Morley
9d558d81e8 [hopem,r=]
Ensure apache2 reloaded/restarted when https configured

Closes-Bug: #1410568
2015-03-29 21:09:18 +01:00
Felipe Reyes
69f74a18a0 Remove pcmkr rules when single-nova-consoleauth is set to True 2015-03-18 00:44:06 -03:00
James Page
85c19f5a4e Make 0mq support >= kilo 2015-03-16 16:13:02 +00:00
James Page
22f83cf13e Rebase 2015-03-16 14:17:04 +00:00
James Page
884edfe8e5 Enable leader-settings-changed 2015-03-13 11:51:30 +00:00