You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2015/08/04 07:39:04 UTC

[jira] [Commented] (AMBARI-12583) When ambari.repo has insufficient permissions for non-root ambari-server to read failure messages are confusing

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

Hudson commented on AMBARI-12583:
---------------------------------

SUCCESS: Integrated in Ambari-trunk-Commit #3214 (See [https://builds.apache.org/job/Ambari-trunk-Commit/3214/])
AMBARI-12583. When ambari.repo has insufficient permissions for non-root ambari-server to read failure messages are confusing (Nahappan Somasundaram via smohanty) (smohanty: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=48a0d2accac3a6950737a0a14f393c71436bec3d)
* ambari-server/src/test/python/TestAmbariServer.py
* ambari-common/src/main/python/ambari_commons/os_utils.py
* ambari-server/src/main/python/ambari_server/setupSecurity.py


> When ambari.repo has insufficient permissions for non-root ambari-server to read failure messages are confusing
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: AMBARI-12583
>                 URL: https://issues.apache.org/jira/browse/AMBARI-12583
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.1.0
>            Reporter: Nahappan Somasundaram
>            Assignee: Nahappan Somasundaram
>              Labels: newbie, patch
>             Fix For: 2.2.0
>
>
> *STR*
> # run "ambari-server setup" and configure ambari to use not default user
> {code}Customize user account for ambari-server daemon [y/n] (n)? y
> Enter user account for ambari-server daemon (root):ambariuser{code}
> # run "ambari-server start"
> # navigate through install wizard to "Confirm Hosts" step
> *ER* hosts confirmation succeed 
> *AR* Hosts registration failed
> {code}==========================
> Creating target directory...
> ==========================
> Command start time 2015-06-18 13:45:28
> Connection to c6401.ambari.apache.org closed.
> SSH command execution finished
> host=c6401.ambari.apache.org, exitcode=0
> Command end time 2015-06-18 13:45:29
> ==========================
> Copying common functions script...
> ==========================
> Command start time 2015-06-18 13:45:29
> scp /usr/lib/python2.6/site-packages/ambari_commons
> host=c6401.ambari.apache.org, exitcode=0
> Command end time 2015-06-18 13:45:29
> ==========================
> Copying OS type check script...
> ==========================
> Command start time 2015-06-18 13:45:29
> scp /usr/lib/python2.6/site-packages/ambari_server/os_check_type.py
> host=c6401.ambari.apache.org, exitcode=0
> Command end time 2015-06-18 13:45:29
> ==========================
> Running OS type check...
> ==========================
> Command start time 2015-06-18 13:45:29
> Cluster primary/cluster OS family is redhat6 and local/current OS family is redhat6
> Connection to c6401.ambari.apache.org closed.
> SSH command execution finished
> host=c6401.ambari.apache.org, exitcode=0
> Command end time 2015-06-18 13:45:29
> ==========================
> Checking 'sudo' package on remote host...
> ==========================
> Command start time 2015-06-18 13:45:29
> sudo-1.8.6p3-7.el6.x86_64
> Connection to c6401.ambari.apache.org closed.
> SSH command execution finished
> host=c6401.ambari.apache.org, exitcode=0
> Command end time 2015-06-18 13:45:29
> ==========================
> Copying repo file to 'tmp' folder...
> ==========================
> Command start time 2015-06-18 13:45:29
> /etc/yum.repos.d/ambari.repo: Permission denied
> scp /etc/yum.repos.d/ambari.repo
> host=c6401.ambari.apache.org, exitcode=1
> Command end time 2015-06-18 13:45:29
> ==========================
> Moving file to repo dir...
> ==========================
> Command start time 2015-06-18 13:45:29
> mv: cannot stat `/var/lib/ambari-agent/data/tmp/ambari1434635129.repo': No such file or directory
> Connection to c6401.ambari.apache.org closed.
> SSH command execution finished
> host=c6401.ambari.apache.org, exitcode=1
> Command end time 2015-06-18 13:45:29
> ==========================
> Copying setup script file...
> ==========================
> Command start time 2015-06-18 13:45:29
> scp /usr/lib/python2.6/site-packages/ambari_server/setupAgent.py
> host=c6401.ambari.apache.org, exitcode=0
> Command end time 2015-06-18 13:45:30
> ERROR: Bootstrap of host c6401.ambari.apache.org fails because previous action finished with non-zero exit code (1)
> ERROR MESSAGE: Execute of '<bound method BootstrapDefault.copyNeededFiles of <BootstrapDefault(Thread-1, started daemon 140695872956160)>>' failed
> STDOUT: Try to execute '<bound method BootstrapDefault.copyNeededFiles of <BootstrapDefault(Thread-1, started daemon 140695872956160)>>'{code}



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