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

HostCleanup.py script is failing with AttributeError: 'NoneType' object has no attribute 'get'

    XMLWordPrintableJSON

Details

    Description

      • While running HostCleanup.pu on Ambari 2.7.0 then it fails with the following error:
        # /usr/lib/ambari-agent/lib/ambari_agent/HostCleanup.py  --silent --verbose
        Traceback (most recent call last):
          File "/usr/lib/ambari-agent/lib/ambari_agent/HostCleanup.py", line 710, in <module>
            main()
          File "/usr/lib/ambari-agent/lib/ambari_agent/HostCleanup.py", line 701, in main
            h.do_cleanup(propMap)
          File "/usr/lib/ambari-agent/lib/ambari_agent/HostCleanup.py", line 144, in do_cleanup
            procList = proc_map.get(PROCESS_KEY)
        AttributeError: 'NoneType' object has no attribute 'get'
        
      • Used Python version is:
        # python --version
        Python 2.7.5
        

      Attachments

        Activity

          People

            payert Tamas Payer
            jaysensharma Jay SenSharma
            Votes:
            2 Vote for this issue
            Watchers:
            5 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 - 1h
                1h