GLOBAL_VENV: add more binaries
glance and rally binaries are also needed. Also make sure the cinder-rtstool is only called when cinder is actually enabled. Change-Id: I18113eabf2fa83e36bace276883775303f6a1e9a
This commit is contained in:
parent
af9e67c050
commit
4c45bec6eb
20
lib/lvm
20
lib/lvm
@ -137,15 +137,17 @@ function init_lvm_volume_group {
|
|||||||
# Start with a clean volume group
|
# Start with a clean volume group
|
||||||
_create_lvm_volume_group $vg $size
|
_create_lvm_volume_group $vg $size
|
||||||
|
|
||||||
# Remove iscsi targets
|
if is_service_enabled cinder; then
|
||||||
if [ "$CINDER_TARGET_HELPER" = "lioadm" ]; then
|
# Remove iscsi targets
|
||||||
sudo cinder-rtstool get-targets | sudo xargs -rn 1 cinder-rtstool delete
|
if [ "$CINDER_TARGET_HELPER" = "lioadm" ]; then
|
||||||
elif [ "$CINDER_TARGET_HELPER" = "tgtadm" ]; then
|
sudo cinder-rtstool get-targets | sudo xargs -rn 1 cinder-rtstool delete
|
||||||
sudo tgtadm --op show --mode target | awk '/Target/ {print $3}' | sudo xargs -r -n1 tgt-admin --delete
|
elif [ "$CINDER_TARGET_HELPER" = "tgtadm" ]; then
|
||||||
elif [ "$CINDER_TARGET_HELPER" = "nvmet" ]; then
|
sudo tgtadm --op show --mode target | awk '/Target/ {print $3}' | sudo xargs -r -n1 tgt-admin --delete
|
||||||
# If we don't disconnect everything vgremove will block
|
elif [ "$CINDER_TARGET_HELPER" = "nvmet" ]; then
|
||||||
sudo nvme disconnect-all
|
# If we don't disconnect everything vgremove will block
|
||||||
sudo nvmetcli clear
|
sudo nvme disconnect-all
|
||||||
|
sudo nvmetcli clear
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
_clean_lvm_volume_group $vg
|
_clean_lvm_volume_group $vg
|
||||||
}
|
}
|
||||||
|
2
stack.sh
2
stack.sh
@ -828,10 +828,12 @@ fixup_all
|
|||||||
if [[ "$GLOBAL_VENV" == "True" ]] ; then
|
if [[ "$GLOBAL_VENV" == "True" ]] ; then
|
||||||
# TODO(frickler): find a better solution for this
|
# TODO(frickler): find a better solution for this
|
||||||
sudo ln -sf /opt/stack/data/venv/bin/cinder-rtstool /usr/local/bin
|
sudo ln -sf /opt/stack/data/venv/bin/cinder-rtstool /usr/local/bin
|
||||||
|
sudo ln -sf /opt/stack/data/venv/bin/glance /usr/local/bin
|
||||||
sudo ln -sf /opt/stack/data/venv/bin/nova /usr/local/bin
|
sudo ln -sf /opt/stack/data/venv/bin/nova /usr/local/bin
|
||||||
sudo ln -sf /opt/stack/data/venv/bin/nova-manage /usr/local/bin
|
sudo ln -sf /opt/stack/data/venv/bin/nova-manage /usr/local/bin
|
||||||
sudo ln -sf /opt/stack/data/venv/bin/openstack /usr/local/bin
|
sudo ln -sf /opt/stack/data/venv/bin/openstack /usr/local/bin
|
||||||
sudo ln -sf /opt/stack/data/venv/bin/privsep-helper /usr/local/bin
|
sudo ln -sf /opt/stack/data/venv/bin/privsep-helper /usr/local/bin
|
||||||
|
sudo ln -sf /opt/stack/data/venv/bin/rally /usr/local/bin
|
||||||
sudo ln -sf /opt/stack/data/venv/bin/tox /usr/local/bin
|
sudo ln -sf /opt/stack/data/venv/bin/tox /usr/local/bin
|
||||||
|
|
||||||
setup_devstack_virtualenv
|
setup_devstack_virtualenv
|
||||||
|
Loading…
x
Reference in New Issue
Block a user