Bug 843315 - user requests support for 'whois'
Summary: user requests support for 'whois'
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: oc
Version: 2.x
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: ---
Assignee: Rob Millner
QA Contact: libra bugs
URL:
Whiteboard:
: 847834 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-07-26 03:25 UTC by Nam Duong
Modified: 2015-05-15 02:01 UTC (History)
6 users (show)

Fixed In Version: libra_ami #2017
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-09-17 21:29:20 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


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