kolla-ansible/ansible/roles/nova/tasks
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
..
bootstrap_service.yml Apply Nova rolling upgrade logic 2018-09-19 16:25:51 +07:00
bootstrap_xenapi.yml Verify YAML syntax in gates 2018-03-26 17:56:22 +02:00
bootstrap.yml Set "no_log" for "databases user and setting permissions" tasks 2018-11-19 11:10:41 +00:00
ceph.yml Generate Ceph configuration during upgrade 2018-10-10 10:48:55 +01:00
check.yml Enable sanity checks from kolla-ansible 2017-03-09 10:37:06 +00:00
clone.yml Git checkout version support for several projects 2018-10-03 15:30:06 +08:00
config-nova-fake.yml Specify 'become' for all tasks that use kolla_docker module 2018-06-08 12:39:24 +00:00
config.yml Allow operators to customise Nova vendor info 2018-11-30 09:48:28 +00:00
create_cells.yml Create cells before starting nova services 2018-12-14 19:26:42 +00:00
deploy.yml Create cells before starting nova services 2018-12-14 19:26:42 +00:00
discover_computes.yml Create cells before starting nova services 2018-12-14 19:26:42 +00:00
external_ceph.yml Generate Ceph configuration during upgrade 2018-10-10 10:48:55 +01:00
legacy_upgrade.yml Apply Nova rolling upgrade logic 2018-09-19 16:25:51 +07:00
loadbalancer.yml Refactor haproxy config (split by service) V2.0 2018-09-26 03:30:38 -07:00
main.yml Use include_tasks instead of include 2018-07-25 23:57:22 +08:00
precheck.yml nova: add support for a dedicated migration network 2018-10-23 18:37:28 +02:00
pull.yml Specify 'become' for all tasks that use kolla_docker module 2018-06-08 12:39:24 +00:00
reconfigure.yml Use include_tasks instead of include 2018-07-25 23:57:22 +08:00
register.yml Remove useless module_extra_vars in registry.yml 2018-04-16 09:14:54 +08:00
reload.yml Remove novncproxy and spice from reload 2016-09-10 16:14:18 +00:00
rolling_upgrade.yml Apply Nova rolling upgrade logic 2018-09-19 16:25:51 +07:00
stop.yml Support stop specific containers 2018-11-26 08:07:01 +00:00
upgrade.yml Apply Nova rolling upgrade logic 2018-09-19 16:25:51 +07:00