kolla-ansible/tests
Mark Goddard 365bb5177d Create cells before starting nova services
Nova services may reasonably expect cell databases to exist when they
start. The current cell setup tasks in kolla run after the nova
containers have started, meaning that cells may or may not exist in the
database when they start, depending on timing. In particular, we are
seeing issues in kolla CI currently with jobs timing out waiting for
nova compute services to start. The following error is seen in the nova
logs of these jobs, which may or may not be relevant:

No cells are configured, unable to continue

This change creates the cell0 and cell1 databases prior to starting nova
services.

In order to do this, we must create new containers in which to run the
nova-manage commands, because the nova-api container may not yet exist.
This required adding support to the kolla_docker module for specifying a
command for the container to run that overrides the image's command.

We also add the standard output and error to the module's result when a
non-detached container is run. A secondary benefit of this is that the
output of bootstrap containers is now displayed in the Ansible output if
the bootstrapping command fails, which will help with debugging.

Change-Id: I2c1e991064f9f588f398ccbabda94f69dc285e61
Closes-Bug: #1808575
2018-12-14 19:26:42 +00:00
..
templates Merge "Deploy mistral-event-engine service" 2018-12-11 08:04:40 +00:00
__init__.py Add py27 py34 pypy unittest 2016-01-13 13:47:49 +08:00
ansible_setup_ceph_disks.yml Enable multi-scenario gates 2017-06-19 10:14:33 -07:00
check-failure.sh Refactor CI testing scripts 2018-11-06 16:43:19 +00:00
deploy-bifrost.sh Refactor CI testing scripts 2018-11-06 16:43:19 +00:00
deploy.sh Refactor CI testing scripts 2018-11-06 16:43:19 +00:00
get_logs.sh Suppress log copy output in gates 2018-11-20 11:14:24 +00:00
post.yml Suppress log copy output in gates 2018-11-20 11:14:24 +00:00
pre.yml Verify YAML syntax in gates 2018-03-26 17:56:22 +02:00
reconfigure.sh Refactor CI testing scripts 2018-11-06 16:43:19 +00:00
run.yml Refactor CI testing scripts 2018-11-06 16:43:19 +00:00
setup_ceph_disks.sh Fix bluestore disk naming format in kolla-ansible 2018-08-31 09:55:09 +09:00
setup_gate.sh Convert gate to file backend rather than partition 2016-01-21 22:59:13 +00:00
test_kolla_docker.py Create cells before starting nova services 2018-12-14 19:26:42 +00:00
test_merge_config.py Support parsing ini files with no sections 2018-03-16 15:26:41 +00:00
test_merge_yaml.py Support merging nested yaml config 2018-11-05 18:09:22 +00:00
test-bifrost.sh Refactor CI testing scripts 2018-11-06 16:43:19 +00:00
test-openstack.sh Use openstack command in CI 2018-11-29 16:01:36 +00:00
upgrade-bifrost.sh Refactor CI testing scripts 2018-11-06 16:43:19 +00:00
upgrade.sh Refactor CI testing scripts 2018-11-06 16:43:19 +00:00