From 44b2ffb081d30759dc4e96e71e0681766b177fe2 Mon Sep 17 00:00:00 2001 From: Dmitry Ukov Date: Wed, 13 May 2020 19:03:05 +0400 Subject: [PATCH] Fix ironic inspector database schema creation Initial schema is created during container building by rpm scripts. Since db file path has changed we need to create schema explicitly Change-Id: I13ef02fac31ad8ca01549efa5b44394bbd8016e1 --- .../function/baremetal-operator/entrypoint/inspector-entrypoint | 2 ++ 1 file changed, 2 insertions(+) diff --git a/manifests/function/baremetal-operator/entrypoint/inspector-entrypoint b/manifests/function/baremetal-operator/entrypoint/inspector-entrypoint index de791960c..b2d588809 100644 --- a/manifests/function/baremetal-operator/entrypoint/inspector-entrypoint +++ b/manifests/function/baremetal-operator/entrypoint/inspector-entrypoint @@ -1,5 +1,7 @@ #!/usr/bin/bash +ironic-inspector-dbsync --config-file /shared/inspector.conf upgrade + exec /usr/bin/ironic-inspector --config-file /etc/ironic-inspector/inspector-dist.conf \ --config-file /shared/inspector.conf \ --log-file /shared/log/ironic-inspector/ironic-inspector.log