484 Commits

Author SHA1 Message Date
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
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
Paul Bourke
fc30d583f9 Fix bandit gate jobs
* Inspected each error and fixed / added nosec where appropriate.
* build-swift-ring.py which was throwing sec errors is no longer used so
  removed it.
* Removed the dev/ directory from being checked.

Closes-Bug: #1617713
Change-Id: I25664cabca4137e5c9f499c1af3f5ce78b86fb56
2016-08-28 08:52:44 +00:00
Jenkins
ed678a829a Merge "add baremetal role to install kolla deps." 2016-08-23 16:28:17 +00:00
Jeffrey Zhang
2e0c5ecbf8 Fix Ubuntu source gate deployment
In CI environment, MySQL-python wheel package has a wrong _mysql.so
file, which is not compatible with Ubuntu.

Disable wheel index in the CI for pip.

Closes-Bug: #1615231
Change-Id: I127ebb017e09a5bf245e0fdad9bf052203e68e55
2016-08-20 22:28:13 +08:00
Jenkins
5637262ce4 Merge "Add force flag to cleanup-images" 2016-08-19 04:02:18 +00:00
Jenkins
50897ef224 Merge "Update cirros image visibility in init-runonce" 2016-08-19 01:50:52 +00:00
Swapnil Kulkarni (coolsvap)
40a0cb9e0e Update cirros image visibility in init-runonce
During osic scale testing it is found that the cirros
image added during kolla deployed infra init has private
visibility. This need to be public.

TrivialFix

Change-Id: I39712f0a054f393a8450356e23d41170bc22166e
2016-08-18 10:03:38 +00:00
Paul Bourke
731f0bb114 Add force flag to cleanup-images
TrivialFix

Change-Id: I83dfca7d0ad38411ac43ca89de439705a8e5aa12
2016-08-17 10:28:38 +00:00
Jeffrey Zhang
5878757d26 Fix the Ubuntu Xenial build gate
Ubuntu xenial use systemd service manager. Change the setup_Debian.sh
script to handle this.

Change-Id: I1f6487b73b1635e6dce0c68d3d7e1a158b427797
Partial-Bug: #1612887
2016-08-15 10:07:35 +08:00
Sean Mooney
3e8f9986d1 add baremetal role to install kolla deps.
Change-Id: Ie70db1b18a73528b1194e4fbcf53d09fed20f4a0
Implements: blueprint kolla-host
2016-08-10 16:03:08 +00:00
Duane DeCapite
6d45786d59 Change cleanup to destroy as cleanup is a misnomer
The cleanup command in the external API is a misnomer and should
be called destroy.

Change-Id: I083e80699e09bb24266ce1bf549772a5de92a49e
Closes-Bug: 1610364
2016-08-08 13:37:10 -04:00
Paul Bourke
810b7e460b Cleanup images as part of kolla-ansible cleanup
TrivialFix

Change-Id: I88004f08c75e7d648a615e64d59ccf655b6a1a13
2016-08-03 09:58:24 +00:00
Jeffrey Zhang
08985a0d79 Use /etc file to overwrite the docker.service file
Docker engine is updated to 1.12. The docker.service in the rpm is
change. Use the /etc/systemd/system/docker.service.d/kolla.conf file to
overwrite the default parameters

TrivialFix

Change-Id: Ice56808f4a1ce1ee57bf5e48c779d033ea6c759c
2016-07-29 17:30:10 +08:00
Steven Dake
4ece523613 Use local mirror of ceph and uca
Change-Id: I75962ec416a8e4bedb0ad85c93b46cdcd80e8a72
Partially-Implements: blueprint mirrors
2016-07-12 02:34:18 -04:00
Jenkins
c06ae5455c Merge "Fix publicURL endpoint not found issue in CI" 2016-07-05 12:03:41 +00:00
Jeffrey Zhang
186271dba4 Fix publicURL endpoint not found issue in CI
Partial-Bug: #1587226
Change-Id: I8cec44fdd9e6b00fcffe5dd59cbe8c69214b40b8
2016-06-29 23:21:03 +08:00
Jeffrey Zhang
4cc256d9d4 Remove the pull action in the deploy_aio CI
In the current CI, we have no regitry service. when running pull action,
it will pull image form docker.io where has no such image too.

The right direction is set up a local regitry service, then push and
pull image from there.

TrivialFix

Change-Id: I3ebea5cdb539cb700487a2dbffa894fcce8f8723
2016-06-15 16:02:49 +08:00
Jenkins
ee424a10ad Merge "Run more kolla-ansible task in the gate" 2016-06-14 18:46:36 +00:00
Michal (inc0) Jastrzebski
f76e9a1e0d Make cleanup remove restarting/exited containers
If we have bug in contianer or it simplt somehow ended up in Exited
state, cleanup doesn't flush it. It also means it doesn't flush volumes
and that might cause an dirty env.

Closes-Bug: #1587344
Change-Id: Ib5705992500ce7efdc66509df61c381bd33d1954
2016-06-14 16:59:41 +00:00
Jeffrey Zhang
b1f4c4ed79 Run more kolla-ansible task in the gate
Change-Id: I99871d3d86e5ab56be95dd9865f17f7d525704a5
Partially-Implements: blueprint functional-gating
2016-06-08 22:44:52 +08:00
Dave Walker (Daviey)
334ef7d540 setup_{RedHat,Debian}.sh, make more idempotent
Previously, when either setup_{RedHat,Debian}.sh was ran
multiple times a mess was created due to multiple loop
devices being setup.

This change now looks to see if '/docker' or '/swapfile'
already exist, and not re-create them if they do.

*However*, /var/lib/docker (/docker) is still wiped - but it
means that the script can run and bring the system into a
constant vanilla state.

Change-Id: I169662fa04c2bf644672ca75c3ee579795943727
Closes-Bug: #1586563
Signed-off-by: Dave Walker (Daviey) <email@daviey.com>
2016-06-07 11:10:07 +01:00
Christian Berendt
d1ec04809d Add passwords parameter to LONG_OPTS in kolla-ansible script
Change-Id: I8b139d716deeb7eee8eb22beda8ac6d3b82e66ee
Closes-bug: #1587648
2016-05-31 23:04:38 +02:00
Jenkins
49cb37da1a Merge "change keyfile to key" 2016-05-31 08:52:07 +00:00
Steven Dake
6c4c24044b change keyfile to key
All files used by kolla-ansible do not have a file ending.
keyfile was added as an anomoly.  I noticed this during a review
that coolsvap had underway where he did a similar thing.  I think
--key is fine.

TrivialFix

Change-Id: I99867a1a04a4dd881dcb2af39946122ea6b7d8a3
2016-05-31 09:21:13 +05:30
Swapnil Kulkarni (coolsvap)
eb1bfc2c2e Add support to lint the install commands in Dockerfiles
Change-Id: Icb47ba8b13b13889e28bb285321f11344400edc2
Closes-Bug:#1582618
2016-05-26 17:41:42 +05:30
Jenkins
383730443c Merge "Update ubuntu dockerfiles for formatting" 2016-05-26 11:13:10 +00:00
Jenkins
6f5239ce40 Merge "Bump the ansible to 2" 2016-05-26 10:57:27 +00:00
Swapnil Kulkarni (coolsvap)
435b21b90d Update ubuntu dockerfiles for formatting
Change-Id: If4be00b937e14ec93443dcb7249cf17099d57cbe
Closes-Bug: #1569417
2016-05-26 04:09:22 +00:00
Jenkins
8d7920fafe Merge "Make passwords.yml file generation configurable" 2016-05-25 03:59:26 +00:00
Jeffrey Zhang
491822c510 Bump the ansible to 2
DocImpact

Change-Id: I3cdfbf84919de80f535c030bd146787ecda40dec
partial-Implements: blueprint ansible2
2016-05-24 19:53:31 +08:00
Jenkins
072cec2fbe Merge "Fix the rabbitmq crash on CentOS binary and source deploy" 2016-05-23 12:59:18 +00:00
Jeffrey Zhang
c98e9c44f2 Fix the rabbitmq crash on CentOS binary and source deploy
this is a wordround fix for the rabbitmq failed when deploy on CentOS in
the CI gate. the ideal fix should set the hostname in setup_gate.sh
script. But it do not work as expect with unknown reason

Partial-Bug: #1581301
Change-Id: Ia692794aadf11d3ebe75e4e2bf6b42d9a5f3996f
2016-05-22 00:26:49 +08:00