Bug 854531

Summary: Should show rhc-port-forward be deprecated when use rhc-port-forward command
Product: OKD Reporter: Rony Gong 🔥 <qgong>
Component: ocAssignee: Fabiano Franz <ffranz>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: ffranz, johnp, xtian
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rhc-0.98.12-1+ Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-09-17 21:29:57 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 Rony Gong 🔥 2012-09-05 09:33:46 UTC
Description of problem:
story link:
https://rally1.rallydev.com/#/4670255914d/detail/userstory/7654436964




Version-Release number of selected component (if applicable):
fork_ami_US2833_74


How reproducible:
always

Steps to Reproduce:
1. Create non-scalable app (run this command in instance as root)
2. Use rhc-port-forward -a qjboss
3.
  
Actual results:
[root@ip-10-120-202-201 usr]# rhc-port-forward -a qjboss
Password: 

Checking available ports...

Binding java -> 127.0.250.129:3528...
Binding java -> 127.0.250.129:4447...
Binding java -> 127.0.250.129:5445...
Binding java -> 127.0.250.129:5455...
Binding java -> 127.0.250.129:8080...
Binding java -> 127.0.250.129:9990...
Binding java -> 127.0.250.129:9999...
Use ctl + c to stop



Expected results:
show rhc-port-forward is deprecated. please use rhc port-forward


Additional info:

Comment 1 Rony Gong 🔥 2012-09-06 03:29:15 UTC
Today, I retest on instance that created from fork_ami_US2833_AND_BZ284531
find the adding string like "
cWdvbmcxQHJlZGhhdC
5jb20"
I think they should be removed.
[root@ip-10-120-179-251 ~]# rhc port-forward -a qjboss
Password: 

cWdvbmcxQHJlZGhhdC
5jb206
Checking available ports...
Binding java -> 127.0.250.129:3528...
Binding java -> 127.0.250.129:4447...
Binding java -> 127.0.250.129:5445...

Comment 2 Rony Gong 🔥 2012-09-06 09:22:02 UTC
And test in fork_ami_US2833_AND_BZ284531, I could find the prompt message about deprecated rhc-port-forward when type "rhc-port-forward -a app"

Comment 3 Xiaoli Tian 2012-09-10 03:04:14 UTC
Assign it back since it still outputs some unexpected string according to comment 1

Comment 4 John (J5) Palmieri 2012-09-10 15:22:20 UTC
Weird string output has been fixed in bug#854152.

rhc-port-forward simply needs a puts line which prints out a warning:

puts "Warning: This command is deprecated and will be removed in the future. Please use 'rhc port-forward' instead."
puts""

Comment 5 Fabiano Franz 2012-09-11 01:02:52 UTC
Fixed in rhc-0.98.12-1+.

Comment 6 Rony Gong 🔥 2012-09-11 08:06:37 UTC
Verified on rhc-0.98.13
[qgong@localhost int]$ rhc-port-forward -a qphp
Warning: This command is deprecated and will be removed in the future. Please use 'rhc port-forward' instead.

Password: ******

Checking available ports...

Binding httpd -> 127.7.212.1:8080...
Use ctl + c to stop


[qgong@localhost int]$ rhc port-forward -a qphp
Password: ******

Checking available ports...
Binding httpd -> 127.7.212.1:8080...
Binding mysqld -> 127.7.212.1:3306...
Forwarding ports, use ctl + c to stop
^C
RESULT:
Ending port forward