32 Commits

Author SHA1 Message Date
Edward Hope-Morley
a2a041b82f [hopem,r=]
A previous commit had removed auth_host and service_host from
the peer relation due to races with resolve_address(). If
we do not place this data on the peer relation we actually
break endpoints that use openstack.context.IdentityServiceContext
which expects *any* keystone relation unit to be able to provide
a complete set of valid settings...which are propagated by the
peer relation and re-propagated to the keystone relations.
2015-03-30 00:00:15 +01:00
Edward Hope-Morley
7248b95b5b added unit test 2015-03-26 16:13:15 -07:00
Edward Hope-Morley
fa4892f524 synced /next 2015-03-10 16:17:27 +00:00
Edward Hope-Morley
277fbae84d [hopem,r=]
Fixes disable ssl. Allows disable of use-https and https-service-endpoints.

Use '__null__' value to flush out peer relation settings that need to be unset
when forwared to other relations. This will fix ssl disable by ensuring that
peer settings are correctly forwarded to endpoint relations.

Closes-Bug: 1427906
2015-03-10 12:02:11 +00:00
Edward Hope-Morley
bfeca73d14 don't push race-prone data on cluster relation to avoid spinning 2015-02-24 13:35:09 +00:00
Edward Hope-Morley
849497d132 [hopem,r=gnuoy]
* improves ssl master election logic
* adds more unit tests
* fixes config changes logic

Closes-Bug: 1415579
2015-02-05 17:32:30 +00:00
Edward Hope-Morley
b0df8f0b59 Improve ssl master election logic and add more unit tests 2015-02-03 12:56:40 +00:00
Edward Hope-Morley
172c11f7fd [hopem,r=]
Fixes is_db_ready() logic

Closes-Bug: 1417108
2015-02-02 13:49:05 +00:00
Edward Hope-Morley
54a58fca29 [hopem,r=]
Fixes single unit SSL.
2015-01-27 22:21:37 +00:00
Edward Hope-Morley
f57638d8fe [hopem, r=]
Wait until DB ready before performing Keystone api ops.
2015-01-22 18:44:33 +00:00
Edward Hope-Morley
fe0c375bb6 synced /next 2015-01-16 14:50:19 +00:00
Liam Young
cb532ba068 Added unit tests 2015-01-14 13:17:50 +00:00
Edward Hope-Morley
c05f6a0447 validate echoed peer data 2015-01-13 22:16:46 +00:00
Edward Hope-Morley
2fa428e50b tests passing and cleanup 2015-01-13 13:43:07 +00:00
Edward Hope-Morley
14f39ff133 [hopem,r=]
Fixes ssl cert sycnhronisation across peers

Closes-Bug: 1317782
2015-01-05 17:49:38 +00:00
Edward Hope-Morley
4888ade23d renamed use_trigger to force 2014-12-17 13:21:10 +00:00
Edward Hope-Morley
4f1005e645 final cleanup 2014-12-16 23:48:42 +00:00
Edward Hope-Morley
4df01800b5 sync /next 2014-12-16 20:08:30 +00:00
Edward Hope-Morley
8637b222f3 revert back to broadcast to all (if something has changed) 2014-12-12 20:21:44 +00:00
Edward Hope-Morley
bd8bd0e053 only send notifications to units on registered relationid 2014-12-12 19:36:10 +00:00
Edward Hope-Morley
24fc5fbaf5 cleanup and tests 2014-12-12 18:47:36 +00:00
Edward Hope-Morley
bbf5cef56d [hopem,wolsen,r=]
Adds keystone identity-service-notfiy interface

This allows related units to receive broadcasts when
resources e.g. endpoints, change.

Closes-Bug: 1401861
2014-12-12 15:21:32 +00:00
Billy Olsen
3a0c673e50 Fix unit tests. 2014-12-01 22:11:52 -07:00
Liam Young
281659f0a5 Fix unit tests 2014-09-25 10:51:37 +01:00
James Page
69f908d18f Update unit tests for use of resolve_address 2014-07-29 08:42:45 +01:00
James Page
a3f42101cc Final tidy 2014-04-10 17:00:28 +01:00
yolanda.robla@canonical.com
31c33da345 changing assert_called 2014-04-04 14:25:37 +02:00
yolanda.robla@canonical.com
54e8bc4c4a fixing tests for latest changes 2014-04-04 12:26:08 +02:00
yolanda.robla@canonical.com
9166631f6b mocking keystone manager 2014-04-04 12:11:10 +02:00
yolanda.robla@canonical.com
ff1e28adeb mocking extra calls 2014-04-04 10:18:04 +02:00
yolanda.robla@canonical.com
754d3082c4 added more utils testing 2014-04-03 14:21:01 +02:00
yolanda.robla@canonical.com
5621512adf added testing for utils 2014-04-02 12:45:02 +02:00