86 Commits

Author SHA1 Message Date
Pradeep Kilambi
16de7e004f Remove ceilometer actions from mistral
ceilometer api and client have been deprecated for over
two releases and now removed completely. Lets drop these
actions and update the requirements.

Change-Id: Ica2b835a885b9b4705996f91080afc12587bd314
2018-01-11 14:28:16 -05:00
Andreas Jaeger
d018cd7788
Avoid tox_install.sh for constraints support
We do not need tox_install.sh, pip can handle constraints itself
and install the project correctly. Thus update tox.ini and remove
the now obsolete tools/tox_install.sh file.

This follows https://review.openstack.org/#/c/508061 to remove
tools/tox_install.sh.

Change-Id: I9298add1f77b56f19f355b19da89f9799d2415c9
2017-12-02 10:43:11 -06:00
Dai Dang Van
49ed570cfe Implement policy in code (1)
This commit prepare for implementing policies in 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.

[1] https://governance.openstack.org/tc/goals/queens/policy-in-code.html
Co-authored-By: Hieu LE <hieulq@vn.fujitsu.com>
Change-Id: I2051b6c25333c95aa9ea6786964d4ab710ea93e8
2017-11-27 02:46:32 +00:00
rajat29
d4ae172125 Fix to use . to source script files
Adhering to coding conventions. Refer to ``Code conventions`` at
https://docs.openstack.org/contributor-guide/ for details.
When you have to source a script file, for example, a credentials file
to gain access to user-only or admin-only CLI commands, use . instead of source.
https://docs.openstack.org/contributor-guide/writing-style/code-conventions.html

Change-Id: I97c0cc8b9215b0f580311b1850b13a72f9ced60a
2017-09-05 13:04:29 +05:30
Mike Fedosin
fec851381d Add Glare action pack
This patch adds Glare action pack into Mistral.

Change-Id: Icf4ce5a37f555d01cf9c0b865a6816e3f6801f3a
Implements-blueprint: glare-action-pack
2017-07-31 15:08:22 +00:00
Jenkins
05711f6f33 Merge "Update docker build" 2017-07-24 15:22:46 +00:00
csatari
a7cd611c78 Applying Pike document structure
This change aligns the Mistral documents folder structure to
the one specified for Pike [1].
Documents were move to thir appropriate folder, but the different
guides do not follow their cookie cutted structure yet.
Install guide is in a separate change [2], while I could not
found the cookie cutter for the rest of the guides.

test-requirements.txt updated with the missing modules.

tox_install.sh modified to do not pass $MODULE_NAME and -e parameter to
edit-constraints.

[1]: http://specs.openstack.org/openstack/docs-specs/specs/pike/os-manuals-migration.html
[2]: https://review.openstack.org/#/c/476499/
[3]: https://etherpad.openstack.org/p/doc-migration-tracking

Change-Id: Ia1101fa2eada446d8eebfefa9bd15d8facd8b3b0
Depends-On: Ia750cb049c0f53a234ea70ce1f2bbbb7a2aa9454
Signed-off-by: csatari <gergely.csatari@nokia.com>
2017-07-11 09:24:17 +02:00
Andras Kovi
3c37ef5ed5 Update docker build
Update the Mistral docker image and tooling has been updated to
significantly  ease the starting of a Mistral cluster. The setup
now supports all-in-one and multi-container deployments. Also,
the scripts were cleaned up and aligned with the Docker best
practice.

Change-Id: I803d69ee17e7f5ebc95ec2c81887c4f580d73715
2017-07-03 13:22:44 +02:00
Ryan Brady
67d9758162 Update Docker README
This patch updates the docker README file to include the --link arg
to the command for launching a Mistral container to ensure the
rabbitmq and mistral containers can communicate.

This patch also adds a new section that explains how and why to
mount the Mistral source code as a volume in a running container.

Change-Id: Iec25f7e7dfda0bc8c9b38fa37b048448d73f66e4
Co-Authored-By: Brad Crochet <brad@redhat.com>
2017-05-17 12:07:49 -04:00
Adriano Petrich
4c53234e27 Adding log to db_sync
if called by mistral-db-manage it will log info level
    to /var/log/mistral/mistral-db-manage

Included some debug level logging also for main actions.

Change-Id: I0574b38efcc0dd7485953bf3089ff0a5a3ef6394
Closes-Bug: #1689821
2017-05-16 05:17:08 +00:00
Lingxian Kong
cc5782e67c Fix cinder/heat base import
Change-Id: I56bbbe9c5cc9a3366ad5f8f3a92cb554925d92da
Closes-Bug: #1674519
2017-03-21 23:15:35 +13:00
Dougal Matthews
7a929a9588 Include the missing lines in the coverage report
This should make it easier to see what files are different between the
two compared coverage reports.

Change-Id: I0367be79145ffb066c44342dcbe97e61a079d598
2017-03-07 08:31:41 +00:00
Dougal Matthews
bc40d42dcb Don't use 'master' as that isn't always true
We are only comparing against master if the parent of the commit is
master. This isn't true if another patch merges after this is proposed
or it is in a series of commits and based on another review.

Change-Id: I2d0f827552fb431cf78a03f77e18b77ed406efd8
2017-03-07 08:31:21 +00:00
Dougal Matthews
5023bd4773 Add coverage erase to the cover report
Change-Id: I559222d3b6340c24e9b7f9249096482d6564668f
2017-03-06 09:20:53 +00:00
Istvan Imre
91237c2baa External OpenStack action mapping file support
Release note and command line parameter added.
From now it is optional to list openstack modules in mapping file which
you would not include into supported action set.

Change-Id: I5ab01395c507fc857dca7cf08ab344a07def0dcf
2017-03-03 08:00:30 +00:00
Brad P. Crochet
a298d09e42 Update Dockerfile to use Xenial
The current state of Mistral no longer works on Trusty. This patch
updates to Xenial in order to fix the docker image build.

Change-Id: I2a778d43e2dca8eaa370d5a86008a170ffb98f54
Closes-Bug: #1664030
2017-02-24 10:03:21 -05:00
Jenkins
6e5cbd3b5a Merge "Remove wrong licensing" 2017-02-16 06:55:49 +00:00
Andreas Jaeger
ac4d52bd4c Prepare for using standard python tests
Add simple script to setup mysql and postgresql databases, this script
can be run by users during testing and will be run by CI systems for
specific setup before running unit tests. This is exactly what is
currently done by OpenStack CI in project-config.

This allows to change in project-config the python-db jobs to
python-jobs since python-jobs will call this script initially.

See also
http://lists.openstack.org/pipermail/openstack-dev/2016-November/107784.html

Change-Id: I93265cd17899e090377cd5399b46ef5c5b86bc75
Needed-By: Ib5a91fd4e7211f4418ca1dc1bd2fa5c31b986bd5
2017-02-08 21:15:39 +01:00
Sharat Sharma
c374d98526 Remove wrong licensing
This file is wrongly licensed and copyrighted. So, removing it.

Change-Id: I1fcd6837f8c3dc432f76f1457859800c23117eeb
2017-02-06 12:57:58 +05:30
Jenkins
c9ef100219 Merge "Add script for unit test coverage job" 2017-01-30 14:53:53 +00:00
Sharat Sharma
e36d7f8af2 Add script for unit test coverage job
This commit will add script and coverage config file that will allow to run
non voting coverage job which will detect any changes in the code coverage
for each commit on review.

Change-Id: I624d1228df0adf1f34a498e5e86b6b092e667f5f
2017-01-23 14:38:15 +05:30
Jenkins
7f0f09f410 Merge "Added gnocchi action pack" 2017-01-11 06:34:13 +00:00
gecong1973
d597dab65c Using sys.exit(main()) instead of main()
As we known, Exceptions are raised by the sys.exit() function.
When they are not handled, no stack traceback is printed in the
Python interpreter. In this patch we have known main() got return
values(eg:0, 1), but it can't specifies exit status when terminate
the main thread by unusing sys.exit(). So when using sys.exit(main())
instead of main() may be more readable and reasonable.

Change-Id: Ie69b3a22dd1ddcd5586fc72f452cd162787f2f6f
2017-01-04 09:18:24 +08:00
fengchaoyang
6d9b53ef3d Added gnocchi action pack
This patch adds gnocchi action pack into mistral.

Change-Id: I1438b554356ad8ea6b86744eea1402e1f5526739
Depends-On: I99915d9ad5d1ccfa7ff326adab89937cf64a07ce
Implements: blueprint mistral-gnocchi-actions
2017-01-03 12:27:38 +08:00
Pradeep Kilambi
44768730a7 Add aodh actions to mistral
Depends-on: I52df197c0e22f0814f7339601a7291fc057463f8

Implements: blueprint aodh-action-pack

Change-Id: I30d0a2e87ec97a49d81ada4f2ee34c7934935ab3
2016-12-22 11:12:22 +00:00
Renat Akhmerov
4e2e46a07a Revert "Remove unused scripts in tools"
This reverts commit 1bf9ca58ef26ad756e6842edc7c78fac0bb21747.

Change-Id: I005abaeb941fdbf182b2c9d991404be0dae89f32
Note: we need this because some of our gates use them, look at http://logs.openstack.org/23/400123/1/check/gate-mistral-tox-db-unit-postgresql-ubuntu-xenial/b9dfcef/console.html
2016-11-22 06:24:39 +00:00
pawnesh.kumar
1bf9ca58ef Remove unused scripts in tools
Change-Id: Id4545cb6feeea8dc28a3b9ea7b32bccf14f01813
2016-11-09 17:04:24 +05:30
Luong Anh Tuan
1827e5434e Using sys.exit(main()) instead of main()
TrivialFix: Similar [1] in Kolla project
As we known, Exceptions are raised by the sys.exit() function. When they
are not handled, no stack traceback is printed in the Python interpreter.
Therefore, when using sys.exit(main()) instead of main()
may be more readable and reasonable.

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

Change-Id: Ic71d4bfb1085c68ea9eb7e1382e7263a81634ad1
2016-09-26 10:52:42 +07:00
Nikolay Mahotkin
259868e6fe Adding a script for fast mistralclient help generation
* This script allows generating helpstrings
   of all mistralclient commands and adopt them
   to rst format.
 * This script is just POC and requires a further
   manual editing in order to make the document
   more clear.

Change-Id: If5f9144a254ef0b97c17e66638641e1052cc08d1
2016-09-21 13:36:15 +00:00
Andreas Jaeger
2e497b3933 Sync tools/tox_install.sh
Sync tools/tox_install.sh with python-openstackclient. This brings in
the following improvements:

* Do not leave temporary directory around, instead delete temporary
  directory directly after usage (change
  I939eae82dba3287fd4e4086128ebf4609a0e0770).
* Do not set ZUUL_BRANCH explicitely and remove unused if condition
  (change I0077c986a17d6bb92791474e03d1e77776e9382f).

Change-Id: Ifb9c9da59c9c7d94362bbc82a389ebce518f59f1
2016-08-30 20:06:27 +02:00
Jenkins
dd19565079 Merge "Added support for SSL connection in mistra-api server" 2016-08-05 08:39:22 +00:00
Juan Antonio Osorio Robles
81f16827e3 Use actual session for ironic-inspector action population
python-ironic-inspector needs an actual session when creating the
client, since it will try to fetch and furtherly validate the given
version regardless if a version is explicitly given. This fetching
and validation do calls to keystone which require credentials. Thus,
I'm using mistral's service credentials to fetch the required info.

Change-Id: I908552d2fb8ab4a5a3593f03f92ee6a31b672034
2016-08-05 08:13:55 +03:00
hardik
4adc3cfb56 Added support for SSL connection in mistra-api server
Change-Id: I4e114a11191821f4ef9dec967fb76b0a34179119
Implements: blueprint mistral-api-server-https
2016-08-04 19:03:53 +05:30
Shaik Apsar
7e9c04ebb9 Add tacker actions in mistral
Change-Id: Ie5f445fae4aee7bb01a71b3959c0ff2610c52f1f
Implements: blueprint tacker-api-actions
2016-07-02 06:16:54 -04:00
Jenkins
49e9486617 Merge "Fixed get_actions_list script to get glance actions" 2016-06-22 08:38:27 +00:00
Jenkins
d909fdec1f Merge "Fixed get_actions_list script to get designate actions" 2016-06-20 10:46:11 +00:00
hardik
23becb2497 Fixed get_actions_list script to get glance actions
Also updated values in mapping.json file as
per output of the script.

Change-Id: I9654b640b9f87c1d3db63a8db5143ae940fb23c4
2016-06-17 11:15:34 +00:00
hardik
17fab41a78 Fixed get_actions_list script to get designate actions
Also updated values in mapping.json file as per
output of the script.

Change-Id: Ic46bd5cb0e8814f201903930dd288f053809a7f2
2016-06-17 10:12:16 +00:00
Andras Kovi
16c5ca29ec Example Mistral docker container broke due to oslo.policy update
The Mistral docker example does not work at the moment. The oslo.policy
library now requires the policy file to be set in the configuration.

Closes Bug: #1593286
Signed-off-by: Andras Kovi <akovi@nokia.com>

Change-Id: I7877f2a7acac5efca869e3f00b9e76cf8b3f5d66
2016-06-16 20:56:57 +02:00
Jenkins
8015d66490 Merge "Added role base authentication support" 2016-06-14 08:31:18 +00: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
hardik
10fa24731d Added murano actions
Change-Id: I80e971e54cf165396fd6f96d6c1a19d9c17e4dac
Implements: blueprint mistral-murano-actions
2016-06-14 09:40:53 +05:30
Marcos Fermin Lobo
b0a2fc64b3 Add Magnum actions
- Implement MagnumAction class
- Map first actions (baymodels) from Magnum
- Tests

Change-Id: Ib61bee8c3d18e1f6ef8a580e3ec3e5157926f89c
Implements: blueprint add-magnum-action-pack
2016-06-09 08:41:56 +02:00
Andras Kovi
7b6d76659a Fixes the Mistral Docker image
Refactored to make the docker stuff self contained and removed the
unnecessary files from the root directory. Also created a readme file to
concretize how this feature works.

Also added an example script to set up Mistral with MySQL.

Closes-Bug: #1585911

Change-Id: I7fbcccb9d7ad168c5391e71326b205d074ab01ab
Signed-off-by: Andras Kovi <akovi@nokia.com>
2016-05-27 13:26:05 +02:00
Renat Akhmerov
af5975eaf4 Enforcing upper constraints for tox test jobs
Co-Authored-By: Lingxian Kong <anlin.kong@gmail.com>
Change-Id: Ibe35586272f39d5c0bbf2cd4e3425b5f06e2b6ea
2016-05-21 12:24:35 +12:00
ravikiran
42ca859c27 Add Designate apis as mistral actions
Implement designate actions in Mistral, useful for automating the designate tasks

Change-Id: Id6f9d1c7a29530068be453a7c8c1fc607af23e91
Implements: blueprint designate-api-actions
2016-05-16 02:54:41 -04:00
Daryl Mowrer
812f1803a6 Add Mistral action pack
This patch adds support for calling Mistral v2 APIs as actions in
Mistral.

There will be at least two more patch sets for this blueprint to
fully support these changes.

Change-Id: I0226482ddee1573232663e124837deb8a1985df8
Implements: blueprint mistral-mistral-actions
2016-02-19 07:42:47 -06:00
Jenkins
5fe1d7c5e9 Merge "Added CORS support to Mistral" 2016-02-12 20:18:04 +00:00
Limor
6a0557f570 Add actions to expose OpenStack Barbican APIs
Add Barbican actions to Mistral

Change-Id: I5b8edf6d435e2e79b5ab4663df8fe72d09e1d346
Implements: blueprint support-barbican-actions
2016-02-09 08:50:55 +00:00
Michael Krotscheck
b57e1b0286 Added CORS support to Mistral
This adds the CORS support middleware to Mistral, allowing a deployer
to optionally configure rules under which a javascript client may
break the single-origin policy and access the API directly.

For Mistral, the CORS middleware was added directly to the wsgi factory.
Config generation and tests have also been provided.

OpenStack CrossProject Spec:
   http://specs.openstack.org/openstack/openstack-specs/specs/cors-support.html
Oslo_Middleware Docs:
   http://docs.openstack.org/developer/oslo.middleware/cors.html
OpenStack Cloud Admin Guide:
   http://docs.openstack.org/admin-guide-cloud/cross_project_cors.html
DocImpact: Add link to CORS configuration in admin cloud guide.

Change-Id: Ic8f2e257acb256d9ea99b66d2ed1dcfc8652ae89
2016-02-03 06:20:17 -08:00