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

Installing Ambari-2.1.0 removes /etc/sudoers.d/ambari-agent file

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1.2
    • Component/s: None
    • Labels:
      None

      Description

      As part of a prior fix, the file got removed from the rpm package. This has
      the side effect of user edited file getting removed during upgrade.

      Modify Ambari upgrade logic to not remove `/etc/sudoers.d/ambari-agent` and if
      that is not possible at least make a copy of the file and save a backup.

        Issue Links

          Activity

          Hide
          aonishuk Andrew Onischuk added a comment -

          Committed to trunk and branch-2.1

          Show
          aonishuk Andrew Onischuk added a comment - Committed to trunk and branch-2.1
          Hide
          hudson Hudson added a comment -

          SUCCESS: Integrated in Ambari-branch-2.1 #417 (See https://builds.apache.org/job/Ambari-branch-2.1/417/)
          AMBARI-12870. Installing Ambari-2.1.0 removes /etc/sudoers.d/ambari-agent file (aonishuk) (aonishuk: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=0d426fe479b7770756eb17f04152d19d5e016522)

          • ambari-agent/src/main/package/rpm/preinstall.sh
          Show
          hudson Hudson added a comment - SUCCESS: Integrated in Ambari-branch-2.1 #417 (See https://builds.apache.org/job/Ambari-branch-2.1/417/ ) AMBARI-12870 . Installing Ambari-2.1.0 removes /etc/sudoers.d/ambari-agent file (aonishuk) (aonishuk: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=0d426fe479b7770756eb17f04152d19d5e016522 ) ambari-agent/src/main/package/rpm/preinstall.sh
          Hide
          hudson Hudson added a comment -

          ABORTED: Integrated in Ambari-trunk-Commit #3317 (See https://builds.apache.org/job/Ambari-trunk-Commit/3317/)
          AMBARI-12870. Installing Ambari-2.1.0 removes /etc/sudoers.d/ambari-agent file (aonishuk) (aonishuk: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=cdb98f73bd1827f6e6ad0c3670705473abb7d3f3)

          • ambari-agent/src/main/package/rpm/preinstall.sh
          Show
          hudson Hudson added a comment - ABORTED: Integrated in Ambari-trunk-Commit #3317 (See https://builds.apache.org/job/Ambari-trunk-Commit/3317/ ) AMBARI-12870 . Installing Ambari-2.1.0 removes /etc/sudoers.d/ambari-agent file (aonishuk) (aonishuk: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=cdb98f73bd1827f6e6ad0c3670705473abb7d3f3 ) ambari-agent/src/main/package/rpm/preinstall.sh
          Hide
          aonishuk Andrew Onischuk added a comment -

          Committed to trunk and branch-2.1

          Show
          aonishuk Andrew Onischuk added a comment - Committed to trunk and branch-2.1
          Hide
          hudson Hudson added a comment -

          SUCCESS: Integrated in Ambari-branch-2.1 #425 (See https://builds.apache.org/job/Ambari-branch-2.1/425/)
          AMBARI-12870. Installing Ambari-2.1.0 removes /etc/sudoers.d/ambari-agent file (aonishuk) (aonishuk: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=90a012b7114335a902b5f2f9b4304d16f4a0b722)

          • ambari-agent/src/main/package/rpm/preinstall.sh
          • ambari-agent/src/main/package/deb/control/preinst
          Show
          hudson Hudson added a comment - SUCCESS: Integrated in Ambari-branch-2.1 #425 (See https://builds.apache.org/job/Ambari-branch-2.1/425/ ) AMBARI-12870 . Installing Ambari-2.1.0 removes /etc/sudoers.d/ambari-agent file (aonishuk) (aonishuk: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=90a012b7114335a902b5f2f9b4304d16f4a0b722 ) ambari-agent/src/main/package/rpm/preinstall.sh ambari-agent/src/main/package/deb/control/preinst
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Ambari-trunk-Commit #3325 (See https://builds.apache.org/job/Ambari-trunk-Commit/3325/)
          AMBARI-12870. Installing Ambari-2.1.0 removes /etc/sudoers.d/ambari-agent file (aonishuk) (aonishuk: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=76990f4a8b0d48e1a2987f314d57ea0efae86005)

          • ambari-agent/src/main/package/deb/control/preinst
          • ambari-agent/src/main/package/rpm/preinstall.sh
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Ambari-trunk-Commit #3325 (See https://builds.apache.org/job/Ambari-trunk-Commit/3325/ ) AMBARI-12870 . Installing Ambari-2.1.0 removes /etc/sudoers.d/ambari-agent file (aonishuk) (aonishuk: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=76990f4a8b0d48e1a2987f314d57ea0efae86005 ) ambari-agent/src/main/package/deb/control/preinst ambari-agent/src/main/package/rpm/preinstall.sh

            People

            • Assignee:
              aonishuk Andrew Onischuk
              Reporter:
              aonishuk Andrew Onischuk
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development