[
https://issues.apache.org/jira/browse/AMBARI-11163?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14545428#comment-14545428
]
Hudson commented on AMBARI-11163:
---------------------------------
FAILURE: Integrated in Ambari-trunk-Commit #2606 (See
[https://builds.apache.org/job/Ambari-trunk-Commit/2606/])
AMBARI-11163. Some upgrade paths are not using su with correct parameters
(aonishuk) (aonishuk:
http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=e10531e2720bb30f15468d19d4942c4269ee1771)
*
ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/namenode_upgrade.py
> Some upgrade paths are not using su with correct parameters
> -----------------------------------------------------------
>
> Key: AMBARI-11163
> URL: https://issues.apache.org/jira/browse/AMBARI-11163
> Project: Ambari
> Issue Type: Bug
> Reporter: Andrew Onischuk
> Assignee: Andrew Onischuk
> Fix For: 2.1.0
>
>
> RU fails in the initial stages as it cannot determine the safemode status of
> the NameNode. Based on the investigation, the hdfs user for the customer is a
> nologin no shell user. Thus the call `su - hdfs -c 'hdfs dfsadmin -safemode
> get` fails with the error "Account is currently not available". _The message
> is approximated._
> Error:
>
>
> 2015-05-14 18:17:33,497 - call['su - hdfs -c 'hdfs dfsadmin -safemode
> get''] {}
> 2015-05-14 18:17:33,572 - Command: su - hdfs -c 'hdfs dfsadmin -safemode
> get'
> Code: 1.
> 2015-05-14 18:17:33,572 - Error while executing command
> 'prepare_rolling_upgrade':
> Traceback (most recent call last):
> File
> "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
> line 214, in execute
> method(env)
> File
> "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/namenode.py",
> line 67, in prepare_rolling_upgrade
> namenode_upgrade.prepare_rolling_upgrade()
> File
> "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/namenode_upgrade.py",
> line 100, in prepare_rolling_upgrade
> raise Fail("Could not transition to safemode state %s. Please check logs
> to make sure namenode is up." % str(SafeMode.OFF))
> Fail: Could not transition to safemode state OFF. Please check logs to
> make sure namenode is up.
> 2015-05-14 18:17:33,572 - Error while executing command
> 'prepare_rolling_upgrade':
> Traceback (most recent call last):
> File
> "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
> line 214, in execute
> method(env)
> File
> "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/namenode.py",
> line 67, in prepare_rolling_upgrade
> namenode_upgrade.prepare_rolling_upgrade()
> File
> "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/namenode_upgrade.py",
> line 100, in prepare_rolling_upgrade
> raise Fail("Could not transition to safemode state %s. Please check logs
> to make sure namenode is up." % str(SafeMode.OFF))
> Fail: Could not transition to safemode state OFF. Please check logs to
> make sure namenode is up.
> 2015-05-14 18:17:33,617 - Error while executing command 'actionexecute':
> Traceback (most recent call last):
> File
> "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
> line 214, in execute
> method(env)
> File
> "/var/lib/ambari-agent/cache/custom_actions/scripts/ru_execute_tasks.py",
> line 148, in actionexecute
> raise Fail(out)
> Fail: 2015-05-14 18:17:33,486 - Performing a(n) upgrade of HDFS
> 2015-05-14 18:17:33,486 - Prepare to transition into safemode state OFF
> 2015-05-14 18:17:33,497 - call['su - hdfs -c 'hdfs dfsadmin -safemode
> get''] {}
> 2015-05-14 18:17:33,572 - Command: su - hdfs -c 'hdfs dfsadmin -safemode
> get'
> Code: 1.
> 2015-05-14 18:17:33,572 - Error while executing command
> 'prepare_rolling_upgrade':
> Traceback (most recent call last):
> File
> "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
> line 214, in execute
> method(env)
> File
> "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/namenode.py",
> line 67, in prepare_rolling_upgrade
> namenode_upgrade.prepare_rolling_upgrade()
> File
> "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/namenode_upgrade.py",
> line 100, in prepare_rolling_upgrade
> raise Fail("Could not transition to safemode state %s. Please check logs
> to make sure namenode is up." % str(SafeMode.OFF))
> Fail: Could not transition to safemode state OFF. Please check logs to
> make sure namenode is up.
> 2015-05-14 18:17:33,572 - Error while executing command
> 'prepare_rolling_upgrade':
> Traceback (most recent call last):
> File
> "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
> line 214, in execute
> method(env)
> File
> "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/namenode.py",
> line 67, in prepare_rolling_upgrade
> namenode_upgrade.prepare_rolling_upgrade()
> File
> "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/namenode_upgrade.py",
> line 100, in prepare_rolling_upgrade
> raise Fail("Could not transition to safemode state %s. Please check logs
> to make sure namenode is up." % str(SafeMode.OFF))
> Fail: Could not transition to safemode state OFF. Please check logs to
> make sure namenode is up.
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)