571 Commits

Author SHA1 Message Date
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 177fbea79a1babdcd4e8230341380d373eef6df4 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