Commit Graph

818 Commits

Author SHA1 Message Date
MinSun
f692b4c9ac Make nova nova_instance_datadir_volume configurable.
User can use custom directory for nova instance.
For example using a shared file system as backend.

Change-Id: I11fe4891719a2e2a34888d8b798df5602e294e4f
2018-07-05 10:16:59 +08:00
Zuul
fd3f54faed Merge "Add a job for testing deployment of bifrost" 2018-07-04 15:51:45 +00:00
yuqian
8f156691ce fixed destroy confirmation no properly evaluated
To destroy a kolla-ansible environment a confirmation string should be passed
along with kolla-ansible command: kolla-ansible destroy -i ~/multinode \
--yes-i-really-really-mean-it
However, this string is not evaluated right and just putting --y starts destroy
process: ./kolla-ansible destroy -i ~/multinode --y

Change-Id: I5983f9c7fd3859d60741dfd23ad10dfd91872eeb
Closes-Bug: #1701313
2018-07-02 14:08:54 +08:00
Liping Mao (limao)
6531dc9668 Fix pre-commit-hook can't work
remove unused validate-all-json.sh and validate-all-dockerfiles.

Change-Id: Ia534c200f771c23d015ab32b0cc952ca36354451
Closes-Bug: #1778146
2018-06-24 15:32:50 +08:00
Mark Goddard
45a4f9c075 Add a job for testing deployment of bifrost
Deploys a bifrost container using kolla-ansible bifrost-deploy.

IPA and disk images are downloaded rather than built to improve
reliability.

Currently only minimal testing of the deployment is performed, creating
and deleting an ironic node. Ideally we would perform a bare metal node
deployment.

The job is based on CentOS, as Ubuntu bifrost deployment is currently
failing with a python-MySQLdb error.

Change-Id: Ic45094594c21116b5b0d6a606f568fc7954175e3
2018-06-18 13:40:43 +01:00
Zuul
7cfeffaa35 Merge "ovs-dpdkctl.sh syntax error" 2018-06-12 07:30:54 +00:00
Borne Mace
c7c61fca06 Avoid removing kolla-cli directories on destroy
When running the kolla-ansible destroy playbook most of the files
under /etc/kolla are cleaned up.  This change will cause the
clean-up to skip the kolla-cli related directories.  When running
the deployment code in a container or a separate VM this is not
an issue, but when doing an all-in-one or running the deployment
process from one of the systems being deployed onto it would have
previously destroyed the kolla-cli inventory and any generated
certificates used for TLS.

Change-Id: Icd62e177964b8fb31052131785c6d7b138975a28
2018-06-07 13:44:24 -07:00
Jeffrey Zhang
4ab76ed9e1 Put upper limit on cmd2 in kolla-toolbox
This fixes an issue with cmd2 >= 0.9.0 requiring python3.

Change-Id: I5f88f0b0540785f8e7b7ab7c5252c6a51f314922
Closes-Bug: #1773938
2018-05-30 16:00:58 +08:00
johjuhyun
6f398cefb6 ovs-dpdkctl.sh syntax error
ovs-dpdkctl.sh doesn't work properly

Closes-Bug: #1770045
Change-Id: Ia450553296f7613f4883b79e9dd1eb3bc950e9c6
Signed-off-by: johjuhyun <juhyun.joh@samsung.com>
2018-05-12 03:31:03 +00:00
Jeffrey Zhang
c567055176 Fix ansible warning
- rename action and serial to kolla_ansible and kolla_serial
- use become instead of "sudo <command>" in shell
- Remove quota for failed_when and changed_when in rabbitmq tasks

Change-Id: I78cb60168aaa40bb6439198283546b7faf33917c
Implements: blueprint migrate-to-ansible-2-2-0
2018-05-11 02:54:02 +00:00
Jorge Niedbalski
6c5a6c65f1 Enforce removal of container network namespace.
This patch enforces the removal of the container
network namespace when the environment is destroyed.

Closes-Bug: #1769651

Change-Id: I9b0bbbb5a59e6067a745635c555051ef97b79f9a
Signed-off-by: Jorge Niedbalski <jorge.niedbalski@linaro.org>
2018-05-07 16:23:02 -03:00
ZhijunWei
44b49adda1 Add test for credentials set
the /etc/kolla/adminrc.sh should be export before
init vpn script, this ps to add test for credentials
set to avoid it missing.

Change-Id: Ib849d5f5804221c507c2466f2f08179340188c24
2018-04-28 15:43:06 +00:00
Paul Bourke
e5a8481847 Simplify init-runonce boot command
openstack cli now supports --network foo rather than having to find the
network uuid. Thanks to mgoddard for the tip.

Change-Id: I9ce94a86c6950b81ef3ec70fe10ee565cc1f1171
2018-04-13 17:17:04 +01:00
Jeffrey Zhang
def7d35404 Implement ARA sqlite databases over http feature
More info please check[0][1].

[0] http://lists.openstack.org/pipermail/openstack-dev/2018-March/128902.html
[1] https://ara.readthedocs.io/en/latest/advanced.html

Change-Id: I5cf68c0bb54878e328387143712dec9582be04a1
2018-04-02 14:13:54 +08:00
Eduardo Gonzalez
ea1a1dee0d Verify YAML syntax in gates
This patchset implements yamllint test to all *.yml
files.

Also fixes syntax errors to make jobs to pass.

Change-Id: I3186adf9835b4d0cada272d156b17d1bc9c2b799
2018-03-26 17:56:22 +02:00
Zuul
378b8dd932 Merge "Use local cirros image if available" 2018-02-27 05:18:55 +00:00
Zuul
39d9327d29 Merge "Fixes ceph deploy gates" 2018-01-25 14:46:34 +00:00
Zuul
3318cbd19b Merge "Support policy.yaml file [part 8]" 2018-01-24 14:07:54 +00:00
Eduardo Gonzalez
e0d37de9d0 Fixes ceph deploy gates
- Ceph images are not being built when using depends-on a kolla build
  job.
- Sync inventory files with current ones which causes ceph to fail due
  missing groups.
- Small corrections in ceph config.yml syntax.
- fix preparse the disk only once
- enable ceph nfs only when enable_ceph_nfs is true

Co-Authored-By: Jeffrey Zhang <zhang.lei.fly@gmail.com>
Change-Id: Id0c7963bf59e2af4944834dcd16589a638e78ba5
2018-01-24 15:10:01 +08:00
Charlie Kang
26682ea78a ovs-dpdkctl.sh function list_dpdk_nics only grabs the first nic
Adding translate, new line in for loop /etc/default/ovs-dpdkctl.conf
Removed '' around pci_whitelist args for DPDK. When multiple entries
present vswitchd does not start.

Closes-bug: #1718240

Change-Id: I8196d56fe78e9ec1a0504059b98bcb9d1ee33f76
2018-01-23 17:52:19 +00:00
Pengfei Zhang
88e5a440a5 Fixed misspelling in Kolla-ansible
Fixed misspelling in both comments and code function names 

Change-Id: Iaed5f246a9b02fd64433671fd0c0ee41b40bd222
2018-01-23 07:38:45 +00:00
Dai Dang Van
6d49dbb48a Support policy.yaml file [part 8]
- Horizon

This will copy only yaml or json policy file if they exist.

Change-Id: Ib8875ca54dc9dc69abc8338413f7724d9d4ecc45
Implements: blueprint support-custom-policy-yaml
Co-authored-By: Duong Ha-Quang <duonghq@vn.fujitsu.com>
2018-01-22 01:57:14 +00:00
Martin André
84473bec5f Use local cirros image if available
Nodepool nodes saves the cirros image in /opt/cache/files/, we can make
use of it to save some time and remove an external dependency on the
cirros website.

Change-Id: I81b431d8659b1da8b36d660f2a8f1cfa42461a14
2018-01-18 04:13:18 +00:00
caoyuan
8cb57f54fa Ensure docker running before execute the destroy action
Before cleanup containers and hosts, it should be ensure the
docker serivce running but the destroy action missing it,
this patch to fix it

Change-Id: I85ca806c1fd395daf937b585d466e16fbad4e20c
Closes-Bug: #1741852
2018-01-08 16:35:41 +08:00
Zuul
8408bb6e07 Merge "init-runonce: use UEFI on aarch64" 2018-01-03 18:33:01 +00:00
Zuul
cb67758e3b Merge "init-runonce: use Cirros 0.4.0 images (aarch64 support got added)" 2018-01-03 16:49:41 +00:00
Zuul
5f0a709dfd Merge "Enable multinode scenarios in zuulv3" 2018-01-03 12:28:34 +00:00
Marcin Juszkiewicz
750d6ff65f init-runonce: use UEFI on aarch64
Nova does not yet defaults to UEFI ;(

Change-Id: I9f26d373f73d15fa571545b3c867beb07da88f48
2018-01-03 12:02:27 +01:00
Marcin Juszkiewicz
54351ebae2 init-runonce: use Cirros 0.4.0 images (aarch64 support got added)
Change-Id: Ia4fbe1f2895593d1f6099f174736e8267b87e8d6
2018-01-03 12:02:22 +01:00
Michal (inc0) Jastrzebski
478e2cf9c9 Enable multinode scenarios in zuulv3
Another step to migrate to new CI

Change-Id: Id9bf9b4b1114f5be66f6c028a0db16d869efeceb
Depends-On: Iaacdca31b27b7033ec08499bcea7061b9d3ec279
2017-12-27 09:21:35 -08:00
yanpeifei
b2b5c07533 It has to tell user how to set the internet ip
Change-Id: I551bd6787dea8dcdfadd09161d295b1290480e8e
2017-12-18 03:05:38 +00:00
Zuul
c6774799b3 Merge "fix shell error about tools/init-vpn" 2017-12-05 07:40:04 +00:00
Ravi Shekhar Jethani
9c66123c30 Don't change directory while running init-runonce
Currently init-runonce script changes directory to the
script's base directory (/usr/...) before doing anything else.
This unnecessarily _forces_ a non-root user to use sudo for
running this script thereby raising privileges for code which
doesn't want it. Also downloading temporary stuff in places like
/usr... seems not a good choice.

Hence deleting the said code part and letting the deployer work
comfortably from any directory.

Made documentation changes accordingly.

Change-Id: Ib3c7ed97aa5f53c115b6337aaf572b5fdc7a71f3
Closes-Bug: #1732963
2017-11-23 16:35:45 +05:30
Jeffrey Zhang
11f9afba1b Pull image from dockerhub rather than tarballs.o.o site
Change-Id: Id71c1ecda9f8647a0eb290fe02a12afb3df09988
2017-11-16 15:44:24 +08:00
Zuul
11502dd477 Merge "Remove trailing whitespaces" 2017-11-09 11:14:58 +00:00
rtmdk
0c6879b85f fix shell error about tools/init-vpn
Change-Id: Ie865b7175b46f939b629d5378d98d0aeba963df2
Closes-Bug: #1729778
2017-11-03 21:30:00 +08:00
Duong Ha-Quang
2d3866c6a4 Specify 'become' for only necessary tasks (default roles)
Add become to only neccesary tasks in roles:
- glance
- heat
- horizon
- keystone
- neutron
- nova
- openvswitch

Gate is also updated to use 'become' feature

Change-Id: I2f3f27306e9f384148e1ad4d54d8da2ebef34d00
Partial-Implements: blueprint ansible-specific-task-become
2017-10-31 02:55:31 +00:00
Christian Berendt
082a488b02 Remove trailing whitespaces
Change-Id: Ia691eb7ea315f60259473bd624ee72c4c2bbe89f
2017-10-26 23:52:24 +02:00
Jeffrey Zhang
cdd125117f Optimize zuul v3 jobs
- move check container failure from post.yml to run.yml
- add binary related jobs
- use static kolla-ansible src dir, which is helpful for kolla project
  to use.
- generate correct /etc/hosts by using private ip address and hostname
- fix the wrong api interface in global.yml file

Change-Id: Idfdee6dfe18f0fa2d4f984df59b57553122ce298
2017-10-26 09:58:29 +08:00
Zuul
e2301f0717 Merge "Add support for --skip-tags argument" 2017-10-19 20:41:58 +00:00
Jeffrey Zhang
baa9319a75 Move to zuul v3 in project jobs
Partial-Bug: #1720601
Change-Id: Ibc20a6ae8c645ff82f3c14a6286073dffd4cfae2
2017-10-18 12:31:52 -07:00
Mark Goddard
c3e91725e2 Add support for --skip-tags argument
This allows for skipping tasks which match the provided tags, using
the ansible-playbook argument of the same name.

This can be useful in combination with --tags, to skip reconfiguration
of the common tasks:

kolla-ansible reconfigure --tags nova --skip-tags common

Change-Id: I766552f7ae4099da3d174759f4a609ffe8b4d89f
2017-10-17 09:31:20 +01:00
Jenkins
8808c8a6e0 Merge "Add support for vault passwords" 2017-10-08 11:24:57 +00:00
Eduardo Gonzalez
fa06dcd37b Fix ci gate failure
This patch includes three unrelated fixes.

Make qemu use nova user in centos
Libvirt 3.2.0 (latest version in centos) seems to
have changed behavior of dynamic_ownership.

Pin ansible to <2.4 to make ara work in gates
ARA does not work yet with ansible 2.4, this change
pins to lower version to make gates work.
Revert once ara works with 2.4

Disable selinux for oraclelinux and centos.

Co-Authored-By: wanghongxu <wang19930902@gmail.com>
Co-Authored-By: Jeffrey Zhang <jeffrey.zhang@99cloud.net>
Change-Id: Iac8bec19437192cd198d58f71c6ed0a65a76f820
Closes-bug: #1718541
2017-09-23 09:03:52 +08:00
Eduardo Gonzalez
684194ff9d Add support for vault passwords
This change adds vault arguments to kolla-ansible
to allow usage of vault encrypted  files.

Change-Id: I1dbae6e949543585d11c21e67e82f559d343b4ad
2017-09-19 17:45:55 +02:00
Christian Berendt
15e2e39ba4 Remove validate-maintainer.sh script
This script is only required in the kolla repository.

Change-Id: I80109d28dc196f489f4a6a73f970a279a9070ce1
2017-09-12 09:31:00 +02:00
Jenkins
9a520e0906 Merge "Fix gates out of disk space" 2017-08-31 13:52:26 +00:00
Eduardo Gonzalez
894e73146c Fix gates out of disk space
Sometimes gates fails due lack of disk space,

This change mounts a second disk in opt and moves
registry data to opt.
Disk format commands are excepts from devstack-gate:
dc49f9e6eb/functions.sh (L306)

Change-Id: I606aa491b8cbf678e83281bad1a0ff39d3920ff2
Closes-Bug: #1713652
2017-08-29 09:11:56 +01:00
Surya Prakash Singh
7aec5a2823 Changed as per the standard convention set to use "."
When we have to source a script file use . instead of source
For Reference follow below link:
https://docs.openstack.org/contributor-guide/writing-style/code-conventions

Change-Id: Ia170ccf245131463e3179dd75ccc66142521bc5f
2017-08-28 16:15:13 +05:30
Sean Mooney
781d84658d introduce playbook to ovs with dpdk
- This change creates a new role to
  support deploying ovs with dpdk.
- This change introduces an enable_ovs_dpdk
  variable to enable ovs with dpdk as part of
  the deploy action.
- This change extends the ovs-dpdkctl.sh tool
  to correctly deploy ovs-dpdk on Ubuntu and CentOS
  hosts.
- This change extends the cleanup-host tool
  to correctly uninstall ovs-dpdkctl.sh tool and its
  systemd files if present on the host.
- This change automatically configures userspace
  kernel drivers.

partial-implementes: bp/ovs-dpdk
Change-Id: I55858d81df437e8258705b75426f61ab9b907c7d
2017-08-09 18:43:06 +00:00
David Moreau-Simard
77f1812e00 Dynamically retrieve the location of ARA to work on both py2 & py3
Remove the hardcoded callback path with python2.7 and use the
virtualenv python to determine the path where ARA is installed so
that no matter if we're running py2 or py3, it will work.

Change-Id: Ica0b94aeebabaeca8416a9768fadd12d3925e7b2
2017-07-22 23:13:16 -04:00
Mark Goddard
922eb494e6 Make Ironic inspector honour inventory
Ironic inspector should honour the Ansible inventory group
ironic-inspector. Ironic inspector may not be required at all. If
Ironic inspector is required then it should only run on a single
node, and this should be reflected by the inventory.

This change makes a number of Ironic inspector-related tasks dependent
upon the host's membership of the ironic-inspector group. Also, we
couple the ironic-dnsmasq container with the ironic-inspector group
rather than ironic-conductor, as the service is for inspector rather
than Ironic.

Change-Id: Ifd90753b0fe1a55c11b7723c28e1d14ab3d32737
Closes-Bug: #1665257
2017-07-19 08:24:21 +01:00
Jenkins
7333ae330f Merge "Upgrade from docker-py to docker" 2017-07-19 03:19:33 +00:00
Jenkins
2cb46ffbae Merge "Allow tmp path to download registry" 2017-07-14 17:38:20 +00:00
Jenkins
29211e317a Merge "Fix tools/cleanup-images script error" 2017-07-14 13:25:52 +00:00
Jenkins
a981b9e325 Merge "Fix depends-on kolla gates" 2017-07-13 10:07:38 +00:00
Michal (inc0) Jastrzebski
50735ff1bb Allow tmp path to download registry
Required for dockerhub publisher

Change-Id: I0231bd07415ef05b3f4f937e32a9df4cd0643672
2017-07-12 14:34:02 -07:00
Michal (inc0) Jastrzebski
2f00c64616 Enable proxy cache for tarballs download
Lately, after we increased number of jobs, infra started to experience
network traffic issues due to us downloading registries. This
per-nodepool cache should help and also speed up actual gate.

Change-Id: I621a9c91e4508ef208a28137a736fd8468388219
Depends-On: I527d32f9b43dabb7640bfb056e2bf828b7c1dfa9
2017-07-12 11:50:44 -07:00
Hongbin Lu
3daeea37ea Upgrade from docker-py to docker
The pypi package 'docker-py' [1] has been renamed to 'docker' [2].
It is better to move to the new 'docker' package because the old
package will be deprecated and all the new features will go into
the new package only.

Package 'docker' has been added to requirements [3]. The old
package 'docker-py' is still allowed to be in the global requirements
during the transition period but it should be removed after all or
most of the projects finsih the migration.

[1] https://pypi.python.org/pypi/docker-py
[2] https://pypi.python.org/pypi/docker
[3] https://review.openstack.org/#/c/423715/

Change-Id: Ibcd5a57a1fbf55dcc5a690e41f20917f95b63da0
2017-07-10 14:19:28 +00:00
Bertrand Lallau
f5624b21f9 Fix tools/cleanup-images script error
When cleanup-images is launch without parameters the following error is
triggered:
./cleanup-images: line 72: break: only meaningful in a `for', `while',
or `until' loop

This patch fix it.

Change-Id: Ie8c63420a4e9b0d49a4e6be4172c8f0be912b556
Closes-Bug: #1702496
2017-07-10 13:53:23 +00:00
jimmygc
f70dfc5dc3 Make glance filesystem_store_datadir configurable.
User can use custom directory to store images.
For example using a shared file system as backend.

Change-Id: Iab7a9a51e619bdbf8f7bd4626ebe4d703e6d4819
2017-07-10 14:46:22 +01:00
Eduardo Gonzalez
378ec1f1fe Fix depends-on kolla gates
When using depends-on, gates will not build cinder
and ceph images, causing ceph deploy gates to fail.

Change-Id: I441c742251754db27374331f774041c214678eba
2017-07-10 11:28:42 +00:00
Jeffrey Zhang
ae79f7bb7c Use latest docker engine in gate
Kolla support latest docker engine right now.

Closes-Bug: #1661549
Change-Id: I5074fd16bdd158df8e97f909dead0a59a14fdf42
2017-07-07 17:25:08 +08:00
Jeffrey Zhang
065b64feaf Fix add cleanup images cli options release note folder
Change-Id: Ie206f0f245648df855ceb6140e60de664dac74fc
2017-07-04 10:44:54 +08:00
Jenkins
450b8df39f Merge "Add cli options to cleanup-images" 2017-06-27 05:19:37 +00:00
Michal (inc0) Jastrzebski
339b27c7fe Enable multi-scenario gates
First non-trivial scenario we'll be testing in gates will be cinder +
ceph. This patchset is supposed to create framework to easily add new
testing scenarios.

Change-Id: I6790eaf5cf3297af04a64e4169a39b6e2cd1890f
2017-06-19 10:14:33 -07:00
Jenkins
fca0b3702d Merge "Removing ovs bridge before destroying container" 2017-06-16 10:51:44 +00:00
Paul Bourke
5cb375645c Add a Kolla 'devstack' mode
Add a new variable 'kolla_devmode', which when enabled, clones and
bindmounts service source code into the containers.

This commit adds the relevant changes for Heat, more services can be
added and built upon.

Usage:
* Set 'kolla_devmode: yes'

* Code is cloned to /opt/stack/{{ project_name }} on target
  node(s)

* Users can develop in these repos, and simply restart the container to
  pick up / test changes.

Debugging can be done from the host via 'remote_pdb'[0].

[0] https://pypi.python.org/pypi/remote-pdb

Implements: blueprint mount-sources
Change-Id: Ic0431b10d723bf84eeefc72039376fe0058dd902
2017-06-08 09:55:54 +01:00
Jenkins
f8c40a4588 Merge "Fix unrecognized --limit option" 2017-06-07 13:30:57 +00:00
Michal (inc0) Jastrzebski
f5354f55b1 Enable multinode gate
This patches changes deploy_gate quite a bit so in reality all
deployments will now assume multinode (even if it's single node). After
that we will refactor it even further to enable easy addition of new
scenerios.

Change-Id: I1faada46e6a7aa026128b2f01d77eabb04759439
2017-06-05 11:35:20 -07:00
Jenkins
77041db66e Merge "[Trivial] Fix two typos in kolla-ansible." 2017-06-04 14:55:34 +00:00
Jeffrey Zhang
94a882babe Enable port_security in gate to fix the neutron broken
Revert this when neutron bug[0] is fixed.

[0] https://bugs.launchpad.net/neutron/+bug/1694420

Change-Id: Id9f84608826351b9675cd6a6f2a183e91ce33bf6
Partial-Bug: #1694420
2017-06-04 09:01:49 +08:00
Eduardo Gonzalez
973145f88f Fix unrecognized --limit option
Kolla-ansible does not have as its allowed parameters
ansible's limit.

Change-Id: I86821fe39e6f0f61e513a0677bf177234c203103
Closes-Bug: #1693801
2017-06-02 15:52:12 +02:00
Jenkins
e8c0ed8b7e Merge "Add kolla-ansible bash completion script" 2017-06-02 11:05:44 +00:00
Jenkins
b10ab47592 Merge "Fix some wording issues on a comment" 2017-06-02 09:48:35 +00:00
David Moreau-Simard
dc71ebe267 gzip the ARA report after generating it
ARA behaves well gzipped and shaves a lot of the size due to it being
composed mostly of text.

Change-Id: I7a3f21af365d13ba783d200a75d18b50429a1488
2017-05-25 16:25:45 -04:00
Chen
c6c75e578b Fix some wording issues on a comment
Change-Id: If81fb5a7f7e87f1b6d15b09437353a5264364ef1
2017-05-22 18:21:20 +09:00
liyingjun
479d567177 Removing ovs bridge before destroying container
Change-Id: I0fac4cef9e961b1d64f269bfc27804e77f4ea842
Closes-bug: #1689422
2017-05-19 10:46:12 +08:00
leiyashuai
e8e64f1c83 [Trivial] Fix two typos in kolla-ansible.
Change-Id: I9665338318f8ad4690e4908748065623d0537741
2017-05-16 19:32:36 -07:00
jimmygc
94c5cc570a Add kolla-ansible bash completion script
Make command line more friendly. :)

Change-Id: I8113c72aa00b1c07cb2b77c73e7dd8c7ee833bcc
2017-05-12 09:06:36 +08:00
Jenkins
6db0c9292b Merge "Remove /etc/fstab Swift references during cleanup-host" 2017-05-11 07:59:04 +00:00
jeckxie
4bb722b440 Remove /etc/fstab Swift references during cleanup-host
During cleanup-host, we need remove swift references from fstab.

Change-Id: I18e9a84b0664eb834cf397bcf6d2406abcab47a7
Closes-Bug: #1689285
2017-05-08 19:24:23 +08:00
Eduardo Gonzalez
ba6e3249d2 Change ssh/config permissions to 600
ssh/config permissions are 664 currently, causing error
`Bad owner or permissions on /home/jenkins/.ssh/config`

http://logs.openstack.org/68/461368/1/check/gate-kolla-ansible-dsvm-deploy-centos-binary-centos-7-nv/0a94da7/console.html#_2017-05-01_12_06_08_440775

config file should only be writen by owner.

Closes-Bug: #1687408
Change-Id: Id804f11a91858fa297e5236beb2110e3511eabec
2017-05-01 14:21:24 +00:00
Eduardo Gonzalez
029de18d0b Add ssh-keyscan to unblock kolla-ansible gate
As a change to remove puppet from infra nodepool,
ssh-keyscan is needed for each node.[0]

Host key checking was disabled by default by jenkins
user. [1]

Refs:
[0] http://lists.openstack.org/pipermail/openstack-dev/2017-April/116036.html
[1] https://review.openstack.org/#/c/460731/
Change-Id: I0f4000f18b7a2b3266c95c3f7a5109e3603c94a7
2017-04-28 13:16:20 +00:00
Jenkins
60b5b495a2 Merge "Fix the remove mariadb volume failed" 2017-04-24 12:53:52 +00:00
Eduardo Gonzalez
f6f99db4a2 Add cli options to cleanup-images
Allow remove all kolla images
Allow remove specific kolla version images
Allow remove dangling images
Allow remove single images, all images matched

Usage examples:
   * cleanup-images --all
     - Remove all kolla images
   * cleanup-images --image-version 4.0.0
     - Remove all images matching 4.0.0 kolla_version
   * cleanup-images --dangling
     - Remove all dangling images
   * cleanup-images --image nova
     - Remove all nova images
   * cleanup-images --image nova-scheduler
     - Only remove nova-scheduler image

Implements: blueprint add-cleanup-images-cli-options
Change-Id: I997272098879350e13e0ac00762ae3485e618355
2017-04-24 14:53:24 +02:00
Jenkins
4545fcb420 Merge "fix typo" 2017-04-12 07:42:35 +00:00
Jenkins
3371152960 Merge "Unmount Ceph OSD disks as part of destroy" 2017-04-12 07:11:08 +00:00
Bertrand Lallau
1077da7262 Remove dead code from cleanup-host.sh script
sourcing validate-docker-execute.sh script is not needed anymore and
should be removed.

Change-Id: Ie40ddcd36e71337d94f49467bfb0f8aae50353f7
2017-04-11 16:51:10 +02:00
Paul Bourke
e27165edc5 Unmount Ceph OSD disks as part of destroy
This seems to have got lost during repo split. Adding it back in now.

Change-Id: Ic0b0f5efb12eab58e7872b30611a39640dc44cc2
Closes-Bug: #1629224
(cherry picked from commit e1a2f99014a1aeb3697e8ec3c999cdc12380376b)
2017-04-11 13:45:08 +00:00
youri jeong
f8322dffd3 fix typo
fix typo for specs/kubernetes-deployment.rst, tools/ovs-dpdkctl.sh, tools/setup_gate.sh

'managment' -> 'management'
'seperated' -> 'separated'
'occuring' -> 'occurring'
'discribed' -> 'described'
'recomended' -> 'recommended'
'thier' -> 'their'

Change-Id: Ie59c600698c965cebd9a541b951d704eda9301cb
2017-04-11 12:08:19 +00: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
caoyuan
a565925b0f Fix the remove mariadb volume failed
- when run tools/cleanup-containers mariadb, the mariadb volume remove
failed, because the "volumes_to_remove" can't catch the mariadb
volume, this patch to fix it.

- remove the unnecessary "()"

more test infomation, see http://paste.openstack.org/show/603359/

Closes-Bug: #1674207

Change-Id: I82f5922fcc84d222f74d2551a2c697bf78136a2d
2017-03-20 04:40:33 +00:00
Dave Walker (Daviey)
11f9ba6547 init-runonce - set image distro to "linux"
Currently we omit the os_distro property when uploading the
cirros image to glance.  Nova assumes it to need vfat disk
incase the image is Windows.

This change sets the property to "linux" causing ext4 to be
used instead.

TrivialFix

Change-Id: I3fdb71f5be7702a2dc223946fae82131c6c46154
Signed-off-by: Dave Walker (Daviey) <email@daviey.com>
2017-03-14 01:20:49 +00:00
Jenkins
9d0daa015a Merge "Enable sanity checks from kolla-ansible" 2017-03-09 17:31:51 +00: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
Jeffrey Zhang
cad7fc35f7 Disable running playbooks in serial by default
Run playbooks in serial are unnecessary and may cause some issue. This
patch disables serial.

This patch also removes the serial for MariaDB playbook. MariaDB handle
this internally.

Partial-Bug: #1668185
Change-Id: I3b4216dd82607475e9bd9b44590b631be4abdbdd
2017-03-08 21:27:29 +08:00
Jeffrey Zhang
3c23d480d3 Run precheck after deployed openstack
Change-Id: Iad58edcbbf98405349bda175821b9966fdb10d34
2017-03-07 13:10:23 +00:00
Jeffrey Zhang
6e41c1e326 Exit with error code 1 when there is failure container in gate
Change-Id: If832e5535b0788dfcfe38cd6cf88f0e0001bacd5
Closes-Bug: #1668001
2017-02-28 09:45:14 +08:00
Jenkins
225b1a1dbb Merge "Replace "ara generate" by "ara generate html"" 2017-02-20 17:19:46 +00:00
David Moreau-Simard
3889bbe6f3 Replace "ara generate" by "ara generate html"
The newest version of ARA, 0.11, deprecated "ara generate" in favor
of "ara generate html". "ara generate" will be removed sometime in
the future so let's adjust it right away.

Change-Id: I31bff0a7e130c329da44b46506f5b12fa8d6deb8
Closes-Bug: #1665746
2017-02-17 14:15:27 -05:00
Jenkins
156118738a Merge "Support kolla-ansible installed in a virtualenv" 2017-02-17 16:29:59 +00:00
Jenkins
8748ceee70 Merge "Change python interpreter" 2017-02-17 02:42:16 +00:00
Abel Lopez
8b90fb6d47
Change python interpreter
There is inconsistent use of either `/usr/bin/python` or
`/usr/bin/env python`. This makes for unexpected results when a
user might be using a virtualenv.

Change-Id: Ibb030f920a8869f9113ade70b66a921cc815060d
2017-02-16 13:39:36 -08:00
Mark Goddard
dbc5967f73 Support kolla-ansible installed in a virtualenv
Currently it is not possible to use kolla-ansible when it has been
installed in a virtualenv. Virtualenv-based installation may be
desirable when a suitable system package (e.g. RPM, .deb) is not
available, as it allows the user to install kolla-ansible and its
dependencies without affecting the system-wide packages.

This change checks for the presence of the $VIRTUAL_ENV environment
variable to determine whether we are running in an virtualenv. Since
kolla-ansible is not a python script, this comes with the caveat that we
must source the virtualenv activation script ($VIRTUAL_ENV/bin/activate)
before executing kolla-ansible.

Change-Id: I19efb96605bee3b16df3a0b78cd681e5f15499f6
Closes-Bug: #1530319
2017-02-16 15:31:58 +00:00
Saverio Proto
e2316dd552 Fix BASEDIR because of new kolla-ansible project name
In commit 177fbea79a the project
was renamed to kolla-ansible, and this broke the BASEDIR
in the kolla-ansible wrapper.

Closes-bug: #1665262

Change-Id: I89fe15e5723f39f453a8173f7ced3f623a8bccc5
2017-02-16 09:18:34 +01:00
Jeffrey Zhang
177fbea79a Rename kolla namespace to kolla_ansible
* Rename kolla namespace to kolla_ansible
* remove oslo.config.opts entry points which is uesless
* delete useless tools/version-check.py script

Change-Id: I005dd7223ff23afbb2ce8cbfd0ebec0969102798
2017-02-15 16:34:51 +08:00
Jeffrey Zhang
38813f8c74 Install ansible without upper constraints
Ansible use jinja2 < 2.9, but requirements/upper-constraints.txt
requires jinja2===2.9.5. Installing ansible shouldn't use upper
constraints provides by OpenStack.

Change-Id: Ib37e8d06373a61959b41b8737085d5f001650e42
2017-02-12 07:44:16 -07:00
Jenkins
6761120111 Merge "Custom init-runonce values" 2017-02-09 12:16:46 +00:00
Jenkins
4d75216889 Merge "adds ovs-dpdkctl tool" 2017-02-08 18:56:14 +00:00
Saverio Proto
882c31231d Fix BASEDIR to package Kolla with snapcraft.io
Change-Id: Ifc2af94e30183c86166ec2946d107becd53fd82f
2017-02-07 15:09:33 +01:00
Eduardo Gonzalez
1a54266029 Ignore qemu-img process in cleanup-containers
Change-Id: I059b0aafbf93cf8c131beba47ca6f6718ec5fb36
Closes-Bug: #1586548
2017-02-02 09:49:12 +00:00
Jenkins
b05e4e1ee2 Merge "Fix security group creation" 2017-01-30 14:43:21 +00:00
Jenkins
f9fa774498 Merge "Fix cleanup-containers script" 2017-01-25 16:53:44 +00:00
Eduardo Gonzalez
5d9ca9d3a1 Custom init-runonce values
Change-Id: Ibff560ffa7023e9629e8ea1762121c595c3fb3f4
2017-01-25 08:59:19 +00:00
Eduardo Gonzalez
8c1893777c Fix security group creation
When using init-runonce script multiple default
security groups are present and raise error:
More than one security_group exists with the name 'default'.

Add a check to create rules to admin's default sec group.

Change-Id: Iaf93467d70ae41fdbcd2b37d6c5639a32d939394
2017-01-24 15:07:26 +00:00
Jenkins
2b37e3b871 Merge "Add fluentd role" 2017-01-24 12:54:12 +00:00
zhubingbing
d3d4a933be Add fluentd role
* add fluentd role
* remove heka configure

Co-Authored-By: yangzb09 <yangzb09@qq.com>

Partially-Implements: blueprint add-fluentd-role

Change-Id: Ica804a99f5bb8b157f406299c5982b7b6283b3e3
2017-01-24 07:44:59 +00:00
Jenkins
f03b939ed4 Merge "Change 1-subnet to public1-subnet in tools/init-runonce" 2017-01-23 16:24:45 +00:00
Jenkins
b40f19f5ea Merge "Add basic docs for neutron-vpnaas" 2017-01-23 12:15:11 +00:00
Sean Mooney
c29244a380 adds ovs-dpdkctl tool
- This change introduces a new tool for configuring
  host interfaces for use with ovs and dpdk.
- The ovs-dpdkctl tool will be executed via systemd
  when a system first boots to bind interfaces to
  dpdk compaible drivers.
- The ovs-dpdkctl tool will be injected into the
  ovsdb container to allow external configuration of
  ovs bridges and ports for use with dpdk.

Change-Id: Ie8f32d097f0a6816c2ddd03ade926c00837da322
2017-01-20 16:12:21 +00:00
Jeffrey Zhang
bda9654e53 Fix gate failure
* disable selinux
* Pin docker-engine version

Change-Id: I22c4bdafbeb4d2979ce29a71032cf6569e1f210b
2017-01-20 01:48:50 +08:00
Jenkins
aace9b69c8 Merge "Pull kolla images from tarballs.o.o" 2017-01-18 12:29:23 +00:00
Jeffrey Zhang
4fdac509c6 Pull kolla images from tarballs.o.o
Pull images from tarballs.openstack.org site[0] when there is no
Depends-On in current commit message.

[0] http://tarballs.openstack.org/kolla/images/

Change-Id: I2e5d4d7ed6418624494121e0a530ec95fd045970
2017-01-18 10:39:52 +08:00
Eduardo Gonzalez
0581d3b319 Fix cleanup-containers script
kolla-ansible destroy properly fails if qemu processes
are running in compute nodes.
Manually executing ./cleanup-container won't because
$COMPUTE variable is not defined anywhere.

Change-Id: I304c59ec682a93035e631490bbba7b355b1fcae2
Closes-Bug: #1656864
2017-01-17 15:52:24 +00:00
Paul Bourke
ef4069a1d3 Add basic docs for neutron-vpnaas
Change-Id: I2b456b1626875d863f896ad7fc6c0024f5ed110f
2017-01-17 14:28:01 +00:00
caowei
1063f73620 Fix cleanup-containers
qemu-ga should be excluded

Change-Id: I89474758a45e52c6c2da7307764344863e065aed
Closes-Bug: #1655838
2017-01-12 18:22:38 +08:00
caowei
cb7449f69a Change 1-subnet to public1-subnet in tools/init-runonce
TrivialFix

Change-Id: I363d09a2565af5b7d4c67afec8fc0c5ae70c8540
2017-01-12 15:11:06 +08:00
Jenkins
b8df00bb95 Merge "Fix ovs-cleanup issue at cleanup scripts" 2017-01-09 14:28:52 +00:00
Paul Bourke
f4b5c2db74 Update init-runonce to use openstack commands
Change-Id: I522feee353a7afcdca6862ce4e262e14e36df3a2
2017-01-06 13:49:49 +00:00
Jeffrey Zhang
d5406a04f5 Fix gate in iax-ord node when using libvirt 2.0
Change-Id: Ifacc2462db2bcd7c8091a23c30e9442ec0140c97
Closes-Bug: #1653863
2017-01-04 11:21:13 +08:00
Jenkins
6b37f73ace Merge "Enable horizon deployment in gate" 2017-01-03 16:44:39 +00:00
Eduardo Gonzalez
da83802b1b Fix ovs-cleanup issue at cleanup scripts
Move ovs-cleanup step to cleanup-containers,
otherwise bridges will not be removed because neutron_openvswitch_agent
container does not exists after running cleanup-containers.

Add logic to cleanup ovs bridges only when openvswitch_db
is removed and openvswitch-agent is running,
so when removing other container from a parameter at script
invocation ovs-cleanup will not be executed.

Change-Id: Ie5fea40426df0e9e465fc173aba185f61098f676
Closes-Bug: #1640178
2016-12-30 14:10:30 +01:00
Jeffrey Zhang
38da0b3dc2 Enable horizon deployment in gate
horizon is a key service and need to be test in the gate.

Change-Id: I89fc1a32b54483c4331c31fb6349dee317c1bc2a
2016-12-21 08:09:06 +00:00
Sam Yaple
fc2bb3f37f Switch Ubuntu to overlay2 docker driver
With 4.4 kernel we can use the improved overlay2 driver instead of
btrfs for significantly better performance when creating layers.

Change-Id: I0b84a2b34fdb71c07798d94b546d3105a2742321
Related-Id: I3b0dfd6db5298dfb34ec160eed910ca76feeb423
2016-12-20 14:42:26 +00:00
Jeffrey Zhang
444dbb48cc Read EXTRA_OPTS from env in kolla-ansible script
Read EXTRA_OPTS from env make it possible that using arbitrary
ansible-playbook parameters in kolla-ansible script. like

    EXTRA_OPTS='--limit control' kolla-ansible deploy

Change-Id: I10e0dafb6138d91facdb66a2f487cdeca4689c28
2016-12-05 10:25:42 +08:00
Jenkins
1c31349cbe Merge "clean up kolla related files" 2016-12-01 20:52:42 +00:00
caoyuan
2f21d2a88d Remove the deprecated command and the useless "if" condition
TrivialFix

Change-Id: I22970a9885eda670ec17d6b8c1b368ed2e10a732
2016-12-01 15:35:07 +00:00
Jenkins
15a917a62a Merge "Added support for a stop playbook in kolla" 2016-12-01 13:59:07 +00:00
Jeffrey Zhang
27ee3973a7 Install ansible with OpenStack requirements constrains
OpenStack requirements constrains is well tested. Use it in case of
installing upstream broken package.

This also fixes latest requests 2.12.2 break docker-py, which makes
kolla gate red.

Change-Id: I3e4ec4af2a6e1280313733e8f31f2eea7669dbc1
2016-12-01 18:50:42 +08:00
Jenkins
c5289bb111 Merge "Ignore dom0 qemu processes during destroy" 2016-11-30 17:32:35 +00:00
Jeffrey Zhang
92ff63f3e0 clean up kolla related files
* rename package name from kolla to kolla-ansible
* remove docker for data_files
* remove kolla docker
* remove kolla-build console_scripts

Change-Id: I53abbf79dffb54eb785a39ba04d375bc4e4f27b0
2016-11-30 11:17:35 +08:00
Vladislav Belogrudov
14f9246fcd Add tool to merge passwords during release upgrade
Typical usage:
   cp /etc/kolla/passwords.yml /etc/kolla/passwords.yml.old
   kolla-genpwd
   kolla-mergepwd --old /etc/kolla/passwords.yml.old \
                  --new /etc/kolla/passwords.yml     \
                  --final /etc/kolla/passwords.yml

Change-Id: Ibbc598909e28e096145841aec929d0cfcf8f7cab
Implements: blueprint kolla-merge-passwords
2016-11-28 12:22:55 +03:00
Borne Mace
eb138539f2 Ignore dom0 qemu processes during destroy
Updates cleanup-containers to disclude lines related to
dom0 qemu processes.

Change-Id: I0b71ed29b9a2f239ebfdaa66b7cbe41eeaf2773c
Partially-Implements: blueprint xen-hypervisor-support
2016-11-23 14:26:57 -08:00
Borne Mace
2cfc069e21 Added support for a stop playbook in kolla
Behavior of stop playbook is very similar to the destroy
playbook.  This is meant when you may just want to bring down
the service for some sort of maintenance but not destroy all
the associated data. Also added support for the new playbook
into the kolla-ansible command.

Change-Id: Icf0ca91de71dc8ead3a024de3e5b9e49116560d1
Implements: blueprint ansible-stop-host-playbook
2016-11-23 11:45:23 +00:00
Jenkins
e651adfcc9 Merge "Remove the disable of ipv6 in gate" 2016-11-22 18:07:13 +00:00
Jeffrey Zhang
05a458a739 Remove the disable of ipv6 in gate
Disable ipv6 will lose the vm

Change-Id: I7316d013d9281946c1c566279cd64ecbe6b67d37
Closes-Bug: #1643858
2016-11-22 20:06:10 +08:00
Jeffrey Zhang
c4cecc2bf4 Use tox to build gate images
Change-Id: I6f9190eccb2e1a1c5bd450ba63833f35f5d09aac
2016-11-21 11:27:07 +00:00
Jeffrey Zhang
db5954e0b3 fix ci gate
* Build kolla image by using kolla project's code
* bump openstack_release to 4.0.0
* Remove tox deploy related env, it is useless now.

Depends-On: I132ee005bce993cbadf411697817c2e95548dc81
Change-Id: Id899eb39d476b95130fbeb43adf4fd49ef32be32
2016-11-21 19:26:44 +08:00
Jenkins
c9808a2e21 Merge "Use openstack_service_workers variable in gate" 2016-11-11 17:08:11 +00:00
Jeffrey Zhang
c8f55a6d08 Use openstack_service_workers variable in gate
set openstack_service_workers to 1 in gate.

Closes-Bug: #1640416
Change-Id: I59560fd543f25e0b60b3f11f1c941adf595b3131
2016-11-09 08:42:51 +00:00
Jenkins
54cc601eed Merge "Adding the steps of generateing ssh key in tools/init-runonce" 2016-11-08 14:16:33 +00:00
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
caowei
3e5e7f27d7 Adding the steps of generateing ssh key in tools/init-runonce
TrivialFix
Change-Id: I66857a92b0ae61cd8300955e2bf9605f93937b1d
2016-09-26 19:33:25 +08: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