Description of problem: When using virt-install and using a non-standard vnc port (2 == 5902 in my case) the installation fails with an error in xend because of a type mismatch: Traceback (most recent call last): File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 195, in creat e vm.initDomain() File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 1355, in init Domain self.createDevices() File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 1518, in crea teDevices self.image.createDeviceModel() File "/usr/lib64/python2.4/site-packages/xen/xend/image.py", line 249, in createDeviceMo del args += [ "--vncport", "%d" %(5900 + self.vncdisplay,) ] self.vncdisply is a string. Version-Release number of selected component (if applicable): xen-3.0.2-44.x86_64 How reproducible: always Steps to Reproduce: 1.virt-install -d --p -n name -r 512 -f /dev/sda8 --vnc --vncport 5902 -l nfs:host:/some/path 2. 3. Actual results: libvir: Xen Daemon error : POST operation failed: (xend.err "Error creating domain: unsupported operand type(s) for +: 'int' and 'str'") and the message above in /var/log/xend.log Expected results: no message Additional info:
The string -> int conversion in image.py is only casting the default value to an int, not a user supplied value.
Created attachment 138725 [details] Fix the cast to int
change QA contact
Fix this in an update quite a while ago. Then broke it again. Then fixed it again.