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 70F34107AD for ; Tue, 8 Apr 2014 00:51:27 +0000 (UTC) Received: (qmail 25358 invoked by uid 500); 8 Apr 2014 00:51:26 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 25279 invoked by uid 500); 8 Apr 2014 00:51:26 -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 25271 invoked by uid 99); 8 Apr 2014 00:51:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Apr 2014 00:51:26 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mike.tutkowski@solidfire.com designates 209.85.219.50 as permitted sender) Received: from [209.85.219.50] (HELO mail-oa0-f50.google.com) (209.85.219.50) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Apr 2014 00:51:22 +0000 Received: by mail-oa0-f50.google.com with SMTP id i7so239622oag.37 for ; Mon, 07 Apr 2014 17:51:01 -0700 (PDT) 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:cc:content-type; bh=CUKsPGPCOiX2vvp9MgcBgLyPbPtsPDvj3oYSSs+g1x0=; b=AfXSkiXzc0/eBWwCtSgRCfl5isvEdkd3CgzBJyDJClPpUCZ5sVGxi++gGt+BCNXMAM BbH7M7+2OBYx2DhsQvL8GoTq2v6JhKBoO2W6/nYdMGilQZGA5lZWsxcLVr942ciVkpsg NfrQ/HURfsoB2JIGpS2OBDlerUDbOUIhm8lL7TSoYY4Uc2JvPIdI7cG9MC+h8yGVJcKr oBH1latwEr3bbO440rCPlYIES87A2iXAWrEqM+IWlwkQswYHGB9/K2RZw37HGg0RT+1G A7C7Ri6c8x4b0nhhr3jctOAtz4y/hHBoPG5/dcilhgnDNV2FnSIF6wqhDUjGd8kd3WeK 1Low== X-Gm-Message-State: ALoCoQn1VS61vfL6+wQbZdDgR18A7X2k9D6TtgNvF+ntabu+dXRdRqGq3g0pHl+4J7F0gnLglpEy MIME-Version: 1.0 X-Received: by 10.182.120.40 with SMTP id kz8mr594418obb.6.1396918261359; Mon, 07 Apr 2014 17:51:01 -0700 (PDT) Received: by 10.182.114.164 with HTTP; Mon, 7 Apr 2014 17:51:01 -0700 (PDT) In-Reply-To: References: Date: Mon, 7 Apr 2014 18:51:01 -0600 Message-ID: Subject: Re: [QUESTION] Debugging CS VMware logic in Eclipse From: Mike Tutkowski To: "dev@cloudstack.apache.org" Cc: Sateesh Chodapuneedi Content-Type: multipart/alternative; boundary=089e0139fc3abfbb3404f67d6079 X-Virus-Checked: Checked by ClamAV on apache.org --089e0139fc3abfbb3404f67d6079 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Kelven, Can you elaborate more on what you're referring to? In the past, I've changed code and set breakpoints inside VmwareResource and VmwareStorageProcessor and was able to debug that way. As you say, that code was running inside the CS MS. When would this code run inside of SSVM instead of CS MS? I'm unclear about that. Thanks for clarifying! Mike On Mon, Apr 7, 2014 at 6:35 PM, Kelven Yang wrote: > If it is only for debugging purpose, you can temporarily make code change= s > to re-route command to the VMware resource that=B9s running inside > management server. That will be more convenient than debugging inside SSV= M > > Kelven > > On 4/6/14, 11:19 PM, "Mike Tutkowski" > wrote: > > >Sorry - perhaps I should have been more precise: I'm looking at the code > >inside of the server resource for XenServer or VMware that downloads a > >template from the secondary-storage NFS share to primary storage. I've > >modified this code in the past for a feature I'm working on and wanted t= o > >trace through part of it. > > > > > >On Mon, Apr 7, 2014 at 12:16 AM, Sateesh Chodapuneedi < > >sateesh.chodapuneedi@citrix.com> wrote: > > > >> Mike, > >> Most of storage commands would run inside SSVM. You need to attach > >> debugger to cloud agent in SSVM to catch those break points. > >> > >> Regards, > >> Sateesh > >> > >> > -----Original Message----- > >> > From: Mike Tutkowski [mailto:mike.tutkowski@solidfire.com] > >> > Sent: 07 April 2014 09:53 > >> > To: dev@cloudstack.apache.org > >> > Subject: Re: [QUESTION] Debugging CS VMware logic in Eclipse > >> > > >> > That's an interesting thought, Punith. > >> > > >> > I just checked my debug config, though, and it appears the proper pa= th > >> is in place. > >> > > >> > Plus, I also noticed just a moment ago that some VMware code can hit= a > >> breakpoint (I'm seeing stats requests get breakpointed, but not my > >> > storage commands). > >> > > >> > > >> > On Sun, Apr 6, 2014 at 10:16 PM, Punith S > >> wrote: > >> > > >> > > hi, > >> > > > >> > > try deleting the existing remote debug config and try to add new > >>one , > >> > > i guess vmware project is not imported in the existing debug confi= g. > >> > > > >> > > thanks. > >> > > > >> > > > >> > > On Mon, Apr 7, 2014 at 7:55 AM, Mike Tutkowski < > >> > > mike.tutkowski@solidfire.com > >> > > > wrote: > >> > > > >> > > > Also, both codebases were compiled the following way: > >> > > > > >> > > > mvn -P developer,systemvm clean install -D noredist > >> > > > > >> > > > I ran the CS MS this way: > >> > > > > >> > > > mvn -pl client jetty:run -D noredist > >> > > > > >> > > > > >> > > > On Sun, Apr 6, 2014 at 8:19 PM, Mike Tutkowski < > >> > > > mike.tutkowski@solidfire.com > >> > > > > wrote: > >> > > > > >> > > > > Hi, > >> > > > > > >> > > > > I have a weird debug problem that perhaps someone might be abl= e > >>to > >> > > > > shed some light on. > >> > > > > > >> > > > > I am trying to hit a breakpoint in VmwareStorageProcessor > >> > > > > (copyTemplateToPrimaryStorage(CopyCommand)). > >> > > > > > >> > > > > This has worked fine in the past, but - for whatever reason - > >> > > > > today I > >> > > can > >> > > > > hit breakpoints in CS core code, but not in > >>VmwareStorageProcessor. > >> > > > > > >> > > > > The code executes just fine...the template is copied down from > >> > > secondary > >> > > > > storage and all of that. I can set and hit a breakpoint in CS > >>code > >> > > > > that sends the message; however, breakpoints in the > >>VMware-related > >> > > > > code get ignored. > >> > > > > > >> > > > > The code on my management server and the code on my client > >>machine > >> > > where > >> > > > I > >> > > > > am debugging are at the same SHA value. > >> > > > > > >> > > > > Any ideas what might be going on here? I can hit an equivalent > >> > > breakpoint > >> > > > > in XenServer code (where the template is being copied down). > >> > > > > > >> > > > > Thanks! > >> > > > > > >> > > > > -- > >> > > > > *Mike Tutkowski* > >> > > > > *Senior CloudStack Developer, SolidFire Inc.* > >> > > > > e: mike.tutkowski@solidfire.com > >> > > > > o: 303.746.7302 > >> > > > > Advancing the way the world uses the cloud< > >> > > > http://solidfire.com/solution/overview/?video=3Dplay> > >> > > > > *(tm)* > >> > > > > > >> > > > > >> > > > > >> > > > > >> > > > -- > >> > > > *Mike Tutkowski* > >> > > > *Senior CloudStack Developer, SolidFire Inc.* > >> > > > e: mike.tutkowski@solidfire.com > >> > > > o: 303.746.7302 > >> > > > Advancing the way the world uses the > >> > > > cloud > >> > > > *(tm)* > >> > > > > >> > > > >> > > > >> > > > >> > > -- > >> > > regards, > >> > > > >> > > punith s > >> > > cloudbyte.com > >> > > > >> > > >> > > >> > > >> > -- > >> > *Mike Tutkowski* > >> > *Senior CloudStack Developer, SolidFire Inc.* > >> > e: mike.tutkowski@solidfire.com > >> > o: 303.746.7302 > >> > Advancing the way the world uses the > >> > cloud > >> > *(tm)* > >> > > > > > > > >-- > >*Mike Tutkowski* > >*Senior CloudStack Developer, SolidFire Inc.* > >e: mike.tutkowski@solidfire.com > >o: 303.746.7302 > >Advancing the way the world uses the > >cloud > >*(tm)* > > --=20 *Mike Tutkowski* *Senior CloudStack Developer, SolidFire Inc.* e: mike.tutkowski@solidfire.com o: 303.746.7302 Advancing the way the world uses the cloud *(tm)* --089e0139fc3abfbb3404f67d6079--