Bug 733600
Summary: | qemu-kvm doesn't report error when supplied negative vnc port value | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | langfang <flang> |
Component: | qemu-kvm-rhev | Assignee: | Gerd Hoffmann <kraxel> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 7.0 | CC: | areis, huding, juzhang, knoel, mazhang, michen, mkenneth, qzhang, tburke, virt-maint |
Target Milestone: | rc | ||
Target Release: | 7.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | qemu 2.1 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-03-05 09:41:02 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
langfang
2011-08-26 08:03:07 UTC
Description of problem: scenario 1) qemu-kvm doesn't show any error when user supplies a negative port value to -vnc scenario 2) qemu-kvm doesn't show any error when user supplies a out of range port value to -vnc Actual results: scenario 1)for the "-vnc :-123",we can boot the command line,and can view the guest via VNC. scenario 2)for the "-vnc :1023131",we can boot the command line,but can not view the guest via VNC. *** Bug 1020611 has been marked as a duplicate of this bug. *** Not urgent, will be fixed upstream. Reproduce this bug using the following version: qemu-kvm-1.5.3-66.el7.x86_64 kernel-3.10.0-140.el7.x86_64 Steps to Reproduce: 1. boot vm with "-vnc :-123" # /usr/libexec/qemu-kvm -vnc :-123 -monitor stdio 2. boot vm with "-vnc :1023131" # /usr/libexec/qemu-kvm -vnc :1023131 -monitor stdio Results: after step1 and step2, qemu-kvm doesn't quit. Test this bug using the following version on an intel host: qemu-kvm-rhev-2.1.0-3.el7ev.preview.x86_64 kernel-3.10.0-140.el7.x86_64 Steps to Test: 1. boot vm with "-vnc :-123" # /usr/libexec/qemu-kvm -vnc :-123 -monitor stdio 2. boot vm with "-vnc :1023131" # /usr/libexec/qemu-kvm -vnc :1023131 -monitor stdio Results: after step1, qemu-kvm quits with the error info: (qemu) qemu-kvm: Failed to start VNC server on `:-123': can't convert to a number: -123 after step2, qemu-kvm quits with the error info: (qemu) qemu-kvm: Failed to start VNC server on `:1023131': port 1023131 out of range Test this bug using the following version on an amd host: qemu-kvm-rhev-2.1.0-3.el7ev.preview.x86_64 kernel-3.10.0-140.el7.x86_64 Steps to Test: 1. boot vm with "-vnc :-123" # /usr/libexec/qemu-kvm -vnc :-123 -monitor stdio 2. boot vm with "-vnc :1023131" # /usr/libexec/qemu-kvm -vnc :1023131 -monitor stdio Results: after step1, qemu-kvm quits with the error info: (qemu) qemu-kvm: Failed to start VNC server on `:-123': can't convert to a number: -123 after step2, qemu-kvm quits with the error info: (qemu) qemu-kvm: Failed to start VNC server on `:1023131': port 1023131 out of range Test this bug on latest version: Host: # uname -r 3.10.0-144.el7.x86_64 #rpm -q qemu-kvm-rhev qemu-kvm-rhev-2.1.0-2.el7.x86_64 Steps: 1.Boot guest with -vnc :111aaaaa/-vnc :-888/-vnc :aaaasss / Results: QEMU 2.1.0 monitor - type 'help' for more information (qemu) qemu-kvm: Failed to start VNC server on `:aaaasss': can't convert to a number: aaaasss Addtional info: -vnc :22222222 -monitor stdio QEMU 2.1.0 monitor - type 'help' for more information (qemu) qemu-kvm: Failed to start VNC server on `:22222222': port 22222222 out of range According to above test ,this bug fixed Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHSA-2015-0624.html |