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

Passwordless sudo bootstrap scenario is broken

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 1.2.5
    • 1.2.5
    • ambari-server
    • None

    Description

      Tested on current 1.2.5 brunch. The scenario is broken because there is no sudo effect when doing scp. That's why we can't directly replace remote file when doing scp as a passwordless sudo user. But we still can copy file to some temporary directory and then make "sudo mv" it to the target dir.

      STDOUT
      
      STDERR
      STDOUT
      Cluster primary OS type is redhat6 and local OS type is centos6
      
      STDERR
      Connection to va21.name closed.
      STDOUT
      sudo-1.8.6p3-7.el6.x86_64
      
      STDERR
      Connection to va21.name closed.
      STDOUT
      
      STDERR
      scp: /etc/yum.repos.d/ambari.repo: Permission denied
      

      I'm going to revert patch https://issues.apache.org/jira/browse/AMBARI-2679 and fix the source issue in another way. The patch will be done only for 1.2.5 brunch, because for trunk we have a fully refactored bootstrap.py patch at AMBARI-2713 that has not this issue.

      Attachments

        1. AMBARI-2719_1.2.5.patch
          8 kB
          Dmitry Lysnichenko

        Activity

          People

            dmitriusan Dmitry Lysnichenko
            dmitriusan Dmitry Lysnichenko
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: