-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vdi-streaming: add lvm streaming support #168
base: master
Are you sure you want to change the base?
Conversation
test_vgpu.sh
Outdated
TMP_LOG_DIR=/tmp/openstack | ||
|
||
VGPU_CREATE_SUCCESS_FLAG="VGPU_CREATE_SUCCESS" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rather than these we should have a separate PASSED (and probably FAILED flag).
Is a different script grepping for the result? If so, then we can easily grep for FAILED.
Perhaps this script should be wrapped so we can treat any failure as FAILED (i.e. the test_vgpu.sh script has "set -ex" at the top, but the calling script will consider the script's exit code)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it, will modify.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
echo "VGPU create success" | ||
echo $VGPU_CREATE_SUCCESS_FLAG | ||
echo "###################Check LVM image upload status#####################" | ||
nova image-create --poll $VM_NAME $SNAPSHOT_NAME |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we also retrieve the image please? Since the upload/download are creating VHDs on the fly, we need to check that the uploaded VHD is still valid. Best way is to create an new server from the image
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will add another VM create based on the new image
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
eee8e2d
to
55e7596
Compare
test_vgpu.sh
Outdated
vm_name = $1 | ||
while : | ||
do | ||
echo "Waitting to VM active" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo - "Waiting"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will modify it.
test_vgpu.sh
Outdated
rm $DEVSTACK_PATH -rf | ||
git clone https://github.com/openstack-dev/devstack.git | ||
|
||
sed -i '/iniset $NOVA_CONF DEFAULT flat_injected \"False\"/a\ iniset $NOVA_CONF xenserver image_handler "$vdi_remote_stream"' $DEVSTACK_PATH/lib/nova_plugins/hypervisor-xenserver |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is quite ugly... I thought there was a way to do this with hook scripts, or in the vGPU job config on Jenkins rather than in this script?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will check if we can do it.
pushd $DEVSTACK_PATH/ | ||
if ! grep "enabled_vgpu_types=" ${DEVSTACK_PATH}/local.conf; then | ||
echo "[devices]" >> ${DEVSTACK_PATH}/local.conf | ||
echo "enabled_vgpu_types = $first_vgpu_type" >> ${DEVSTACK_PATH}/local.conf | ||
fi | ||
echo "###################Set image handler to remote stream#####################" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we're doing this here, why do we also need the line at 109?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, forgot to remove it. It doesn't work when I modify local.conf.
bcabc35
to
1d82471
Compare
Add code to check vdi streaming on LVM
Add code to check vdi streaming on LVM