Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-12390

Confirm Hosts step fails with umask 027 and non-root ambari-server user

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.1.1
    • None
    • None

    Description

      *STR*

      • Reproduced on Suse 11sp3 with umask 027
      • Install ambari-server
      • Setup ambari-server as non-root user
      • Install agents running as root (agent should be present on ambari-server node)
      • Install HDP
      • Add host

      *Actual result*
      Confirm of hosts fails

      ==========================
      Creating target directory...
      ==========================

      Command start time 2015-07-10 13:30:36

      Connection to ip-172-31-18-146.ec2.internal closed.
      SSH command execution finished
      host=ip-172-31-18-146.ec2.internal, exitcode=0
      Command end time 2015-07-10 13:30:37

      ==========================
      Copying common functions script...
      ==========================

      Command start time 2015-07-10 13:30:37

      /usr/lib/python2.6/site-packages/ambari_commons/urllib_handlers.pyc: Permission denied
      /usr/lib/python2.6/site-packages/ambari_commons/shell.pyc: Permission denied
      /usr/lib/python2.6/site-packages/ambari_commons/yaml_utils.pyc: Permission denied
      scp /usr/lib/python2.6/site-packages/ambari_commons
      host=ip-172-31-18-146.ec2.internal, exitcode=1
      Command end time 2015-07-10 13:30:37

      ERROR: Bootstrap of host ip-172-31-18-146.ec2.internal fails because previous action finished with non-zero exit code (1)
      ERROR MESSAGE: /usr/lib/python2.6/site-packages/ambari_commons/urllib_handlers.pyc: Permission denied
      /usr/lib/python2.6/site-packages/ambari_commons/shell.pyc: Permission denied
      /usr/lib/python2.6/site-packages/ambari_commons/yaml_utils.pyc: Permission denied

      STDOUT:
      /usr/lib/python2.6/site-packages/ambari_commons/urllib_handlers.pyc: Permission denied
      /usr/lib/python2.6/site-packages/ambari_commons/shell.pyc: Permission denied
      /usr/lib/python2.6/site-packages/ambari_commons/yaml_utils.pyc: Permission denied

      Attachments

        Issue Links

          Activity

            People

              aonishuk Andrew Onischuk
              aonishuk Andrew Onischuk
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: