Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 3F991200C4B for ; Mon, 20 Mar 2017 18:32:50 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 3E4DE160B76; Mon, 20 Mar 2017 17:32:50 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 888D5160B71 for ; Mon, 20 Mar 2017 18:32:49 +0100 (CET) Received: (qmail 74397 invoked by uid 500); 20 Mar 2017 17:32:48 -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 74388 invoked by uid 99); 20 Mar 2017 17:32:48 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Mar 2017 17:32:48 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 26FBD185F11 for ; Mon, 20 Mar 2017 17:32:48 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.451 X-Spam-Level: * X-Spam-Status: No, score=1.451 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_NEUTRAL=0.652] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id s0LSe5yjVtgo for ; Mon, 20 Mar 2017 17:32:47 +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 0D75D5FE31 for ; Mon, 20 Mar 2017 17:32:47 +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 C4972E0059 for ; Mon, 20 Mar 2017 17:32:42 +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 D9410254D7 for ; Mon, 20 Mar 2017 17:32:41 +0000 (UTC) Date: Mon, 20 Mar 2017 17:32:41 +0000 (UTC) From: "Hudson (JIRA)" To: issues@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMBARI-20488) Cluster resource is created when invalid configuration type is added in the cluster creation request. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 20 Mar 2017 17:32:50 -0000 [ https://issues.apache.org/jira/browse/AMBARI-20488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15933135#comment-15933135 ] Hudson commented on AMBARI-20488: --------------------------------- FAILURE: Integrated in Jenkins build Ambari-trunk-Commit #7087 (See [https://builds.apache.org/job/Ambari-trunk-Commit/7087/]) AMBARI-20488 Config types are validated before the cluster resources are (lpuskas: [http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=403d59324b8a537337f83274274610963241cf33]) * (delete) ambari-server/src/main/java/org/apache/ambari/server/topology/RequiredPasswordValidator.java * (edit) ambari-server/src/test/java/org/apache/ambari/server/topology/RequiredPasswordValidatorTest.java * (add) ambari-server/src/main/java/org/apache/ambari/server/topology/validators/ClusterConfigTypeValidator.java * (edit) ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ProvisionClusterRequest.java * (add) ambari-server/src/main/java/org/apache/ambari/server/topology/validators/RequiredPasswordValidator.java * (edit) ambari-server/src/test/java/org/apache/ambari/server/controller/internal/ProvisionClusterRequestTest.java * (add) ambari-server/src/test/java/org/apache/ambari/server/topology/validators/ClusterConfigTypeValidatorTest.java > Cluster resource is created when invalid configuration type is added in the cluster creation request. > ------------------------------------------------------------------------------------------------------ > > Key: AMBARI-20488 > URL: https://issues.apache.org/jira/browse/AMBARI-20488 > Project: Ambari > Issue Type: Bug > Components: ambari-server > Affects Versions: 2.4.0 > Reporter: Laszlo Puskas > Assignee: Laszlo Puskas > Fix For: 3.0.0 > > Attachments: AMBARI-20488.v3.patch > > > When a cluster is created using blueprints it is possible to pass configuration in the cluster creation template (that is posted after the blueprint isent in) > On cluster provisioning configurations are validated and if errors are found the cluster provisioning is interrupted. As the configuration validation is done after the cluster resources are persisted it's not possible to resend the (possibly corrected) cluster template and restart the cluster provisioning. > Solution: > Perform the configuration type validation before the cluster resources are persisted. -- This message was sent by Atlassian JIRA (v6.3.15#6346)