kolla-ansible/ansible
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
..
action_plugins Merge "Merge the merge_yaml and merge_config module into one" 2018-11-07 22:52:14 +00:00
group_vars Add Prometheus as Vitrage datasource 2018-12-11 16:05:05 +07:00
inventory Merge "Deploy mistral-event-engine service" 2018-12-11 08:04:40 +00:00
library Create cells before starting nova services 2018-12-14 19:26:42 +00:00
roles Create cells before starting nova services 2018-12-14 19:26:42 +00:00
bifrost.yml Factor out OpenStack release detection playbook 2018-11-29 15:49:41 +00:00
certificates.yml Make the certificates role just run on deploy node 2018-03-20 19:57:30 +08:00
destroy.yml Give plays in the playbooks a name 2016-12-05 15:40:56 +00:00
detect-release.yml Factor out OpenStack release detection playbook 2018-11-29 15:49:41 +00:00
kolla-host.yml Fix missed kolla_action and kolla_serial 2018-05-16 13:13:06 +01:00
mariadb_backup.yml Factor out OpenStack release detection playbook 2018-11-29 15:49:41 +00:00
mariadb_recovery.yml Factor out OpenStack release detection playbook 2018-11-29 15:49:41 +00:00
post-deploy.yml Use correct variable for default certificate paths 2018-11-19 16:25:28 +00:00
site.yml Merge "Make the monasca support deploy separated" 2018-12-02 09:25:42 +00:00