Run nova-api hosts discovery after nova-compute start
authorMartin André <m.andre@redhat.com>
Wed, 22 Mar 2017 13:31:36 +0000 (14:31 +0100)
committerMartin André <m.andre@redhat.com>
Wed, 22 Mar 2017 13:31:36 +0000 (14:31 +0100)
The previous code had a race condition where nova-api host discovery
and nova-compute where run at the same step. This commit ensures host
discovery happens after nova-compute has started.

Change-Id: Id2fc795a64783d958d98d4ac523a19079e8a4fab
Closes-Bug: #1675011

docker/services/nova-api.yaml

index 9e203b7..e5c78d6 100644 (file)
@@ -134,8 +134,9 @@ outputs:
               - /etc/localtime:/etc/localtime:ro
             environment:
               - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
+        step_5:
           nova_api_discover_hosts:
-            start_order: 3
+            start_order: 1
             image: *nova_api_image
             net: host
             detach: false