This service will be undergoing maintenance at 00:00 UTC, 2016-08-01. It is expected to last about 1 hours

Bug 211193

Summary: Python error when specifying vnc port
Product: [Fedora] Fedora Reporter: Ulrich Drepper <drepper.fsp>
Component: xenAssignee: Daniel Berrange <berrange>
Status: CLOSED RAWHIDE QA Contact: Martin Jenner <mjenner>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: bstein, katzj, xen-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-09-24 19:16:34 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Bug Depends On:    
Bug Blocks: 211208    
Description Flags
Fix the cast to int none

Description Ulrich Drepper 2006-10-17 16:01:47 EDT
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/", line
195, in creat
  File "/usr/lib64/python2.4/site-packages/xen/xend/", line
1355, in init
  File "/usr/lib64/python2.4/site-packages/xen/xend/", line
1518, in crea
  File "/usr/lib64/python2.4/site-packages/xen/xend/", line 249, in
    args += [ "--vncport", "%d" %(5900 + self.vncdisplay,) ]

self.vncdisply is a string.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.virt-install -d --p -n name -r 512 -f /dev/sda8 --vnc --vncport 5902 -l
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:
Comment 1 Daniel Berrange 2006-10-17 16:46:14 EDT
The string -> int conversion in is only casting the default value to an
int, not a user supplied value.
Comment 2 Daniel Berrange 2006-10-17 16:47:30 EDT
Created attachment 138725 [details]
Fix the cast to int
Comment 3 Red Hat Bugzilla 2007-07-24 20:00:18 EDT
change QA contact
Comment 4 Daniel Berrange 2007-09-24 19:16:34 EDT
Fix this in an update quite a while ago. Then broke it again. Then fixed it again.