98 Commits

Author SHA1 Message Date
Zuul
48e5e0e0b1 Merge "Deprecate pki related options" 2018-11-27 18:17:20 +00:00
Tobias Urdin
72c606f71c Convert to rspec-puppet-facts
Change-Id: I1091b94d0c4b3d10cdd33793f3ce51b57080b0b1
2018-11-24 14:42:12 +01:00
ZhongShengping
9d98a5968f Deprecate pki related options
check_revocations_for_cached and hash_algorithms are deprecated for
removel because of PKI token format is no longer supported.
Update warning message and add a release note.

Change-Id: I019a4738d1b3a386e81c04511d5a9bb629283d7d
Closes-Bug: #1804562
Closes-Bug: #1804720
2018-11-23 10:23:00 +08:00
Tobias Urdin
8663888d38 Test Magnum API with WSGI
Changes the acceptance testing to run the
Magnum API under WSGI with Apache.

Change-Id: I09826f6fbc68dc55f9274d7ad1ba54f069d42143
2018-09-19 12:09:12 +00:00
Tobias Urdin
e16f87c6ac Add Magnum API WSGI support
Adds support for running the Magnum API under WSGI with Apache.

Change-Id: I6c564992218a0802981eece5bff8b2a4a7a85f7c
2018-09-19 14:08:53 +02:00
Tobias Urdin
d59bd32b1d Add workers to magnum api and conductor
This patch adds two new parameters that can
be used to specify the number of workers for
the api and conductor services.

Change-Id: I71dcfba1f162b395c3d9e68513dfcf9a099800df
2018-08-22 19:11:02 +02:00
Zuul
eb2d9c27da Merge "add keystone_authtoken to conductor" 2018-07-31 03:38:50 +00:00
Zuul
3b57ab23a5 Merge "modulesync: sync and add nodepool-bionic for beaker" 2018-07-19 06:21:53 +00:00
Tobias Urdin
6fcc3e3b39 modulesync: sync and add nodepool-bionic for beaker
Change-Id: I5e993f20fd0851c43b97ea7946a5c562023b6348
2018-07-18 16:18:35 +02:00
Tobias Urdin
c8fb3d1b5c Add sqlite to validate_re
When doing spec tests on your custom modules
you want to have as little dependencies as
possible so specifying sqlite is the simplest.

If you specify mysql or postgresql you'll need
your custom testing grabing the upstream puppetlabs-mysql
or puppetlabs-postgresql modules which just adds unnecessary
deps instead of a few bytes in a validate_re function.

Change-Id: If25e8c0161bdd487f11460884883f42ea13074b3
2018-07-17 13:35:41 +02:00
Jake Yip
fbd5517abd add keystone_authtoken to conductor
magnum-conductor's keystone client appears to still require access to
keystone_authtoken auth_uri [1]

[1] https://github.com/openstack/magnum/blob/stable/queens/magnum/common/keystone.py#L47

Change-Id: Ic96b59db6c7b505afaa31f7d6b74ec621a2ba686
2018-07-12 16:22:24 +10:00
Jake Yip
86e943c3ca add oslo_messaging_rabbit/amqp_durable_queues option
Change-Id: Ib541a3db459cb1725996acffdbe07dc452376060
2018-07-12 16:18:22 +10:00
Tobias Urdin
c1a475e0c9 Add more rabbitmq options
Adds the rabbit_ha_queues, rabbit_heartbeat_timeout_threshold
and rabbit_heartbeat_rate parameters that is used to configure
oslo messaging.

Change-Id: Iaf5679283e56f112b15d8440f57d708b525bb024
2018-07-05 12:03:47 +02:00
Zuul
aadbae78fa Merge "Remove deprecated rabbit params" 2018-05-28 12:59:50 +00:00
Zuul
85c92f9aa3 Merge "Replace port 35357 with 5000" 2018-05-28 03:46:53 +00:00
ZhongShengping
2b14e1f379 Remove deprecated rabbit params
Remove the deprecated rabbit params which has been deprecated for
two years. The default_transport_url has been present for a while
now and should be used.

Change-Id: Iba521efa97f9cfd3510c77f93cd627551e442c53
2018-05-24 10:50:40 +08:00
ZhongShengping
d87868123b Fix the default parameter value in spec test
The default parameter value is 'SERVICE DEFAULT', not 'SERVICE_DEFAULT'.

Change-Id: I2e58ea9d64cc5d45750560f92812540ed5e7d213
Closes-Bug: #1690973
2018-05-15 15:17:11 +02:00
qiaomin
fa57613789 Replace port 35357 with 5000
Now that the v2.0 API has been removed, we don't have a reason to
include deployment instructions for two separate applications on
different ports.

Change-Id: I168b731b37a714500a5600d0f5f95e229efa25fd
2018-05-13 00:37:38 +08:00
zhubingbing
f9b76d3daf Missing deps for unit test of config.pp
Change-Id: Idb6a121351506ef832aadf5e1010909e7e5703ce
2018-04-19 13:49:00 +08:00
Zuul
09e5ab90e0 Merge "Debian is using python3-magnumclient" 2018-04-13 03:25:47 +00:00
zhubingbing
4c18149d86 Debian is using python3-magnumclient
Change-Id: I2467cb502ca3f1776ab10beeb9547fa7d27fcea7
2018-04-12 14:03:06 +08:00
ZhongShengping
7109757361 Deprecate auth_uri option
Option auth_uri from group keystone_authtoken is deprecated[1].
Use option www_authenticate_uri from group keystone_authtoken.

[1]https://review.openstack.org/#/c/508522/

Change-Id: I68733b2be276fb6c3313fc116dfbaf18cf746ac2
Depends-On: I4c82a63baabd6b9304b302c97cd751a0103d8316
Closes-Bug: #1759098
2018-04-03 16:55:02 +08:00
ZhongShengping
231940f0f4 Add pool_timeout option
Add pool_timeout option to configure this value for pool_timeout with
SQLAlchemy.

Change-Id: I256a68a971671f1b6076e5fadffbb816fb3553cd
Closes-Bug: #1757581
2018-03-22 11:09:50 +08:00
Zuul
f1be075256 Merge "Add 'openstack-db' tag to db-sync Exec resource" 2018-03-13 13:41:25 +00:00
ZhongShengping
f9dd363bc2 Add 'openstack-db' tag to db-sync Exec resource
In order to make easy orchestration on all OpenStack db-sync, add this
tag so people can use this tag in composition layer.
A use case it to set some orchestration to make sure MySQL Galera is
ready before running any Exec with this tag.

Change-Id: I632ec1cfcbe6085e27fa215d5d2efdeb625b736a
Closes-Bug: #1755102
2018-03-12 16:33:08 +08:00
ZhongShengping
785ab85b29 Fix mysql connection
URL mysql://scott:***@some_host/some_db does not contain a '+drivername'
portion, and will make use of a default driver. A full dbname+drivername://
protocol is recommended. For MySQL, it is strongly recommended that
mysql+pymysql:// be specified for maximum service compatibility.

Change-Id: Ic51da9a9d0c6380eeb4da85d192a5a19ebf96c79
Closes-Bug: #1753342
2018-03-05 08:57:21 +08:00
ZhongShengping
a2233bdb21 Add kombu_failover_strategy option
Adds the kombu_failover_strategy option for configuring
oslo.messaging.rabbit. This will determines how the next RabbitMQ node
is chosen in case the one we are currently connected to becomes
unavailable.

Change-Id: Icee91fe364967a443606d0287f58d06abc31f9fd
Closes-Bug: #1748353
2018-02-09 14:43:14 +08:00
ZhongShengping
ed246a7814 Add use_journal option for logging configuration
This enables oslo.log to pass logging records to journald.

Change-Id: Id372d8383c7d18cc2b653bc831b2d4adeb9b97f3
2018-01-15 15:53:12 +08:00
Emilien Macchi
dabc9d9d1f Add group to policy management
The move of policy.json into code means the file may not exist. We've
added support to ensure that the file exists in the openstacklib but we
need to make sure the permissions are right for each service. This adds
the group information to the policies so it works right.

Depends-On: I26e8b1384f4f69712da9d06a4c565dfd1f17c9ed
Change-Id: Ic5f73993ea4d71fc186272c624a906fcae2dcfa8
Co-Authored-By: Alex Schultz <aschultz@redhat.com>
2018-01-10 14:23:13 -08:00
Xingchao Yu
73210b5516 Refactor class magnum::clients
To make a better support of OpenStack clients' configuration in Magnum,
this patch splits the original magnum::clients into services
related classes and make it compatible with the old version.

Change-Id: I2eb25717fd07833264f1e3b9919b59f917312427
2018-01-09 15:01:37 +13:00
Emilien Macchi
2a53409b58 Fix up unit tests
Change-Id: Iedbcab4e1b186bcc6ee2839ef9bb38656bf70ee1
2017-12-26 17:38:03 -08:00
Xingchao Yu
ffd62b6b1b Add trustee related parameters in magnum::keystone::domain
This patch adds domain_id, domain_admin_id, domain_admin_domain_name,
domain_admin_domain_id, roles, keystone_interface parameters in magnum::keystone::domain
to manage related options in [trust] section.

Change-Id: I5339d87a60950c054cacc459063165254d1508c7
2017-12-05 10:33:35 +13:00
ZhongShengping
05276d9758 Expose use_json logging option
It enables JSON-formatted logging from oslo.log.

Change-Id: I0a01c3b3cd8159a164d45ecddf52d028bbcef1c3
2017-11-28 09:30:28 +08:00
Xingchao Yu
f093af69a9 Update group name of cert related options
The group name of cert related options have been changed from
keystone_authtoken to keystone_auth since Ocata[1].

This patch is aim to update them to avoid deprecated warning from oslo.config

[1] https://github.com/openstack/magnum/blob/master/magnum/conf/keystone.py#L19

Change-Id: Ic86eda5ca936e84da9a813aee8b6ceaa1c90eff7
2017-11-03 12:29:34 +13:00
ZhongShengping
3bd8a92173 Configure *_domain_name to Default by default
Keystone v2.0 API was removed so we have no choice but configuring
user_domain_name and project_domain_name otherwise it fallbacks to
Keystone v2.0 and it fails. This patch sets the default value so we make
sure Keystone v3 will be used out of the box for our users.

Change-Id: I8df96dd9faf520fe0af21edb2cfa626b17d65727
2017-10-13 14:35:06 +08:00
ZhongShengping
4fb1dec3df Deprecate revocation_cache_time option
The revocation_cache_time is deprecated for removel because of PKI
token format is no longer supported.
Update warning message and add a release note.

Change-Id: I6edd1bbad778c2a9b44be9bcfc65c978b5e35132
Closes-Bug: #1717144
2017-09-14 11:38:55 +08:00
Jenkins
3081f9d6f4 Merge "Fix magnum cluster TLS cert generation" 2017-09-06 07:24:24 +00:00
Jenkins
e3557d80f2 Merge "Revert "Use UCA newton-proposed packages"" 2017-09-06 06:32:09 +00:00
b7071d406c Fix magnum cluster TLS cert generation
Magnum cluster's cert creation requires admin_user, admin_password
and admin_tenant_name to be set in [keystone_authtoken] section.

Change-Id: Ice8e6537ac6796df032c4c4cf2a194d2214430fd
Closes-Bug: #1670355
2017-09-05 13:09:49 +00:00
Mohammed Naser
cc7461f999 Revert "Use UCA newton-proposed packages"
This reverts commit c082497af496c65ada2114331755771d0a32aba5.

Change-Id: I157bc9803b70f6bf31eb057939e4fead849ba2ef
2017-09-05 13:04:48 +00:00
Jenkins
8e6d4abde2 Merge "Allow setting of the DB sync command path" 2017-08-08 11:49:05 +00:00
ZhongShengping
008810dfbd Deprecate oslo.messaging rpc_backend option parameter
Oslo.messaging uses the transport_url to represent the rpc and
notification messaging driver to use and its full configuration. The
rpc_backend configuration option is deprecated for removal and
should not gate oslo.messaging driver configuration options.

This patch:
* deprecate rpc_backend
* remove conditional check
* update spec tests
* add release note

Change-Id: I5bac059b9c06b691a140a6c7c28c766ec66c1bd9
Closes-Bug: #1708976
2017-08-07 14:28:54 +08:00
Risto Laurikainen
f739aa363b Allow setting of the DB sync command path
The magnum-db-manage command is not necessarily located under /usr/bin
if Magnum is installed in e.g. a virtualenv. In cases like this, it is
useful to let the module user specify a different path, such as the bin
directory of a virtualenv.

Change-Id: I0687683558a4a9ed445642b36b2ce7b7075e49f7
2017-08-03 11:52:23 +03:00
Mohammed Naser
0f8b9f024e
Allow cluster user trusts to be configured
By default, cluster user trusts are disabled however they are
needed if you want to have fully automated LBaaS integration.

This patch allows a user to enable or disable that option easily,
leaving it to the service default by default for security.

Change-Id: If6828e344855a06a650ec4c3fffbf89c5177eca8
2017-07-28 13:22:07 -04:00
ZhongShengping
358a9d4388 oslo policy: check puppet resource instead of actual config in spec
Change-Id: I9d3f0c133ea76acb3ff4fdec179f4100bf68cb32
2017-05-23 15:13:43 +08:00
ZhongShengping
b837085115 Set debug to true
In order to better view log error messages, set log debug to true.

Change-Id: Id1ae27ae798acdcdfd300ed7b7233c3c0d1568be
2017-05-05 15:23:49 +08:00
ZhongShengping
3a3c9102a3 oslo db: check puppet resource instead of actual config in spec
Change-Id: Iea6c3e4abd5eac70a223ae7d19869bebf6708446
2017-04-10 19:34:51 +08:00
Jenkins
a2d5c6781c Merge "Fix typo" 2017-03-15 17:14:34 +00:00
ZhongShengping
9381a2280d Fix ci
The review[0] is merged, we should update other releated
puppet modules in order to fix ci.

[0]https://review.openstack.org/#/c/444248/

Change-Id: Ia1cdec50e62ad738742ecbe3ba3c50382d351fc4
Closes-Bug: #1672362
2017-03-13 21:15:12 +08:00
ZhongShengping
6cb4e1bf13 Fix typo
Change-Id: Ia963ef318ceab7c8760a6da2334b13b0e9130e2b
2017-03-13 20:17:52 +08:00