Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

naichuans
Copy link
Contributor

Add code to check vdi streaming on LVM

@naichuans naichuans requested review from BobBall and Annie-XIE June 15, 2018 10:49
test_vgpu.sh Outdated
TMP_LOG_DIR=/tmp/openstack

VGPU_CREATE_SUCCESS_FLAG="VGPU_CREATE_SUCCESS"
Copy link
Member

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)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it, will modify.

Copy link
Contributor Author

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
Copy link
Member

@BobBall BobBall Jun 18, 2018

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

Copy link
Contributor Author

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@naichuans naichuans force-pushed the lvm_support branch 2 times, most recently from eee8e2d to 55e7596 Compare June 25, 2018 07:40
test_vgpu.sh Outdated
vm_name = $1
while :
do
echo "Waitting to VM active"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo - "Waiting"

Copy link
Contributor Author

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
Copy link
Member

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?

Copy link
Contributor Author

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#####################"
Copy link
Member

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?

Copy link
Contributor Author

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.

@naichuans naichuans force-pushed the lvm_support branch 4 times, most recently from bcabc35 to 1d82471 Compare June 26, 2018 06:03
Add code to check vdi streaming on LVM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants