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

Ambari UI does not allow to modify EMPTY threshold text of 'OK' and 'WARNING'

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.4.1, 2.5.0
    • 2.5.0, 2.4.2
    • ambari-web
    • None

    Description

      Ambari UI does not allow to modify threshold of 'OK' and 'WARNING' in ResourceManager WEB UI alert.

      Steps to reproduce:

      1. Remove threshold from WARNING/OK at alert of ResourceManager WEB UI
      2. Save
      3. Refresh Ambari UI and and the field is blank - Expected
      4. Add any threshold string (may be the one that you removed) to WARNING/OK and then save
      5. Refresh Ambari UI. Here is the problem. It shows just blank.
      6. API /api/v1/clusters/young-hdp250/alert_definitions/44 shows blank too.

      • It's happening because the PUT call is sent empty.
      "critical" : { 
                "text" : "Connection failed to {1} ({3})" 
              }, 
              "ok" : { 
                "text" : "HTTP {0} response in {2:.3f}s" 
              }, 
              "warning" : { 
                "text" : "" 
              } 
      

      Workaround:

      Manual update using curl command works.

      Attachments

        1. AMBARI-18639.patch
          0.8 kB
          Xi Wang
        2. AMBARI-18639-2.5.patch
          0.8 kB
          Xi Wang
        3. AMBARI-18639-2.5.patch
          0.8 kB
          Xi Wang

        Activity

          People

            xiwang0309 Xi Wang
            xiwang0309 Xi Wang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: