ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Attila Magyar (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-21812) installing mpack with .tgz extension fails with global name 'path' is not defined
Date Fri, 25 Aug 2017 09:24:00 GMT

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

Attila Magyar updated AMBARI-21812:
-----------------------------------
    Component/s:     (was: ambari-agent)
                 ambari-server

> installing mpack with .tgz extension fails with global name 'path' is not defined
> ---------------------------------------------------------------------------------
>
>                 Key: AMBARI-21812
>                 URL: https://issues.apache.org/jira/browse/AMBARI-21812
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.4.0
>            Reporter: Attila Magyar
>            Assignee: Attila Magyar
>             Fix For: 3.0.0
>
>
> Running:
> {code}
> ambari-server install-mpack --mpack=/path/to/mympack.tgz --verbose
> {code}
> Fails with:
> {code}
> Traceback (most recent call last):
>   File "/usr/sbin/ambari-server.py", line 754, in <module>
>     mainBody()
>   File "/usr/sbin/ambari-server.py", line 725, in mainBody
>     main(options, args, parser)
>   File "/usr/sbin/ambari-server.py", line 678, in main
>     action_obj.execute()
>   File "/usr/sbin/ambari-server.py", line 69, in execute
>     self.fn(*self.args, **self.kwargs)
>   File "/usr/lib/python2.6/site-packages/ambari_server/setupMpacks.py", line 764, in
install_mpack
>     (mpack_metadata, mpack_name, mpack_version, mpack_staging_dir, mpack_archive_path)
= _install_mpack(options, replay_mode)
>   File "/usr/lib/python2.6/site-packages/ambari_server/setupMpacks.py", line 620, in
_install_mpack
>     tmp_root_dir = expand_mpack(tmp_archive_path)
>   File "/usr/lib/python2.6/site-packages/ambari_server/setupMpacks.py", line 139, in
expand_mpack
>     archive_root_dir = get_archive_root_dir(archive_path)
>   File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/tar_archive.py",
line 70, in get_archive_root_dir
>     if archive.endswith('.tar.gz') or path.endswith('.tgz'):
> {code}



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

Mime
View raw message