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

Remove yum/zypper repo check on upgradestack

    XMLWordPrintableJSON

Details

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

    Description

      While upgrading stack 2.0.6 -> stack 2.1.3, found this command failed:

      [root@host ~]# ambari-server upgradestack HDP-2.1 --verbose
      Using python  /usr/bin/python2.6
      Upgrading stack of ambari-server
      INFO: Loading properties from /etc/ambari-server/conf/ambari.properties
      INFO: about to run command: yum repolist | grep "HDP-2.1 "
      ERROR: Exiting with exit code 1.
      REASON: Repository for HDP-2.1 is not existed
      

      The grep check has a space at the end. However, this check is invalid since, when run on the server, the HDP repo likely wouldn't be available anyway. The server script should not make a repolist check.

      Attachments

        Issue Links

          Activity

            People

              ncole@hortonworks.com Nate Cole
              ncole@hortonworks.com Nate Cole
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: