73 Commits

Author SHA1 Message Date
Tobias Urdin
aea9851e30 modulesync: sync and add nodepool-bionic for beaker
Change-Id: I38216bf8a6a0a14582f31640176bc4b389cda60d
2018-07-18 16:20:51 +02:00
Zuul
fab8bf8950 Merge "Debian is using python3-zaqarclient" 2018-04-13 04:34:34 +00:00
zhubingbing
e2ca4a65d9 Debian is using python3-zaqarclient
Change-Id: Iedf33a913bd6854f418d11d655204245f20d684c
2018-04-12 11:51:35 +08:00
ZhongShengping
19dc2c1e2f 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: Icf6c42182b10cdfb07461923f7fd41fccb0f9013
Depends-On: I4c82a63baabd6b9304b302c97cd751a0103d8316
Closes-Bug: #1759098
2018-04-03 16:55:05 +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
Mohammed Naser
462dd20b37 Remove MongoDB integration and transform to using POI resources
This patch removes MongoDB beaker tests as this is not a well
tested use-case and sticks to the Swift/SQLalchemy configuration
which is well tested.  It switches Beaker to use the same resources
in integration.

Depends-On: Ic1a4ea20ef65a832a986964fb61e80c4738740b5
Change-Id: I9796a7bb2f25a2df53a1aeeb2814a91ca2c2cbec
2018-02-02 13:16:11 -05: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
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
Alex Schultz
2cd91e4e2b Fix unit tests
The unit tests were broken by a change to openstacklib
Id09c3358c5843510e6a2a8c0e2d4aeb3607e098b which renamed some of the
resources in the openstacklib classes. The problem is that our tests in
this module should not have been testing what occurs within openstacklib
so this fix updates the tests to only check what we are doing within
this module.

Change-Id: Ie985dc8e66d08f7fa5e489888ba8305acafcf876
Depends-On: I9d535ab38afea852559df2b3073bd4b74a2a3947
2017-07-13 15:56:06 -06: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
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
ZhongShengping
10a0d020d1 oslo policy: check puppet resource instead of actual config in spec
Change-Id: Ic72b612fbee61d05215f2fa2d40e55a17ee72f9a
2017-05-23 15:33:08 +08:00
ZhongShengping
d932684889 Set debug to true
In order to better view log error messages, set log debug to true.

Change-Id: I7939bb8992afffa6fa188907140d737fecbe573c
2017-05-05 15:32:23 +08: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
Mykyta Karpin
00bf15fc2e oslo log: check puppet resource instead of actual config in spec
Change-Id: Idf9cb581c5c8831d15a97a62d9a47efbb937d373
2017-04-05 11:08:27 +03: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
Jenkins
4ddc999927 Merge "Remove the dependency package" 2017-03-03 17:08:25 +00:00
ZhongShengping
88f71e8f35 Remove the dependency package
The dependency problem of the zaqar package has been fixed
in latest UCA.

Change-Id: Iafaaaf9dc81d5d8461b38df987f5c687eca1dcf0
2017-03-02 18:59:49 +08: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
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
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
Alex Schultz
d6be4eb96d Move rspec-puppet-facts to spec helper
This change updates the module to use the rspec-puppet-facts as defined
in the puppet-openstack_spec_helper.

Change-Id: I5e16cd2ac049b161caf84d2749352daccc41c04b
2016-09-30 13:35:30 -06: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
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
Emilien Macchi
6415d9b126 Add nodepool-xenial.yml file
To run Beaker jobs in OpenStack Infra, we need this file so we run tests
on the right nodeset

Change-Id: Idc01072e178ba0b40008c2b90f8d6a7c4579e6a2
2016-06-10 13:34:25 -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