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

Cannot create a new domain while using a key that was already added to OpenShift.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 3.3.0.CR1
    • 3.3.0.Beta3
    • openshift
    • None
    • Hide
      1. ASSERT: make sure you have an account on OpenShift, but no domain yet
      2. EXEC: create a domain, create the key for it
      3. EXEC: delete your domain, delete your key
      4. EXEC: create a new domain, create a new key for it

      Result:
      The wizard errors telling you that your new key cannot be added.

      The wizard actually tried to add the new key with the very same name. The wizard uses a constant name for the key. We need to make sure we use a new name on every key addition.

      Show
      ASSERT: make sure you have an account on OpenShift, but no domain yet EXEC: create a domain, create the key for it EXEC: delete your domain, delete your key EXEC: create a new domain, create a new key for it Result: The wizard errors telling you that your new key cannot be added. The wizard actually tried to add the new key with the very same name. The wizard uses a constant name for the key. We need to make sure we use a new name on every key addition.

    Description

      In order to recreate (create-delete-create) domain via JBT/JBDS the ssh key named 'jbosstools' must be deleted. Otherwise OpenShift returns

      !MESSAGE Could not create domain "rhtestdomain"
      !STACK 0
      com.openshift.client.OpenShiftSSHKeyException: Could not add new key AAAAB3NzaC1yc2EAAAADAQABAAABAQC4gsImDDgWGzFb/h791LDbgRqGRQwv76rG0wvfXylqEDK52EkKH6Ikwbi9uYl5SxF7UO8EIx11pytQhhxkNQcSLJ8J8Zkg+s62oj5mmeojJUO6XarzAXGioELat+qDZlyDxbZJuXUM6x9AL8M8n5BfjPowq0Rqkw+gmbm1vkVfCloZWYLlivf+JI+7Kom9cgC+qJBjNqcawqNdkkdKXoEiIUHdppOzyJdY/xSTb7VFyGwEgl57Imtja2c4of9I2y8AFtd1OWK2bHrsXemCkqX24XeoV/0nBiNB4RbnDcv28U5f2zFiIhRcdtpg2x+G/zwTOd72tMU3C4aQGr5JBWg5 with the name jbosstools. There already is a key for this name, key names must be unique.
      	at com.openshift.internal.client.UserResource.putSSHKey(UserResource.java:182)
      	at org.jboss.tools.openshift.express.internal.core.console.UserDelegate.putSSHKey(UserDelegate.java:244)
      	at org.jboss.tools.openshift.express.internal.ui.wizard.NewDomainWizardPageModel.createDomain(NewDomainWizardPageModel.java:109)
      	at org.jboss.tools.openshift.express.internal.ui.wizard.NewDomainDialog$1.run(NewDomainDialog.java:46)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
      

      Attachments

        Issue Links

          Activity

            People

              adietish@redhat.com André Dietisheim
              sbunciak-rh Stefan Bunciak
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: