Bug 913389 - [Forge]Failed to input "yes" or "no" from keyboard to continue the app creation when running rhc setup
Summary: [Forge]Failed to input "yes" or "no" from keyboard to continue the app creat...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: oc
Version: 2.x
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: ---
Assignee: Ben Parees
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-21 07:16 UTC by joycezhang
Modified: 2015-06-11 21:36 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-06-11 21:36:56 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description joycezhang 2013-02-21 07:16:21 UTC
Description of problem:
If try to create an app in forge, it would be failed to finish the app creation as keyboard is invalid to input "yes" or "no". Please refer to the error as below:
$rhc setup
 ? Enter the application name [OSE2]  [OSE2] forgeapp1 
***INFO*** Using RHLOGIN:jinzhang for https://10.4.59.224
 ? Enter your Red Hat Openshift password: ******
***INFO*** Found OpenShift User: jinzhang
Choose a JBoss Cartridge:

  1 - [Cartridge [name=jbosseap-6.0]]*
  2 - [Cartridge [name=jbossews-1.0]]

 ? Choose an option by typing the number of the selection [*-default]  [0] 
***INFO*** Using JBoss Cartridge: jbosseap-6.0
Initialized empty Git repository in /home/openshift/FORGE121/forge-distribution-1.2.1.Final/OSE2/.git/
***INFO*** Waiting for OpenShift to propagate DNS
***INFO*** Trying to contact http://forgeapp1-jbtdm1.cdn.com/ (attempt 1 of 500)
Updating openshift
The authenticity of host 'forgeapp1-jbtdm1.cdn.com (10.4.59.138)' can't be established.
RSA key fingerprint is 6c:a5:e5:fa:75:db:5a:7f:dc:a2:44:ed:e4:97:af:3c.
Are you sure you want to continue connecting (yes/no)? 
Please type 'yes' or 'no': 
Please type 'yes' or 'no': 
Please type 'yes' or 'no': 
Please type 'yes' or 'no':

Version-Release number of selected component (if applicable):
Forge version: 1.2.1.Final
com.redhat.openshift.forge-openshift-plugin:1.0.6.Final:1.0.6.Final-f0d59f5a-c472-4824-9afb-63be28e370e1
devenv-2840


How reproducible:
always

Steps to Reproduce:
1.Run 'forge' and install openshift plugin: forge install-plugin openshift
2.Create a new project:new-project --named forge-openshift-demo --topLevelPackage org.jboss.forge.openshift
3.Run 'rhc setup' and give the app name
4.Try to input 'yes' or 'no' to continue the app creation when message "Are you sure you want to continue connecting (yes/no)? " pops up.

Actual results:
It's invalid to input 'yes' or 'no', and failed to complete the app creation.

Expected results:
It should complete the app creation without any errors.

Additional info:
If try to use "rhc setup" in forge to create an app without ssh key added previously, it would still be failed to input yes/no when the message pops up to ask you upload your key.

Comment 1 Bill DeCoste 2013-02-21 20:20:09 UTC
Unable to recreate. I have tested against a brand new env. Here is what I have done:

1) Create new devenv
2) Point express.conf to devenv
3) Run 'rhc setup'
4) Steps above.

I never see the 'Are you sure you want to continue connecting (yes/no)?' question. Details below.

Is this a local install of Origin? It looks like maybe the ssl cert being used is not configured properly for the server instance (i.e. the hostname in the cert doesn't match the hostname).

Can you ssh into the machine?
 
[forge-openshift-demo] forge-openshift-demo $ rhc setup
***INFO*** Loaded OpenShift configuration from /home/bdecoste/.openshift/express.conf
 ? Enter the application name [forgeopenshiftd]  [forgeopenshiftd] forgedemo
***INFO*** Using RHLOGIN:bdecoste68e for https://ec2-50-19-205-76.compute-1.amazonaws.com
 ? Enter your Red Hat Openshift password: ******
***INFO*** Found OpenShift User: bdecoste68e
Choose a JBoss Cartridge:

  1 - [Cartridge [name=jbossews-2.0]]*
  2 - [Cartridge [name=jbossas-7]]
  3 - [Cartridge [name=jbosseap-6.0]]
  4 - [Cartridge [name=jbossews-1.0]]

 ? Choose an option by typing the number of the selection [*-default]  [0] 2
***INFO*** Using JBoss Cartridge: jbossas-7
Initialized empty Git repository in /home/bdecoste/workspaces/OpenShift/forge-openshift-demo/forge-openshift-demo/.git/
***INFO*** Waiting for OpenShift to propagate DNS
***INFO*** Trying to contact http://forgedemo-bdecoste68e.dev.rhcloud.com/ (attempt 1 of 500)
***INFO*** Trying to contact http://forgedemo-bdecoste68e.dev.rhcloud.com/ (attempt 6 of 500)
Updating openshift
Warning: Permanently added 'forgedemo-bdecoste68e.dev.rhcloud.com,50.19.205.76' (RSA) to the list of known hosts.
From ssh://forgedemo-bdecoste68e.dev.rhcloud.com/~/git/forgedemo
 * [new branch]      master     -> openshift/master
***SUCCESS*** Application deployed to http://forgedemo-bdecoste68e.dev.rhcloud.com/
***SUCCESS*** Installed [forge.openshift] successfully.
***SUCCESS*** OpenShift (rhc) is installed.
Wrote /home/bdecoste/workspaces/OpenShift/forge-openshift-demo/forge-openshift-demo/pom.xml

Comment 2 joycezhang 2013-02-22 03:54:00 UTC
This message is occurred when you have created or connected apps before and generated a file know_hosts under ~/.ssh on your client. Here's the content of know_hosts:

# cat known_hosts 
alb-1.stg.rhcloud.com,184.72.206.227 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAwUPkUQ84FKIWhOxy5RBBuR9gbrov2epARmFmaxD7NFRayobnDvl8GaBTbH1kxaZ/tYQeIqVE1assL74KArMQBzz6rj0FEWf0zrXxAY55EGswmWEEdqlYu1LbIxDCG6opqkiq6ocxjea9K3XYq+2aYoAvI3sshSImTYZP1glFhrh3QUsNJHOfDboTLJFNSdLjzXubRMa4eEx7s9pe9kwBOaLNIiVeGzUWg5+KaykSg2UMB3aG127t8kX+OhDYceVR42ehQJ0MjQGlGoNtldxGrlX8NjxUqvJAo6pqNqRK8Cps7/x/m0GPXWAgSZymhurXmj1o2LP5nKLtVzMPvwMb0w==

It could work well if no know_hosts file existed on the client.

Comment 3 Bill DeCoste 2013-02-22 04:03:28 UTC
Does this occur when there is nothing in known_hosts or there is no known_hosts file?

Comment 4 joycezhang 2013-02-22 05:15:24 UTC
It doesn't occur if no know_hosts file existed and it's reproduced if nothing in know_hosts.

Comment 5 Bill DeCoste 2013-02-26 23:56:43 UTC
Still can't recreate this. Below is the result I get when there is an empty known_hosts and empty libra_known_hosts file. Note the line where the new host is added to known_hosts when pulling down the .git repo. If you are resusing the same hostname with different certificates you need to clean out the entry in the known_hosts file or there will be a mismatch.

Choose a JBoss Cartridge:

  1 - [Cartridge [name=jbossews-2.0]]*
  2 - [Cartridge [name=jbossas-7]]
  3 - [Cartridge [name=jbosseap-6.0]]
  4 - [Cartridge [name=jbossews-1.0]]

 ? Choose an option by typing the number of the selection [*-default]  [0] 2
***INFO*** Using JBoss Cartridge: jbossas-7
Initialized empty Git repository in /home/bdecoste/workspaces/OpenShift/forge-openshift-demo/forge-openshift-demo/.git/
***INFO*** Waiting for OpenShift to propagate DNS
***INFO*** Trying to contact http://forgedemo-bdecoste73e.dev.rhcloud.com/ (attempt 1 of 500)
***INFO*** Trying to contact http://forgedemo-bdecoste73e.dev.rhcloud.com/ (attempt 6 of 500)
***INFO*** Trying to contact http://forgedemo-bdecoste73e.dev.rhcloud.com/ (attempt 11 of 500)
Updating openshift
Warning: Permanently added 'forgedemo-bdecoste73e.dev.rhcloud.com,23.22.22.252' (RSA) to the list of known hosts.
From ssh://forgedemo-bdecoste73e.dev.rhcloud.com/~/git/forgedemo
 * [new branch]      master     -> openshift/master
***SUCCESS*** Application deployed to http://forgedemo-bdecoste73e.dev.rhcloud.com/
***SUCCESS*** Installed [forge.openshift] successfully.
***SUCCESS*** OpenShift (rhc) is installed.
Wrote /home/bdecoste/workspaces/OpenShift/forge-openshift-demo/forge-openshift-demo/pom.xml
[forge-openshift-demo] forge-openshift-demo $

Comment 6 joycezhang 2013-03-04 07:41:48 UTC
The message can pop up if the app connection didn't exist in know_hosts file. It also can be shown when using rhc client as below:

# rhc app ssh py33 -p redhat
Connecting to 51342a166cec0e8913000232.rhcloud.com ...
The authenticity of host 'py33-intdm1new2.int.rhcloud.com (54.234.223.161)' can't be established.
RSA key fingerprint is cf:ee:77:cb:0e:fc:02:d7:72:7e:ae:80:c0:90:88:a7.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'py33-intdm1new2.int.rhcloud.com' (RSA) to the list of known hosts.

    *********************************************************************

    You are accessing a service that is for use only by authorized users.  
    If you do not have authorization, discontinue use at once. 
    Any use of the services is subject to the applicable terms of the 
    agreement which can be found at: 
    https://openshift.redhat.com/app/legal

    *********************************************************************

    Welcome to OpenShift shell

    This shell will assist you in managing OpenShift applications.

    !!! IMPORTANT !!! IMPORTANT !!! IMPORTANT !!!
    Shell access is quite powerful and it is possible for you to
    accidentally damage your application.  Proceed with care!
    If worse comes to worst, destroy your application with 'rhc app delete'
    and recreate it
    !!! IMPORTANT !!! IMPORTANT !!! IMPORTANT !!!

    Type "help" for more info.

But after the app connection stored in know_hosts file, the message won't be shown when you create connection in the future.

Comment 7 Bill DeCoste 2013-03-04 18:04:46 UTC
The host needs to be in known_hosts.

Comment 8 manoj 2013-03-04 21:25:49 UTC
Lowering severity. Not a release blocker

Comment 9 joycezhang 2013-03-27 08:26:25 UTC
This bug is still reproduced with openshift plugin 1.0.6 Final on forge 1.2.2 Final, and app can't be created successfully as below:

 $ rhc setup
***INFO*** Loaded OpenShift configuration from /root/.openshift/express.conf
 ? Enter the application name [forgetest9]  [forgetest9] myap123
***INFO*** Using RHLOGIN:zhangjing for https://10.66.78.199
 ? Enter your Red Hat Openshift password: ******
***INFO*** Found OpenShift User: zhangjing
Choose a JBoss Cartridge:

  1 - [Cartridge [name=jbosseap-6.0]]*
  2 - [Cartridge [name=jbossews-1.0]]

 ? Choose an option by typing the number of the selection [*-default]  [0] 
***INFO*** Using JBoss Cartridge: jbosseap-6.0
Initialized empty Git repository in /home/joyce/forge122final/forge-distribution-1.2.2.Final/bin/forgetest9/.git/
***INFO*** Waiting for OpenShift to propagate DNS
***INFO*** Trying to contact http://myap123-osedmtest1.rhn.com/ (attempt 1 of 500)
***INFO*** Trying to contact http://myap123-osedmtest1.rhn.com/ (attempt 6 of 500)
Updating openshift
The authenticity of host 'myap123-osedmtest1.rhn.com (10.66.78.205)' can't be established.
RSA key fingerprint is c0:de:72:f4:0e:8f:e7:77:63:5d:5c:a1:d1:e7:7e:01.
Are you sure you want to continue connecting (yes/no)? 
Please type 'yes' or 'no': 
Please type 'yes' or 'no': 
Please type 'yes' or 'no': 
Please type 'yes' or 'no': 
Please type 'yes' or 'no': 
Please type 'yes' or 'no': 
Please type 'yes' or 'no': 
Please type 'yes' or 'no': 
Please type 'yes' or 'no': 
Please type 'yes' or 'no': 
Please type 'yes' or 'no': 
Please type 'yes' or 'no': 
Please type 'yes' or 'no': 
Please type 'yes' or 'no': 
Please type 'yes' or 'no': 
Please type 'yes' or 'no': 
Host key verification failed.
fatal: The remote end hung up unexpectedly
error: Could not fetch openshift
***ERROR*** Failed to connect to OpenShift GIT repository, project is in an inconsistent state. Remove the .git directory manually, and delete the application using rhc app delete -a myap123
org.jboss.forge.project.ProjectModelException: Could not complete installation of facet: [forge.openshift]. Installation was aborted by the Facet during installation.
	at org.jboss.forge.project.BaseProject.performInstallation(BaseProject.java:246)
	at org.jboss.forge.project.BaseProject.installFacet(BaseProject.java:166)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:48)
	at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:125)
	at org.jboss.weld.proxies.Project$-1946286523$Proxy$_$$_WeldClientProxy.installFacet(Project$-1946286523$Proxy$_$$_WeldClientProxy.java)
	at org.jboss.forge.shell.project.FacetInstallationHandler.performInstallation(FacetInstallationHandler.java:105)
	at org.jboss.forge.shell.project.FacetInstallationHandler.install(FacetInstallationHandler.java:81)
	at org.jboss.forge.shell.project.FacetInstallationHandler.installRequest(FacetInstallationHandler.java:59)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:305)
	at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)
	at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163)
	at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:299)
	at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:188)
	at org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:59)
	at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:198)
	at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:282)
	at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:265)
	at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:234)
	at org.jboss.weld.manager.BeanManagerImpl.notifyObservers(BeanManagerImpl.java:635)
	at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:628)
	at org.jboss.weld.event.EventImpl.fire(EventImpl.java:75)
	at com.redhat.openshift.forge.OpenShiftPlugin.setup(OpenShiftPlugin.java:98)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at org.jboss.forge.shell.command.Execution.perform(Execution.java:134)
	at org.jboss.forge.shell.command.fshparser.FSHRuntime.run(FSHRuntime.java:109)
	at org.jboss.forge.shell.command.fshparser.FSHRuntime.run(FSHRuntime.java:47)
	at org.jboss.forge.shell.ShellImpl$ExecutorThread.run(ShellImpl.java:789)
	at org.jboss.forge.shell.ShellImpl.execute(ShellImpl.java:812)
	at org.jboss.forge.shell.ShellImpl.doShell(ShellImpl.java:602)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:48)
	at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:125)
	at org.jboss.forge.shell.ShellImpl$Proxy$_$$_WeldClientProxy.doShell(ShellImpl$Proxy$_$$_WeldClientProxy.java)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:305)
	at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)
	at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163)
	at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:299)
	at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:188)
	at org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:59)
	at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:198)
	at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:282)
	at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:265)
	at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:234)
	at org.jboss.weld.manager.BeanManagerImpl.notifyObservers(BeanManagerImpl.java:635)
	at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:622)
	at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:616)
	at org.jboss.forge.shell.Bootstrap$1.run(Bootstrap.java:172)
	at java.lang.Thread.run(Thread.java:722)

Comment 10 Mike McGrath 2013-04-16 16:22:27 UTC
ping, any updates?

Comment 11 chunchen 2013-04-17 07:43:45 UTC
This bug is still reproduced with openshift plugin 2.4.1.Final on forge 1.2.1 Final, and app can't be created successfully as below:

[forge-openshift-demo] forge-openshift-demo $ rhc  setup --app forge
***INFO*** Loaded OpenShift configuration from /root/.openshift/express.conf
***INFO*** Using RHLOGIN:chunchen for https://ec2-54-224-117-212.compute-1.amazonaws.com
 ? Enter your Red Hat Openshift password: **
***INFO*** Found OpenShift User: chunchen
Choose a JBoss Cartridge:

  1 - [Cartridge [name=jbossas-7.1]]*
  2 - [Cartridge [name=jbossews-2.0]]
  3 - [Cartridge [name=jbosseap-6.0]]

 ? Choose an option by typing the number of the selection [*-default]  [0] 1
***INFO*** Using JBoss Cartridge: jbossas-7.1
Initialized empty Git repository in /home/fedr1204/Downloads/dirs/forge/forge-openshift-demo/.git/
***INFO*** Waiting for OpenShift to propagate DNS
***INFO*** Trying to contact http://forge-ddd.dev.rhcloud.com/ (attempt 1 of 500)
Updating openshift
The authenticity of host 'forge-ddd.dev.rhcloud.com (54.224.117.212)' can't be established.
RSA key fingerprint is 1f:2d:4f:56:37:32:9e:9a:f6:46:a7:17:ca:e8:66:38.
Are you sure you want to continue connecting (yes/no)? 
Please type 'yes' or 'no': 
Please type 'yes' or 'no': 
Please type 'yes' or 'no': 
Please type 'yes' or 'no': 
Please type 'yes' or 'no': 
Please type 'yes' or 'no': 
Please type 'yes' or 'no': 
Please type 'yes' or 'no': 
Please type 'yes' or 'no': 
Please type 'yes' or 'no': 
Please type 'yes' or 'no': 
Please type 'yes' or 'no': 
Please type 'yes' or 'no': 
Please type 'yes' or 'no': 
Please type 'yes' or 'no': 
Please type 'yes' or 'no': 
Please type 'yes' or 'no': 
Please type 'yes' or 'no': 
Please type 'yes' or 'no': 
Please type 'yes' or 'no': 
Please type 'yes' or 'no':
Host key verification failed.
fatal: The remote end hung up unexpectedly
error: Could not fetch openshift
***ERROR*** Failed to connect to OpenShift GIT repository, project is in an inconsistent state. Remove the .git directory manually, and delete the application using rhc app delete -a forge
org.jboss.forge.project.ProjectModelException: Could not complete installation of facet: [forge.openshift]. Installation was aborted by the Facet during installation.
	at org.jboss.forge.project.BaseProject.performInstallation(BaseProject.java:246)
	at org.jboss.forge.project.BaseProject.installFacet(BaseProject.java:166)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:48)
	at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:125)
	at org.jboss.weld.proxies.Project$-1946286523$Proxy$_$$_WeldClientProxy.installFacet(Project$-1946286523$Proxy$_$$_WeldClientProxy.java)
	at org.jboss.forge.shell.project.FacetInstallationHandler.performInstallation(FacetInstallationHandler.java:105)
	at org.jboss.forge.shell.project.FacetInstallationHandler.install(FacetInstallationHandler.java:81)
	at org.jboss.forge.shell.project.FacetInstallationHandler.installRequest(FacetInstallationHandler.java:59)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:305)
	at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)
	at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163)
	at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:299)
	at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:188)
	at org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:59)
	at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:198)
	at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:282)
	at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:265)
	at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:234)
	at org.jboss.weld.manager.BeanManagerImpl.notifyObservers(BeanManagerImpl.java:635)
	at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:628)
	at org.jboss.weld.event.EventImpl.fire(EventImpl.java:75)
	at com.redhat.openshift.forge.OpenShiftPlugin.setup(OpenShiftPlugin.java:98)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at org.jboss.forge.shell.command.Execution.perform(Execution.java:134)
	at org.jboss.forge.shell.command.fshparser.FSHRuntime.run(FSHRuntime.java:109)
	at org.jboss.forge.shell.command.fshparser.FSHRuntime.run(FSHRuntime.java:47)
	at org.jboss.forge.shell.ShellImpl$ExecutorThread.run(ShellImpl.java:789)
	at org.jboss.forge.shell.ShellImpl.execute(ShellImpl.java:812)
	at org.jboss.forge.shell.ShellImpl.doShell(ShellImpl.java:602)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:48)
	at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:125)
	at org.jboss.forge.shell.ShellImpl$Proxy$_$$_WeldClientProxy.doShell(ShellImpl$Proxy$_$$_WeldClientProxy.java)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:305)
	at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)
	at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163)
	at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:299)
	at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:188)
	at org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:59)
	at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:198)
	at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:282)
	at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:265)
	at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:234)
	at org.jboss.weld.manager.BeanManagerImpl.notifyObservers(BeanManagerImpl.java:635)
	at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:622)
	at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:616)
	at org.jboss.forge.shell.Bootstrap$1.run(Bootstrap.java:172)
	at java.lang.Thread.run(Thread.java:722)
[forge-openshift-demo] forge-openshift-demo $ yyyyyyyysyyyyynyyyyy
***ERROR*** No such command: yyyyyyyysyyyyynyyyyy

Comment 12 joycezhang 2013-04-26 10:27:06 UTC
This bug is reproduced without config file added under ~/.ssh. 
If trying to add below config file under ~/.ssh, it works well.
# cat config 
StrictHostKeyChecking=no

Comment 13 Fabiano Franz 2014-10-27 19:49:42 UTC
Unable to reproduce in latest.

Comment 14 chunchen 2014-10-28 05:46:52 UTC
@Fabiano Franz I am trying to use JBoss Forge(version 2.12.1.Final) to verify this bug, but it's failed to install plugin of OpenShift Java client tools, could you please help to have a look?

Have tried below ways to install plugin of OpenShift Java client tools:

1. From the system command line: 
$ forge --install org.jboss.forge.addon:openshift

java.lang.IllegalArgumentException: No Artifact version found for org.jboss.forge.addon:openshift
	at org.jboss.forge.bootstrap.Bootstrap.install(Bootstrap.java:335)
	at org.jboss.forge.bootstrap.Bootstrap.<init>(Bootstrap.java:179)
	at org.jboss.forge.bootstrap.Bootstrap.main(Bootstrap.java:95)
> Forge version [2.12.1.Final]

2. From Forge CLI: 
[openshiftme]$ addon-install-from-git --url https://github.com/forge/plugin-openshift.git

***INFO*** Installing Addon from Git 	[0/4] ...
***INFO*** Installing Addon from Git:Cloning repository in /tmp/1414466344189-0 	[0/4] ...
***INFO*** Installing Addon from Git:Installing project into local repository 	[1/4] ...
[INFO] Scanning for projects...
<-------------snip------------->
***INFO*** Installing Addon from Git:Removing previous addon installation (com.redhat.openshift:forge-openshift-plugin,1.0.6.Final) 	[2/4] ...
***INFO*** Installing Addon from Git:Installing addon (com.redhat.openshift:forge-openshift-plugin,1.0.6.Final) 	[3/4] ...
***ERROR*** Addon com.redhat.openshift:forge-openshift-plugin,1.0.6.Final could not be installed: org.eclipse.aether.resolution.DependencyResolutionException: Failure to find com.redhat.openshift:forge-openshift-plugin:jar:forge-addon:1.0.6.Final in http://maven.repository.redhat.com/earlyaccess/all/ was cached in the local repository, resolution will not be reattempted until the update interval of jboss-earlyaccess-repository has elapsed or updates are forced

Thanks in advance!


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