Return-Path: X-Original-To: apmail-cloudstack-dev-archive@www.apache.org Delivered-To: apmail-cloudstack-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 9EBD010520 for ; Wed, 16 Apr 2014 12:09:52 +0000 (UTC) Received: (qmail 52935 invoked by uid 500); 16 Apr 2014 12:09:51 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 52896 invoked by uid 500); 16 Apr 2014 12:09:50 -0000 Mailing-List: contact dev-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list dev@cloudstack.apache.org Received: (qmail 52881 invoked by uid 99); 16 Apr 2014 12:09:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Apr 2014 12:09:49 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW X-Spam-Check-By: apache.org Received-SPF: unknown ~alla (athena.apache.org: encountered unrecognized mechanism during SPF processing of domain of jeff@greenqloud.com) Received: from [209.85.219.51] (HELO mail-oa0-f51.google.com) (209.85.219.51) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Apr 2014 12:09:46 +0000 Received: by mail-oa0-f51.google.com with SMTP id i4so12433885oah.10 for ; Wed, 16 Apr 2014 05:09:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=greenqloud.com; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=jLRnVjMnYGufbyWeAV7nthS6rvqcyHUbzrHSKgfBWDo=; b=O3aJSlqTgoWTBwBo79YmFuUqa/2Gh2laW8LVY1sZFL+3iWd+tPbk+UaNM/1GJi9XrL vTTip7ZBgwCJgMfBryGx7+B/ivrdtOgdmjMniABVSmntM0a5oAGZtpsxuIEGh+9c0imn EuDJbVg0YJp/zrstY6Hbv6uS2WSCf+vDRi/5o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=jLRnVjMnYGufbyWeAV7nthS6rvqcyHUbzrHSKgfBWDo=; b=bKC9ZvltJdaZeiSJ0vBUAa7SrLnryW5Rl3vR7xPLSVxIYwjoS8nvTIuo6qHOOOVleA B5LEFEIH7HmmUYtWlxWO2HBbPOCl/z5OzhNeyrEvD9tikz+ZEvIFxC8Thz0bcdq80Gf2 xyA9ccBJOjasLgKnYsNXQxHWowbBWGLiPRmzQ4aRL8/h3HfaIMjqVLzBxcUUuh7+Ariz a2EKeLnNoFiYtmX7mzyVb7PV0WFb656vVNUtcOj03FsWZ+bMGt77iprLGBUn4daYBEcg EcOJ3bC0gZjR3m/9F3Pbo3mvMKX5/fUAHEVrTDb+nw3w1BOI/EeMf8Cqr0B86Vab2/zB 9NhA== X-Gm-Message-State: ALoCoQmq5XCXAk0ZEeyq3L5apXBlvupNLaYiwsi/3lNIbx0nHsZGWTWeYIOpxzPHoDunLySzPcVj MIME-Version: 1.0 X-Received: by 10.182.79.227 with SMTP id m3mr329629obx.74.1397650164701; Wed, 16 Apr 2014 05:09:24 -0700 (PDT) Received: by 10.182.213.74 with HTTP; Wed, 16 Apr 2014 05:09:24 -0700 (PDT) In-Reply-To: References: <00B12BD1-AEF5-48C3-BAE8-99680A76FE73@gmail.com> Date: Wed, 16 Apr 2014 12:09:24 +0000 Message-ID: Subject: Re: [PROPOSAL] Enhance the cloudstack events to include more information From: Jeff Hair To: dev@cloudstack.apache.org Content-Type: multipart/alternative; boundary=089e01229d10966ead04f727c910 X-Virus-Checked: Checked by ClamAV on apache.org --089e01229d10966ead04f727c910 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, Is it possible to put something in there about standardizing the format of the events on the event bus to a JSON format similar to how the resource state transition and usage events work? Jeff On Wed, Apr 16, 2014 at 10:55 AM, Sonal Ojha wrote= : > Hello , > > I have started putting up thoughts into the wiki article related to > enhancing the cloudstack events. > > > https://cwiki.apache.org/confluence/display/CLOUDSTACK/Enhance+cloudstack= +events+to+be+more+detailed > > Kindly let me know any thoughts / suggestions. > > -Sonal > > > On Wed, Mar 19, 2014 at 6:29 PM, Daan Hoogland >wrote: > > > Sonal, you're in > > > > On Wed, Mar 19, 2014 at 11:23 AM, Sonal Ojha > > wrote: > > > Can someone grant me permission to create a page in cwiki? > > > > > > > > > On Tue, Mar 18, 2014 at 4:55 PM, Chip Childers < > chip.childers@gmail.com > > >wrote: > > > > > >> Jira for tracking progress, and a design page on the wiki for any > design > > >> info. > > >> > > >> > On Mar 18, 2014, at 6:34 AM, Sonal Ojha > > wrote: > > >> > > > >> > Shall I go ahead and open a jira item on this to add more details? > > >> > > > >> > > > >> >> On Tue, Mar 18, 2014 at 3:59 PM, Sonal Ojha < > sonal.ojha@sungard.com> > > >> wrote: > > >> >> > > >> >> Hello Nitin, > > >> >> > > >> >> I agree with you, to start with we can replace the event > > descriptions to > > >> >> include the resource UUIDs of the required parameters only. For > > example, > > >> >> DetachIsoCmd needs only virtualMachineId as the required paramete= r. > > >> Hence, > > >> >> the event description should include the resource UUID for the > > virtual > > >> >> machine. Likewise the required parameters resource UUIDs would be > > >> included > > >> >> in the event description. > > >> >> > > >> >> -Sonal > > >> >> > > >> >> > > >> >> On Mon, Mar 17, 2014 at 10:48 PM, Nitin Mehta < > > Nitin.Mehta@citrix.com > > >> >wrote: > > >> >> > > >> >>> Sonal - This is a great proposal. In addition, you should also > > include > > >> all > > >> >>> the first class entities involved in the event. > > >> >>> Say its a detach iso on a vm - then I should have uuids for both > the > > >> iso > > >> >>> and the vm. This would definitely help giving more information a= nd > > in > > >> >>> debugging. > > >> >>> > > >> >>> Thanks, > > >> >>> -Nitin > > >> >>> > > >> >>> On 17/03/14 9:52 AM, "Alena Prokharchyk" < > > Alena.Prokharchyk@citrix.com > > >> > > > >> >>> wrote: > > >> >>> > > >> >>>> On #1 I would say =E2=80=9Cdisplay UUID INSTEAD of the DB id in= the > events > > >> API=E2=80=9D. > > >> >>>> We should never expose the DB ids to the API caller, especially > if > > the > > >> >>>> caller is not an admin. I guess we just never revised the event= s > > after > > >> >>>> UUIDs were introduced. > > >> >>>> > > >> >>>> On #4. We should distinguish between end user and an admin and > > >> determine > > >> >>>> which errors are allowed to be shown to the end user. For > example, > > he > > >> >>>> shouldn=E2=80=99t see any errors related to physical resources = allocation > > >> error > > >> >>> as > > >> >>>> he has no knowledge about hosts/storages/physical network > topology. > > >> >>>> > > >> >>>> > > >> >>>> -Alena. > > >> >>>> > > >> >>>> > > >> >>>> > > >> >>>>> On 3/17/14, 9:40 AM, "John Kinsella" wrote: > > >> >>>>> > > >> >>>>> I didn=E2=80=99t see comments from others, but this sounds gre= at to me. > > More > > >> >>> info > > >> >>>>> is always better IMHO. > > >> >>>>> > > >> >>>>> On Mar 11, 2014, at 2:31 AM, Sonal Ojha > > >> >>>>> > wrote: > > >> >>>>> > > >> >>>>> Currently the event logged in CloudStack doesn't give detailed > > >> >>>>> information > > >> >>>>> about the event that has occurred. The information provided in > > each > > >> >>> event > > >> >>>>> shown on the cloudstack ui doesn't provide specifics, > > particularly in > > >> >>>>> case > > >> >>>>> of errors. For example, the message shown on the cloudstack ui > is > > >> just > > >> >>>>> "Error while starting Vm. Vm Id: " in case of failure to > > start a > > >> vm > > >> >>> , > > >> >>>>> which doesnt help much. > > >> >>>>> > > >> >>>>> I would like to propose some changes to enhance the events to = be > > more > > >> >>>>> informative. Like: > > >> >>>>> > > >> >>>>> 1) Instead of just showing resource database id in the event > > details > > >> it > > >> >>>>> should also display resource UUID. Since all the cloudstack ap= is > > take > > >> >>>>> input > > >> >>>>> as resource uuid it would be helpful to see the same on the ui > as > > >> well. > > >> >>>>> Like in the quickview mode introduce another field as resource > > UUID > > >> >>> which > > >> >>>>> would specify the UUID for the resource on which the event > > occurred. > > >> >>>>> > > >> >>>>> 2) Enhance the events and listEvents API to include the resour= ce > > >> UUID so > > >> >>>>> that it can be queried by the resource UUID as well. > > >> >>>>> > > >> >>>>> 3) Currently, the event description messages are specified in > the > > >> >>>>> *Cmd.java > > >> >>>>> file instead, all of them should be externalize to a resource > > file. > > >> This > > >> >>>>> would be helpful even for internationalization. > > >> >>>>> > > >> >>>>> 4) Provide more detailed messages in case of error events. > > Messages > > >> such > > >> >>>>> as > > >> >>>>> "Error while starting VM" are generic to take any action. > > >> >>>>> > > >> >>>>> These changes could be taken forward in phases, some suggestio= n > > like > > >> >>>>> > > >> >>>>> Phase I - > > >> >>>>> include 2 and 3 point mentioned above > > >> >>>>> Phase II - > > >> >>>>> include 1 and 4 point mentioned above > > >> >>>>> > > >> >>>>> Thoughts / Suggestions ? > > >> >>>>> > > >> >>>>> -- > > >> >>>>> > > >> >>>>> Regards, > > >> >>>>> > > >> >>>>> ___________________________________________________ > > >> >>>>> > > >> >>>>> *Sonal Ojha* =E2=97=8F Senior Engineer - Product Developement = =E2=97=8F SunGard > > >> >>>>> Availability Services, India =E2=97=8F Mobile: +91 9922412645= =E2=97=8F Email: > > >> >>>>> sonal.ojha@sungard.com =E2=97= =8F > Website: > > >> >>>>> http://www.sungardas.in/ > > >> >>>>> > > >> >>>>> 8 Times Winner =E2=80=93 BC Service Provider of the Year =E2= =80=93 2011, 2010, > > 2009, > > >> >>>>> 2006, > > >> >>>>> 2005, 2002, 2000, 1999; Finalist =E2=80=93 2008, 2007, 2004, 2= 001 =E2=97=8F > > >> Excellence > > >> >>> in > > >> >>>>> Infrastructure Management =E2=80=93 2010 =E2=97=8F Outstanding= Excellence in > > Business > > >> >>>>> Continuity =E2=80=93 2008 =E2=97=8F Business Continuity Provid= er of the Year > (BCM > > >> >>>>> Service) > > >> >>>>> =E2=80=93 2013 BCI Global Awards =E2=97=8F Business Continuity= Provider of the > > Year > > >> (BCM > > >> >>>>> Product) =E2=80=93 2013 BCI India Awards > > >> >>>>> > > >> >>>>> Stratosec - Compliance as a Service > > >> >>>>> o: 415.315.9385 > > >> >>>>> @johnlkinsella > > >> >> > > >> >> > > >> >> -- > > >> >> > > >> >> Regards, > > >> >> > > >> >> ___________________________________________________ > > >> >> > > >> >> *Sonal Ojha* =E2=97=8F Senior Engineer - Product Developement =E2= =97=8F SunGard > > >> >> Availability Services, India =E2=97=8F Mobile: +91 9922412645=E2= =97=8F Email: > > >> >> sonal.ojha@sungard.com =E2=97=8F Website: http://www.sungardas.in= / > > >> >> > > >> >> 8 Times Winner =E2=80=93 BC Service Provider of the Year =E2=80= =93 2011, 2010, > 2009, > > >> 2006, > > >> >> 2005, 2002, 2000, 1999; Finalist =E2=80=93 2008, 2007, 2004, 2001= =E2=97=8F > > Excellence > > >> in > > >> >> Infrastructure Management =E2=80=93 2010 =E2=97=8F Outstanding Ex= cellence in > Business > > >> >> Continuity =E2=80=93 2008 =E2=97=8F Business Continuity Provider = of the Year (BCM > > >> >> Service) =E2=80=93 2013 BCI Global Awards =E2=97=8F Business Cont= inuity Provider of > > the > > >> >> Year (BCM Product) =E2=80=93 2013 BCI India Awards > > >> >> > > >> >> *[image: AS_yt]* *[image: > > >> >> AS_twitter]* *[image: AS_in]*< > > >> http://www.linkedin.com/company/sungardasin>*[image: > > >> >> AS_gplus]* >*[image: > > >> >> AS_fb]* *[image: AS_ss]*< > > >> http://www.slideshare.net/SunGardASIN/documents> > > >> > > > >> > > > >> > > > >> > -- > > >> > > > >> > Regards, > > >> > > > >> > ___________________________________________________ > > >> > > > >> > *Sonal Ojha* =E2=97=8F Senior Engineer - Product Developement =E2= =97=8F SunGard > > >> > Availability Services, India =E2=97=8F Mobile: +91 9922412645=E2= =97=8F Email: > > >> > sonal.ojha@sungard.com =E2=97=8F Website: http://www.sungardas.in/ > > >> > > > >> > 8 Times Winner =E2=80=93 BC Service Provider of the Year =E2=80=93= 2011, 2010, 2009, > > >> 2006, > > >> > 2005, 2002, 2000, 1999; Finalist =E2=80=93 2008, 2007, 2004, 2001 = =E2=97=8F > > Excellence in > > >> > Infrastructure Management =E2=80=93 2010 =E2=97=8F Outstanding Exc= ellence in > Business > > >> > Continuity =E2=80=93 2008 =E2=97=8F Business Continuity Provider o= f the Year (BCM > > >> Service) > > >> > =E2=80=93 2013 BCI Global Awards =E2=97=8F Business Continuity Pro= vider of the Year > > (BCM > > >> > Product) =E2=80=93 2013 BCI India Awards > > >> > > > >> > *[image: AS_yt]* *[image: > > >> > AS_twitter]* *[image: > > >> > AS_in]**[image: > > >> > AS_gplus]* *[image= : > > >> > AS_fb]**[image: > > >> > AS_ss]* > > >> > > >> > > > > > > > > > -- > > > > > > Regards, > > > > > > ___________________________________________________ > > > > > > *Sonal Ojha* =E2=97=8F Senior Engineer - Product Developement =E2=97= =8F SunGard > > > Availability Services, India =E2=97=8F Mobile: +91 9922412645=E2=97= =8F Email: > > > sonal.ojha@sungard.com =E2=97=8F Website: http://www.sungardas.in/ > > > > > > 8 Times Winner =E2=80=93 BC Service Provider of the Year =E2=80=93 20= 11, 2010, 2009, > > 2006, > > > 2005, 2002, 2000, 1999; Finalist =E2=80=93 2008, 2007, 2004, 2001 =E2= =97=8F Excellence > in > > > Infrastructure Management =E2=80=93 2010 =E2=97=8F Outstanding Excell= ence in Business > > > Continuity =E2=80=93 2008 =E2=97=8F Business Continuity Provider of t= he Year (BCM > > Service) > > > =E2=80=93 2013 BCI Global Awards =E2=97=8F Business Continuity Provid= er of the Year > (BCM > > > Product) =E2=80=93 2013 BCI India Awards > > > > > > *[image: AS_yt]* *[image: > > > AS_twitter]* *[image: > > > AS_in]**[image: > > > AS_gplus]* *[image: > > > AS_fb]**[image: > > > AS_ss]* > > > > > > > > -- > > Daan > > > > > > > -- > > Regards, > > ___________________________________________________ > > *Sonal Ojha* =E2=97=8F Senior Engineer - Product Developement =E2=97=8F S= unGard > Availability Services, India =E2=97=8F Mobile: +91 9922412645=E2=97=8F E= mail: > sonal.ojha@sungard.com =E2=97=8F Website: http://www.sungardas.in/ > > 8 Times Winner =E2=80=93 BC Service Provider of the Year =E2=80=93 2011, = 2010, 2009, 2006, > 2005, 2002, 2000, 1999; Finalist =E2=80=93 2008, 2007, 2004, 2001 =E2=97= =8F Excellence in > Infrastructure Management =E2=80=93 2010 =E2=97=8F Outstanding Excellence= in Business > Continuity =E2=80=93 2008 =E2=97=8F Business Continuity Provider of the Y= ear (BCM Service) > =E2=80=93 2013 BCI Global Awards =E2=97=8F Business Continuity Provider o= f the Year (BCM > Product) =E2=80=93 2013 BCI India Awards > > *[image: AS_yt]* *[image: > AS_twitter]* *[image: > AS_in]**[image: > AS_gplus]* *[image: > AS_fb]**[image: > AS_ss]* > --=20 *Jeff Hair* Core Systems Developer Tel: (+354) 415 0200 jeff@greenqloud.com www.greenqloud.com --089e01229d10966ead04f727c910--