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

Code to read keysdir cannot handle space in the front

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.1.2
    • 2.2.0
    • ambari-agent
    • None

    Description

      It seems that after ambari agent upgrade spaces get added before and after = in the .ini file.

      pre-upgrade
      keysdir=/var/lib/ambari-agent/keys

      post upgrade
      keysdir = /var/lib/ambari-agent/keys

      This result in:

      chown: cannot access ` /var/lib/ambari-agent/keys': No such file or directory
      ...
      
      [root@c6401 vagrant]# ambari-agent start
      Verifying Python version compatibility...
      Using python  /usr/bin/python2.6
      Checking for previously running Ambari Agent...
      chown: cannot access ` /var/lib/ambari-agent/keys': No such file or directory
      Starting ambari-agent
      Verifying ambari-agent process status...
      Ambari Agent successfully started
      

      Attachments

        1. AMBARI-13694.patch
          4 kB
          Dmytro Sen

        Issue Links

          Activity

            People

              dsen Dmytro Sen
              dsen Dmytro Sen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: