431 Commits

Author SHA1 Message Date
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
Jenkins
45f9442f0c Merge "cleanup-host should not remove kolla-build.conf" 2016-04-14 11:44:25 +00:00
Jenkins
ca10614f5f Merge "Enable unbuffered output for ansible" 2016-04-14 11:32:14 +00:00
Paul Belanger
b700fc44fb Enable unbuffered output for ansible
This will allow ansible to output to the console log in realtime.

Closes-Bug: #1569769

Change-Id: If4e4ccd9911d9fa9031eed8419bb5a1367c99e49
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-04-14 06:59:47 +00:00
Swapnil Kulkarni (coolsvap)
5b4057b764 Added help documentation for kolla-ansible upgrade
Change-Id: I6a2672362da5ae69e8417e334a170c3c68c1307c
Closes-Bug: #1569971
2016-04-13 15:43:51 +00:00
Swapnil Kulkarni (coolsvap)
15444da4d9 cleanup-host should not remove kolla-build.conf
new cleanup-host script removes kolla-build.conf
in /etc/kolla directory which contains the build
configuration for building images.
This should be preserved.

Change-Id: I20fbf3f8a2400a5e048ba55beb0c8e1ec849d8a3
Related-Bug:#1561055
2016-04-12 16:32:11 +05:30
Jenkins
e3e5232bc3 Merge "Remove /etc/kolla configuration folders" 2016-04-12 09:28:31 +00:00
Jenkins
8a9d365dd9 Merge "Make sure /etc/hostname is valid for SELinux" 2016-04-11 16:14:57 +00:00
Paul Belanger
84a0f2dd5b Make sure /etc/hostname is valid for SELinux
In the gate, it is possible for /etc/hostname to not have a valid
SELinux security conext. So, reset them to default before we update
the hostname to avoid:

  TASK: [Assign hostname]
  failed: [node1] => {"failed": true}
  msg: Command failed rc=1, out=, err=Could not set property: Access
  denied

Closes-Bug: #1568047
Change-Id: Ie30c8437b310d1ea5bc75307375c255131dfe934
Needed-By: I2ff5fbb315832b8cf07c93d0dd0cdaacd958631e
2016-04-11 15:38:04 +00:00
Jeffrey Zhang
f93ed9a935 Use a random virtual_router_id in the keepalived
Use a random virtual_router_id in case there are multi keepalived
instances exist at the same time in the gate.

Closes-Bug: #1568818
Change-Id: Iebb3dec088a21820e641b63bb2a5f40586d1df8c
2016-04-11 20:14:13 +08:00
Mauricio Lima
4ce1367642 Remove /etc/kolla configuration folders
Kolla deployment creates /etc/kolla folder on a target host
with multiple configuration files. In some scenarios,
the presence of these files prevent successful deployment
of certain services especially when their configuration parameters
have been changed on the deployment host.

Change-Id: Iefd544b50fc90b7f00d6e137bc14ab4807ef7c0f
Closes-Bug: #1561055
2016-04-09 14:35:33 -04:00
Dave McCowan
fda9444ea6 Add default flavors during init-runonce
The nova team is removing the default flavors from a standard
deployment.  This is great for operators, who have to delete
the defaults anyways.  This patch adds the original default
flavors back during init-runonce so kolla users can be ready
to launch instances.

Closes-Bug: #1567964
Change-Id: I17daec98997a6e412a99f34d3f8a4324460d8c60
2016-04-08 10:32:57 -04:00
Mauricio Lima
404dd842ea Add mongodb in cleanup containers script
Change-Id: I0901802e0e349956f2c01dcd86746b4de0cc2382
Closes-Bug: #1567642
2016-04-07 16:21:33 -04:00
Jenkins
65f3c9491f Merge "Add nova_ssh in cleanup containers script" 2016-04-05 13:25:55 +00:00
Mauricio Lima
f0ad131a87 Add nova_ssh in cleanup containers script
Closes-Bug: #1566281
Change-Id: I84533a066a2dbc4de282b20785092350607c5971
2016-04-05 08:16:50 -04:00
Vikram Hosakote
8595707a25 Check empty passwords in $CONFIG_DIR/passwords.yml
Co-Authored-By: Carlos Cesario <carloscesario@gmail.com>

Change-Id: Ic2ea835cf38be64a590d3f6b022683081aeb363b
Closes-Bug: #1566150
2016-04-05 04:48:35 +00:00
Jenkins
7a27826c78 Merge "Add a step to clean all ceph references in fstab" 2016-04-01 20:44:25 +00:00
Mauricio Lima
7f2dd73dcc Add a step to clean all ceph references in fstab
After run cleanup-containers script, was necessary to
clear references to the ceph in fstab file manually

Change-Id: I264e6644d5d569a9b56115ea31b15589b093c3f9
Closes-Bug: #1562991
2016-04-01 16:00:17 -04:00
Jenkins
2bd896e364 Merge "Pass extra variables through kolla-ansible to ansible-playbook" 2016-03-30 09:48:59 +00:00
Hui Kang
25393eb28f Pass extra variables through kolla-ansible to ansible-playbook
Change-Id: I4ddad85aadfac4047460085ec6bc0fcabd718253
Closes-Bug: #1561757
2016-03-29 17:59:33 -04:00
Mauricio Lima
b9603d35e7 Remove bootstrap_mariadb with cleanup-containers
TrivialFix

Change-Id: Ic6884d46d8edf2d430f8a9fb8635f7d98d011112
2016-03-28 13:00:29 -04:00
Jenkins
90321d0497 Merge "Fix gate to use world writeable docker socket" 2016-03-27 23:42:47 +00:00
Steven Dake
a789346727 Fix gate to use world writeable docker socket
A recent change related to sudo securepath broke how sudo -E
works.  Now the PATH is reset by sudo as set by tox.  As a result
we can no longer rely on sudo -E anywhere in our gating system
relating to path inheritence from the parent shell.

This patch uses a shell operation in the setup_nodes.yml code
to chmod the docker socket to 666 so docker containers can build
properly.  Now docker operations don't return a permission denied
and we no longer require the sudo -E operation in any of our tox
scripts.  This isn't a security vulnerability because our gate
scripts are only meant to be run in OpenStack infrastructure.
To make this more clear I recommend moving these shell scripts to
tests/gate.

Change-Id: I5b3d6e280e3c12a25defedb14b5589ba642043fa
Closes-Bug: #1562383
2016-03-26 22:23:35 -07:00
Nguyen Hung Phuong
328a7e8898 Fix typos in Kolla
TrivialFix

Change-Id: I21f51811ec4256d9b6b2e219de6201e4811dfc5a
2016-03-26 08:06:49 +00:00
Jenkins
27a4268216 Merge "Check relevant logging mechanism in the gate" 2016-03-22 15:26:02 +00:00
Paul Bourke
c25002c3d8 Check relevant logging mechanism in the gate
Avoids errors about missing journalctl on Ubuntu and missing upstart on
redhat bases.

Closes-Bug: 1554724

Change-Id: I80bb55688398df85f9020d5cfe5dda757fc5a0ef
2016-03-22 14:43:07 +00:00