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

          Jeff Sposetti created issue -
          Jeff Sposetti made changes -
          Field Original Value New Value
          Description The Agent reads the repos and caches. If you restart the Agent, the Agent will install the repo again.

          In the case where you forget to edit repoinfo.xml or incorrectly edit repoinfo.xml but attempt Local Repository install, the Agent would have cached the incorrect info. So restarting and clearing the Ambari Server won't help. You need to restart the Agents to clear the incorrect repo info.
          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.
          Dmytro Sen made changes -
          Link This issue is blocked by AMBARI-2388 [ AMBARI-2388 ]
          Dmytro Sen made changes -
          Link This issue is blocked by AMBARI-2388 [ AMBARI-2388 ]
          Dmytro Sen made changes -
          Link This issue is duplicated by AMBARI-2388 [ AMBARI-2388 ]
          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.
          Dmytro Sen made changes -
          Attachment AMBARI-2112.patch [ 12587821 ]
          Hide
          Dmitry Lysnichenko added a comment -

          +1

          Show
          Dmitry Lysnichenko added a comment - +1
          Siddharth Wagle made changes -
          Assignee Dmitry Sen [ dsen ]
          Hide
          Siddharth Wagle added a comment -

          Committed to trunk.

          Show
          Siddharth Wagle added a comment - Committed to trunk.
          Siddharth Wagle made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Jeff Sposetti made changes -
          Fix Version/s 1.2.5 [ 12324430 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Resolved Resolved
          33d 4h 35m 1 Siddharth Wagle 14/Jun/13 17:49

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development