ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sumit Mohanty (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMBARI-5433) Add Host failed on upgraded cluster on Suse
Date Thu, 10 Apr 2014 22:02:15 GMT
Sumit Mohanty created AMBARI-5433:
-------------------------------------

             Summary: Add Host failed on upgraded cluster on Suse
                 Key: AMBARI-5433
                 URL: https://issues.apache.org/jira/browse/AMBARI-5433
             Project: Ambari
          Issue Type: Bug
    Affects Versions: 1.5.1
            Reporter: Sumit Mohanty
            Assignee: Sumit Mohanty
             Fix For: 1.5.1


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:
{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)
{code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message