[
https://issues.apache.org/jira/browse/AMBARI-12455?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14634317#comment-14634317
]
Alejandro Fernandez commented on AMBARI-12455:
----------------------------------------------
I uploaded the files to my public GitHub account,
https://github.com/afernandez/ambari_ru_magician
> RU - Magician Script to correct data inconsistencies, allow retrying repo
> installation, force finalize to versions, etc
> -----------------------------------------------------------------------------------------------------------------------
>
> Key: AMBARI-12455
> URL: https://issues.apache.org/jira/browse/AMBARI-12455
> Project: Ambari
> Issue Type: Story
> Components: ambari-agent
> Affects Versions: 2.0.0
> Reporter: Alejandro Fernandez
> Assignee: Alejandro Fernandez
> Fix For: 2.1.2
>
> Attachments: AMBARI-12455.v2.patch, README.txt, gpl_license_3.0.txt,
> lgpl_license.txt, ru_magician.py
>
>
> Support has identified the need to come up with a script to fix any
> mismatches in the database, or identify problems during Rolling Upgrade.
> This can be a simple Python script that,
> * On a newly installed cluster, ensures that there is at least one cluster
> version whose state is CURRENT. If not, will advise the user to restart
> services.
> * If the user has Registered and Installed repos, check that each one has a
> unique version and display name. Further, if any are stuck in an INSTALLING
> state, will let the user take three potential actions: leave as is, force to
> INSTALLED, force to INSTALL_FAILED.
> * If the user has Registered and Installed repos, and one cluster_version is
> already in an UPGRADING state, perhaps because hdp-select changed the
> symlinks and a component was restarted, or the user inadvertently started a
> manual upgrade, will allow the user to force it back to INSTALLED.
> * If the user in the in the middle of an upgrade, and they want to force one
> of the versions are CURRENT, it will update all DB records accordingly, and
> set the previously CURRENT version to INSTALLED.
> For now, this will support Ambari 2.0.0 and higher, and MySQL, and Postgres.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)