270 Commits

Author SHA1 Message Date
Liam Young
c283a1c922 Enable Keystone v3 API
This changes enables the Keystone v3 api. It can be toggled on and off via the
preferred-api-version option.

When services join the identity-service relation they will be presented with a
new parameter api_version which is the maximum api version the keystone charm
supports and matches what was set via preferred-api-version.

If preferred-api-version is set to 3 then the charm will render a new
policy.json which adds support for domains etc when keystone is checking
authorisation. The new policy.json requires an admin domain to be created and
specifies that a user is classed as an admin of the whole cloud if they have
the admin role against that admin domain.

The admin domain, called admin_domain, is created by the charm. The name of
this domain is currently not user configurable. The role that enables a user to
be classed as an admin is specified by the old charm option admin-role. The
charm grants admin-role to the admin-user against the admin_domain.

Switching a deployed cloud from preferred-api-version 2 to
preferred-api-version 3 is supported. Switching from preferred-api-version 3 to
preferred-api-version 2 should work from the charm point of view but may cause
problems if there are duplicate users between domains or may have unintended
consequences like escalating the privilege of some users so is not recommended.

Change-Id: I8eec2a90e0acbf56ee72cb5036a0a21f4a77a2c3
2016-03-09 11:05:33 +00:00
Alex Kavanagh
348d834cf1 Merge keystone/next into change to get ready for final merge 2016-02-19 14:49:59 +00:00
James Page
65e10fa744 Add astara to services 2016-02-18 10:02:59 +00:00
Alex Kavanagh
bb09ba2f0f Synced new version of charm-helpers from:
lp:~ajkavanagh/charm-helpers/add-service-checks-lp1524388
Added call to services() and determined_ports() for the assess_status()
call.
2016-02-12 11:40:41 +00:00
James Page
8a8ad04021 Add support for designate 2016-02-11 13:18:06 +00:00
Adam Gandelman
b93a4fcf3a Add astara to services 2016-02-03 11:43:18 -08:00
Liam Young
9ec8113065 Fix designate endpoint type 2016-01-22 11:43:45 +00:00
David Ames
09e1405865 [tinwood,r=thedac] Fixes Bug#1526511 change pause/resume actions use (new) assess_status() 2016-01-19 08:54:03 -08:00
Liam Young
34248cf5b2 Add dnsaas 2016-01-19 08:56:29 +00:00
Alex Kavanagh
86c7018113 Change pause/resume actions use (new) assess_status()
Implemented new is_paused() and assess_status() functions, and changed
the pause and resume actions to use them. Changed existing and added new
tests to verify functionality.
2016-01-13 15:13:10 +00:00
Liam Young
e654d7c84a Remove debug prints 2016-01-12 15:50:54 +00:00
Liam Young
1c32c99fd1 Delete the old quantum catalog entry if a neutron entry is present 2016-01-12 11:09:46 +00:00
Edward Hope-Morley
5c579613bf [hopem,r=]
Ensure ssl certs always synced.
Partially-Closes-Bug: 1520339
2015-12-07 15:04:38 +01:00
James Page
442a9f35c9 Add tox support 2015-10-31 08:30:09 +09:00
Liam Young
2a96ee0e43 Make do_openstack_upgrade action managed upgrade safe 2015-10-19 12:22:10 +00:00
Liam Young
a4711763a0 Remove chance of config-changed running in an infinite loop due to re-exec 2015-10-19 08:16:38 +00:00
Liam Young
686464a8ba Rexec config-changed hook after upgrade to avoid issues with packages changing under the feet of the running hook 2015-10-16 08:41:46 +00:00
billy.olsen@canonical.com
44d402c570 [ionutbalutoiu,r=billy-olsen] Add ironic to the valid_service dictionary. 2015-10-06 12:19:34 -07:00
Liam Young
f11b489529 [thedac,r=gnuoy] Workload Status 2015-09-29 16:50:01 +01:00
Ionut Balutoiu
90c15d6eae Added Ironic to valid_services 2015-09-26 02:37:18 +03:00
David Ames
31caf460a5 use check_optional_relations 2015-09-25 16:01:35 -07:00
David Ames
13895315bf Workload status 2015-09-25 11:59:06 -07:00
Edward Hope-Morley
f498d966d2 [hopem,r=]
No more trusty-backports for haproxy >= Liberty

Closes-Bug: 1499435
2015-09-24 17:32:06 +01:00
James Page
1ca9cdc15a Add support for cloudkitty ratings service. 2015-09-23 15:03:57 +01:00
Gauvain Pocentek
cb731e65af Add support for the cloudkitty service
CloudKitty (Rating-as-a-Service for OpenStack) requires the creation of a
service in keystone to properly work. This patch registers cloukitty as a valid
service to enable the relation between those two charms.
2015-08-31 17:10:30 +02:00
Alberto Donato
b304023952 Address review comments. 2015-08-19 17:08:06 +03:00
Alberto Donato
e39ac30d87 Fix 2015-08-17 12:38:28 +03:00
Alberto Donato
7529000aac Fix some tests. 2015-08-14 19:10:45 +03:00
Alberto Donato
cf475c94b0 Inline API_PORTS. 2015-08-14 12:26:09 +03:00
Alberto Donato
005bffd44f Fix call. 2015-08-13 16:26:44 +03:00
Alberto Donato
d60601f717 Stop/start all services. 2015-08-13 13:35:30 +03:00
James Page
3c1c96df7e Add support for deployment from git. 2015-06-10 14:59:24 +01:00
Liam Young
4a97443a44 Resync le charm helpers 2015-06-04 09:44:39 +01:00
Corey Bryant
a29ba80b15 Add libyaml-dev as base git package 2015-05-12 19:49:40 +00:00
Corey Bryant
f24c091e49 Add comment to fix bin symlinks 2015-05-11 12:36:44 +00:00
Liam Young
94b7cce842 Merged trunk in + LE charmhelper sync 2015-05-11 08:38:06 +01:00
Corey Bryant
f4a152e9f3 Add libssl-dev to base git pkgs 2015-05-08 15:33:39 +00:00
Corey Bryant
ad501bcc9b Add libffi-dev to base git pkgs 2015-05-08 15:30:22 +00:00
Antoni Segura Puimedon
8194749e74 MidoNet valid_service addition
MidoNet needs its low-level API to have access to the admin token.
Thus, it needs to be considered a valid service. This patch adds it
to the list of valid services so that the identity-service relation
can be completed successfully and with the admin_token.
2015-05-08 13:43:00 +02:00
Corey Bryant
0fe51a6574 Add missing comma 2015-05-07 15:20:51 +00:00
Corey Bryant
f238fd57d2 Add missing params 2015-05-07 15:10:49 +00:00
Corey Bryant
2612b3aa0e Use git_pip_venv_dir to get venv path 2015-05-07 14:53:05 +00:00
Corey Bryant
d114b0d977 Add missing comma 2015-05-07 13:04:07 +00:00
Corey Bryant
835ab13775 Use function to get pip venv path 2015-05-07 12:48:14 +00:00
Corey Bryant
511744c4ca Update symlinks 2015-05-07 01:12:22 +00:00
Corey Bryant
c20287a4f8 Allow python-keystoneclient to be installed as keystone_utils imports from it. Charm uses base system python environment while deployed openstack services use virtualenv python environment. 2015-05-06 23:37:13 +00:00
Corey Bryant
79a7bb8f07 Install mysql client/interface packages 2015-05-06 21:11:46 +00:00
Corey Bryant
705bba9358 Symlink keystone binaries to /usr/local/bin/* for 'keystone keystone-manage db_sync' 2015-05-06 19:12:31 +00:00
Corey Bryant
ecefb064f0 Point upstart scripts at venv binaries 2015-05-05 19:21:02 +00:00
Corey Bryant
f6414e3a90 Drop added packages 2015-04-23 16:01:40 +00:00