Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-8868

API call used by Install Wizard to retry installation does not work

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0
    • ambari-server
    • None
    • d91074a0cb968dd1b6df52cf943689740ac2a3b8

    Description

      PUT /api/v1/clusters/y1/host_components?HostRoles/state=INSTALLED
      Form Data:
      {"RequestInfo":{"context":"Install Components","operation_level":{"level":"CLUSTER","cluster_name":"y1"}},"Body":

      {"HostRoles": {"state":"INSTALLED"}

      }}
      Server response:

      { "status" : 400, "message" : "java.lang.IllegalArgumentException: Invalid arguments, cluster name, component name and host name should be provided" }

      I saw another failure pattern where the same call returns 500.
      Please try testing this scenario end to end with the UI.
      You can just do a single node install and force invoke failure by renaming /var/lib/ambari-agent dir, for example.

      Attachments

        1. AMBARI-8868.patch
          4 kB
          Dmitry Lysnichenko

        Issue Links

          Activity

            Committed to trunk

            dmitriusan Dmitry Lysnichenko added a comment - Committed to trunk
            hudson Hudson added a comment -

            FAILURE: Integrated in Ambari-trunk-Commit #1316 (See https://builds.apache.org/job/Ambari-trunk-Commit/1316/)
            AMBARI-8868. API call used by Install Wizard to retry installation does not work (dlysnichenko) (dlysnichenko: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=9842b40d2b2cd6c80cbdfc0086f3529a94c423b3)

            • ambari-server/src/test/java/org/apache/ambari/server/controller/internal/HostComponentResourceProviderTest.java
            • ambari-server/src/main/java/org/apache/ambari/server/controller/internal/HostComponentResourceProvider.java
            hudson Hudson added a comment - FAILURE: Integrated in Ambari-trunk-Commit #1316 (See https://builds.apache.org/job/Ambari-trunk-Commit/1316/ ) AMBARI-8868 . API call used by Install Wizard to retry installation does not work (dlysnichenko) (dlysnichenko: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=9842b40d2b2cd6c80cbdfc0086f3529a94c423b3 ) ambari-server/src/test/java/org/apache/ambari/server/controller/internal/HostComponentResourceProviderTest.java ambari-server/src/main/java/org/apache/ambari/server/controller/internal/HostComponentResourceProvider.java
            hudson Hudson added a comment -

            FAILURE: Integrated in Ambari-trunk-Commit-docker #585 (See https://builds.apache.org/job/Ambari-trunk-Commit-docker/585/)
            AMBARI-8868. API call used by Install Wizard to retry installation does not work (dlysnichenko) (dlysnichenko: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=9842b40d2b2cd6c80cbdfc0086f3529a94c423b3)

            • ambari-server/src/test/java/org/apache/ambari/server/controller/internal/HostComponentResourceProviderTest.java
            • ambari-server/src/main/java/org/apache/ambari/server/controller/internal/HostComponentResourceProvider.java
            hudson Hudson added a comment - FAILURE: Integrated in Ambari-trunk-Commit-docker #585 (See https://builds.apache.org/job/Ambari-trunk-Commit-docker/585/ ) AMBARI-8868 . API call used by Install Wizard to retry installation does not work (dlysnichenko) (dlysnichenko: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=9842b40d2b2cd6c80cbdfc0086f3529a94c423b3 ) ambari-server/src/test/java/org/apache/ambari/server/controller/internal/HostComponentResourceProviderTest.java ambari-server/src/main/java/org/apache/ambari/server/controller/internal/HostComponentResourceProvider.java

            People

              dmitriusan Dmitry Lysnichenko
              dmitriusan Dmitry Lysnichenko
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: