Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-5361

Container-delete does not fail when the credentials are invalid

    XMLWordPrintable

Details

    • % %
    • Sprint 5 - towards ER2

    Description

      With 045 you can update the ssh credentials to the machine. Changing the credentials to the invalid ones and then deleting the container using container-delete does not raise any exception to std out and it seems everything worked OK, but the container is still running on the remote host.

      JBossFuse:karaf@root> container-create-ssh --user working --password working --host localhost --proxy-uri http://localhost:9999/ ssh
      The following containers have been created successfully:
      	Container: ssh.
      JBossFuse:karaf@root> container-update-ssh-credentials --user invalid --password invalid ssh
      JBossFuse:karaf@root> container-delete ssh
      The list of container names: [ssh]
      JBossFuse:karaf@root> container-list
      [id]   [version]  [type]  [connected]  [profiles]              [provision status]
      root*  1.0        karaf   yes          fabric                  success           
                                             fabric-ensemble-0000-1                    
                                             jboss-fuse-full
      

      The exception is logged just into the log and the container is removed from the container list.

      IMHO the error message should be logged to stdout and the container shouldn't be removed from the container list (unless you specify the --force flag).

      Attachments

        Activity

          People

            pantinor@redhat.com Paolo Antinori
            avano@redhat.com Andrej Vano
            Andrej Vano Andrej Vano
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: