Associate unmapped hosts with cell mappings
authorJohn Trowbridge <trown@redhat.com>
Mon, 27 Feb 2017 15:00:25 +0000 (10:00 -0500)
committerMartin André <m.andre@redhat.com>
Wed, 1 Mar 2017 15:37:46 +0000 (16:37 +0100)
Otherwise the containerized nova running in the overcloud fails with
"Host 'overcloud-novacompute-0' is not mapped to any cell, Code: 400".

Co-Authored-By: Martin André <m.andre@redhat.com>
Change-Id: I9ff77f25bfd1f37167b0638a32fe5049951bc5b4

docker/services/nova-api.yaml

index 26ae514..0cf1b85 100644 (file)
@@ -132,3 +132,13 @@ outputs:
               - /etc/localtime:/etc/localtime:ro
             environment:
               - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
+          nova_api_discover_hosts:
+            start_order: 3
+            image: *nova_api_image
+            net: host
+            detach: false
+            volumes: *nova_api_volumes
+            command:
+              - '/usr/bin/nova-manage'
+              - 'cell_v2'
+              - 'discover_hosts'