Commit Graph

23 Commits

Author SHA1 Message Date
Feilong Wang d8df9d0c36 [fedora-atomic][k8s] Support default Keystone auth policy file
With the new config option `keystone_auth_default_policy`, cloud admin
can set a default keystone auth policy for k8s cluster when the
keystone auth is enabled. As a result, user can use their current
keystone user to access k8s cluster as long as they're assigned
correct roles, and they will get the pre-defined permissions
set by the cloud provider.

The default policy now is based on the v2 format recently introduced
in k8s-keystone-auth which is getting more useful now. For example,
in v1 it doesn't support a policy for user to access resources from
all namespaces but kube-system, but v2 can do that.

NOTE: Now we're using openstackmagnum dockerhub repo until CPO
team fixing their image release issue.

Task: 30069
Story: 1755770

Change-Id: I2425e957bd99edc92482b6f11ca0b1f91fe59ff6
2019-06-11 11:57:15 +12:00
Jim Bach 9a6698fb45 Add Octavia python client for Magnum
Adding the client enables the manipulation of Octavia
resources with Magnum such as during cluster deletion,
being able to clean up non-heat created resouces.

Change-Id: I976ab136e24b98d447d61028ce07d0f5dd9d255a
story: 2004259
task: 27795
2018-11-05 11:45:41 -08:00
Kirsten G b07b6f34d5 Add verify_ca configuration parameter
Added configuration parameter, verify_ca, to magnum.conf with default
value of True. This parameter is passed to the heat templates to
indicate whether the cluster nodes validate the Certificate Authority
when making requests to the OpenStack APIs (Keystone, Magnum, Heat).
This configuration parameter can be set to False to disable CA
validation.

Co-Authored-By: Vijendar Komalla <vijendar.komalla@rackspace.com>

Change-Id: Iab02cb1338b811dac0c147378dbd0e63c83f0413
Partial-Bug: #1663757
2017-11-21 10:25:32 -08:00
Tovin Seven 32d088b2c1 Integrate OSProfiler in Magnum
* Add osprofiler wsgi middleware. This middleware is used for 2 things:
  1) It checks that person who wants to trace is trusted and knows
     secret HMAC key.
  2) It starts tracing in case of proper trace headers
     and adds first wsgi trace point, with info about HTTP request

* Add initialization of osprofiler at start of service
  Currently that includes oslo.messaging notifer instance creation
  to send Ceilometer backend notifications.

* Traces HTTP/RPC/DB API calls

Demo: https://hieulq.github.io/cluster-create-false-new-html.html

Co-Authored-By: Hieu LE <hieulq@vn.fujitsu.com>
Implements: blueprint osprofiler-support-in-magnum
Change-Id: I7d68995aab81d365433950aada078ef1fcd5469b
2017-01-24 07:43:31 +07:00
Vijendar Komalla 73059c5c20 Resource Quota - Add config option to limit clusters
Adding config option to limit the max number of clusters
allowed per project. This limit is ignored if there is
an explicit hard limit set for a project in the 'quotas'
table.

Change-Id: I8a904de156c10c210e9e72999cdcbc28e374ea71
Partially-Implements: blueprint resource-quota
2017-01-23 11:00:02 -06:00
Hieu LE 08a48895c4 Centralize config option: docker_registry section
Centralize config option of docker_registry section.
Replace oslo_conf cfg to magnum.conf.

Change-Id: I43d3ce068bb6638f71ea14577f34c1df3d7c9d8c
Implements: blueprint centralize-config-magnum
2016-10-11 11:05:40 +07:00
Hieu LE 82c338ef11 Centralize config option: x509 section
Centralize config option of x509 section.
Replace oslo_conf cfg to magnum.conf.

Change-Id: I1b231d67d792eaa1714751c12798b205d0e2a5d0
Implements: blueprint centralize-config-magnum
2016-09-22 05:58:01 +00:00
Hieu LE 66430eaa98 Centralize config option: keystone_auth section
Centralize config option of keystone_auth section.
Replace oslo_conf cfg to magnum.conf.

Change-Id: I15eb976eb177b43a09743fcc116fdb05b985f69a
Implements: blueprint centralize-config-magnum
2016-09-22 05:57:53 +00:00
Hieu LE 5abcdadb51 Centralize config option: trust section
Centralize config option of trust section.
Replace oslo_conf cfg to magnum.conf.

Change-Id: Ie8e50f62bf41ccc1708b16745e5aaf841379b66b
Implements: blueprint centralize-config-magnum
2016-09-22 05:57:46 +00:00
Hieu LE 19d80981a7 Centralize config option: certificates section
Centralize config option of certificates section.
Replace oslo_conf cfg to magnum.conf.

Change-Id: I3433b1a6d5c07c10b28b657dda186a658df5c5c4
Implements: blueprint centralize-config-magnum
2016-09-22 05:57:39 +00:00
Hieu LE 6d6cfb87b6 Centralize config option: docker section
Centralize config option of docker section.
Replace oslo_conf cfg to magnum.conf.

Change-Id: Ic8b2b2f0f9bfc6b02d75f57fab00c548b9d8f482
Implements: blueprint centralize-config-magnum
2016-09-22 05:57:31 +00:00
Hieu LE df6b42b168 Centralize config option: service section
Centralize config option of service section.
Replace oslo_conf cfg to magnum.conf.

Change-Id: I1d6f4ffb599e2dd3614bb7533d4d50b67c0a1d24
Implements: blueprint centralize-config-magnum
2016-09-22 05:57:24 +00:00
Hieu LE 1a97476593 Centralize config option: rpc periodic section
Centralize config option of rpc periodic section.
Replace oslo_conf cfg to magnum.conf.

Change-Id: Ic499369d16e7be79449a0e8ed5416b0ab92abc07
Implements: blueprint centralize-config-magnum
2016-09-22 05:57:17 +00:00
Hieu LE cc839e86af Centralize config option: utils section
Centralize config option of utils section.
Replace oslo_conf cfg to magnum.conf.

Change-Id: I0014d8dfaf81d845bc92e145ffff9fecaed7240d
Implements: blueprint centralize-config-magnum
2016-09-22 05:57:09 +00:00
Hieu LE d86b5735cd Centralize config option: database section
Centralize config option of database section.
Replace oslo_conf cfg to magnum.conf.

Change-Id: Id12bbf3ad8d3342450cd64cf23761a60d49ee46a
Implements: blueprint centralize-config-magnum
2016-09-22 05:57:01 +00:00
Hieu LE e4627ab6dd Centralize config option: paths section
Centralize config option of Paths section.
Replace oslo_conf cfg to magnum.conf.
Modify test_conf test case for covering DEFAULT section

Change-Id: I45775016cdfd7e762c9faa5aa18fc020a07c8134
Implements: blueprint centralize-config-magnum
2016-09-22 05:56:53 +00:00
Hieu LE 8f9eeb801a Centralize config option: cluster_heat section
Centralize config option of Cluster Heat section.
Replace oslo_conf cfg to magnum.conf.

Change-Id: I9118eeb17061a0aa26269ea9deaba28e79f28b76
Implements: blueprint centralize-config-magnum
2016-09-22 05:56:43 +00:00
Hieu LE e891d0a20b Centralize config option: cluster_template section
Centralize config option of Cluster Template section.
Replace oslo_conf cfg to magnum.conf.

Change-Id: Ia120c8cb43c71977f69ac520cbd76563f4a8b655
Implements: blueprint centralize-config-magnum
2016-09-22 12:44:18 +07:00
Hieu LE 4f8b26f822 Centralize config option: conductor section
Centralize config option of Conductor section.
Replace oslo_conf cfg to magnum.conf.

Change-Id: I7deea1cba16495af2081bbb12444da7e62bdf235
Implements: blueprint centralize-config-magnum
2016-09-22 01:00:16 +00:00
Hieu LE 494cb2198c Centralize config option: cluster section
Centralize config option of Cluster section.
Replace oslo_conf cfg to magnum.conf.

Change-Id: I2f7e796c08b4b2a97e4644cb6aa9dc7a4a4e692d
Implements: blueprint centralize-config-magnum
2016-09-22 01:00:03 +00:00
Hieu LE 44cca296f9 Centralize config option: all clients section
Centralize config option of Barbican, Heat, Cinder, Nova,
Neutron, Magnum, Glance client section.
Replace oslo_conf cfg to magnum.conf and fix bug generate
full sample config options of above clients.

Change-Id: I8279e6bd5d397e98953a72e83b379dfc7c6228a3
Implements: blueprint centralize-config-magnum
Closes-Bug: #1613962
2016-09-22 00:59:44 +00:00
Hieu LE cfe5b4ed5c Centralize config option: api section
Centralize config option of API section.
Replace oslo_conf cfg to magnum.conf.

Change-Id: I0589014ab8eb70f0f6551bb23808d3b9edc580c1
Implements: blueprint centralize-config-magnum
2016-09-22 00:59:34 +00:00
Hieu LE 1ab3eabd4f Init magnum centralize config
Initialize magnum centralize config folder and test cases.

Change-Id: Ib68e54701e127546fbaa91e3633f50d149a5b878
Implements: blueprint centralize-config-magnum
2016-09-20 10:12:33 +07:00