Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-13017

cannot add nor remove ssh keys with certain accounts

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.1.0.Alpha1
    • 4.0.0.Beta2
    • openshift
    • None
    • Hide

      The following is not occurring with all my accounts, it only happens with the accounts that currently have keys added. It does not happen with the ones I dont have keys added to.

      1) Removing keys is failing:

      1. ASSERT: make sure you have an account on OpenShift that already has ssh keys added to it
      2. EXEC: go to OpenShift Explorer and pick Manage SSH Keys... from the context-menu of your account
      3. EXEC: select a key and hit Remove...

      Result:
      You get an error dialog that tells you that the key could not be removed:

      In the Eclipse log you'll spot the following:

      com.openshift.client.OpenShiftEndpointException: Could not request https://openshift.redhat.com/broker/rest/user/keys/ff: Operation failed with exit code "143".Reason given: "Error updating settings on gear: 3122b680eb6b4ae69ba2c7c6c0f450de with status: -1 and output: "
      
      	at com.openshift.internal.client.RestService.request(RestService.java:103)
      	at com.openshift.internal.client.RestService.request(RestService.java:91)
      	at com.openshift.internal.client.RestService.request(RestService.java:76)
      	at com.openshift.internal.client.AbstractOpenShiftResource$ServiceRequest.execute(AbstractOpenShiftResource.java:137)
      	at com.openshift.internal.client.SSHKeyResource$DeleteKeyRequest.execute(SSHKeyResource.java:116)
      	at com.openshift.internal.client.SSHKeyResource$DeleteKeyRequest.access$300(SSHKeyResource.java:109)
      	at com.openshift.internal.client.SSHKeyResource.destroy(SSHKeyResource.java:72)
      	at org.jboss.tools.openshift.express.internal.ui.wizard.ssh.ManageSSHKeysWizardPageModel.removeKey(ManageSSHKeysWizardPageModel.java:54)
      	at org.jboss.tools.openshift.express.internal.ui.wizard.ssh.ManageSSHKeysWizardPage$RemoveKeyJob.run(ManageSSHKeysWizardPage.java:292)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
      Caused by: com.openshift.internal.client.httpclient.HttpClientException: {"status":"internal_server_error","messages":[{"field":null,"exit_code":143,"severity":"error","text":"Error updating settings on gear: 3122b680eb6b4ae69ba2c7c6c0f450de with status: -1 and output: "}],"version":"1.0","data":null,"supported_api_versions":[1.0,1.1,1.2],"type":null}
      
      	at com.openshift.internal.client.httpclient.UrlConnectionHttpClient.createException(UrlConnectionHttpClient.java:189)
      	at com.openshift.internal.client.httpclient.UrlConnectionHttpClient.write(UrlConnectionHttpClient.java:161)
      	at com.openshift.internal.client.httpclient.UrlConnectionHttpClient.delete(UrlConnectionHttpClient.java:142)
      	at com.openshift.internal.client.httpclient.UrlConnectionHttpClient.delete(UrlConnectionHttpClient.java:133)
      	at com.openshift.internal.client.RestService.request(RestService.java:145)
      	at com.openshift.internal.client.RestService.request(RestService.java:97)
      	... 9 more
      Caused by: java.io.IOException: Server returned HTTP response code: 500 for URL: https://openshift.redhat.com/broker/rest/user/keys/ff
      	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1436)
      	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:234)
      	at com.openshift.internal.client.httpclient.UrlConnectionHttpClient.write(UrlConnectionHttpClient.java:156)
      	... 13 more
      

      2) Adding keys does not work either:

      1. ASSERT: make sure you have an account on OpenShift that already has ssh keys added to it
      2. EXEC: go to OpenShift Explorer and pick Manage SSH Keys... from the context-menu of your account
      3. EXEC: select a key and hit Add Existing... or New...

      Result:
      You get an error dialog that tells you that the key could not be added:

      In the Eclipse log you'll spot the following:

      !ENTRY org.jboss.tools.openshift.express.ui 4 0 2012-11-08 15:34:06.891
      !MESSAGE Could not add SSH key openshiftadietish to OpenShift
      !STACK 0
      com.openshift.client.OpenShiftEndpointException: Could not request https://openshift.redhat.com/broker/rest/user/keys: Operation failed with exit code "143".Reason given: "Error updating settings on gear: 3122b680eb6b4ae69ba2c7c6c0f450de with status: -1 and output: "
      
      	at com.openshift.internal.client.RestService.request(RestService.java:103)
      	at com.openshift.internal.client.RestService.request(RestService.java:91)
      	at com.openshift.internal.client.RestService.request(RestService.java:76)
      	at com.openshift.internal.client.AbstractOpenShiftResource$ServiceRequest.execute(AbstractOpenShiftResource.java:137)
      	at com.openshift.internal.client.UserResource$AddSShKeyRequest.execute(UserResource.java:266)
      	at com.openshift.internal.client.UserResource.putSSHKey(UserResource.java:234)
      	at org.jboss.tools.openshift.express.internal.core.connection.Connection.putSSHKey(Connection.java:395)
      	at org.jboss.tools.openshift.express.internal.ui.wizard.ssh.AddSSHKeyWizardPageModel.addSSHKey(AddSSHKeyWizardPageModel.java:53)
      	at org.jboss.tools.openshift.express.internal.ui.wizard.ssh.AddSSHKeyJob.run(AddSSHKeyJob.java:35)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
      Caused by: com.openshift.internal.client.httpclient.HttpClientException: {"status":"internal_server_error","version":"1.0","supported_api_versions":[1.0,1.1,1.2],"data":null,"messages":[{"severity":"error","field":null,"text":"Error updating settings on gear: 3122b680eb6b4ae69ba2c7c6c0f450de with status: -1 and output: ","exit_code":143}],"type":null}
      
      	at com.openshift.internal.client.httpclient.UrlConnectionHttpClient.createException(UrlConnectionHttpClient.java:189)
      	at com.openshift.internal.client.httpclient.UrlConnectionHttpClient.write(UrlConnectionHttpClient.java:161)
      	at com.openshift.internal.client.httpclient.UrlConnectionHttpClient.post(UrlConnectionHttpClient.java:128)
      	at com.openshift.internal.client.httpclient.UrlConnectionHttpClient.post(UrlConnectionHttpClient.java:124)
      	at com.openshift.internal.client.RestService.request(RestService.java:141)
      	at com.openshift.internal.client.RestService.request(RestService.java:97)
      	... 9 more
      Caused by: java.io.IOException: Server returned HTTP response code: 500 for URL: https://openshift.redhat.com/broker/rest/user/keys
      	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1436)
      	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:234)
      	at com.openshift.internal.client.httpclient.UrlConnectionHttpClient.write(UrlConnectionHttpClient.java:156)
      	... 13 more
      
      Show
      The following is not occurring with all my accounts, it only happens with the accounts that currently have keys added. It does not happen with the ones I dont have keys added to. 1) Removing keys is failing: ASSERT: make sure you have an account on OpenShift that already has ssh keys added to it EXEC: go to OpenShift Explorer and pick Manage SSH Keys... from the context-menu of your account EXEC: select a key and hit Remove... Result: You get an error dialog that tells you that the key could not be removed: In the Eclipse log you'll spot the following: com.openshift.client.OpenShiftEndpointException: Could not request https: //openshift.redhat.com/broker/ rest /user/keys/ff: Operation failed with exit code "143" .Reason given: "Error updating settings on gear: 3122b680eb6b4ae69ba2c7c6c0f450de with status: -1 and output: " at com.openshift.internal.client.RestService.request(RestService.java:103) at com.openshift.internal.client.RestService.request(RestService.java:91) at com.openshift.internal.client.RestService.request(RestService.java:76) at com.openshift.internal.client.AbstractOpenShiftResource$ServiceRequest.execute(AbstractOpenShiftResource.java:137) at com.openshift.internal.client.SSHKeyResource$DeleteKeyRequest.execute(SSHKeyResource.java:116) at com.openshift.internal.client.SSHKeyResource$DeleteKeyRequest.access$300(SSHKeyResource.java:109) at com.openshift.internal.client.SSHKeyResource.destroy(SSHKeyResource.java:72) at org.jboss.tools.openshift.express.internal.ui.wizard.ssh.ManageSSHKeysWizardPageModel.removeKey(ManageSSHKeysWizardPageModel.java:54) at org.jboss.tools.openshift.express.internal.ui.wizard.ssh.ManageSSHKeysWizardPage$RemoveKeyJob.run(ManageSSHKeysWizardPage.java:292) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53) Caused by: com.openshift.internal.client.httpclient.HttpClientException: { "status" : "internal_server_error" , "messages" :[{ "field" : null , "exit_code" :143, "severity" : "error" , "text" : "Error updating settings on gear: 3122b680eb6b4ae69ba2c7c6c0f450de with status: -1 and output: " }], "version" : "1.0" , "data" : null , "supported_api_versions" :[1.0,1.1,1.2], "type" : null } at com.openshift.internal.client.httpclient.UrlConnectionHttpClient.createException(UrlConnectionHttpClient.java:189) at com.openshift.internal.client.httpclient.UrlConnectionHttpClient.write(UrlConnectionHttpClient.java:161) at com.openshift.internal.client.httpclient.UrlConnectionHttpClient.delete(UrlConnectionHttpClient.java:142) at com.openshift.internal.client.httpclient.UrlConnectionHttpClient.delete(UrlConnectionHttpClient.java:133) at com.openshift.internal.client.RestService.request(RestService.java:145) at com.openshift.internal.client.RestService.request(RestService.java:97) ... 9 more Caused by: java.io.IOException: Server returned HTTP response code: 500 for URL: https: //openshift.redhat.com/broker/ rest /user/keys/ff at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1436) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:234) at com.openshift.internal.client.httpclient.UrlConnectionHttpClient.write(UrlConnectionHttpClient.java:156) ... 13 more 2) Adding keys does not work either: ASSERT: make sure you have an account on OpenShift that already has ssh keys added to it EXEC: go to OpenShift Explorer and pick Manage SSH Keys... from the context-menu of your account EXEC: select a key and hit Add Existing... or New... Result: You get an error dialog that tells you that the key could not be added: In the Eclipse log you'll spot the following: !ENTRY org.jboss.tools.openshift.express.ui 4 0 2012-11-08 15:34:06.891 !MESSAGE Could not add SSH key openshiftadietish to OpenShift !STACK 0 com.openshift.client.OpenShiftEndpointException: Could not request https: //openshift.redhat.com/broker/ rest /user/keys: Operation failed with exit code "143" .Reason given: "Error updating settings on gear: 3122b680eb6b4ae69ba2c7c6c0f450de with status: -1 and output: " at com.openshift.internal.client.RestService.request(RestService.java:103) at com.openshift.internal.client.RestService.request(RestService.java:91) at com.openshift.internal.client.RestService.request(RestService.java:76) at com.openshift.internal.client.AbstractOpenShiftResource$ServiceRequest.execute(AbstractOpenShiftResource.java:137) at com.openshift.internal.client.UserResource$AddSShKeyRequest.execute(UserResource.java:266) at com.openshift.internal.client.UserResource.putSSHKey(UserResource.java:234) at org.jboss.tools.openshift.express.internal.core.connection.Connection.putSSHKey(Connection.java:395) at org.jboss.tools.openshift.express.internal.ui.wizard.ssh.AddSSHKeyWizardPageModel.addSSHKey(AddSSHKeyWizardPageModel.java:53) at org.jboss.tools.openshift.express.internal.ui.wizard.ssh.AddSSHKeyJob.run(AddSSHKeyJob.java:35) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53) Caused by: com.openshift.internal.client.httpclient.HttpClientException: { "status" : "internal_server_error" , "version" : "1.0" , "supported_api_versions" :[1.0,1.1,1.2], "data" : null , "messages" :[{ "severity" : "error" , "field" : null , "text" : "Error updating settings on gear: 3122b680eb6b4ae69ba2c7c6c0f450de with status: -1 and output: " , "exit_code" :143}], "type" : null } at com.openshift.internal.client.httpclient.UrlConnectionHttpClient.createException(UrlConnectionHttpClient.java:189) at com.openshift.internal.client.httpclient.UrlConnectionHttpClient.write(UrlConnectionHttpClient.java:161) at com.openshift.internal.client.httpclient.UrlConnectionHttpClient.post(UrlConnectionHttpClient.java:128) at com.openshift.internal.client.httpclient.UrlConnectionHttpClient.post(UrlConnectionHttpClient.java:124) at com.openshift.internal.client.RestService.request(RestService.java:141) at com.openshift.internal.client.RestService.request(RestService.java:97) ... 9 more Caused by: java.io.IOException: Server returned HTTP response code: 500 for URL: https: //openshift.redhat.com/broker/ rest /user/keys at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1436) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:234) at com.openshift.internal.client.httpclient.UrlConnectionHttpClient.write(UrlConnectionHttpClient.java:156) ... 13 more
    • Hide

      go to the Web-UI, it seems like Web-UI is not affected.

      Show
      go to the Web-UI, it seems like Web-UI is not affected.

          adietish@redhat.com André Dietisheim
          adietish@redhat.com André Dietisheim
          Votes:
          0 Vote for this issue
          Watchers:
          2 Start watching this issue

            Created:
            Updated:
            Resolved: