Containers: workaround for neutron DB sync
authorJiri Stransky <jistr@redhat.com>
Fri, 24 Feb 2017 09:48:53 +0000 (10:48 +0100)
committerJiri Stransky <jistr@redhat.com>
Fri, 24 Feb 2017 09:48:53 +0000 (10:48 +0100)
Neutron DB sync didn't have permission to read the config files, we now
run neutron-db-manage as root until we can find a more permanent
solution.

Change-Id: I502a8514adc523c7cac1da059be10480eef71cb9
Closes-Bug: #1667300

docker/services/neutron-api.yaml

index e444f39..dfd1d5c 100644 (file)
@@ -81,6 +81,9 @@ outputs:
             net: host
             privileged: false
             detach: false
+            # FIXME: we should make config file permissions right
+            # and run as neutron user
+            user: root
             volumes:
               - /var/lib/config-data/neutron/etc/neutron:/etc/neutron:ro
               - /var/lib/config-data/neutron/usr/share/neutron:/usr/share/neutron:ro