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

RU: Downgrade Fails For All Components From Finalize

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 2.1.0
    • 2.1.1
    • ambari-server
    • None
    • HDP 2.2 to 2.3 (Downgrade after finalize)

    Description

      When downgrading a rolling upgrade from HDP 2.3 back to HDP 2.2, all components will fail with:

       Fail("Applying %s failed, looped symbolic links found while resolving %s" % (self.resource, path))
      
      resource_management.core.exceptions.Fail: Applying Directory['/usr/hdp/current/flume-server/conf'] failed, looped symbolic links found while resolving /usr/hdp/current/flume-server/conf
      

      The problem is that Ambari changes /etc/component/conf from a directory to a symlink when upgrading to HDP 2.3 from HDP 2.2. During the downgrade, once the component is put back in HDP 2.2, the following is observed:

      [root@c6401 flume]# ls -l /etc/flume
      total 8
      drwxr-xr-x 3 root  root 4096 Aug 14 15:44 2.3.2.0-2586
      lrwxrwxrwx 1 root  root   34 Aug 14 16:14 conf -> /usr/hdp/current/flume-server/conf
      drwxr-xr-x 2 flume root 4096 Aug 14 15:42 conf.backup
      
      (/usr/hdp/2.2.7.0-2816/flume/)
      [root@c6401 flume]# ls -l /usr/hdp/current/flume-server/conf
      total 16
      drwxr-xr-x 2 root root 4096 Aug 14 15:42 bin
      lrwxrwxrwx 1 root root   15 Aug 14 15:42 conf -> /etc/flume/conf
      drwxr-xr-x 9 root root 4096 Aug 14 15:42 docs
      drwxr-xr-x 2 root root 4096 Aug 14 15:42 lib
      drwxr-xr-x 2 root root 4096 Aug 14 15:42 tools
      

      Attachments

        1. AMBARI-12778.patch
          16 kB
          Jonathan Hurley

        Activity

          People

            jonathanhurley Jonathan Hurley
            jonathanhurley Jonathan Hurley
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: