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

Add Service failed when none of the host components report version

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.4.0
    • 2.4.2
    • ambari-web
    • None

    Description

      When the underlying packages do not support versioned layout or do not report version (basically distro-select is not supported) then the stack version associated with the cluster is not changed to CURRENT from INIT.

      This blocks the UI from discovering the stack version associated with the cluster. UI instead should simply rely on the stack version that is specified in the cluster resource.

      Cluster resource ("version": "ODPi-1.0")

      {
      "href": "http://c6402.ambari.apache.org:8080/api/v1/clusters/c1",
      "Clusters": {
      "cluster_id": 2,
      "cluster_name": "c1",
      "health_report": {
      "Host/stale_config": 1,
      "Host/maintenance_state": 0,
      "Host/host_status/ALERT": 0
      },
      "provisioning_state": "INSTALLED",
      "security_type": "NONE",
      "total_hosts": 1,
      "version": "ODPi-1.0",
      

      stack_version resource ("state": "INIT")

      {
      "href": "http://c6402.ambari.apache.org:8080/api/v1/clusters/c1/stack_versions/1",
      "ClusterStackVersions": {
      "cluster_name": "c1",
      "id": 1,
      "repository_version": 1,
      "stack": "ODPi",
      "state": "INIT",
      "version": "1.0",
      "host_states": {
      "CURRENT": [],
      "INIT": [],
      "INSTALLED": [],
      "INSTALLING": [],
      "INSTALL_FAILED": [],
      

      Attachments

        1. AMBARI-18766.patch
          0.7 kB
          Sumit Mohanty
        2. AMBARI-18766.2.patch
          2 kB
          Jaimin Jetly

        Activity

          People

            jaimin Jaimin Jetly
            sumitmohanty Sumit Mohanty
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: