kolla-ansible/ansible/library
Mark Goddard 1734ff7131 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
(cherry picked from commit 365bb5177d)
2019-02-17 07:07:50 +00:00
..
bslurp.py Change python interpreter 2017-02-16 13:39:36 -08:00
kolla_ceph_keyring.py Update ceph client.admin caps during upgrade 2018-03-30 08:07:18 +00:00
kolla_container_facts.py Upgrade from docker-py to docker 2017-07-10 14:19:28 +00:00
kolla_docker.py Create cells before starting nova services 2019-02-17 07:07:50 +00:00
kolla_toolbox.py Add check to ansible argument_spec 2018-07-25 14:10:21 +00:00
merge_configs.py Change python interpreter 2017-02-16 13:39:36 -08:00
merge_yaml.py Change python interpreter 2017-02-16 13:39:36 -08:00