Red Hat Bugzilla – Bug 859344
Adding disk: Uncaught error validating hardware input: coercing to Unicode: need string or buffer, NoneType found
Last modified: 2012-11-28 09:59:18 EST
Created attachment 615308 [details]
Screenshot of the dialog
Description of problem:
When adding a disk I got the following exception. You can see in the screenshot the state the dialog I was using to add the disk.
Uncaught error validating hardware input: coercing to Unicode: need string or buffer, NoneType found
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/addhardware.py", line 877, in finish
if self.validate(notebook.get_current_page()) == False:
File "/usr/share/virt-manager/virtManager/addhardware.py", line 1196, in validate
File "/usr/share/virt-manager/virtManager/addhardware.py", line 1316, in validate_page_storage
File "/usr/share/virt-manager/virtManager/uihelpers.py", line 893, in check_path_search_for_qemu
broken_paths = VirtualDisk.check_path_search_for_user(conn.vmm, path, user)
File "/usr/lib/python2.7/site-packages/virtinst/VirtualDisk.py", line 397, in check_path_search_for_user
File "/usr/lib64/python2.7/genericpath.py", line 41, in isdir
st = os.stat(s)
TypeError: coercing to Unicode: need string or buffer, NoneType found
Version-Release number of selected component (if applicable):
Name : libvirt
Arch : x86_64
Version : 0.9.11.5
Release : 3.fc17
Steps to Reproduce:
1. Select a running VM-
2. Go to hardware details
3. Click 'Add Hardware'
4. Select 'Storage'
5. Fill out like attached image.
Thanks for the report Stefan. Fixed upstream now:
python-virtinst-0.600.3-2.fc17 has been submitted as an update for Fedora 17.
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing python-virtinst-0.600.3-2.fc17'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
virt-manager-0.9.4-2.fc17 is in stable now