515 Commits

Author SHA1 Message Date
Jeffrey Zhang
2392d7e38c Add file validator for *.json.j2 file
All json file in Kolla are json.j2 file, it shold be render as jinja
template, then validate by using json.

Change-Id: Ibabbe435116fd255d68347e00407156db76fedfe
Closes-Bug: #1634447
2016-11-05 01:16:12 +08:00
Jenkins
cc098c19b9 Merge "Improve playbook to setup gate nodes" 2016-11-04 14:52:27 +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
Jenkins
04eef90e51 Merge "Unpin ARA, update callback location" 2016-11-02 13:03:25 +00:00
caoyuan
ffa552b282 Update the way of loading the admin-openrc.sh file
TrivialFix

Change-Id: I3cfa94d9f6202664a06c24d691376eb8759b922a
2016-10-29 22:21:26 +08:00
Jeffrey Zhang
37f36af5f5 Print all docker images in gate
TrivialFix

Change-Id: I65ba1828fccee52194eb2b76c4055c922236d97b
2016-10-24 20:16:22 +08:00
David Moreau-Simard
fd60d2baf4 Unpin ARA, update callback location
ARA 0.9.2 was released which deprecates the previous callback location
in favor of a new one. The deprecated location still works but let's
move to the new one right away.

Change-Id: I8a10d5855ab6f813e52cc6efce5bcfe91d9c3f92
2016-10-22 21:52:05 -04:00
David Moreau-Simard
75cc748b09 Pin ARA to 0.9.1 temporarily
The next release of ARA (0.10.0) contains a change to the callback
plugin location that /should/ be backwards compatible but let's
control the update to the newer version to be safe and avoid
breaking the gate needlessly.

Change-Id: I32176166e8ebcbfdf0baa8bd7ec30e5ec6d795a5
2016-10-20 17:53:32 -04:00
Jenkins
a64f88168e Merge "Use xenial repos for Ubuntu in the gate" 2016-10-20 10:58:38 +00:00
Jeffrey Zhang
3e89f987c0 Add validate no new line at end of file
TrivialFix

Change-Id: I817aa52caf56b7d54b266e553db6db1ceb38b773
Signed-off-by: Jeffrey Zhang <zhang.lei.fly@gmail.com>
2016-10-19 17:17:06 +00:00
Paul Bourke
b1e538341f Use xenial repos for Ubuntu in the gate
The gate jobs are using Xenial as the base OS so it seems we should be
using the same non-infra repos as our base image.

TrivialFix

Change-Id: I6e5d27364054c474c16120a3195cae819861c8a1
2016-10-19 17:16:41 +01:00
Jenkins
21634e4444 Merge "Use correct Kibana version on the gates" 2016-10-19 16:06:47 +00:00
Jenkins
039eb8d79a Merge "Consistently set sys path when using local tools" 2016-10-19 16:02:12 +00:00
Christian Berendt
4e073cca0e Use correct Kibana version on the gates
We bumped the Kibana version from 4.4 to 4.6 with
Ia18cb89e0951359226add5cbd96d3a91c7fcfd8a. This version should be
used on the gates as well.

Change-Id: I21ccac9a12e4b604d3cf336c6263f2e4cd925524
Closes-bug: #1634049
2016-10-17 08:50:03 +00:00
Jenkins
22e895dcb9 Merge "Use sudo to create loop device on gate nodes" 2016-10-14 16:14:32 +00:00
Martin André
9660b57864 Consistently set sys path when using local tools
Consistently set the search path to prefer PROJECT_ROOT as the source
of packages to import if we are using local tools instead of pip
installed kolla tools.

TrivialFix

Change-Id: Idd1d98bb82a8f1ddb32d1bdb23f346b461534b9f
2016-10-14 17:01:36 +02:00
Christian Berendt
b725bd09dd Move demos and dev directory into a new contrib directory
TrivialFix

Change-Id: Ifb8f19afa1514488bd288670d08b96f84982a4e1
2016-10-14 12:57:49 +02:00
Jenkins
8f1746c78d Merge "Move loc tool into tools directory" 2016-10-13 15:37:32 +00:00
liyingjun
d5fe8a30f9 Cleanup container script improvement
Currently, when there are some qemu processes which may be some useful
virtual machines running by the operator running on non compute node, the
cleanup script will fail the cleanup operation for that node. We need to
ignore the qemu process check for non compute nodes.

Change-Id: If49a1a30764063935b2a65312de8f3b2357c7fbc
Closes-bug: 1633005
2016-10-13 17:31:17 +08:00
Jeffrey Zhang
1bcb139392 Choose node with largest seqno number for mariadb recovery
When all mariadb nodes are stopped gracefully, mariadb galera will
write it's last executed position into the grastate.dat file. Need find
the node with largest seqno number in that file and recovery from that
node.

Closes-Bug: #1627717
Change-Id: I6e97c190eec99c966bffde0698f783e519ba14bd
2016-10-09 12:08:58 +00:00
Christian Berendt
a0dc58e099 Use sudo to create loop device on gate nodes
TrivialFix

Change-Id: Iaa8ff2592d89a91081383e1f9c23c860bb73bba5
2016-09-30 12:30:32 +02:00
Christian Berendt
ce11216a0e Improve playbook to setup gate nodes
* use become instead of sudo
* use file instead of shell to change file modes
* rename setup_nodes.yml to playbook-setup-nodes.yml

Change-Id: I69eda1f034b97d13be76efc91458b6d762c76baf
2016-09-29 16:34:03 +02:00
Christian Berendt
3c14fe6139 Move loc tool into tools directory
TrivialFix

Change-Id: I95d8d011602556de3dd3591247cc6c63170425f7
2016-09-29 16:23:11 +02:00
Jeffrey Zhang
e328ada3bd Optimized the serial upgrade and reconfigure
* add serial for reconfigure
* set playbook serial by using variable
* fix serial for barbican, influxdb and vmtp

Closes-Bug: #1624607
Change-Id: I66530c7736e1673a592eddbde75637825d12d9e2
2016-09-17 04:08:58 +00:00
Jenkins
92c680216f Merge "Add ara to collect ansible playbook running statics" 2016-09-16 11:56:47 +00:00
Jenkins
2cf3f65bc9 Merge "Use "type" to take place of "which" and update the output" 2016-09-16 09:24:48 +00:00
caoyuan
d48cc50e9e Use "type" to take place of "which" and update the output
When run tools/init-runonce without some client installed,it's
retrun not friendly and confuse people,such as user does not
install python-openstackclient, it will return "openstack not
installed".This patch update it.

Use "type" command to avoid "which"

TrivialFix

Change-Id: I53789a767b3a2727bf2cb848c2881272e313e14c
2016-09-16 09:13:13 +08:00
Paul Bourke
dc85fda07a Add a tip at the end of tools/init-runonce
Give the user an easy to run way to test their deploy after running
init-runonce.

TrivialFix

Change-Id: I7d984433c8f1b56d0b74be06b3e411044e897790
2016-09-15 15:46:56 +01:00
Jenkins
7db277b145 Merge "move ovs cleanup to tools/cleanup-host" 2016-09-13 14:44:26 +00:00
Sean Mooney
f0aa137a1d move ovs cleanup to tools/cleanup-host
- One of the usecase supported by tools/cleanup-containers
  was the ablity to remove container with a regex so that
  you could redepoloy just that single componet.
- By cleaning up ovs in cleanup-containers that is nolonger
  possible.
- This change move the cleanup of ovs from,
  tools/cleanup-contianers to tools/cleanup-hosts

TrivialFix

Change-Id: If2001130f4a2400555ce4d9ac5ee506482e4c25e
2016-09-12 20:46:56 +01:00
Nguyen Hung Phuong
253692630f Clean imports in code
In some part in the code we import objects. In the Openstack style
guidelines they recommend to import only modules.

http://docs.openstack.org/developer/hacking/#imports

Change-Id: I4b55cae8c2672f82025a95112b14d441d66f9d6d
2016-09-12 15:17:28 +07:00
Jeffrey Zhang
cae4d364ad
Add ara to collect ansible playbook running statics
TrivialFix

Change-Id: Id2a13be9c04920b5326534005750286f842aa731
Signed-off-by: Jeffrey Zhang <zhang.lei.fly@gmail.com>
2016-09-11 18:39:28 +08:00
Jenkins
22363e63b8 Merge "TrivialFix: Delete virtual bridge artifacts when cleaning hosts" 2016-09-11 04:11:12 +00:00
Jenkins
99897c5438 Merge "Change ceph version to Jewel" 2016-09-09 18:58:29 +00:00
Michal (inc0) Jastrzebski
0a50cb8889 Change ceph version to Jewel
This patch changes version of ceph from hammer to jewel. Also removed
versionlock as it seems we don't use it in ubuntu, and actually might be
risky if we miss security patch on ceph.

Change-Id: Ib8f88c2f914a4b635e59a509fa0194605eb73165
Implements: blueprint upgrade-ceph-to-jewel
2016-09-09 14:30:36 +00:00
Jenkins
207bef6abe Merge "Improve script to check used source versions" 2016-09-08 13:53:34 +00:00
Jenkins
4a1e761e30 Merge "Keepalived leaves VIP on the host in case of accidental removal." 2016-09-08 12:00:09 +00:00
Takashi Sogabe
b6de8fdc06 Keepalived leaves VIP on the host in case of accidental removal.
This patch removes VIPs when 'kolla-ansible destroy' is invoked.

Change-Id: I263b9bc852c7bc3448a6a15b3115b1f226071afc
Closes-Bug: #1605442
2016-09-07 17:13:58 +09:00
Jenkins
c930a0045c Merge "Update destroy include images arg to LONGOPT" 2016-09-07 01:08:07 +00:00
luyao
cf2ff03d60 TrivialFix: Delete virtual bridge artifacts when cleaning hosts
After cleaning hosts by using tools/cleanup_host, some of the ovs bridge
devices such as ovs-system still exist. This will result in
{{neutron_external_interface}} not working properly because it had been
added to the ovs-system bridge. The solution is calling
neutron-ovs-cleanup script in neutron_openvswitch_agent container before
removing it.

TrivialFix

Change-Id: Ib3b096d842f2210b8bd223892a3492ef2fcf7c52
Signed-off-by: luyao <lu.yao135@zte.com.cn>
2016-09-06 09:05:30 +00:00
Christian Berendt
4b69671a49 Improve script to check used source versions
* rename version_check.py to version-check.py
* move requirement beautifulsoup4 from requirements to test-requirements
* add new requirement PrettyTable to test-requirements
* add debug logging messages (can be enabled with --debug parameter)
* add support to load configured versions from a kolla-build.conf
  file (can be used with --config-file parameter)
* use PrettyTable to print out a nice result table

---snip---
+---------+-----------------+----------------+------------------...
| Project | Current version | Latest version | Comparing changes...
+---------+-----------------+----------------+------------------...
| aodh    | 2.0.3           | 2.0.4          | https://github.co...
| cinder  | 8.0.0           | 8.1.0          | https://github.co...
| ironic  | 5.1.1           | 5.1.2          | https://github.co...
| murano  | 2.0.0           | 2.0.1          | https://github.co...
| nova    | 13.1.0          | 13.1.1         | https://github.co...
+---------+-----------------+----------------+------------------...
---snap---

TrivialFix

Change-Id: I5b5d3db34396b2fc95714273612563ea14e78cf8
2016-09-06 09:11:40 +02:00
Paul Bourke
cd9774baa8 Update destroy include images arg to LONGOPT
Change the argument for including images as part of destroy from '-e
destroy_include_images=yes' to a more consistent --include-images.

TrivialFix

Change-Id: I0a29c69121697cab751578093cc7ca58011eb853
2016-09-02 15:02:06 +01:00
Jeffrey Zhang
a912b7909a
Use a local docker image namespace in gate
use different a docker namespace name in case it pull image from
hub.docker.io when deplying in gate

TrivialFix

Change-Id: I643000e5d9e597a254a4f12c0c10186d4eb20429
Signed-off-by: Jeffrey Zhang <zhang.lei.fly@gmail.com>
2016-09-01 22:17:57 +08:00
Jenkins
64f2dafe2b Merge "add deploy-servers command" 2016-09-01 07:03:24 +00:00
Jenkins
f3fedb8bef Merge "add bifrost deploy ansible support" 2016-08-31 16:26:08 +00:00
Jenkins
909883a6d4 Merge "Add warning to kolla-ansible destroy action" 2016-08-31 15:25:07 +00:00
Jeffrey Zhang
96bf1cfee4
Add warning to kolla-ansible destroy action
Change-Id: Id7591dff978b8fb7ba2c59331ffd83a77ecf46ab
Closes-Bug: #1610546
Signed-off-by: Jeffrey Zhang <zhang.lei.fly@gmail.com>
2016-08-31 21:51:08 +08:00
Sean Mooney
64c40e20a5 add deploy-servers command
- This change extends kolla-ansible
  with a deploy-server command to enroll and deploy
  physical servers with bifrost.

Change-Id: Iaa9f34b00e676569f6e3df679b7454b1ec0b8e34
Implements: blueprint bifrost-support
2016-08-31 13:12:34 +00:00
Sean Mooney
96b3f0ae3e add bifrost deploy ansible support
- This change addes the ability to deploy
  and bootstrap bifrost.
- This change introduces a deploy-bifrost
  command to kolla-ansible.

Change-Id: I62afcf348661add900c98904e90a15a0eddffd4b
Implements: blueprint bifrost-support
2016-08-31 13:11:59 +00:00
Jenkins
1fd2d434b1 Merge "Fix bandit gate jobs" 2016-08-28 15:51:00 +00:00