From: Ian Murray Subject: Re: [PATCH] [RFC] Fix RegEx Issues with xendomains for both SXP and JSON outputs of lx list -l Date: Tue, 25 Jun 2013 15:55:37 +0100 (BST) Message-ID: <1372172137.30818.YahooMailNeo@web171306.mail.ir2.yahoo.com> References: <51C22E81.1010902@yahoo.co.uk> <1371717529.84197.YahooMailNeo@web171304.mail.ir2.yahoo.com> <1371726771.98221.YahooMailNeo@web171306.mail.ir2.yahoo.com> <1371729629.55562.YahooMailNeo@web171306.mail.ir2.yahoo.com> <1372153217.22783.201.camel@zakaz.uk.xensource.com> <1372157785.23828.YahooMailNeo@web171306.mail.ir2.yahoo.com> <1372167859.18901.21.camel@zakaz.uk.xensource.com> Reply-To: Ian Murray Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <1372167859.18901.21.camel@zakaz.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: George Dunlap , "xen-devel@lists.xen.org" , Ian Jackson , David Sutton , Joshua Tuttle List-Id: xen-devel@lists.xenproject.org ----- Original Message ----- > From: Ian Campbell > To: Ian Murray > Cc: George Dunlap ; Joshua Tuttle ; Ian Jackson ; David Sutton ; "xen-devel@lists.xen.org" > Sent: Tuesday, 25 June 2013, 14:44 > Subject: Re: [Xen-devel] [PATCH] [RFC] Fix RegEx Issues with xendomains f= or both SXP and JSON outputs of lx list -l > = > On Tue, 2013-06-25 at 11:56 +0100, Ian Murray wrote: >> = >> = >> = >> ----- Original Message ----- >> > From: Ian Campbell >> > To: Ian Murray >> > Cc: "xen-devel@lists.xen.org" = > ; David Sutton ; Joshua = > Tuttle ; George Dunlap = > ; Ian Jackson = > >> > Sent: Tuesday, 25 June 2013, 10:40 >> > Subject: Re: [PATCH] [RFC] Fix RegEx Issues with xendomains for both = > SXP and >> =A0 JSON outputs of lx list -l >> > = >> > On Thu, 2013-06-20 at 13:00 +0100, Ian Murray wrote: >> >>=A0 (Resent, as Yahoo seems to silently drop sentemail with the = > subject >> >>=A0 starting with a square open bracket. Space inserted - apologies = > if >> >>=A0 received more than once) >> > = >> > How very unhelpful of them! FWIW This seems to be the first one which >> > made it into the list archives as well as my INBOX. >> > = >> > I'm working through my post-vacation backlog this morning but I = > hope to >> > have a chance to look at this vs. 4.3-rc soon since I think it is a >> > worthwhile bugfix for 4.3. George, what does your release = > manager's hat >> > think? >> = >> There are white space issues with this patch on this thread as it is, >> so I re-issued it more recently directly from git, as is the preferred >> method I think. > = > It's certainly less error prone. Do you have the message-id handy so I > can find the right version? > = Date: Sat, 22 Jun 2013 13:38:11 +0100 Message-Id: <1371904691-9842-1-git-send-email-murrayie@yahoo.co.uk> >> As was suggested by David Sutton, there are probably more issues with >> this script than has been covered so far, but this change makes >> suspension and restoration work for me, at least. He suggests there >> are problems with zombies, etc. > = > You mean the handling of zombies by this script, rather than it somehow > causing zombies? Yes, handling of zombies. > = > Zombie domains are already themselves a bug in and of themselves so if > that can be reproduced we'd like to hear about it, as for the script's > handling of those zombies if/when they occur, I think it's probably > something to deal with in 4.4. This is something that David Sutton made comment on the original "users" th= read. Without looking back, I seem to recall he'd spotted a bug in the xend= omains script's handling rather than experiencing it. I have no experience = of the issue. The reason for mentioning it was I just wanted to comment tha= t my patch and testing wasn't a designed to fix all issues with xendomains,= just the ones I had experience of. = > = >> >>=A0 Modifications to xendomains so that it correctly identifies a new = > domain >> >>=A0 entry when parsing the output of xl list -l. For both SXP and = > JSON >> >>=A0 outputs, it was failing to spot a new domain entry and was saving = > the >> >>=A0 second domain under a filename generated from the first = > domain's name. >> >> = >> >>=A0 I have listed this as RFC because although it is a patch against = > 4.3RC5, >> >>=A0 I have not had a chance to test against RC5, only 4.2.2. I = > won't get an >> >>=A0 opportunity until the weekend, so I invite comment and anybody to = > give >> >>=A0 it a test against RC5. Ian C has already commented elsewhere that = > the xl >> >>=A0 list -l JSON output has been altered between 4.2.x and 4.3RC5, so = > this >> >>=A0 might affect the indentation (the 4 spaces in the middle of the >> >>=A0 LIST_GREP variable) - the trigger for new domain data is '=A0 =A0 = > {' in = >> > JSON >> >>=A0 version (in at least 4.2.2) and '(domain' in SXP version. = > Not = >> > tested >> >>=A0 against xm. >> >> = >> >>=A0 It seems there is a problem in 4.2.2's implementation of SXP = > output of >> >>=A0 xl list -l in that all domain ID's are outputted as -1. Ian C = > suggested >> >>=A0 applying a change that originally went into 4.3 to resolve this = > issue. >> >>=A0 This seemed to do the trick (see thread [Xen-users] DomU >> >>=A0 suspension/hibernation ) >> > = >> > Would you be able to submit that backport as a patch against the 4.2 >> > staging branch and CC myself and Ian Jackson >> > ? >> > = >> > This isn't a straight forward backport, since the majority of the = > commit >> > is not a suitable candidate, but if you reference in the commit = > message >> > the original commit id/subject and point out that only the one hunk i= s = > a >> > useful bug fix which is why it's been split out then I think it = > would be >> > fine to have in the next 4.2 release. >> = >> I'll give this a go, but it will be a learning experience. I don't >> recall seeing any backporting info in the patch submission notes but I >> will take another look. > = > Thanks. It's not that common to have to do things this way (mostly we > take the entire patch) so there isn't much in the way of docs. If you > just treat it for the most part like a regular submission and explain > what is going on in the commit message with references to the original > commit ID and title then you won't go far wrong. > = >> =A0 Who signs a (partial) backport off? Can't be me, because I didn't >> write it. Or can it? or is it copied from the original submission? > = > I think it would be appropriate to retain the original signed-off-by(s) > and acks etc and append your own. Some people like to do: > = > =A0 Commit message > = > =A0 Signed-off-by: Original Author > =A0 Acked-by: = > = > =A0 Backported to X.Y > = > =A0 Signed-off-by: Back Porter > = > Or something like that, which is fine IMHO. Or if your commit message > makes it clear enough what is going on then just tacking your S-o-b onto > the original blocks of S-o-b's would be fine. > = > Ian J, does that sound about right? The issue is that one hunk of > a73a7a0c647a "xl: Remove global domid and enable -Wshadow" is actually = > a > useful fix but the commit as a whole is large and unsuitable for > backporting IMHO. > = Okay, will look into it. > Ian. > = > = > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel > =