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

Host cleanup commands should allow silent execution

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.2
    • 1.4.2
    • ambari-server
    • None

    Description

      Ambari need to add a silent option to the cleanup script. In a typical dev/test cluster it might be OK to delete all resources. However, in a prod cluster users need to be careful before deleting the resources such as users, folders, etc.

      It is likely for someone to inadvertently copy-paste the command from the UI without going through the help option. So we need to carefully decide what is suggested in the UI.The most conservative option (e.g. do not delete users) with some help text is ideal.

      Possible UI text:

      python /usr/lib/python2.6/site-packages/ambari_agent/HostCleanup.py  -k "users"
          To delete all resources, ignore option -k. Use "-s" for silent cleanup. 
      

      Attachments

        1. AMBARI-3554.patch
          5 kB
          Sumit Mohanty

        Activity

          People

            sumitmohanty Sumit Mohanty
            sumitmohanty Sumit Mohanty
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: