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

Start guest is failing, when post action to attach storage for an vm is passed with url as path. #696

Closed
abhiramkulkarni opened this issue Jul 16, 2015 · 1 comment

Comments

@abhiramkulkarni
Copy link
Member

I have written unit test cases to cover storage attached scenarios to guest.,
1)create a guest with storage pool of dir type attached. (guest :- vm_test, storage_pool_name = dir_storage
2)delete the storage pool dir_storage attached to guest
3)attach the storage pool dir_storage to guest using post action
storage_info = {'type': 'disk', 'path': 'http://fedora.mirrors.tds.net:80/pub/fedora/releases/20/Live/x86_64/Fedora-Live-Desktop-x86_64-20-1.iso', 'pool': dir_storage} //the body that is passed to post
/vmsstorages/vm_test/storages/
step 3 succeeds without any issues

4)start the guest vm_test.
it fails with error
libvirt: QEMU Driver error : internal error: process exited while connecting to monitor: 2015-07-16T18:21:36.442828Z qemu-system-x86_64: -drive file=http://fedora.mirrors.tds.net:80/pub/fedora/releases/20/Live/x86_64/Fedora-Live-Desktop-x86_64-20-1.iso,if=none,id=drive-virtio-disk0,format=raw,cache=none: could not open disk image http://fedora.mirrors.tds.net:80/pub/fedora/releases/20/Live/x86_64/Fedora-Live-Desktop-x86_64-20-1.iso: curl block device does not support writes

So issue here probably is i cannot pass url to path for disk type.
But still the api accepts its and passes in attaching the storage to vm_test in step 3.
The same operation i cannot perform from UI..

If the url is passed as cdrom type and attached to guest, start guest works smoothly.

Expected behaviour :- Step 3 should not succeed if the path provided is invalid

@alinefm
Copy link
Member

alinefm commented Sep 21, 2015

This issue is duplicated of #355

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants