456 Commits

Author SHA1 Message Date
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
Swapnil Kulkarni (coolsvap)
e1b5b149f2 Make passwords.yml file generation configurable
partially implements blueprint multiple-clouds

Change-Id: I676c4245e6f058ffbed345970ee78d1750dd0f2f
2016-05-21 01:51:17 +00:00
Ryan Hallisey
410866f207 Add generate-config option to kolla-ansible
In order for the ansible configuration to be consumable,
we need to be able to generate it without deploying anything.

Change-Id: I2bbdd74d62d00f509a4fa5e4100906ed658d3974
Implements: blueprint generate-config
2016-05-19 02:58:07 -04:00
Jeffrey Zhang
43abb15c25 Collect more info from the gate for debug
* enable the openstack logging debug in the gate
* copy the /etc/kolla files out
* copy the /var/log files out

TrivialFix

Change-Id: I9cf5fa773ec5f41c6ea93325076a64dd24ce22da
2016-05-18 07:03:53 +08:00
Jeffrey Zhang
1e6c033adf Fix the virt_type in the gate
Change-Id: Iafa27677fc2ed2103c3ac8efeb0f0e13330a95f4
Closes-Bug: #1581021
2016-05-13 08:24:44 +08:00
Jenkins
6561e87b6e Merge "Make "cleanup-containers" script works dynamically" 2016-05-10 09:13:37 +00:00
Jenkins
5b79bb0be8 Merge "Add extension to file" 2016-05-09 10:03:39 +00:00
Jenkins
fcdf187337 Merge "Fix the copy docker log typo" 2016-05-09 07:01:24 +00:00
Jenkins
eff41786e2 Merge "Diagnostics for Environment" 2016-05-09 06:14:40 +00:00
Jeffrey Zhang
63145ab470 Fix the copy docker log typo
Change-Id: I86259d9b997cd10a11079c4834f135d58570968d
2016-05-07 14:21:36 +08:00
Mauricio Lima
e39074421e Add extension to file
TrivialFix

Change-Id: I161526927ae32f2bbfec1ade610f7b712f4c5163
2016-05-06 13:53:50 -04:00
Carlos Cesario
7bce0993df Make "cleanup-containers" script works dynamically
Make cleanup-containers works dynamically. The script
removes the containers and its volumes dynamically based
on label contained in each kolla container, this way is not
needed create a big container and volume lists to be deleted.

http://paste.openstack.org/show/496357/

Closes-Bug: #1579044
Change-Id: Ie0d8a38ba2cf77c8d5da655958407145f4105bec
2016-05-06 13:12:36 -03:00
Jenkins
33ab6f8cc1 Merge "Fix the gate lying" 2016-05-06 14:58:51 +00:00
Mauricio Lima
7323eca726 Diagnostics for Environment
Change-Id: I99726387d8daf99e85e5502e27710de60c0066bc
Implements: blueprint diag-env
2016-05-06 07:20:03 -04:00
Mauricio Lima
9024564066 Deleting only images from kolla build
Co-Authored-By: Carlos Cesario <carloscesario@gmail.com>
Change-Id: I3e9652e1cac156f822b388d2b9fd910180b4a892
Closes-Bug: #1551933
2016-05-05 12:15:04 -04:00
prithiv
0fda8badd2 Deletes fake containers on cleanup
Closes-Bug: #1576277

Change-Id: Ie68d1d5da620f26a0aa21aa5c6473bc464994ed8
2016-05-05 08:24:37 +00:00
Jenkins
6fa8261a5c Merge "Remove unecessary blank lines" 2016-05-03 02:53:00 +00:00
Jenkins
85134c9e4f Merge "Handle multi Ethernets case in the gate" 2016-05-02 14:28:51 +00:00
Jenkins
c155758c2d Merge "Use a random virtual_router_id in the keepalived" 2016-05-02 13:42:30 +00:00
Mauricio Lima
2c34214388 Remove unecessary blank lines
TrivialFix

Change-Id: I1f03d428c380dfdbde5ef33e7ea43cbf5e9154ce
2016-05-02 07:44:29 -04:00
Jeffrey Zhang
6ffe08d76e Fix the gate lying
In some case, the gate is always green even when failure exist.

Closes-Bug: #1568389
Change-Id: I64116ba33ebf96268c28abb6a7091752a346f29b
2016-04-28 01:06:58 +00:00
Jeffrey Zhang
00720db254 Handle multi Ethernets case in the gate
rax-iad node has two Ethernets, but others not. Detect the private
Ethernet by using script.

Closes-Bug: #1561563
Change-Id: I7c5d241f2b1a21f97512e52c487d875dd270011b
2016-04-28 01:05:42 +00:00
Jenkins
a22b7714e3 Merge "Add a role to cleanup containers after deployment" 2016-04-27 17:21:46 +00:00
Jenkins
9610ce7a9e Merge "Remove the eth1 up and down manually in the rax-ord node" 2016-04-27 10:47:08 +00:00
Jeffrey Zhang
f21485fbaa Remove the eth1 up and down manually in the rax-ord node
Change-Id: I8372df9869df6e83b7a176184ce93da633525cbd
Closes-Bug: #1574134
2016-04-24 08:00:08 +08:00
Swapnil Kulkarni (coolsvap)
fc8d716316 Update remaining files for formatting
Change-Id: Ie9fc941bb48edf86b00fc1f2dba0b83b675a5a1c
Partial-Bug:#1569417
2016-04-21 12:03:42 +00:00
Steven Dake
f442319b19 Workaround broken nodepool to unblock gate
Sed and check the length of the IP addresses in the private list.
If none found, copy the public to the private.

Change-Id: I05e4798aa301e022de7d5097d503d8213f2b66a8
Closes-Bug: #1571275
2016-04-19 18:09:20 -07:00
Mauricio Lima
8588bd655e Add a role to cleanup containers after deployment
Change-Id: I5f422574d7e50ec9a1e5862b66ecbf39fe1594d2
Closes-Bug: #1531721
Implements: blueprint ansible-cleanup-role
2016-04-19 10:00:59 -04:00
Paul Bourke
8c8188858a Fix typo in kolla-ansible usage message
TrivialFix

Change-Id: I170f19afdc4dcf86e372058d70694f3e7b510e69
2016-04-19 11:26:30 +01:00