17 Commits

Author SHA1 Message Date
Takashi Kajinami
ecf76ae7d7 Use module path to load wsgi application
devstack is now replacing usage of wsgi script by wsgi module. This
replaces the way to load the api wsgi app following that transition.

Change-Id: Id799bacb71483d2e337c049e1db7f85735eb5a1e
2024-11-26 12:37:57 +09:00
Takashi Kajinami
347d3a8fef Use common helper to generate uwsgi setting
... to reduce own logic in our devstack plugin. Note that this adds
apache web server in front of zaqar-api run by uwsgi, following
the standard architecture in devstack.

Change-Id: I0e7f48c8568fe461304e6e39d9f61c4268154a6f
2024-11-25 23:37:17 +09:00
Erik Olof Gunnar Andersson
4585b84224 Revert "Refactor Zaqar to satisfy openstack uwsgi goal"
This reverts commit 5a7636786ec4cc8bdf490c11b94b52f377edebb3.

Reason for revert: We do not handle href links properly and this breaks other services depending on Zaqar.

Change-Id: I5fb0f2f25c280dd69cfb99d9f9b320df552462dc
2023-03-27 15:54:51 +00:00
wander.way
5a7636786e Refactor Zaqar to satisfy openstack uwsgi goal
After this change, Zaqar-wsgi will not be forced to port 8888 by
devstack. Use apache proxy now and the endpoint will be like:
http://IP/messaging by default.

Change-Id: I413cd24a9ef70a8bbada46d63d5dfdff09366b3e
2023-03-10 10:15:16 +08:00
Ghanshyam Mann
948e88c268 [goal] Deprecate the JSON formatted policy file
As per the community goal of migrating the policy file
the format from JSON to YAML[1], we need to do two things:

1. Change the default value of '[oslo_policy] policy_file''
config option from 'policy.json' to 'policy.yaml' with
upgrade checks.

2. Deprecate the JSON formatted policy file on the project side
via warning in doc and releasenotes.

Also replace policy.json to policy.yaml ref from doc and tests.

[1]https://governance.openstack.org/tc/goals/selected/wallaby/migrate-policy-format-from-json-to-yaml.html

Change-Id: I595b8c7cad7bb02486c8f0dd29fdc40789fc8e50
2021-02-17 00:58:28 +00:00
ghanshyam
3a6dd41666 Remove use of unsupported TEMPEST_SERVICES variable
TEMPEST_SERVICES global variable is not supported
by devstack since long back.
- I380dd20e5ed716a0bdf92aa02c3730359b8136e4
- I9c24705e494689f09a885eb0a640efd50db33fcf

Service availability of tempest known services will be
set by devstack with local check.
- I02be777bf93143d946ccbb8e9eff637bfd1928d4

This commit removes the unused TEMPEST_SERVICES setting
Related-Bug: #1743688

Change-Id: Iee8b10716efc6d48e97a3bcf3dafcc722239b2e3
2018-01-23 16:26:29 +03:00
Chandan Kumar
bceb83d1fe Remove bundled intree tempest plugin from Zaqar
The plugin has been split into its own repository[1] in accordance with
Queens Goal "Split Tempest Plugins into Separate Repos/Projects[2]".
This patch removes the local copy as well as the setuptools entry point.
We can also now remove the autodoc_tree_excludes pbr option since
there's no more plugin to exclude and it defaults to [setup.py].

[1] http://git.openstack.org/cgit/openstack/zaqar-tempest-plugin
[2] https://governance.openstack.org/tc/goals/queens/split-tempest-plugins.html

Implements: blueprint zaqar-tempest-plugin

Change-Id: Ia52d7f0a18e4b55260dc994f0802a96109280e24
2017-10-26 13:03:23 +05:30
Fei Long Wang
4cdee047f7 Remove enabled option for CORS
By default, CORS middleware can allow requests from any origin. So it's not
necessary to use the 'enabled' option.

Closes-bug: #1677049
Co-Authored-By: wangxiyuan<wangxiyuan@huawei.com>
Change-Id: Id80e17466400937bba9fbb4aa2a2b65de9d62252
2017-03-30 15:07:24 +08:00
wangxiyuan
e501f4013e Support CORS
Add the new middleware CORS for Zaqar

It only supports for WSGI.

Websocket doesn't need this feature.

Change-Id: Ifc6d2d1c5dde5152cab6e3aa2f3cf9f207481267
Implements: blueprint support-cors
2017-03-24 14:37:51 +08:00
Fei Long Wang
aa0889a1c1 Fix zaqar-ui clone issue
Change-Id: Idbfbae3122bd919c3972408c92092ff0fb185bf1
2016-11-11 15:13:58 +13:00
Fei Long Wang
9d9147a189 Enanble Zaqar-UI in devstack
Change-Id: Ibc783bb6f0c86528ec49cb9abedc247b49580858
2016-10-11 17:07:57 +13:00
Thomas Herve
51604b4954 Add a trust notifier task
This adds the ability to send keystone authentified notifications using
trusts. To do so, you specify the posted URL with the "trust+" prefix,
and Zaqar will create and store a trust when subscribing to a queue, if
the trust not provided in the subscription options

It also add a capability to the webhook task to be able to send more
structured data in the notification, allowing to include the Zaqar
message in the data.

blueprint mistral-notifications
DocImpact
Change-Id: I12b9c1b34cdd220fcf1bdc2720043d4a8f75dc85
2016-07-07 08:58:42 +02:00
venkatamahesh
c9f5e1c041 Add the default repos into devstack/settings file
Change-Id: I2980f619fb24c278c81a5a072af8d5fa2ab4882c
2015-11-20 22:54:43 +05:30
Thomas Herve
ec0b1c5150 Add configuration to run service using uwsgi
Add a sample configuration for running the wsgi transport using uwsgi,
and make devstack uses it, while running zaqar-server with websocket
transport.

This allows running both websockets and wsgi transports on devstack.

Change-Id: Ifac7461ec6b0501b1b9021030d9c173cf368a59b
2015-08-05 08:51:44 +02:00
Valeriy Ponomaryov
1a42098456 Fix enabling of Zaqar in Devstack plugin
Zaqar can be installed in two ways using devstack:
- using old approach called "hooks"
- using new approach called "devstack plugin"

So, if we try to install it using only devstack plugin enabling it as following:

"enable_plugin zaqar https://github.com/openstack/zaqar"

in localrc file, then we get nothing in a result. Because Devstack plugin tries
to enable zaqar using 'enable_service zaqar' [1].
But, then, devstack performs action verifying that 'zaqar-server' is
enabled. [2]
This leads to that zaqar is not installed at all.

For the moment, Zaqar installation works in CI because 'zaqar-server' is
enabled by other means using hooks.

[1]: https://github.com/openstack/zaqar/blob/bfcc60c1/devstack/settings#L4
[2]: https://github.com/openstack/zaqar/blob/bfcc60c1/devstack/plugin.sh#L246

Change-Id: I3c55756171e772d5c9e69066e0434ace5da0f852
Closes-Bug: #1476583
2015-07-21 12:46:28 +03:00
Flavio Percoco
f81cd02882 Rename service to zaqar
Instead of using `zaqar-server` as the service name in devstack, use
zaqar. This will allow for future services to be added.

Change-Id: I65667da3783130876ed781b2659000b82fa15e37
Depends-On: If5c91ebe136017cea2eeecf62a580d050e49617d
2015-04-30 09:26:54 +02:00
Flavio Percoco
5b7181e66e Move devstack's Zaqar code into the codebase
This, besides making devstack slimner, will give us more control on
what's in the plugin and it'll allow us to experiment with different
configurations.

Change-Id: I38c6cf71e2ae73f60e4494d853fee5796aa1f0f8
2015-04-21 16:36:01 +02:00