Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 638907

Summary: RHEV-H : reserve VDSM port 54321
Product: Red Hat Enterprise Linux 5 Reporter: Alan Pevec <apevec>
Component: ovirt-nodeAssignee: Alan Pevec <apevec>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.6CC: cpelland, djorm, lilu, llim, moli, mshao, ovirt-maint, vbian, ycui, yeylon
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: ovirt-node-1.0-49.el5 Doc Type: Bug Fix
Doc Text:
With this update, Red Hat Enterprise Virtualization Hypervisor has been updated to reserve port 54321 (that is, the port used by VDSM) to ensure that it is not accidentally assigned to another service.
Story Points: ---
Clone Of: 569358
: 722871 (view as bug list) Environment:
Last Closed: 2011-01-13 18:41:49 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:
Bug Depends On: 557884    
Bug Blocks: 722871    

Description Alan Pevec 2010-09-30 10:43:54 UTC
5.6 kernel adds ip_local_reserved_ports sysctl so RHEV-H should make use of it to guarantee VDSM port is not taken accidentally by automatic port assignments.


+++ This bug was initially created as a clone of Bug #569358 +++

Description of problem:

in some rare occasions portmap got hold of port 54321 which lead to error on booting VDSM.

we might need to consider moving the portmap port range 

or 

move vdsm default port to a different one.

Comment 2 Alan Pevec 2010-10-01 21:56:16 UTC
--- a/recipe/common-el5.ks
+++ b/recipe/common-el5.ks
@@ -48,10 +48,12 @@ save
 EOF
 
 # disable bridge-nf, rhbz#514905
+# reserve vdsm port 54321, rhbz#638907
 augtool <<EOF
 set /files/etc/sysctl.conf/net.bridge.bridge-nf-call-ip6tables 0
 set /files/etc/sysctl.conf/net.bridge.bridge-nf-call-iptables 0
 set /files/etc/sysctl.conf/net.bridge.bridge-nf-call-arptables 0
+set /files/etc/sysctl.conf/net.ipv4.ip_local_reserved_ports 54321
 save
 EOF

Comment 4 Linqing Lu 2010-11-18 05:53:12 UTC
Verified in RHEVH 5.6-5.el5.1

# cat /proc/sys/net/ipv4/ip_local_port_range
32768   61000
# cat /proc/sys/net/ipv4/ip_local_reserved_ports
54321

Comment 5 Jaromir Hradilek 2011-01-06 16:46:21 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
With this update, Red Hat Enterprise Virtualization Hypervisor has been updated to reserve port 54321 (that is, the port used by VDSM) to ensure that it is not accidentally assigned to another service.

Comment 7 errata-xmlrpc 2011-01-13 18:41:49 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0148.html