75 Commits

Author SHA1 Message Date
Dirk Mueller
179a08d604 Remove setting of DEVSTACK_GATE_EXERCISES
This defaults to 0 anyway, and is being removed as the devstack
excercises are being removed. see https://review.openstack.org/#/c/581377/

Change-Id: I3b8db07fd20a706d191b4d1c58911286bff17f09
2018-07-17 10:38:14 +02:00
melissaml
7b8776e483 Update auth_uri option to www_authenticate_uri
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: Ieff5b69018e3824074b5a528a7b9d2a00dd7fb2e
2018-04-18 19:15:13 +08: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
anilkumarthovi
d77b763384 update devstack README.rst with more info
Change-Id: I684f71928fc4dcccf50c0dd5b0003b8293aa80e3
2017-12-03 21:17:05 +00:00
wangxiyuan
74245e13ec Policy in code: Update the related doc
This patch update the policy file generator guide.
And remove the realted action in devstack as well.

Change-Id: I7bd6aabe1d05245a1203380863c0444f6ea021f6
bp: policy-and-docs-in-code
2017-11-16 09:30:55 +00:00
Zuul
0997ac8e99 Merge "Remove bundled intree tempest plugin from Zaqar" 2017-11-10 01:46:42 +00:00
Nguyen Van Trung
f908a80bf0 Use generic user for both zuul v2 and v3
Zuul v2 uses 'jenkins' as user, but Zuul v3 uses 'zuul'.
Using $USER solves it for both cases.

Change-Id: Iab3e71d7ee13b8294379c3c10a537dc5628498cd
2017-11-06 01:51:35 +00: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
gecong1973
8cf44f278b Fix gate-grenade jenkins failure
The grenade gate sometimes fails with
"keystone did not start". this patch fix it

in grenade log, there are log as follows:
curl -g -k --noproxy '*' -s -o /dev/null -w '%{http_code}'
http://172.99.67.72:5000/v3/
wait_for_keystone:69 :   die 69 'keystone did not start'
actually, KEYSTONE_AUTH_URI should be http://172.99.67.72/identity/v3
instead of
http://172.99.67.72:5000/v3/ which leads to keystone failure

Change-Id: I116e46ed30f6ce0fbc7b9207cc4f519438df8bc2
2017-09-19 06:43:17 +00:00
rabi
16fd7bac5c Add some more uwsgi options for zaqar-uwsgi
Use $API_WORKERS as process count and add other
wsgi options like thunderlock (recommended
to prevent thundering herd on accept).

Change-Id: I70fdc09edf524ba3733d03013d4bb296e8b2954b
2017-08-09 18:07:21 +05:30
Thomas Herve
30c72fa978 Revert "Remove startup check from devstack"
This reverts commit 4a1a6b3766b7cd63afff36307a8044cf3b848a31. It didn't
improve the situation, and at least it's failing early.

Conflicts:
	devstack/plugin.sh

Change-Id: Idf16037e6a3bbc7f915e12827348eda663721d5e
2017-07-03 17:18:15 +02:00
rabi
7443063417 Use absolute path for executables
Change-Id: I9e110738e3b1e0aa28c273ea178515143bbacb20
Closes-Bug: #1687529
2017-05-02 09:11: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
Jenkins
96158bb93c Merge "Support cold migration" 2017-03-07 02:31:46 +00:00
Jenkins
fa09db3537 Merge "Using cp insteald ln for zaqar-ui" 2017-03-06 02:03:46 +00:00
Fei Long Wang
d1f5adb7e1 Support cold migration
Add grenade plugin under devstack folder to support cold migration
verified by grenade job.

Implement blueprint: cold-migration

Co-Authored-By: wangxiyuan<wangxiyuan@huawei.com>

Change-Id: I9c399ee7fcac0f9d3488084cb0c0718882952eaf
2017-02-27 01:52:38 +00:00
Jenkins
550e916600 Merge "Remove table creation from the SQL driver" 2017-02-26 22:03:08 +00:00
Thomas Herve
10b07c9ccf Remove table creation from the SQL driver
Table creation must happen outside of API requests. This changes the
devstack plugin to create the tables properly.

Change-Id: I57c4fba06dc6725ea977477b777e4ffd6856adde
2017-02-22 16:29:58 -05:00
Thomas Herve
871860be98 Set wsgi name to application
The standard name for the WSGI callable is application, let's use that.
We'll keep app for compatiblity purposes.

Change-Id: I2138ef05b985dcfeba108c8a5441206b2c4ae1a7
2017-02-22 08:59:19 -05:00
Fei Long Wang
3edccca79a Using cp insteald ln for zaqar-ui
Copy all the files under zaqar-ui enabled instead of using link
to avoid missing any new panel.

Change-Id: Ib0d1c719268f70dfc6e6e6dc238327b78266a892
2017-02-14 13:29:51 +13:00
wangxiyuan
f48958b337 Use auth_type instead of auth_plugin
The config option "auth_plugin" from keystoneauth is deprecated

Change-Id: I3ca006b5e276fe0acd2c8f27567307a0c60fd10e
2017-02-07 16:20:43 +08:00
Thomas Herve
90dedeefbb Enable swift in the gate hook
This should let the swift gate run.

Change-Id: I9e3eaf3792e2a35e33184d61bac0ba8e562e426c
2017-02-01 09:18:36 +01:00
Ryan S. Brown
40083a720c Swift storage
Implement storing of queues, messages, subscriptions in Swift.

Change-Id: I94e158b35b069ea1fbf8dde17c89ff9b9c758ab4
2017-01-05 09:21:21 +01:00
Thomas Herve
4a1a6b3766 Remove startup check from devstack
The gate sometimes fails with "Zaqar did not start" without any way to
know what's going on. Let's remove that check and let usage of Zaqar
fails with proper error later on.

Change-Id: I04692763eb15a849541eb1903bb0fad6c16435db
2016-11-24 09:29:30 +01:00
rabi
65a6953a16 Use KEYSTONE_IDENTITY_BACKEND
KEYSTONE_CATALOG_BACKEND variable is removed from devstack[1], use
KEYSTONE_IDENTITY_BACKEND instead.

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

Change-Id: Id9b34af0ea1faecaeaea8a1d41a0e4b866b688af
Closes-Bug: #1644090
2016-11-23 07:04:05 +00:00
Fei Long Wang
7fb030e6de Fix zaqar client gate
It's related to devstack bug bug: 1540328, where devstack install
'test-requirements' but should not do it for zaqar-ui project as
it installs Horizon from url. Remove following two 'mv' commands
when mentioned bug is fixed.

Change-Id: Ib4d0abe3b083d996556f615943d3b1185c9f882a
2016-11-15 19:55:38 +13: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
Jenkins
73ddab3cd6 Merge "Officially deprecate API v1.1" 2016-09-12 18:46:08 +00:00
Fei Long Wang
b745146df4 Officially deprecate API v1.1
Zaqar API v2 has been released for several cycles and it's integrated
as the default API version by most of the openstack services. So it
is time to deprecated v1.1 in favor of v2.

DocImpact
UpgradeImpact

Implements blueprint: deprecate-v1.1

Change-Id: I40c51df5a89e0a883ad14cf7e02b96ca78147294
2016-09-07 13:17:38 +12:00
tengqm
6767092295 Fix links in devstack/README.rst
The github.com contains a mirror of the git.opoenstack.org but it should
not be treated as the official site to get openstack projects.

Change-Id: I31270f013f70ce250f0b48f20d2454ee5079c252
2016-09-05 21:03:00 -04:00
Flavio Percoco
f38cecfdfc Disable DEPRECATED API versions by default
API v1.0 has been deprecated for a while and v1.1 will be deprecated
soon. We shouldn't be enabling deprecated API versions by default. This
patch adds a decorator to disable deprecated APIs by default unless they
have been explicitly enabled in the environment.

Co-Authored-By: Fei Long Wang <flwang@catalyst.net.nz>

Change-Id: I62fb4d18bc6c9f5455bff0d56e42269b4590b454
2016-09-04 11:55:24 +12:00
AvnishPal
28cc17109b This patch removes extra spaces from files.
Closes-Bug: #1603318

Change-Id: I55d47bfb0408d4a8bb59dcc70afd47a3c47ad9b1
2016-07-15 15:15:40 +05:30
Jenkins
2871900052 Merge "Add a trust notifier task" 2016-07-13 03:44:25 +00:00
rahulram
37cbe9070d Fixes: Typo in comments
Change-Id: Iee3e41d82061890034ba2fb72519c96934a0608a
2016-07-08 16:08:44 -07: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
Thomas Herve
349839d007 Remove tempest smoke tests run
It seems we're still running some useless tempest tests in the gate,
let's remove those.

Change-Id: I654d866841d818b59e8a1a3be00fff0a38828e00
2016-06-28 16:20:04 +02:00
Fei Long Wang
c5640b866b Support Tempest test as gate job
Now Zaqar isn't using Tempest for jenkins gate checking, which is
a missing. This patch fixes it by using Tempest's all-plugin to
run Zaqar's Tempest cases in tree.

Change-Id: I7e10a5b218b60eea47a96d36ebeb4029d33e7edd
2016-06-06 01:48:12 +00:00
ZhiQiang Fan
7e87adeecf remove verbose option in devstack plugin
This option is deprecated in Mitaka and has been removed in Newton,
and its default value is True already. Let's remove it.

Change-Id: I167713165bd96a4ccd423976f8fcad5ff8fc399c
ref: https://review.openstack.org/#/c/314573/
2016-05-23 22:00:07 +00:00
Ryan S. Brown
dd016c75c9 Use Client-ID in devstack ping request to Zaqar
With the recently merged patch https://review.openstack.org/274972,
Zaqar now requires "Client-ID" header for API v2.

Our devstack plugin checks if Zaqar has started by sending request to
Zaqar's ping endpoint. But devstack plugin is not using "Client-ID"
header for sending this request, so the request now always fails and
devstack thinks that Zaqar service hasn't started.

This patch adds "Client-ID" header to the ping request to Zaqar in the
devstack plugin.

Change-Id: I441a5a9778d0676e0a380f5e20be40e1a029409f
2016-02-10 20:34:00 +00:00
Thomas Herve
4ba0225e1f Fix gate issues
Subscription options returned by the controller get methods was not
unserialized propertly, still containing msgpack data.

It also changes so that mongo doesn't connect before forking, and fix
uwsgi persistent connections (non) support.

Finally, it changes how keystone options are registered to use a more
robust and supported mechanism.

Change-Id: I917a893c0d7175e3a465cf08c5e0375d9944fd16
2016-01-14 18:30:29 +01:00
venkatamahesh
c9f5e1c041 Add the default repos into devstack/settings file
Change-Id: I2980f619fb24c278c81a5a072af8d5fa2ab4882c
2015-11-20 22:54:43 +05:30
Jenkins
1ef07f3b6e Merge "Correctly stop uwsgi process during unstack.sh" 2015-11-10 16:49:34 +00:00
Eva Balycheva
9ac47de9d6 Fix mongodb.conf corruption during stack.sh
MongoDB can't start, if mongodb.conf has duplicate parameters.

When using Zaqar as plugin in DevStack on debian-like system,
each run of stack.sh adds a new line to etc/mongodb.conf:
"smallfiles=true"
So eventually mongodb.conf will contain duplicate parameters.

It means that stack.sh will be able to execute successfully only once,
on subsequent executions it will fail,
because of Zaqar which will fail to start,
because of MongoDB which will fail to start,
because of corrupted mongodb.conf
which will be corrupted by zaqar/devstack/plugin.sh

This commit will make sure that "smallfiles=true" line will be added to
mongodb.conf only if mongodb.conf doesn't contain this line already.

Change-Id: Ieba5abb970ff7565f3a837778e402ea8d5c5c463
Closes-Bug: 1507391
2015-10-19 07:25:30 +03:00
Eva Balycheva
39918c82d3 Correctly stop uwsgi process during unstack.sh
When using Zaqar as plugin in DevStack, after executing unstack.sh,
there's still Zaqar uwsgi master process with it's workers running:
/usr/local/bin/uwsgi --ini /etc/zaqar/uwsgi.conf
This process must be stopped.
Also running uwsgi process will prevent Zaqar to start on the next
execution of stack.sh.

The problem occurs, because of the nature of uwsgi container.
It just can't be stopped like that:
https://github.com/openstack/zaqar/blob/master/devstack/plugin.sh#L253

It must be stopped as described in uwsgi documentation:
https://uwsgi-docs.readthedocs.org/en/latest/Management.html

This commit will make uwsgi container process stop correctly on
unstack.sh execution by using PID of the process as described in uwsgi
documentation.

Change-Id: I2f39ea5880c2153fa14a8308d8710969ef6a1a5e
Closes-Bug: 1504854
2015-10-19 02:02:04 +03:00
Jenkins
54ea0032af Merge "Fix few typos in headings" 2015-09-21 13:47:08 +00:00
Flavio Percoco
95317c0c13 Allow running zaqarclient for gate tests
This change allows running either tempest or zaqarclient as testsuite in
Zaqar's gate. Ideally, we should focus on bringing as much tests as
possible to zaqarclient. However, we can't just give up on maintaining
tempest tests update. If anything, we should work harder on bringing
these in-tree or just contribute to the project.

Related-to: I1ba10b18560f35f48a7258eaa2a57727617760bd
Depends-on: Ifcf54fa2d4a5bf49b6757b593bb70cdeda8edb2a
Related-to: Idbc2c9fbd5c63db01ce28e4a52d1a917e4360363
Depends-On: I0f1fd4374125d4b489f3804b79a672b39c714421
Change-Id: I36ac3833ad55123fba0ea71259be6d56353d53e1
2015-09-21 07:19:59 +00:00
venkatamahesh
62ebf7b222 Fix few typos in headings
1.) Corrected headings according to rules of migrations by
placing "=======" on headings in the files
2.) Some headings have extra "====", they are removed
3.) Launchpad url have '~' which makes error: page not found
,so it is removed

Change-Id: I99581025d579f18da9ebe57267fb002cbcba28dd
2015-09-19 16:37:56 +05:30
Fei Long Wang
d08f4913ca RBAC support based on oslo.policy
This commit adds support for RBAC using oslo.policy. This allows Zaqar
for having a fine-grained access control to the resources it exposes.
As of this patch, the implementation allows to have access control in
a per-operation basis rather than specific resources.

Co-Authored-by: Thomas Herve <therve@redhat.com>
Co-Authored-by: Flavio Percoco <flaper87@gmail.com>

blueprint: fine-grained-permissions

Change-Id: I90374a11815ac2bd9d31768588719d2d4c4e7f5d
2015-09-14 23:28:27 +12:00