Commit Graph

43 Commits

Author SHA1 Message Date
Arnaud M ecdeadeb7a Change the wsgi path for devstack
Since pip 23.1, the wsgi_script from PBR are not installed anymore
(see [1])

So, instead, rely on the wsgi.py app which is directly bundled in
mistral source code.

[1] https://discuss.python.org/t/adding-support-for-wsgi-scripts-entrypoint/30905/11

Change-Id: Ideed8421427e865f8010b7bfca58c3f010ac6bd6
Signed-off-by: Arnaud M <arnaud.morin@gmail.com>
2023-11-14 20:51:51 +01:00
Arnaud Morin e343ccb078 Add api_version for etcd3 coordination URL
Since upgrade of etcd3 (see [1]), the v3aplha endpoint has been
deprecated but tooz commit (see [2]) is not yet released.
Until then, we should force the api_version=v3 to make sure the
coordination between engine is working correctly.

Closes-Bug: #2040048

Signed-off-by: Arnaud Morin <arnaud.morin@ovhcloud.com>
Change-Id: Ieade7a30a192910fc3870b173017efd481f0b18f
2023-11-14 20:51:51 +01:00
Yasufumi Ogawa c820d6f365 Update package name in devstack for ubuntu/jammy
For python3, `python-nose` has been changed to `python3-nose` in Ubuntu
Jammy Jellyfish. This change is to update the package name to avoid an
error on exit.

Signed-off-by: Yasufumi Ogawa <yasufum.o@gmail.com>
Change-Id: I4c21b6527f37918397f7fb425075eb6c07534237
2022-11-09 05:38:31 +00:00
Toshiaki Takahashi 4733e084aa Change python-nose package name in devstack
In RedHat8, python-nose is separated to 2 packages of
python2 and python3.
This patch changed devstack plugin to use the separated packages.

Change-Id: I1a3608a52c37718715cdfecc8cc2d4a7e76b1714
2020-08-23 10:55:56 +00:00
Eyal 8bdf341af7 Remove OpenStack actions from mistral
Depends-on: https://review.opendev.org/#/c/703296/
Depends-On: https://review.opendev.org/#/c/704280/
Change-Id: Id62fdabe7699e7c3b2977166e253cfc77779e467
2020-02-26 10:12:01 +02:00
Eyal 906291d7a9 Set tempest configuration to support service api
This config is read by tempest test weather to test
the service api that was added in ussuri

Depends-On: https://review.opendev.org/704274
Change-Id: I98ef8d60b40c13ffa0a6690841f1e27f092dfdea
2020-01-27 10:48:56 +02:00
Eyal d838607b2f Add coordination support for devstack
This way we can test the service api later on gate

In order to use etcd in gate few changes were made:
* All identifiers must be byte type (group type, member id)
* Tooz has a built-in mechanizm for heartbeat no need to implement it
* Need to use eventlet monkey patch since etcd client uses blocking
  methods
* Services name must be identical to LAUNCH_OPTIONS used in cli
* Gate coordination url should be define with a schema of etcd+http
  which is the etcd gateway and works better then just etcd

Change-Id: I772651e33eada4a5c2149bfa867095c277eddeed
2019-12-25 10:38:29 +02:00
Eyal e03fa281b0 Use MISTRAL_SERVICE_HOST as the host ip for standalone
The default 0.0.0.0 will be good only ipv4
for ipv6 gate will fail. MISTRAL_SERVICE_HOST has always
the right ip, it is also used in apache mode so lets use
it also in standalone mode.

Change-Id: I492ccaa876c25cdb434858cb215cc94ae5b65972
2019-12-23 06:17:43 +00:00
Eyal 90a9a48f21 When installing devstack enable the bash completion
In devstack if we install the client then copy the bash
completion script to its folder.
also use the standart devstack function to install the
mistral client

Change-Id: I69ca615ed446214463f8fa7a3e303ff0bf32b460
2019-07-25 14:09:06 +03:00
Brad P. Crochet 0085d08baa Stop using deprecated keystone_authtoken/auth_uri
keystone_authtoken/auth_uri is deprecated [1]. Use www_authenticate_uri
instead.

keystonemiddleware in requirements and lower constraints should be increased
because www_authenticate_uri was introduced in keystonemiddleware 4.18.0.

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

Change-Id: I99b0ee941d702a28fb4f392d9747d0e2257a42c8
Closes-Bug: #1788174
2019-02-19 10:37:23 +00:00
Brad P. Crochet 4bb9d5d5a0 Install mistral-lib as a sibling for tox jobs
If mistral-lib is not processed as a required-project, it won't get
treated properly as a depends-on. This should fix that.

Change-Id: I1f42836ec549a3e56681af29738868bf5896e971
2018-07-19 12:56:52 -04:00
Hieu LE 4469cacf39 Implement policy in code - event trigger (11)
This commit migrate all event trigger policies into code [1].

Like oslo.config, with oslo.policy, we can define all of
default rules in code base and only change some rules
via policy file. Another thing that we should use yaml
format instead of json format.

This commit also remove policy.json file usage completely.

[1] https://governance.openstack.org/tc/goals/queens/policy-in-code.html
Co-authored-By: Dai Dang-Van <daidv@vn.fujitsu.com>

Change-Id: Icd674fdc248e5b9c63f9e7d0f47c53288291ff07
2017-11-27 02:47:50 +00:00
Jenkins fdaec7edd3 Merge "Clean up screen and tail_log references" 2017-09-08 10:59:23 +00:00
Brad P. Crochet 433a5b46a9 Clean up screen and tail_log references
devstack has removed screen completely in
I8c27182f60b0f5310b3a8bf5feb02beb7ffbb26a. This patch cleans up any
remaining references to screen from the Mistral devstack plugin.

Change-Id: I56d6fe2c6957f9a6b5cc30d7570288ceed8b9f35
Depends-On: I8c27182f60b0f5310b3a8bf5feb02beb7ffbb26a
2017-09-07 09:17:09 -04:00
junboli d4676bff0b Using current pike stable release for devstack
Since the pike has been released, so it is better to use pike
as the devstack repo.

Change-Id: I5006a7cb9eeacef930e04d2f7287c652d4ba9165
2017-09-06 11:09:26 +08:00
Eyal 3f62afd8fb support py3 when doing db_sync
when installing mistral on py3 environment
db_sync fails because python is used and not python3
should use the $PYTHON variable instead

see error
http://logs.openstack.org/99/491899/13/experimental/gate-vitrage-dsvm-datasources-py35-ubuntu-xenial/76dee18/logs/devstacklog.txt.gz#_2017-08-13_08_15_12_160

Change-Id: I61bd76b8d9ac48f13c6ca9b8be304c15cd8cf4d6
2017-08-13 11:39:32 +03:00
Jenkins f0e1e7b4fb Merge "Set mistral-dashboard default branch to master" 2017-08-03 14:47:03 +00:00
Brad P. Crochet 087f705659 Set mistral-dashboard default branch to master
It does not make sense to use MISTRAL_BRANCH as the default setting
for MISTRAL_DASHBOARD_BRANCH. When testing a gerrit patch manually
with devstack, it bombs out because it can't find the gerrit ref.

Change-Id: Ic8527fc95673337b200e10279ea9f244323e61fa
2017-08-02 07:02:40 -04:00
Mike Fedosin 700366e4b6 Use recommended function to setup auth middleware in devstack
Currently Mistral has own configuration for keystone
auth middleware, many parameters of which are deprecated [1].
It's not desired behavior and it is suggested to use recommended
devstack configuration function to prevent possible errors if
something is changed in keystone deployment in the future.

This patch fixes this situation and implements official
"configure_auth_token_middleware" function support.

[1] 712438ebf9/keystonemiddleware/auth_token/_auth.py (L29-L35)

Change-Id: I5f50ca6b773b61c35f93488e64a1b95d3ace9c2c
Closes-bug: #1697662
2017-07-29 01:22:06 +00:00
Thomas Herve e7c0056e67 Setup devstack with ini_rpc_backend
The rabbit options are deprecated, transport_url should be used. The
right interface is ini_rpc_backend, let's use that.

Change-Id: I39aee6e2a3152062a471a8f984445b9d9af4bf85
2017-06-26 13:02:38 +00:00
Emilien Macchi 2a2c8e733b Revert "Support transition to keystone auth plugin"
This patch broke Ironic introspection workflow:
https://bugs.launchpad.net/tripleo/+bug/1688767

This reverts commit 1c485867c4.
Related-Bug: #1688767

Change-Id: I86d4b40e19b3b0b3cfe0d30e2c5a588e29af6d98
2017-05-09 13:02:12 +00:00
Brad P. Crochet 1c485867c4 Support transition to keystone auth plugin
The puppet module puppet-mistral is moving to use a proper keystone
authtoken module. This supports that transition. A follow on patch
will remove the transition code.

Change-Id: Ief32ae01372c8c8d32fc5e2c89a2927510983a5b
2017-05-04 17:40:55 -04:00
Jenkins 3d9855356a Merge "Fix the keystone auth url problem" 2017-04-20 07:00:02 +00:00
yong sheng gong f6e8099761 Fix the keystone auth url problem
use identity_uri to set up keystone connection settings to
avoid wrong keystone uri settings.

Change-Id: I4b0836a6a241de2ddebf175445fd86a0bf8dcf85
Closes-bug: #1684050
2017-04-20 00:18:33 +08:00
Brad P. Crochet 8f335f544e Enable WSGI under Apache in devstack
Add support for enabling WSGI in Apache for the devstack plugin. This
will allow an additional CI gate.

Change-Id: I953dbdab71029b392f8846c50fa3d801c293cc5a
2017-04-13 12:00:08 -04:00
Jeffrey Zhang 462cbf1366 Copy _50_mistral.py file from enabled folder
Change-Id: I6b355a9f4ee616b081e9a715cacd3a062e1f743c
Closes-Bug: #1649669
Depends-On: Ie1415ea66ed6608ecff622c42e3a433be23bbdfe
2016-12-22 15:57:22 +08:00
Sharat Sharma 196ee5a7af Fix devstack plugin compatibility
The devstack mistral compatibility was broken by a recent patch in
devstack. This patch is intended to fix the issue by removing the
dependency on deleted env variables.

Change-Id: I768168fa95f5bc010815af5ff03117edb245137b
Closes-Bug: #1644194
2016-11-23 13:12:10 +00:00
pawnesh.kumar b749522395 Added additional info in devstack/readme.rst
Change-Id: Ib8080344fed978dc21a72b9df0d046213593b47c
2016-10-24 03:19:02 +00:00
Jenkins 90e1c10afe Merge "Enable changing of rpc driver from devstack" 2016-09-19 09:09:28 +00:00
Lingxian Kong 3455dd68e9 Add functional tests for event engine functions
This test class doesn't fully test event engine functions, because
we can not send real notifications to the internal message queue to
trigger the specified workflows.

So, before notification is supported in Mistral, we can only test the API
functions.

Change-Id: I4289dac17f19cd2ce3c214c5625f3b7d9db605de
Implements: blueprint event-notification-trigger
2016-09-15 23:11:43 +12:00
Dawid Deja 2085102ddb Enable changing of rpc driver from devstack
It enables user to set flag
'MISTRAL_USE_KOMBU_DRIVER' in local.conf on their
devstack. With this flag set to 'TRUE', mistral
would autamiatically be installed with kombu driver
enabled.

This change is needed for adding new devstack gate
that would test kombu driver

Change-Id: I462aa17107a9a55396a87a8c46fa3a8dac338fac
2016-09-13 17:07:54 +02:00
hardik 11e443efeb Added role base authentication support
Mistral api access can be restricted base on role
by modifying /etc/mistral/policy.json file.

Change-Id: I4c78ca4cc04d25f46aea55948bce339cfe460ff0
Implements: blueprint mistral-customize-authorization
2016-06-14 05:15:00 +00:00
Anastasia Kuznetsova 2b517d8838 Fix mistral installation in devstack
After pip upgrading following error has occured during
mistral installation:
Invalid requirement, parse error at "'[-e]'"

I assume that this is because of extra '-e' flag that was passed
in mistral script and that is redundant ('-e' flag will be added
automatically in setup_develop function).

Change-Id: Ifed16935b045c723881a9da157a8759eea421c2c
2016-05-11 14:14:20 +03:00
Anastasia Kuznetsova 236a7f2f7d Run mistral services as separate processes
For implemetation of ha gate and ha/destructive scenarios it would
be better to run mistral services in separate processes to easily manage
them.

Change-Id: I85ec81d11a2ecef5a256f93526d8c8498f2ebae0
Partially-implements: blueprint mistral-ha-gate
2016-03-16 17:33:11 +03:00
Chaozhe.Chen fbf86e811f devstack/plugin.sh: stop using deprecated option group for rabbit
oslo_messaging has created separate config file sections for
messaging configuration.
refer to:
https://review.openstack.org/#/c/219356/

Change-Id: I1ceec1657d2d0b1b1df5ebfb8c85fd3d977afdfa
2015-12-23 18:19:24 +08:00
Anastasia Kuznetsova c578969b55 Change installation of python-mistralclient in the gates
After this commit 'gate-mistral-devstack-dsvm' will install
mistral from commit and latest released python-mistralclient,
'gate-mistralclient-devstack-dsvm' will install python-mistralclient
from commit and mistral from master.

Partially implements: blueprint mistral-making-dsvm-gates-voting

Change-Id: Ia0c9bb84412b39c571565db1f00188c4e0db71fc
2015-11-26 13:52:39 +00:00
Anastasia Kuznetsova 869faeb771 Use setup_develop instead of setup_package in plugin.sh
Since all mistral requirements are match with global requirements
it is more correct to use setup_develop function.
Info about this function and difference with setup_package
function can be found here:
https://github.com/openstack-dev/devstack/blob/master/inc/python

Change-Id: I8b283df8734675f92d9bc8266bafe7cece6fb5f9
2015-11-20 17:54:26 +03:00
venkatamahesh aeaf3e8ecf Move the default directories into settings file
Change-Id: I1955541553c37a1687b227cc7d21481e71e10ccb
2015-11-15 23:12:52 +05:30
Jenkins 4a1e180c3e Merge "devstack: add support for mistraldashboard" 2015-10-25 10:52:44 +00:00
Christian Berendt 8fb442dcd1 devstack: add support for mistraldashboard
Change-Id: I2794bb84d96dfddf864cf1e0a8d5537931481c12
2015-10-23 12:46:31 +02:00
Oleksii Chuprykov a51ef9c0b9 Colorise mistral log output
This makes debugging more funny.

Change-Id: Ib5b20c8bb9b4acd331c87f1f8224cf053401d65b
2015-10-06 14:29:43 +03:00
venkatamahesh 87a9c6e83f Fix two typos
Removed extra ==== in heading for "Enabling in devstack"
Renamed readme.rst to README.rst

Change-Id: Ia8ef8c042a2b44f1ca6e3805490d1000b28cd9db
2015-09-18 08:48:30 +05:30
Zhenguo Niu 3ea5c6c707 Switch to devstack plugin
Start using devstack's feature 'Externally Hosted Plugins' [1], that allows
to install Mistral using upstream Devstack without need to put some additional
files manually.
To enable Mistral with Devstack just put following in local[rc] file:
enable_plugin mistral https://github.com/openstack/mistral

[1] http://docs.openstack.org/developer/devstack/plugins.html#externally-hosted-plugins

Implements blueprint devstack-plugin

Change-Id: Ia2f188a6eb369a495a7e0f20534fdd02bafcf49a
2015-09-12 22:08:00 +08:00