Return-Path: X-Original-To: apmail-deltacloud-dev-archive@www.apache.org Delivered-To: apmail-deltacloud-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 9464FDC85 for ; Wed, 29 Aug 2012 10:22:19 +0000 (UTC) Received: (qmail 34152 invoked by uid 500); 29 Aug 2012 10:22:19 -0000 Delivered-To: apmail-deltacloud-dev-archive@deltacloud.apache.org Received: (qmail 34016 invoked by uid 500); 29 Aug 2012 10:22:17 -0000 Mailing-List: contact dev-help@deltacloud.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@deltacloud.apache.org Delivered-To: mailing list dev@deltacloud.apache.org Received: (qmail 33989 invoked by uid 99); 29 Aug 2012 10:22:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Aug 2012 10:22:16 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [116.50.57.190] (HELO cluster-k.mailcontrol.com) (116.50.57.190) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Aug 2012 10:22:08 +0000 Received: from mail1.fujitsu.com.au (mail1.fujitsu.com.au [216.14.192.229]) by rly03k.srv.mailcontrol.com (MailControl) with ESMTP id q7TALhMI006646 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Wed, 29 Aug 2012 11:21:45 +0100 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail1.fujitsu.com.au (Postfix) with ESMTP id 13DE029D65E for ; Wed, 29 Aug 2012 20:21:43 +1000 (EST) X-Virus-Scanned: amavisd-new at mail1.fujitsu.com.au Received: from mail1.fujitsu.com.au ([127.0.0.1]) by localhost (mail1.fujitsu.com.au [127.0.0.1]) (amavisd-new, port 10024) with LMTP id hzPCA7ztSdqG for ; Wed, 29 Aug 2012 20:21:42 +1000 (EST) Received: from SYD0633.au.fujitsu.com (unknown [137.172.78.131]) by mail1.fujitsu.com.au (Postfix) with ESMTP id DD0DE29D655 for ; Wed, 29 Aug 2012 20:21:42 +1000 (EST) Received: from mailfilter2.au.fjanz.com (137.172.19.76) by SYD0632.au.fujitsu.com (137.172.78.131) with Microsoft SMTP Server id 8.3.83.0; Wed, 29 Aug 2012 20:21:42 +1000 Received: from RadwareLoad Balancer (137.172.78.70) [137.172.78.70] by mailfilter2.au.fjanz.com - Websense Email Security (7.0.0); Wed, 29 Aug 2012 20:21:42 +1000 Received: from FALEX03.au.fjanz.com ([137.172.72.101]) by SYD0665.au.fjanz.com with Microsoft SMTPSVC(6.0.3790.4675); Wed, 29 Aug 2012 20:21:32 +1000 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [PATCH] FGCP: Always get instances state because StatefulObject(Ruby client) needs Date: Wed, 29 Aug 2012 20:21:32 +1000 Message-ID: <434A0ECB689CAF49A3A2321F30F2AB832245397F@FALEX03.au.fjanz.com> In-Reply-To: <1346122499-1700-1-git-send-email-nakagawa.yoshi@jp.fujitsu.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PATCH] FGCP: Always get instances state because StatefulObject(Ruby client) needs Thread-Index: Ac2E1y7ClDqsWl+3SSqWbi4wJgyidgA6sixA References: <1346122499-1700-1-git-send-email-nakagawa.yoshi@jp.fujitsu.com> From: "Koper, Dies" To: X-OriginalArrivalTime: 29 Aug 2012 10:21:32.0390 (UTC) FILETIME=[0F886060:01CD85D0] X-SEF-Processed: 7_0_0_00239__2012_08_29_20_21_42 X-Scanned-By: MailControl 8316.0 (www.mailcontrol.com) on 10.75.0.113 X-Virus-Checked: Checked by ClamAV on apache.org Hi Yoshiaki, Marios asked me to look at this. I have discussed it with him. Can you describe the problem you are trying to address? State is included with the instance operation, not with the instances operation. The specification for the instances operation is that it may not retrieve as much detail as the instance operation does. Due to the way state needs to be retrieved from the FGCP API backend (i.e. a separate call for each instance), I found that with my contract of several systems and instances, it takes so long for the operation to complete when using the UI that the browser times out. Hence the reason to exclude state (and any other details such as credentials and public ip addresses that require additional calls) from the instances operation. I am not familiar with the ruby client's Stateful Object and I wonder if it assumes state is returned by the instances method, if it's the ruby client that needs to be patched. Could you provide more details? Thanks, Dies Koper > -----Original Message----- > From: nakagawa.yoshi@jp.fujitsu.com [mailto:nakagawa.yoshi@jp.fujitsu.com] > Sent: Tuesday, 28 August 2012 12:55 PM > To: dev@deltacloud.apache.org > Subject: [PATCH] FGCP: Always get instances state because StatefulObject(Ruby > client) needs >=20 > From: Yoshiaki Nakagawa >=20 > --- > server/lib/deltacloud/drivers/fgcp/fgcp_driver.rb | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/server/lib/deltacloud/drivers/fgcp/fgcp_driver.rb > b/server/lib/deltacloud/drivers/fgcp/fgcp_driver.rb > index 53a0ac2..24b9d28 100644 > --- a/server/lib/deltacloud/drivers/fgcp/fgcp_driver.rb > +++ b/server/lib/deltacloud/drivers/fgcp/fgcp_driver.rb > @@ -263,8 +263,8 @@ class FgcpDriver < Deltacloud::BaseDriver > vsys_config['vsys'][0]['vservers'][0]['vserver'].each do |vserver| >=20 > # to keep the response time of this method acceptable, retrieve state > - # only if required because state is filtered on > - state_data =3D opts[:state] ? = instance_state_data(vserver, client) : nil > + # state is required because StatefulObject (in ruby client) needs > + state_data =3D instance_state_data(vserver, client) > # filter on state > if opts[:state].nil? or opts[:state] =3D=3D state_data[:state] > instances << convert_to_instance(client, vserver, state_data) > -- > 1.7.1 >=20 >=20