33 Commits

Author SHA1 Message Date
Pete Birley
198ce69e71 Keystone: Member role fixes
This PS makes the initial Keystone Admin and Service account users
members of the projects that they are in.

Change-Id: I2de081a216b7e7b99d301ab605c84d882cdb5840
2017-06-24 16:28:56 +00:00
Pete Birley
a7503a7d3f Kubernetes Entrypoint: Lookup service names for dependency checks
The existing entrypoint logic used static names to reolve dependencies.
This prevented the service names, and thus the hostnames of services
being altered. This PS resolves that issue by looking up the service name
from the endpoints specified in the values for a chart.

Partial-Implements: blueprint enhance-entrypoint-dependency-checking
External-Tracking-Id: OSH-21
Change-Id: Ib49490f332f8cd88e98c50d9335dfd314a170936
2017-06-20 08:51:36 -05:00
Jenkins
d73f81c9fa Merge "Move init containers from annotation to official object" 2017-06-09 22:09:54 +00:00
Steve Wilkerson
161170bf96 Move init containers from annotation to official object
With 1.6, init containers are officially part of the kubernetes
API.  This changes the format of the helm template for the
entrypoint container from json to yaml, and updates the
charts accordingly.

Co-Authored-By: Pete Birley <pete@port.direct>

Change-Id: I569566ce4b031d107af2d38483040a26210bec45
2017-06-09 16:31:53 -05:00
Chris Wedgwood
192f02d100 [Ceph] Update default cluster network
The current default network for ceph works for very few people by
default.  Update it to match what most people seem to be using.

Change-Id: Icd5f87189b067865721203065e8caf33772d56ba
2017-06-09 20:29:01 +00:00
Pete Birley
afc2243f85 Fix the to_ini function name
The to_ini fucntion was missed in the refactor of function names
this ps fixes that.

Change-Id: I2726aada96bdef451284ee993517fcb6908408ec
2017-06-07 16:03:29 -05:00
Pete Birley
97f781d6c3 Helm Test: Framework & Keystone
This PS introduces 'helm test' functionaility to keystone and
provides the basic framwork for charts to use.

Change-Id: Ie84a6ca0ed007fb55e10d503d1c3e49788908eec
Partial-Implements: blueprint implement-helm-test-for-charts
2017-06-06 16:52:34 -05:00
Jenkins
4cc1621d5f Merge "Remove executable flag from Chart.yaml" 2017-06-06 19:44:01 +00:00
Tin Lam
5fcb0e3d10 Remove executable flag from Chart.yaml
TrivialFix: Some Chart.yaml's have permission 755; this patchset changes
that to 644 and be consistent with other yaml files.

Change-Id: I6453f91f0cd22330259bf24be9d4c331f2769ec2
2017-06-06 11:43:25 -05:00
Jenkins
8bf8282f6d Merge "Configuration Management Overrides for Cinder" 2017-06-05 14:31:45 +00:00
Michał Dulko
f0b92663d5 Configuration Management Overrides for Cinder
This commit is based on how Nova got its configuration overrides
implemented.

An important thing here is support for setting multiple Cinder backends
(e.g. Ceph cluster + NFS) in the values.yaml. This was required as Cinder
accepts backend configurations only in [<backend_id>] sections in the
cinder.conf.

Please note that autogeneration of ceph.conf and
ceph.client.<rbd_user>.keyring works only for a backend named "rbd1".
In case you want to add another RBD backend, you need to mount those
files by yourself. Commit ehancing this is planned to follow shortly.

Change-Id: Ifb58a85300bbfbb9e63d6b3bfc2ad19a99d2c9d4
2017-06-05 12:41:38 +02:00
Pete Birley
c0b830fb60 Helm-Toolkit: remove unused values generation script.
This PS removes a vestigial script from early development of
openstack-helm.

Change-Id: I7b28df28f2ff87c31d3f30999b6a1baf20be8270
2017-06-02 19:19:35 -05:00
Jenkins
1ca77db357 Merge "Update remaining markdown docs to RST" 2017-06-01 21:32:41 +00:00
Pete Birley
8c29949c0d Helm-Toolkit: Update naming to be explict and remove old functions.
This PS updates the way helm-toolkit functions are named to
reference the full path they are loacted at. This should make
development and debugging easier. Addtionally unused functions
have been pruned as well.

Change-Id: I03c553f1d01bccc70c86768b416b147c90d9b2f0
2017-05-31 19:52:02 +00:00
Michał Dulko
cc243499ec Update remaining markdown docs to RST
There were few remaining README.md files. This commit converts them to
RST.

Change-Id: Ia0be0012fff33b9be5c9db3febc1e45a076701ec
2017-05-22 10:56:51 +02:00
Gage Hugo
dc1ae977a5 Remove all trailing whitespaces
This change removes any trailing whitespaces found while
running:

find . -type f -exec egrep -l " +$" {} \;

Change-Id: Ic1dc8765a0971a32da4c3116871e9450a55b357f
2017-05-19 18:07:06 -05:00
Michał Dulko
8185104a5c Use Helm's `base` function to get folder name
Turns out Helm implements go template function ``base`` that will return
last component of a path. Instead of doing that manually in _funcs.tpl,
we can leverage the builtin. This commit replaces that.

Change-Id: I1b0c90e82790de405730b61ee85654a8810d6907
2017-05-17 07:54:04 +00:00
Alan Meadows
16508c32ee Nova Configuration Override (#319)
* Initial Commit of Nova Configuration Overrides

This commit is an evolution of the initial keystone configuration
overrides work

It expands upon that work by introducing many of the same concepts
into nova.  It differs in that a few concepts were changed.  Namely
the helm-toolkit/_oslo.tpl concept was abandoned, as there are too
many unique oslo paths for configuration elements, so dynamic oslo
setting mechanism was moved locally into configmap-etc.yaml, where
it is generally used.

Secondly, in nova the mount override effort was altered to instead
provide mount "append" capability.  Keeping the manifest mounts
closer to the actual pod, and keeping values.yaml a tad smaller.
This still allows the original flexibility of operators adding
mounts, but they cannot "undo" any of the charts built in mounts.

There were several manual tweaks that needd to be done to _nova.conf.tpl
after the oslo-config-gen process this time.  This is because there is a
bug in the newton version of generating this file. It does not include
the proper service authentication credentials in the [keystone_authtoken]
section.  Future releases have a separate service credentials section
so future config generations will likely not need these added lines.

* Remove unused values.yaml parameters

Fix references to removed helm-toolkit oslo macro

* resolve nova feedback

* bugfix nova-etc/nova-bin swap
2017-04-10 14:41:41 -05:00
Pete Birley
549bfea927 Update DB Init script to include tracebacks and improved output 2017-04-04 11:33:42 -05:00
Pete Birley
deabf4389f Remove Personal Copywrite from DB Script
I am removing my copywrite and transfering it to the OpenStack-Helm Authors
for the DB Managment Script. As although this was primarily written while an
independant OSS Developer, it is not currently present in any other codebase
and will only be merged post commencing work on the project in an official
capacity. This does not affect the copywrite of any other code contibuted to
the project by myself or any other party.
2017-04-04 11:33:42 -05:00
Pete Birley
f88c401e9e Add Python DB Init Script 2017-04-04 11:33:42 -05:00
Alan Meadows
5452325887 bugfix dependency macro json quoting 2017-03-22 12:33:01 -07:00
Alan Meadows
b28ef72c17 Merge branch 'master' into keystone_config 2017-03-22 12:21:37 -07:00
Alan Meadows
4153e6429e move all containers into their own mount namespace; fix typos in new configmap logic 2017-03-22 12:13:39 -07:00
Brandon B. Jozsa
abbe14aa09 Merge pull request #280 from larryrensing/bug/fix-memcached-hosts
bugfix: corrected memcached host
2017-03-19 20:35:42 -04:00
Larry Rensing
de7d71558e corrected memcached host 2017-03-17 15:48:19 -05:00
Alan Meadows
236be51343 Configuration Management Overrides for Keystone
This commit introduces several new paradigms:

* .Values driven mounts in service containers as well as jobs.
These can be overriden at runtime by manipulating .Values.mounts.*

* Authenticated Endpoint Resolution methods in helm-toolkit
to allow the database and rabbit type endpoints to be moved
under the endpoints section.  Now endpoint lookup functions exist
for openstack endpoints as well as infrastructure elements such as
the database, rabbitmq, and memcache.

* Importing of upstream "out of the box" policy.json
and keystone-paste.ini files for better or worse.

* A rendering of the keystone.conf oslo generated config
using a new helm based Values generator. This provides "known"
paths to all configuration elements in the form of
"<section>.<oslo_namespace>.<element>" so that any of these can
be targeted for override via --set or values.yaml files loaded at
run time.

* Support for appending arbitrary string data to the policy.json,
keystone-paste.ini, or keystone.conf files via --set conf.keystone.append="#
some comment", or --set conf.policy.append="\"identity:list_projects\":
\"role:fake\""

* Support for complete verbatim overrides of these three
files via --set conf.keystone.override="full file contents",
or --set conf.policy.override="full file contents" for example
2017-03-09 12:06:06 -08:00
Pete Birley
80e2aa8f14 Cleanup for Keystone Endpoint Lookup refactor 2017-03-07 02:11:54 +00:00
Pete Birley
fe7a1cf62d Rename Keystone Endpoint type functions 2017-03-02 02:11:59 +00:00
Pete Birley
503ed6cdb8 Add Revised Keystone Endpoint Lookup Functions into Helm-Toolkit
This commit adds the revised helm lookup functions from cinder to
Helm-Toolkit.
2017-03-02 00:38:09 +00:00
Larry Rensing
9bc0183ba0 point MaaS to postgresql instance within cluster (#199)
* Initial postgresql chart

* maas/postgres wip

* updated readme for postgresql

* Edit service dependency
2017-02-23 20:01:48 -05:00
Brandon B. Jozsa
df78d03592 add license headers to helm-toolkit (#217) 2017-02-20 07:06:34 -08:00
Pete Birley
116931bb51 Rename common chart, and update all references to functions within it. (#167)
* Rename common chart to helm-toolkit

* Update useage of helpers to include reference to chart they come from.

* Update helm-toolkit function naming

Also catches several functions missed in previous PS

* Update remaining requirements.yaml to use helm-toolbox

* Dep Check container fix for common -> helm-toolbox renaming
2017-02-14 16:52:38 -08:00