Bug 843315

Summary: user requests support for 'whois'
Product: OKD Reporter: Nam Duong <nduong>
Component: ocAssignee: Rob Millner <rmillner>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: low Docs Contact:
Priority: low    
Version: 2.xCC: jinzhang, jofernan, mfisher, mkhusid, pcerioli, rmillner
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libra_ami #2017 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-09-17 21:29:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Nam Duong 2012-07-26 03:25:25 UTC
Description of problem:

As per https://openshift.redhat.com/community/forums/openshift/enable-whois-command-on-the-server, user is requesting 'whois' cmd enabled/installed on the platform.

Comment 1 Mike Khusid 2012-07-26 04:03:08 UTC
Replied in the thread. This may be a limited use case.

Comment 2 Rob Millner 2012-08-14 17:08:39 UTC
This is an SELinux restriction, taking it.

Comment 3 Rob Millner 2012-08-14 17:09:25 UTC
*** Bug 847834 has been marked as a duplicate of this bug. ***

Comment 4 Rob Millner 2012-08-16 19:30:25 UTC
Commit 2a057163 adds support for contacting whois servers in the selinux policy.

Comment 5 Rob Millner 2012-08-16 22:04:56 UTC
Pull request:
https://github.com/openshift/li/pull/252

Comment 6 Rob Millner 2012-08-17 17:21:30 UTC
Pull request merged.

Comment 7 joycezhang 2012-08-20 07:53:57 UTC
This bug has been verified and fixed. 

Please refer to the details as below:

Build:
rhc.0.97.12.gem
devenv_2029

Verified steps:
1. Create an ruby app
#rhc app create -a ruby19 -t ruby-1.9 -p redhat
2.SSH into the app and check the port 43 status:
[ruby19-joycedev2.dev.rhcloud.com ~]\> irb 
irb(main):001:0> require "socket" 
=> true 
irb(main):002:0> socket = TCPSocket.new("whois.nic.it", 43) 
=> #<TCPSocket:fd 5> 
irb(main):003:0> socket.write ("example.it\r\n") 
=> 12 
irb(main):004:0> response = socket.read 
=> "" 
irb(main):005:0> puts response 

=> nil 

The port 43 is opened be default. 

So mart it as verified. Thanks.