From: Mark Pryor Subject: Re: 4.5 patch: xendomains noise to stderr in rdname() Date: Sat, 13 Dec 2014 18:28:42 +0000 (UTC) Message-ID: <1061947120.278921.1418495322630.JavaMail.yahoo@jws106124.mail.bf1.yahoo.com> References: <20141213164526.GB2285@zion.uk.xensource.com> Reply-To: Mark Pryor Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============9159801177517248700==" Return-path: In-Reply-To: <20141213164526.GB2285@zion.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: Wei Liu Cc: Xen-devel List-Id: xen-devel@lists.xenproject.org --===============9159801177517248700== Content-Type: multipart/alternative; boundary="----=_Part_278920_352254077.1418495322625" Content-Length: 6005 ------=_Part_278920_352254077.1418495322625 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I think I tracked it down this morning: this commit `d36a373 fix xl: migration` causes `$(which xendomains) start` = to flood logs with JSON configs IOW, when the xendomains services starts, the JSON config for every domU in= autostart folder is logged. Its written to stdout if you do manually:`$(wh= ich xendomains) start`=20 I am using the above patch to rdname() in all my dom0 builds with 4.5 (HEAD= ) to avoid this trouble. =20 On Saturday, December 13, 2014 8:45 AM, Wei Liu = wrote: =20 On Sat, Dec 13, 2014 at 01:34:14AM +0000, Mark Pryor wrote: > Instead of tracking down which commit involving libxl* which prints all k= ind of noiseto stderr, I will post a workaround.=20 Though I think I am able to guess what log you were seeing, it would be better in the future if you attach actual log for a bug report. I will post a patch for this. Wei. >=20 > If you build, install, and use 4.5 this bug will drive you mad, so here i= t is: > -------------------- snip ----------------- > --- a/tools/hotplug/Linux/xendomains.in+++ b/tools/hotplug/Linux/xendomai= ns.in > @@ -175,7 +175,7 @@ contains_something() > =C2=A0# read name from xen config file > =C2=A0rdname() > =C2=A0{ > -=C2=A0=C2=A0=C2=A0 NM=3D$($CMD create --quiet --dryrun --defconfig "$1" = | > +=C2=A0=C2=A0=C2=A0 NM=3D$($CMD create --quiet --dryrun --defconfig "$1" = 2>&1 | > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 sed -n 's/^.*(name= \(.*\))$/\1/p;s/^.*"name": "\(.*\)",$/\1/p') > =C2=A0} >=20 >=20 > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel ------=_Part_278920_352254077.1418495322625 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I think I tracked it down this morn= ing:
this= commit `d36a373 fix xl: migration` causes `$(which xendomains) start` to f= lood logs with JSON configs

IOW, when the xen= domains services starts, the JSON config for every domU in autostart folder= is logged. Its written to stdout if you do manually:
`$(which xendomains) start`

I am using the above patch to rdname() in all my dom0 builds with= 4.5 (HEAD) to avoid this trouble.


=
On Sa= turday, December 13, 2014 8:45 AM, Wei Liu <wei.liu2@citrix.com> wrot= e:


On Sat, Dec = 13, 2014 at 01:34:14AM +0000, Mark Pryor wrote:
> Inst= ead of tracking down which commit involving libxl* which prints all kind of= noiseto stderr, I will post a workaround.

Though I think I am able to guess what log you were seeing, it would = be
better in the future if you attach actual log for a bu= g report.

I will post a patch for this= .

Wei.


>
> If you build, install, and use 4.5 this bug will drive you mad, so = here it is:
> -------------------- snip --------------= ---
> --- a/tools/hotplug/Linux/xendomains.in+++ b/too= ls/hotplug/Linux/xendomains.in
> @@ -175,7 +175,7 @@ c= ontains_something()
>  # read name from xen confi= g file
>  rdname()
>  {=
> -    NM=3D$($CMD create --quiet --dr= yrun --defconfig "$1" |
> +    NM=3D$($= CMD create --quiet --dryrun --defconfig "$1" 2>&1 |
>           sed -n 's/^.*= (name \(.*\))$/\1/p;s/^.*"name": "\(.*\)",$/\1/p')

= >  }
>
>

> _______________________________________________=
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> ht= tp://lists.xen.org/xen-devel




------=_Part_278920_352254077.1418495322625-- --===============9159801177517248700== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --===============9159801177517248700==--