ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-9117) Ambari Upgrade leaves empty package directory after services were moved to common services
Date Wed, 14 Jan 2015 20:19:34 GMT

    [ https://issues.apache.org/jira/browse/AMBARI-9117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14277600#comment-14277600
] 

Hudson commented on AMBARI-9117:
--------------------------------

FAILURE: Integrated in Ambari-trunk-Commit #1487 (See [https://builds.apache.org/job/Ambari-trunk-Commit/1487/])
AMBARI-9117 Ambari Upgrade leaves empty package directory after services were moved to common
services (jluniya) (jluniya: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=0d2a6cbf2b3020ea020380cecd52801f5d6b7287)
* ambari-agent/src/main/package/rpm/preinstall.sh
* ambari-server/src/main/package/deb/control/preinst
* ambari-agent/src/main/package/deb/control/preinst
* ambari-server/src/main/package/rpm/preinstall.sh


> Ambari Upgrade leaves empty package directory after services were moved to common services
> ------------------------------------------------------------------------------------------
>
>                 Key: AMBARI-9117
>                 URL: https://issues.apache.org/jira/browse/AMBARI-9117
>             Project: Ambari
>          Issue Type: Task
>          Components: ambari-agent, ambari-server
>    Affects Versions: 2.0.0
>            Reporter: Jayush Luniya
>            Assignee: Jayush Luniya
>            Priority: Critical
>             Fix For: 2.0.0
>
>         Attachments: AMBARI-9117.patch
>
>
> After upgrading Ambari from 1.7.0 to 2.0.0, the Dashboard does not come up because the
agent host check fails since the common services scripts are not copied to /var/lib/ambari-agent/cache/
> This could be related to AMBARI-8695
> STR:
> 1. Install Ambari 1.7.0 on a single node cluster, and add HDP 2.2 with HDFS and ZK
> 2. Upgrade Ambari to 2.0.0
> Stop all services
> ambari-server stop
> ambari-agent stop
> wget -nv -O /etc/yum.repos.d/ambari.repo http://s3.amazonaws.com/dev.hortonworks.com/ambari/centos6/1.x/latest/trunk/ambari.repo
> yum clean all
> yum upgrade ambari-server ambari-log4j
> # Note, there's currently in a bug in ambari-server.py,
> # Need to change 
> # if upgrade and compare_versions(version, "1.7.0") >= 0:
> # to
> # if upgrade and compare_versions(version, "1.7.0") == 0:
> ambari-server upgrade
> yum upgrade ambari-agent
> rpm -qa | grep ambari
> ambari-server start
> ambari-agent start
> less /var/log/ambari-agent/ambari-agent.log
> INFO 2015-01-07 21:33:16,239 ActionQueue.py:203 - Executing command with id = 1-1 for
role = check_host of cluster null.
> INFO 2015-01-07 21:33:16,244 PythonExecutor.py:84 - Running command ['/usr/bin/python2.6',
>  u'/var/lib/ambari-agent/cache/custom_actions/check_host.py',
>  u'ACTIONEXECUTE',
> ...skipping...
>     raise AgentException(message)
> AgentException: 'Script /var/lib/ambari-agent/cache/stacks/HDP/2.0.6/services/ZOOKEEPER/package/scripts/zookeeper_server.py
does not exist'
> WARNING 2015-01-09 00:00:10,207 FileCache.py:144 - Error occured during cache update.
Error tolerate setting is set to true, so ignoring this error and continuing with current
cache. Error
>  details: Can not unpack zip file to directory /var/lib/ambari-agent/cache/stacks/HDP/2.0.6/services/ZOOKEEPER/package
: File is not a zip file
> ERROR 2015-01-09 00:00:10,208 CustomServiceOrchestrator.py:201 - Caught an exception
while executing custom service command: <class 'AgentException.AgentException'>: 'Script
/var/lib/ambar
> i-agent/cache/stacks/HDP/2.0.6/services/ZOOKEEPER/package/scripts/zookeeper_server.py
does not exist'; 'Script /var/lib/ambari-agent/cache/stacks/HDP/2.0.6/services/ZOOKEEPER/package/scrip
> ts/zookeeper_server.py does not exist'
> Traceback (most recent call last):
>   File "/usr/lib/python2.6/site-packages/ambari_agent/CustomServiceOrchestrator.py",
line 136, in runCommand
>     script_path = self.resolve_script_path(base_dir, script)
>   File "/usr/lib/python2.6/site-packages/ambari_agent/CustomServiceOrchestrator.py",
line 270, in resolve_script_path
>     raise AgentException(message)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message