Bug 1004216

Summary: Met undefined method when trying to disconnect front-end connection with oo-devel-node
Product: OpenShift Online Reporter: Meng Bo <bmeng>
Component: ContainersAssignee: Michal Fojtik <mfojtik>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: mfojtik
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-19 16:49:04 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:

Description Meng Bo 2013-09-04 08:35:52 UTC
Description of problem:
When using oo-devel-node frontend-disconnect to disconnect the connection for a gear. It will show "undefined method `[]' for nil:NilClass", and cannot disconnect the connection successfully.

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

How reproducible:
always

Steps to Reproduce:
1. Create a gear via oo-devel-node
#oo-devel-node app-create --with-container-uuid '123456' --with-app-uuid '123456' --with-namespace 'dom1' --with-app-name 'app1'
2. Connect to the existing frontend connection
#oo-devel-node frontend-connect --with-container-uuid '123456' --path "" --target "127.2.251.1:8080"
3. Try to disconnect the connection via oo-devel-node
#oo-devel-node frontend-disconnect --with-container-uuid '123456' --path ""

Actual results:
# oo-devel-node frontend-disconnect --with-container-uuid '123456' --path ""
undefined method `[]' for nil:NilClass

Expected results:
Should not meet such error and the connection can be disconnected.

Additional info:
It was working well on devenv_3739 with old command oo-frontend-disconnect

And the description of the option is incorrect.
# oo-devel-node --help frontend-disconnect
  NAME:
    frontend-disconnect
  DESCRIPTION:
    Add a frontend connection       <-----------------------

Comment 1 openshift-github-bot 2013-09-04 16:47:53 UTC
Commit pushed to master at https://github.com/openshift/origin-server

https://github.com/openshift/origin-server/commit/8bdc93f070c1f7034532738d4a42798a575a15e6
Bug 1004216 - Fixed typo in frontend-disconnect (oo-devel-node)

Comment 2 Meng Bo 2013-09-05 08:43:14 UTC
The issue has been fixed on devenv_3745.

Frontend connection can be disconnected via oo-devel-node.

Move bug to verified.