Skip to content

Commit d384e6b

Browse files
committed
Add directories required for ironic-status upgrade check
With master ironic, the upgrade check command does a pre-flight check by creating every configured driver. Some drivers require these directories to exist so they are created here to ensure the checks pass.
1 parent bc687f0 commit d384e6b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

templates/ironic/bin/dbsync.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@
1616
set -ex
1717

1818
/usr/local/bin/kolla_set_configs
19+
20+
# prepare for 'upgrade check' loading all drivers
21+
if [ ! -d "/var/lib/ironic/tmp" ]; then
22+
mkdir /var/lib/ironic/tmp
23+
fi
24+
if [ ! -d "/var/lib/ironic/httpboot" ]; then
25+
mkdir -p /var/lib/ironic/httpboot
26+
fi
27+
1928
ironic-status upgrade check && ret_val=$? || ret_val=$?
2029
if [ $ret_val -gt 1 ] ; then
2130
# NOTE(TheJulia): We need to evaluate the return code from the

0 commit comments

Comments
 (0)