Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E807A18601 for ; Mon, 20 Jul 2015 23:45:04 +0000 (UTC) Received: (qmail 27003 invoked by uid 500); 20 Jul 2015 23:45:04 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 26964 invoked by uid 500); 20 Jul 2015 23:45:04 -0000 Mailing-List: contact dev-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list dev@ambari.apache.org Received: (qmail 26948 invoked by uid 99); 20 Jul 2015 23:45:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Jul 2015 23:45:04 +0000 Date: Mon, 20 Jul 2015 23:45:04 +0000 (UTC) From: "Alejandro Fernandez (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-12455) RU - Magician Script to correct data inconsistencies, allow retrying repo installation, force finalize to versions, etc MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMBARI-12455?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alejandro Fernandez updated AMBARI-12455: ----------------------------------------- Attachment: gpl_license_3.0.txt ru_magician.py lgpl_license.txt > 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, 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)