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

Service auto start broken due to incomplete execution command

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 2.6.0
    • 2.6.0
    • ambari-server
    • None

    Description

      STR:

      1. Install Ambari 2.6
      2. Create cluster (ZooKeeper-only is enough)
      3. Enable Service Auto Start for services
      4. Restart node (shutdown -r now)

      Result: service auto start permanently fails with the following error.

      INFO 2017-09-21 11:22:40,296 RecoveryManager.py:255 - ZOOKEEPER_SERVER needs recovery, desired = STARTED, and current = INSTALLED.
      INFO 2017-09-21 11:22:40,297 Controller.py:410 - Adding recovery command START for component ZOOKEEPER_SERVER
      INFO 2017-09-21 11:22:40,300 Controller.py:249 - Adding 1 commands. Heartbeat id = 12
      INFO 2017-09-21 11:22:40,300 ActionQueue.py:113 - Adding AUTO_EXECUTION_COMMAND for role ZOOKEEPER_SERVER for service ZOOKEEPER of cluster TEST to the queue.
      INFO 2017-09-21 11:22:40,306 ActionQueue.py:238 - Executing command with id = 1-0, taskId = 1505992937 for role = ZOOKEEPER_SERVER of cluster TEST.
      INFO 2017-09-21 11:22:40,306 ActionQueue.py:279 - Command execution metadata - taskId = 1505992937, retry enabled = False, max retry duration (sec) = 0, log_output = True
      ERROR 2017-09-21 11:22:40,306 CustomServiceOrchestrator.py:437 - Caught an exception while executing custom service command: <type 'exceptions.KeyError'>: 'service_package_folder'; 'service_package_folder'
      Traceback (most recent call last):
        File "/usr/lib/python2.6/site-packages/ambari_agent/CustomServiceOrchestrator.py", line 345, in runCommand
          base_dir = self.file_cache.get_service_base_dir(command, server_url_prefix)
        File "/usr/lib/python2.6/site-packages/ambari_agent/FileCache.py", line 76, in get_service_base_dir
          service_subpath = command['commandParams']['service_package_folder']
      KeyError: 'service_package_folder'
      

      Attachments

        1. AMBARI-22025.patch
          14 kB
          Attila Doroszlai

        Issue Links

          Activity

            People

              adoroszlai Attila Doroszlai
              adoroszlai Attila Doroszlai
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: