63 Commits

Author SHA1 Message Date
ZhongShengping
afbc7455bb Remove deprecated keystone authtoken revocation_cache_time option
Change-Id: I6e864bc01bcdd61172906d42e37661f5e3dfc66f
2018-03-27 10:33:24 +08:00
ZhongShengping
d2891b9670 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: I468f796bc344f91510e977dd07cfd563174c66dd
Closes-Bug: #1755102
2018-03-12 16:33:11 +08:00
ZhongShengping
55d6e99e93 Add use_journal option for logging configuration
This enables oslo.log to pass logging records to journald.

Change-Id: I37a497fd795eba5b7fb350a044bdb31e46a90ae6
2018-01-15 17:40:19 +08:00
Alex Schultz
bdd660ccdb 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
Related-Bug: #1742154
Change-Id: I10b322d05042fdef23758d46906cf57aa9def97f
2018-01-12 05:12:01 +00:00
Juan Antonio Osorio Robles
67e70cab9b Expose use_json logging option
It enables JSON-formatted logging from oslo.log.

Change-Id: I0476f2af30761b571c342f8a7aa901ce87754611
2017-11-27 14:28:22 +02:00
Zuul
acfbee116c Merge "add parameter to overwrite/add wsgi process options" 2017-11-10 05:31:03 +00:00
Martin André
f68f5e9217 Fix typo in config options
Some drivers:transport:websocket options had dashes instead of
underscore which caused zaqar to ignore them.

Change-Id: I0a0d0ddf5704415745868d39d763df0e43a21a61
Co-Authored-By: Thomas Hervé <therve@redhat.com>
Related-Bug: #1727406
Closes-Bug: #1730179
2017-11-06 10:01:10 +01:00
ZhongShengping
a3a99c2b9c add parameter to overwrite/add wsgi process options
Add parameter to apache_wsgi to allow overwrite
and/or add additional wsgi process options.

This possibility was added to openstacklib
with Change-Id: I41914ce3361988d5db1695f09d21209772fdf548
lease enter the commit message for your changes. Lines starting

Change-Id: Ibb04420a730bb0fdccc30fe6e81d4b0f5fc6ebc2
2017-10-23 14:16:14 +08:00
Juan Antonio Osorio Robles
7da4e498d4 apache wsgi: Exchange defaults for workers and threads
Due to Python's GIL [1], we can't use multiple threads for running
OpenStack services without a performance penalty, since the execution
ends up serialized, which defeats the purpose.

Instead, we should use several processes, since this approach doesn't
have this limitation.

[1] https://wiki.python.org/moin/GlobalInterpreterLock

Change-Id: I18c1e796e43a168042900b8202ad3ce8488d3908
2017-10-13 09:59:22 +03:00
Jenkins
02051879b1 Merge "Allow setting log files for apache vhost" 2017-10-10 07:29:03 +00:00
Juan Antonio Osorio Robles
37f5779e1c Allow setting log files for apache vhost
This allows the setting of the error and access file logs, as well as
the access log format. This was done in a similar fashion as one can
configure these ones in the keystone wsgi manifest.

Change-Id: I4d82b2d15ae597b8cd2018b6d5c58e9959971daf
2017-10-09 15:54:34 +00:00
5691df168e Set *_domain_name vars to 'Default' by default
Keystone v2 api's are removed in [1], so it's required
to set user_domain_name and project_domain_name otherwise
all requests fallbacks to keystone v2.0 and fails.

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

Change-Id: Id3737874408887900e1d8b6b87758f64469892b0
2017-10-06 11:30:53 +05:30
ZhongShengping
200fe99e63 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: Ib7caf25e92ebc2dc11ddc3b952da2f2c9ff616cb
Closes-Bug: #1717144
2017-09-14 12:26:58 +08:00
Thomas Herve
a868904ac0 Add support for redis message store
This adds new class to setup redis as the messaging backend.

Change-Id: I0ef259f2dfcc661a30b5a55c23eac3eb1240f462
2017-08-30 21:41:32 +02:00
Jenkins
4ba2b78526 Merge "Add zaqar client install support" 2017-08-05 07:37:54 +00:00
Thomas Herve
9dd0d769ca Include logging by default
For the logging settings to work by default, we need to include the
module in init.

Change-Id: Iac2510028ec3499d2b21645b83cbb0e322ec4e2b
2017-08-03 14:39:26 +02:00
ZhongShengping
a1de9e3357 Add zaqar client install support
Change-Id: I8719facdbbc397c45cec7934ba275f3de8589093
2017-08-03 09:37:40 +08:00
Thomas Herve
9b0dd8fed5 Allow configuration of trust notifier
To be able to use the trust notifier, we need to fill the trustee
section in the configuration.

Change-Id: Ibba7af4983303f3b85aa399f77391ba6bc984e8d
2017-07-19 14:25:26 +02:00
Thomas Herve
610d9bc987 Expose websocket notification settings
This exposes new settings for the websocket service.

Change-Id: I75d5708bec88d9834f2cb4cbad414233854520ad
2017-07-12 14:56:44 +02:00
ZhongShengping
673da3b664 Remove deprecated keystone authtoken signing_dir option
Change-Id: I7127fa24716b12f44e77f76dda83952a4b73efc2
2017-07-07 10:01:29 +08:00
Emilien Macchi
03ec6b4711 include policy class in api.pp
Like we do in other modules, include zaqar::policy class in
zaqar::server so users can define policies without taking care of the
class.

Change-Id: I9f549f11bd4e939ad41ff77c51dd2f32338621c8
2017-06-15 14:14:28 -04:00
Jenkins
33ee86a64d Merge "Add oslo::db to dependency chain" 2017-04-27 01:16:25 +00:00
Jenkins
404f469173 Merge "Add the setting log level" 2017-04-19 10:04:53 +00:00
ZhongShengping
19462cb3ee Add the setting log level
Increase the setting log level in the synchronization database.

Change-Id: Ia2fc51601ed54837c2b5e7da34e9ea12f1d0bf62
Closes-Bug: #1683567
2017-04-18 11:42:25 +08:00
Thomas Herve
ec305d3b3c Add logging options
This adds various logging options to the services, and it particular
sets log_dir by default.

Change-Id: Icd0936777e7dfea2dd4a1d1e3f7d6abb11e3e7ae
2017-04-13 09:56:28 +02:00
Thomas Herve
d1e35d4e6b Fix db-sync
This fixes the command used to sync zaqar database.

Change-Id: I9e57885796a6ba2efe8d7a16528d582163ae896a
2017-03-07 22:14:59 +01:00
Thomas Herve
c7354c9934 Allow configuration of Zaqar keystone roles
To be able to use the swift backend, we may need to configure Zaqar to
have the proper role to access Swift. This exposes the roles parameter
to allow that.

Change-Id: I9ce1bbc18d02383a5cdd3edbcf8c65c90165fb53
2017-03-02 11:52:22 +01:00
Thomas Herve
4a5a1fd46d Allow deployment of Zaqar WSGI with Apache
Change-Id: If91894176abdfae2820c2e13723c87f5ef8fb153
2017-02-22 13:13:12 -05:00
Thomas Herve
889be10904 Add support for the swift backend
This adds support for running swift as the messaging backend of Zaqar,
and SQLAlchemy as the management backend.

Change-Id: I448d303d01e33a0d89625d7ff442b652838d9c36
2017-02-14 14:18:10 +01:00
DeepaJon
c08abdc641 Add oslo::db to dependency chain
All db settings should be applied and all releated packages should
be installed before dbsync starts.

Change-Id: If5d4076315df5d4d5c9672a8265c126bf4d06ab8
2017-01-27 12:09:17 +00:00
Matthew J. Black
aaaa38c198 Allow python-memcache install from authtoken class
The python-memcache package is required if using memcached. By
default the package is not installed and the define has it set to
false. This change allows managing the python-memcache package
install from the authtoken class.

Change-Id: Id0d980618cd3816172e491b20058d540d6d1ed41
2017-01-11 18:36:16 -05:00
ZhongShengping
fa7c8ba473 Deprecate signing_dir option
The signing_dir is deprecated for removel because of PKI token format
is no longer supported.
Update warning message and release note.

Change-Id: If82b345969da11d2187a7919fd213275f1cf8339
Closes-Bug: #1652700
2016-12-28 14:43:37 +08:00
ZhongShengping
c21c7126f8 Add test for sync
Change-Id: I01d0d5f50b294a4b9593a651f50cf7b5a2fddd70
2016-12-12 16:41:13 +08:00
ZhongShengping
c54428f524 Add hooks for external install & svc management
This adds defined anchor points for external modules to hook into the
software install, config and service dependency chain.  This allows
external modules to manage software installation (virtualenv,
containers, etc) and service management (pacemaker) without needing rely
on resources that may change or be renamed.

Change-Id: If4f585264f5f5a15549855d97b532866d91f5215
2016-12-07 16:49:58 +08:00
ZhongShengping
a85d3bc12c Fix lint issue
Change-Id: I17aa1e00ca1bba58a41b47cf3c8cdf98b5b6ab5d
2016-11-30 10:45:23 +08:00
ZhongShengping
7cf66df9e1 Add support for Debian system
We can add suport for Debian system due to have the
zaqar package in Debian system.
The Debian system does not support the use of services to run
a second instance, because there is no zaqar-server@.service
in zaqar package, so do not test it. I will Re-test it after
the zaqar package solve the problem.

Change-Id: I026b7d8f2b5994114d5a319200ed7c7d099b4fb5
2016-11-29 12:53:23 +08:00
Iury Gregory Melo Ferreira
641be0c1e0 Remove old authtoken options
Since we are in ocata lets remove all old parameters in api
to configure the keystone_authtoken section

Change-Id: I4950c5dba0eb257412fe2d2d39f1780b431c05d4
2016-11-18 00:54:16 +00:00
ZhongShengping
7436100653 Add purge_config option
Add the option in order to facilitate management.
User can ensure that only the options they hoped
are configured.

Change-Id: Iade2197388b1aa114f2fd9e2ab53a62f1f45c4e9
2016-10-27 00:36:46 +08:00
Sharat Sharma
abb350c4d9 Added retries for db_sync
If db sync fails, it is never retried leading to errors. So, this
patch adds retries for db_sync to avoid sync fails.

Change-Id: Id89665099079ab5e4c468f7f30953762a248af01
Closes-Bug: #1628580
2016-09-29 14:15:01 +00:00
Emilien Macchi
c510b3b66d dbsync: don't require User resource
User[zaqar] is not in the catalog, don't try to require it, it doesn't
exit!

The dbsync is run after package management so we're good.

Change-Id: Ie642f9ec6e6acc0765bc88ec4438a01a5618563b
2016-09-14 22:02:01 -04:00
Iury Gregory Melo Ferreira
a95b356f0f Move authtoken to class
Update module to work with the new schema for authtoken

Change-Id: If7eca0a769651b13a996558e6318ac682eff24f6
Closes-Bug: #1604463
2016-08-04 12:25:34 -03:00
Iury Gregory Melo Ferreira
6ddcb152e9 Move zaqar to authtoken
In zaqar, use keystone::resource::authtoken to configure
keystone_authtoken section in the configuration file,
with all parameters required to configure keystonemiddleware.
This patch will allow to deploy zaqar to use Keystone v3 authentification.

Some deprecations:
- zaqar::identity_uri is deprecated in favor of
zaqar::auth_url
- zaqar::admin_user is deprecated in favor of
zaqar::username
- zaqar::admin_password is deprecated in favor of
zaqar::password
- zaqar::admin_tenant_name is deprecated in favor of
zaqar::project_name

Change-Id: Ie825ce4d88ca4a2a33a7ced6e413ddc59f28ef1c
Related-Bug: #1604463
2016-07-24 16:50:00 -03:00
Dan Prince
24b18afe18 Add param to set max_messages_post_size
Change-Id: I07a8b3c659a367f65b9d4cd700912a419e50a472
2016-07-20 15:16:29 -04:00
Jenkins
5c694c2562 Merge "Include openstacklib defaults manifest." 2016-07-11 13:00:55 +00:00
Sofer Athlan-Guyot
1e4976ea58 Include openstacklib defaults manifest.
This provides a mechanism for setting default across all modules.

Change-Id: If0e6588783328df7a8edcf83a3fdffa419f0fa82
Related-Bug: 1599113
2016-07-08 09:04:30 +00:00
Dan Prince
837dad71f2 Add zaqar::keystone::auth_websocket
Adds a new zaqar::keystone::auth_websocket class to help
create a 'messaging-websocket' Keystone endpoint. Users of
zaqar websockets currently have to do substring replacement on the
Zaqar HTTP URLs... having a dedicated endpoint for websockets will
be much better.

Change-Id: Idd3ca1765604d9a461f68fc7b4a18b23a3c19d5b
2016-07-07 15:56:59 -04:00
ZhongShengping
c2acaba000 Provide default service_name for keystone endpoint
This change updates the zaqar::keystone::auth class to include a default
service_name of 'zaqar' so that if a user changes the auth_name, the
service is still created as being related to 'zaqar'.  This improves the
user experiance when they want to customize the usernames for services.

Change-Id: I2977790c3558732c2a1773aa3ede834c1d62ca16
Closes-Bug: #1590040
2016-06-08 13:52:19 +08:00
Jenkins
7820dca770 Merge "Add params to configure zaqar storage pipelines" 2016-05-21 15:23:50 +00:00
Dan Prince
ad63a4b940 Add params to configure zaqar storage pipelines
This patch adds parameters to configure the storage/*_pipeline
parameters for zaqar. These parameters are quite useful is you
wish to recieve notifications for Zaqar. In particular the
message_pipeline would often get set to 'zaqar.notification.notifier'
so that messages that have been subscribed to could be recieved.

Zaqar upstream has these set to nothing upstream so for now
setting the default to $os_service_default seems reasonable.

Change-Id: I14eade5ef0ac64f8856bfa455c4f9aaf51dd6c8d
2016-05-18 19:42:58 -04:00
ZhongShengping
ac45966573 Use oslo module for logging and policy configuration
Change-Id: I6a6c3dc4a54ac72ab212b3bd1a82d9f023876650
2016-05-09 08:34:59 +08:00