Ambari
  1. Ambari
  2. AMBARI-2112

Agent should not cache repo info to avoid situations of incorrect repo

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.0
    • Fix Version/s: 1.2.5
    • Component/s: None
    • Labels:
      None

      Description

      The Agent reads the repos and caches. If you restart the Agent, the Agent will install the repo again.

      When attempting a Local Repository install, in the case where you forget to edit repoinfo.xml or incorrectly edit repoinfo.xml, the Agent would have cached the incorrect info. So restarting and clearing the Ambari Server won't help if you are trying to correct the repo info. You need to restart the Agents to clear the incorrect repo info.

        Issue Links

          Activity

          Hide
          Dmytro Sen added a comment -

          The patch contains changes to API, request "curl -u admin:admin -X PUT http://localhost:8080/api/v1/stacks2/" will force ambari-server to re-cache Ambari meta information, including repoinfo.xml.
          In order to make work with local repositories easier, added new option to ambari-server script. So now there is no need to stop ambari-server, meta information can be updated/re-cached by executing "ambari-server update-metainfo" command.

          Show
          Dmytro Sen added a comment - The patch contains changes to API, request "curl -u admin:admin -X PUT http://localhost:8080/api/v1/stacks2/ " will force ambari-server to re-cache Ambari meta information, including repoinfo.xml. In order to make work with local repositories easier, added new option to ambari-server script. So now there is no need to stop ambari-server, meta information can be updated/re-cached by executing "ambari-server update-metainfo" command.
          Hide
          Dmitry Lysnichenko added a comment -

          +1

          Show
          Dmitry Lysnichenko added a comment - +1
          Hide
          Siddharth Wagle added a comment -

          Committed to trunk.

          Show
          Siddharth Wagle added a comment - Committed to trunk.

            People

            • Assignee:
              Dmytro Sen
              Reporter:
              Jeff Sposetti
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development