From issues-return-68159-archive-asf-public=cust-asf.ponee.io@ambari.apache.org Sat Mar 10 22:40:05 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 90E7D180651 for ; Sat, 10 Mar 2018 22:40:04 +0100 (CET) Received: (qmail 28877 invoked by uid 500); 10 Mar 2018 21:40:03 -0000 Mailing-List: contact issues-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 issues@ambari.apache.org Received: (qmail 28867 invoked by uid 99); 10 Mar 2018 21:40:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Mar 2018 21:40:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 2ACBDC191E for ; Sat, 10 Mar 2018 21:40:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.511 X-Spam-Level: X-Spam-Status: No, score=-109.511 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id WEYscEdlWD6I for ; Sat, 10 Mar 2018 21:40:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id E52825F1B3 for ; Sat, 10 Mar 2018 21:40:00 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 5C086E01D8 for ; Sat, 10 Mar 2018 21:40:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 10D642145A for ; Sat, 10 Mar 2018 21:40:00 +0000 (UTC) Date: Sat, 10 Mar 2018 21:40:00 +0000 (UTC) From: "Robert Levas (JIRA)" To: issues@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-23194) Values instance has no attribute 'master_key' during ambari-server reset 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-23194?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Robert Levas updated AMBARI-23194: ---------------------------------- Resolution: Fixed Status: Resolved (was: Patch Available) > Values instance has no attribute 'master_key' during ambari-server reset > ------------------------------------------------------------------------ > > Key: AMBARI-23194 > URL: https://issues.apache.org/jira/browse/AMBARI-23194 > Project: Ambari > Issue Type: Bug > Components: ambari-server > Affects Versions: 2.7.0 > Reporter: Doroszlai, Attila > Assignee: Robert Levas > Priority: Critical > Labels: pull-request-available > Fix For: 2.7.0 > > Time Spent: 0.5h > Remaining Estimate: 0h > > {noformat:title=ambari-server reset -s} > Using python /usr/bin/python > Resetting ambari-server > INFO: Loading properties from /etc/ambari-server/conf/ambari.properties > **** WARNING **** You are about to reset and clear the Ambari Server database. This will remove all cluster host and configuration information from the database. You will be required to re-configure the Ambari server and re-run the cluster wizard. > Are you SURE you want to perform the reset [yes/no] (yes)? > INFO: Loading properties from /etc/ambari-server/conf/ambari.properties > INFO: Loading properties from /etc/ambari-server/conf/ambari.properties > INFO: Loading properties from /etc/ambari-server/conf/ambari.properties > Traceback (most recent call last): > File "/usr/sbin/ambari-server.py", line 1033, in > mainBody() > File "/usr/sbin/ambari-server.py", line 1003, in mainBody > main(options, args, parser) > File "/usr/sbin/ambari-server.py", line 953, in main > action_obj.execute() > File "/usr/sbin/ambari-server.py", line 79, in execute > self.fn(*self.args, **self.kwargs) > File "/usr/lib/ambari-server/lib/ambari_server/serverSetup.py", line 1326, in reset > _reset_database(options) > File "/usr/lib/ambari-server/lib/ambari_server/serverSetup.py", line 1052, in _reset_database > dbmsAmbari = factory.create(options, properties) > File "/usr/lib/ambari-server/lib/ambari_server/dbConfiguration.py", line 501, in create > dbmsConfig = desc.create_config(options, properties, dbId) > File "/usr/lib/ambari-server/lib/ambari_server/dbConfiguration.py", line 81, in create_config > return self.fn_create_config(options, properties, self.storage_key, dbId) > File "/usr/lib/ambari-server/lib/ambari_server/dbConfiguration_linux.py", line 881, in createPGConfig > return PGConfig(options, properties, storage_type) > File "/usr/lib/ambari-server/lib/ambari_server/dbConfiguration_linux.py", line 391, in __init__ > super(PGConfig, self).__init__(options, properties, storage_type) > File "/usr/lib/ambari-server/lib/ambari_server/dbConfiguration_linux.py", line 94, in __init__ > self.database_password = DBMSConfig._read_password_from_properties(properties, options) > File "/usr/lib/ambari-server/lib/ambari_server/dbConfiguration.py", line 222, in _read_password_from_properties > database_password = decrypt_password_for_alias(properties, JDBC_RCA_PASSWORD_ALIAS, options) > File "/usr/lib/ambari-server/lib/ambari_server/serverConfiguration.py", line 940, in decrypt_password_for_alias > return read_passwd_for_alias(alias, masterKey, options) > File "/usr/lib/ambari-server/lib/ambari_server/serverConfiguration.py", line 911, in read_passwd_for_alias > if options is not None and options.master_key is not None and options.master_key: > AttributeError: Values instance has no attribute 'master_key' > {noformat} > {noformat:title=grep passwd /etc/ambari-server/conf/ambari.properties} > server.jdbc.user.passwd=${alias=ambari.db.password} > {noformat} -- This message was sent by Atlassian JIRA (v7.6.3#76005)