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

Add Host failed on upgraded cluster on Suse

    XMLWordPrintableJSON

Details

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

    Description

      This is due to upgrade. We need to change it manually after upgrade:
      //Now we have (redhat, suse, debian, other_detected_by_python)
      vi /etc/ambari-server/conf/ambari.properties
      (server.os_type=sles11) -->( server.os_type=suse11)

      +restart the server

      Should upgrade automatically deal with this?

      old code:

       os_info = platform.linux_distribution(
          None, None, None, ['SuSE', 'redhat' ], 0
        )
        os_name = os_info[0].lower()
        if os_name == 'suse':
          os_name = 'sles'
        os_version = os_info[1].split('.', 1)[0]
        master_os_type = os_name + os_version    
        write_property(OS_TYPE_PROPERTY, master_os_type)
      

      Attachments

        Activity

          People

            sumitmohanty Sumit Mohanty
            sumitmohanty Sumit Mohanty
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: