Run vbmcd as stack user in devstack

devstack may be run as some other non-root user, and the service
will fail to start if there is no stack user available.

Change-Id: Ib1cfa6a1b0859a1e2680055ce0394053db1c307e
Signed-off-by: michaeltchapman <woppin@gmail.com>
This commit is contained in:
michaeltchapman 2019-05-07 23:33:40 +10:00
parent afecd4e710
commit bace52165f

View File

@ -773,7 +773,7 @@ function setup_virtualbmc {
cmd=$(which vbmcd) cmd=$(which vbmcd)
cmd+=" --foreground" cmd+=" --foreground"
write_user_unit_file $IRONIC_VBMC_SYSTEMD_SERVICE "$cmd" "" "stack" write_user_unit_file $IRONIC_VBMC_SYSTEMD_SERVICE "$cmd" "" "$STACK_USER"
$SYSTEMCTL enable $IRONIC_VBMC_SYSTEMD_SERVICE $SYSTEMCTL enable $IRONIC_VBMC_SYSTEMD_SERVICE
} }