Bug 592307 - setup-ds.pl fails to detect unavailable port on Solaris
setup-ds.pl fails to detect unavailable port on Solaris
Product: 389
Classification: Community
Component: Install/Uninstall (Show other bugs)
All Other
low Severity medium
: ---
: ---
Assigned To: Nathan Kinder
Chandrasekar Kannan
Depends On:
  Show dependency treegraph
Reported: 2010-05-14 10:10 EDT by Endi Sukma Dewata
Modified: 2015-01-04 18:42 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2010-05-20 13:06:23 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
0001-Bug-592307-setup-ds.pl-fails-to-detect-unavailable-p.patch (1.19 KB, patch)
2010-05-14 10:19 EDT, Endi Sukma Dewata
no flags Details | Diff

  None (edit)
Description Endi Sukma Dewata 2010-05-14 10:10:47 EDT
The setup-ds.pl is supposed to check and display an error message if the port number entered is unavailable. On Solaris the setup-ds.pl accepts the port number although it is being used by another server.

How reproducible: consistently.

Steps to Reproduce:
1. Create and run a DS instance with a certain port number.
2. Create another DS instance with the same port number.
Actual results:
In step #2 the port number is accepted, but the new DS instance will fail to start.

Expected results:
The conflicting port number should not be accepted and user should be asked to enter a new port number.
Comment 1 Endi Sukma Dewata 2010-05-14 10:19:59 EDT
Created attachment 414067 [details]

The portAvailable() has been modified to use connect() instead of bind().

Note You need to log in before you can comment on or make changes to this bug.