You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Sumit Mohanty (JIRA)" <ji...@apache.org> on 2014/04/11 00:57:16 UTC
[jira] [Resolved] (AMBARI-5433) Add Host failed on upgraded cluster
on Suse
[ https://issues.apache.org/jira/browse/AMBARI-5433?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sumit Mohanty resolved AMBARI-5433.
-----------------------------------
Resolution: Fixed
committed to trunk and 1.5.1
> 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)