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

Attila Magyar resolved AMBARI-24563.
------------------------------------
    Resolution: Fixed

> global name 'VERIFY_DEPENDENCY_CMD' is not defined'
> ---------------------------------------------------
>
>                 Key: AMBARI-24563
>                 URL: https://issues.apache.org/jira/browse/AMBARI-24563
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-agent
>    Affects Versions: 2.7.1
>            Reporter: Attila Magyar
>            Assignee: Attila Magyar
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 2.7.3
>
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> STR:-
> 1. deploy the cluster with HDP-3.0.1.0-164 + ambari_version : 2.7.1.0-147
> 2. added a patch targetVDF-29-08-2018-00-53-55.xml 
> 3. install version
> {code}
> 2018-08-29 16:47:27,225 - Package Manager failed to install packages: Failed 
> to execute command '/usr/bin/apt-get -o Dpkg::Options::=--force-confdef 
> --allow-unauthenticated --assume-yes install -o 
> Dir::Etc::SourceList=/dev/null -o Dir::Etc::SourceParts= hdp-select', exited 
> with code '100', message: 'E: dpkg was interrupted, you must manually run 
> 'dpkg --configure -a' to correct the problem. 
> '
> 2018-08-29 16:47:27,250 - Could not install packages. Error: global name 
> 'VERIFY_DEPENDENCY_CMD' is not defined
> Traceback (most recent call last):
>   File 
> "/var/lib/ambari-agent/cache/custom_actions/scripts/install_packages.py", 
> line 136, in actionexecute
>     ret_code = self.install_packages(package_list)
>   File 
> "/var/lib/ambari-agent/cache/custom_actions/scripts/install_packages.py", 
> line 447, in install_packages
>     if not self.repo_mgr.verify_dependencies():
>   File 
> "/usr/lib/ambari-agent/lib/ambari_commons/repo_manager/apt_manager.py", line 
> 218, in verify_dependencies
>     err_msg = Logger.filter_text("Failed to verify package dependencies. 
> Execution of '%s' returned %s. %s" % (VERIFY_DEPENDENCY_CMD, code, out))
> NameError: global name 'VERIFY_DEPENDENCY_CMD' is not defined
> Traceback (most recent call last):
>   File 
> "/var/lib/ambari-agent/cache/custom_actions/scripts/install_packages.py", 
> line 136, in actionexecute
>     ret_code = self.install_packages(package_list)
>   File 
> "/var/lib/ambari-agent/cache/custom_actions/scripts/install_packages.py", 
> line 447, in install_packages
>     if not self.repo_mgr.verify_dependencies():
>   File 
> "/usr/lib/ambari-agent/lib/ambari_commons/repo_manager/apt_manager.py", line 
> 218, in verify_dependencies
>     err_msg = Logger.filter_text("Failed to verify package dependencies. 
> Execution of '%s' returned %s. %s" % (VERIFY_DEPENDENCY_CMD, code, out))
> NameError: global name 'VERIFY_DEPENDENCY_CMD' is not defined
> The above exception was the cause of the following exception:
> Traceback (most recent call last):
>   File 
> "/var/lib/ambari-agent/cache/custom_actions/scripts/install_packages.py", 
> line 486, in <module>
>     InstallPackages().execute()
>   File 
> "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", 
> line 351, in execute
>     method(env)
>   File 
> "/var/lib/ambari-agent/cache/custom_actions/scripts/install_packages.py", 
> line 149, in actionexecute
>     raise Fail("Failed to distribute repositories/install packages")
> resource_management.core.exceptions.Fail: Failed to distribute 
> repositories/install packages
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to