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

Fix the following : 1. Host Component deletes are broken 2. Use resource Type in for getting resources from Mpack Modules.

    XMLWordPrintableJSON

Details

    Description

      After Fix:

      1. Host Component Delete:

      DELETE http://<AmbariServer>:8080/api/v1/clusters/c1/hosts/<HostName>/host_components/13
      {
        "deleteResult" : [
          {
            "deleted" : {
              "key" : "component_id: 13"
            }
          }
        ]
      }
      

      2. Use resource Type in for getting resources from Mpack Modules.

      Reason: When we are creating a Service, Host Component and Service Component when name provided is not same as the type, we need to use the ResourceType to refer the mpack to get the resource component from stack.

      Eg:

       {  
            "ServiceInfo":{  
               "service_group_name":"dev",
               "service_type":"ZOOKEEPER",
               "service_name":"ZOOKEEPER_dev"
            }
         }
      

      Attachments

        Issue Links

          Activity

            People

              swapanshridhar Swapan Shridhar
              swapanshridhar Swapan Shridhar
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h