[ 
https://issues.apache.org/jira/browse/AMBARI-22025?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Doroszlai, Attila resolved AMBARI-22025.
----------------------------------------
    Resolution: Fixed

Committed to 
[trunk|http://git-wip-us.apache.org/repos/asf/ambari/commit/7c687bbc22].

> Service auto start broken due to incomplete execution command
> -------------------------------------------------------------
>
>                 Key: AMBARI-22025
>                 URL: https://issues.apache.org/jira/browse/AMBARI-22025
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.6.0
>            Reporter: Doroszlai, Attila
>            Assignee: Doroszlai, Attila
>            Priority: Blocker
>             Fix For: 2.6.0
>
>         Attachments: AMBARI-22025.patch
>
>
> STR:
> # Install Ambari 2.6
> # Create cluster (ZooKeeper-only is enough)
> # Enable Service Auto Start for services
> # Restart node ({{shutdown -r now}})
> Result: service auto start permanently fails with the following error.
> {noformat}
> 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'
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to