Fix glance-remote with global venv
The base systemd unit file setup now writes an Environment= line to the file for the venv. The glance-remote code was setting that to point at the alternate config location, using iniset which was clobbering the venv one. Switch to iniadd to fix. Also, we need to explicitly put the --venv flag into the command since we write our unit file ourselves. This probably needs a cleanup at this point, but since the glance gate is blocked, do this for now. Change-Id: I2bd33de45c41b18ed7d4270a7301b1e322134987
This commit is contained in:
parent
21eac99e4e
commit
5a51aa524c
|
@ -584,9 +584,10 @@ function start_glance_remote_clone {
|
|||
write_uwsgi_user_unit_file devstack@g-api-r.service "$(which uwsgi) \
|
||||
--procname-prefix \
|
||||
glance-api-remote \
|
||||
--ini $glance_remote_uwsgi" \
|
||||
--ini $glance_remote_uwsgi \
|
||||
--venv $DEVSTACK_VENV" \
|
||||
"" "$STACK_USER"
|
||||
iniset -sudo ${SYSTEMD_DIR}/devstack@g-api-r.service \
|
||||
iniadd -sudo ${SYSTEMD_DIR}/devstack@g-api-r.service \
|
||||
"Service" "Environment" \
|
||||
"OS_GLANCE_CONFIG_DIR=$glance_remote_conf_dir"
|
||||
|
||||
|
|
Loading…
Reference in New Issue