23 Commits

Author SHA1 Message Date
zhubingbing
2c9d9c9105 Set api_v2 to True in image-feature-enabled
Either api_v1 or api_v2 must be True in [image-feature-enabled]

Change-Id: I8d25d4b43b030c58e9c365937d81c82418a47436
Closes-bug: #1703722
2017-07-12 10:30:17 +08:00
Jenkins
a71aa61ea7 Merge "Use unified vars in task" 2017-07-12 01:56:12 +00:00
zhubingbing
17ac22c40d Fix option api_v1 in tempest.conf
Change-Id: Ia92ea9114ffec1dc3108969cb48a3264a23e0eea
Closes-bug: #1703515
2017-07-11 05:57:16 +00:00
Jeffrey Zhang
03e1b05f99 Use unified vars in task
Ansible task support vars directive, no need implement another one in
merge_config. This patch remove the vars directive in merge_config
action plugin.

Change-Id: I33648a2b6e39b4d49ce76eb66fbf2522721f8c68
2017-06-15 22:37:28 +08:00
zhubingbing
9eb9622749 Set tempest image user var
If we don't use cirros image, ``image_ssh_user = cirros`` is wrong,
so we should make it be variable.

Change-Id: I0a1d6999d1dbc8ce319f4bd504455dfd1fb5fceb
Closes-Bug: #1696088
2017-06-07 10:28:38 +08:00
Eduardo Gonzalez
e9bde0dcb9 Use auth vars for admin user
In someplace in the code admin user, project and domain name
are hardcoded.

This change use the correct variable defined at:
https://github.com/openstack/kolla-ansible/blob/master/ansible/group_vars/all.yml#L278

Change-Id: I3a4c78d81733bf7a2f3c67d259ec5c5f5bb38d3f
2017-05-16 08:54:37 +00:00
Bertrand Lallau
56b185c3dd Cleanup privileged attribut usage in containers
Rally and Tempest containers doesn't required "privileged" attribut.
This must be cleanup.

Change-Id: Ic8de5162523314dd78dad7d25b36145350749bcc
2017-04-26 10:55:40 +02:00
Bertrand Lallau
1d003a54ca Add YAML missing dashes at start of file
YAML files are supposed to start with three dashes to indicate the
beginning of the document.
Nota: Ansible won’t complain if they are missing.

Change-Id: I5cd417971f7af2977e7527b7b454a999718cfcda
2017-04-25 17:14:33 +02:00
Bertrand Lallau
e6e48c30e3 Tempest: remove all oslo.policy related stuff
The OpenStack Integration Test Suite (Tempest) doesn't use oslo.policy
library.
oslo.policy is not used in codebase and not set in requirements.txt:
https://github.com/openstack/tempest/blob/master/requirements.txt#L14

All policy.json related stuff must be removed.

Change-Id: I0d8ee710979a7eebba1e8fc176450e4c0bcbe757
2017-04-24 10:18:11 +02:00
caoyuan
ff46e0908f Update the cirros version to "0.3.5"
Refer to
https://docs.openstack.org/ocata/install-guide-rdo/glance-verify.html

Change-Id: Ic2a32a3f17a11f1f6e8ecf0f7271d7d1f12ca5bc
2017-04-03 16:04:12 +08:00
Paul Bourke
5418ada148 Enable sanity checks from kolla-ansible
Add a new subcommand 'check' to kolla-ansible, used to run the
smoke/sanity checks.

Add stub files to all services that don't currently have checks.

Change-Id: I9f661c5fc51fd5b9b266f23f6c524884613dee48
Partially-implements: blueprint sanity-check-container
2017-03-09 10:37:06 +00:00
caoyuan
82d56e94cd Optimize reconfiguration for tempest
Change-Id: I75e3a3b32a5ad0bc613a90130fa5bcc65605ca68
Partially-implements: blueprint better-reconfigure
2017-01-26 21:00:35 +08:00
Eduardo Gonzalez
775d8019b6 Add custom policies in service.json
Include custom policy.json files in service-api.json.j2 files

Change-Id: Ic55bfc6f61131aa72c3497ce8b2282056bcc7f92
Partially-Implements: blueprint custom-policies
2016-12-02 16:22:17 +00:00
Jenkins
dbc881456b Merge "Custom policy files" 2016-11-04 13:42:55 +00:00
Jeffrey Zhang
fa45801946 Move precheck into its own role
* Merge prechecks.yml and site.yml playbook
* Create empty precheck.yml into all roles.

Change-Id: I8a138558a26c0a2a66c5fd48ed37be657c99c1dd
Implements: blueprint condition-pre-check
2016-11-03 14:48:58 +08:00
Eduardo Gonzalez
ef1fd6b8c0 Custom policy files
Allow operators to use their custom policy files.
Avoid maintain policy files in kolla repos, only copying
the files when an operator add their custom config.

Implements: blueprint custom-policies
Change-Id: Icf3c961b87cbc7a1f1dd2ffbfffcf271d151d862
2016-10-28 10:47:05 +01:00
Jeffrey Zhang
fa856556d5 Remove do_reconfigure.yml file for all roles
do_reconfigure.yml is introduced to use serial directive. But we use
it in wrong. Now serial has moved to playbook file. So it is time to
remove the do_reconfigure.yml file

Closes-Bug: #1628152
Change-Id: I8d42d27e6bc302a0e575b0353956eaef9b2ca9fd
2016-09-27 15:04:00 +00:00
Eduardo Gonzalez
6f58b12d46 Fix tempest missing spaces
Apply a clear syntax adding missing spaces

TrivialFix
Change-Id: I4046ffc43d58db0b667e661aec83714bc67d8dbb
2016-09-20 17:37:03 +02:00
Christian Berendt
1be052390b Remove public_router_id from tempest configuration template
This parameter is usually not used and should not be provied in the
template.

TrivialFix

Change-Id: I4faea2127b741e06e327dd3e65387678d0bb0527
2016-09-15 15:28:56 +02:00
Mick Thompson
4c1482b999 Added serial option to site.yml.
Useful for upgrade etc., which is preferablly done serially.

Example usage: tools/kolla-ansible deploy OR tools/kolla-ansible upgrade

Closes-Bug: #1576708

DocImpact

Change-Id: I34b2e16f8ce53e472a4682a4738c4ac0f5abf00c
2016-09-13 09:26:51 +00:00
Tin Lam
17d36b7364 Chage with_ loop variables syntax to ansible 2
Migrate to full variable syntax in with_ loop for
manila and tempest.

TrivialFix
Partial-Implements: bp ansible2

Change-Id: Ic68fd6123f0cd5bd0035e139e89f7b569574074c
2016-08-29 01:53:37 -05:00
Jeffrey Zhang
1116953f44 Add pull.yml file for tempest
TrivialFix

Change-Id: I5ba19671a36eb2aab3bda96dd66486422cbc9cf7
2016-08-18 20:54:15 +08:00
Jeffrey Zhang
2102631110 implement Ansible Tempest role
DocImpact

Implments: blueprint ansible-tempest
Change-Id: Iadd86d9d91438f056c433b9a2016f32587c92878
2016-07-20 09:43:10 +08:00