Return-Path: X-Original-To: apmail-airavata-dev-archive@www.apache.org Delivered-To: apmail-airavata-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 879F1110A2 for ; Thu, 15 May 2014 01:22:08 +0000 (UTC) Received: (qmail 59609 invoked by uid 500); 14 May 2014 20:27:32 -0000 Delivered-To: apmail-airavata-dev-archive@airavata.apache.org Received: (qmail 59555 invoked by uid 500); 14 May 2014 20:27:32 -0000 Mailing-List: contact dev-help@airavata.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@airavata.apache.org Delivered-To: mailing list dev@airavata.apache.org Received: (qmail 59548 invoked by uid 99); 14 May 2014 20:27:32 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 May 2014 20:27:32 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [129.79.1.188] (HELO hartman.uits.indiana.edu) (129.79.1.188) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 May 2014 20:27:26 +0000 X-IronPort-AV: E=Sophos;i="4.97,1054,1389762000"; d="scan'208";a="138302871" Received: from mssg-relay.indiana.edu ([129.79.1.73]) by irpt-internal-relay.indiana.edu with ESMTP; 14 May 2014 16:27:02 -0400 Received: from hartman.uits.indiana.edu (hartman.uits.indiana.edu [129.79.1.194]) by mssg-relay.indiana.edu (8.14.7/8.14.4/IU Messaging Team) with ESMTP id s4EKQs9G010396 for ; Wed, 14 May 2014 16:27:01 -0400 X-IronPort-AV: E=Sophos;i="4.97,1054,1389762000"; d="scan'208";a="138641787" Received: from burns.uits.indiana.edu (HELO mail-relay.iu.edu) ([129.79.1.202]) by irpt-internal-relay.indiana.edu with ESMTP; 14 May 2014 16:27:01 -0400 Received: from 149-160-240-186.dhcp-bl.indiana.edu (149-160-240-186.dhcp-bl.indiana.edu [149.160.240.186]) (authenticated bits=0) by mail-relay.iu.edu (8.14.7/8.14.4/IU Messaging Team) with ESMTP id s4EKR0LH020663 for ; Wed, 14 May 2014 16:27:01 -0400 Message-ID: <5373D194.9070302@iu.edu> Date: Wed, 14 May 2014 16:27:00 -0400 From: Marlon Pierce User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: dev@airavata.apache.org Subject: Re: Validation failures and storing the failures References: <5373C2A9.9070103@iu.edu> <5373C4D4.2000304@iu.edu> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Ah, I see what you mean. This should definitely be logged by Airavata as well. I don't think we need more sophisticated storage. Marlon On 5/14/14 3:42 PM, Miller, Mark wrote: > Remember, I am on the na�ve side so I am not saying what should be in terms of implementation. > Certainly, passing to the Gateway for storage in the Gateway database is a good solution for the Gateway. > > I was wondering if the Airavata operators might need access to the same information, for debugging purposes. > > -----Original Message----- > From: Marlon Pierce [mailto:marpierc@iu.edu] > Sent: Wednesday, May 14, 2014 12:33 PM > To: dev@airavata.apache.org > Subject: Re: Validation failures and storing the failures > > I was assuming the gateway would figure out what to do with the errors after step 4. This obviously needs more thought on how this would work. > > Marlon > > On 5/14/14 3:27 PM, Miller, Mark wrote: >> I feel as long as they are stored somewhere, that should be fine. >> The question is, if Airavata doesn't have access to the gateway database, will they be hamstrung by the inability to retrieve failure messages that might be informative? >> Maybe everything will be in the logs anyhow? >> >> Mark >> >> -----Original Message----- >> From: Marlon Pierce [mailto:marpierc@iu.edu] >> Sent: Wednesday, May 14, 2014 12:23 PM >> To: dev@airavata.apache.org >> Subject: Re: Validation failures and storing the failures >> >> I don't think these need to be stored, just sent back to the gateway. >> If I recall correctly, steps are >> >> 1. Gateway invokes "execute" method of API server. >> >> 2. API Server runs Orchestrator's "validate()". >> >> 3. Orch returns result of validation. >> >> 4. API server returns results to the gateway. >> >> 5. If validation passed, API Server then runs the Orchestrator's "launch()". >> >> So step #4 should enough. >> >> Marlon >> >> >> On 5/14/14 12:17 PM, Lahiru Gunathilake wrote: >>> Hi All, >>> >>> We recently added validation logics to orchestrator, so gateway >>> developers can add/configure their validators to be invoked. If they >>> failed they can wrap an error message in their validation logic and return that. >>> Orchestrator needs to take these error messages and store them to a >>> persistent storage so that if the validation failed these errors can >>> be showed to the gateway user to make it correct. Unless we give a >>> proper error message to the end user there is no way to make it correct. >>> >>> Currently in the orchestrator implementation it does not store the >>> error but we have a proper result object which keeps the validation >>> state and a message. >>> >>> Where should I save this information in our data model ? This is an >>> information specific to each invocation and there could be multiple >>> error messages came from multiple validators because we do not return >>> immediately after the first validation failure but rather we invoke >>> all the validators and collect all the errors (currently we just have >>> access to them and simply logging those errors in server side). If >>> there is no placeholder for these validation errors can we add >>> something to the data model to store them and retrieve them from the client code ? >>> >>> I have added FAQ type of a document for Orchestrator[1], please >>> provide your feedback on this. >>> >>> [1] >>> https://docs.google.com/document/d/1FOc0X6HCMZ9E-fTnZQ8aGo7tK20C8lvKl >>> y >>> cNouswICI/edit >>> >>> Regards >>> Lahiru >>>