[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] 4.5 patch: xendomains noise to stderr in rdname()

  • To: Wei Liu <wei.liu2@xxxxxxxxxx>
  • From: Mark Pryor <tlviewer@xxxxxxxxx>
  • Date: Sat, 13 Dec 2014 18:28:42 +0000 (UTC)
  • Cc: Xen-devel <xen-devel@xxxxxxxxxxxxx>
  • Delivery-date: Sat, 13 Dec 2014 18:29:01 +0000
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s2048; d=yahoo.com; b=S8UflczFj2H041EuhFbRMvX8vDzZmMSvZZMV91gDi7pQC7xea1gJL7+RjUlOAil3cVeI52Uaw/iLFpOduvWhBe2rTFdi3MtAI5clJowTKesYZIcNHrQK2hWuhb/k1VPiKqKKGYwJxhf+Ml+P3ElR5rOMf1GUEeP0+5JLy1iiNz7B5nn+wyPXRZELfmbEYC1VlF5P+Fxyt4DEjYPGFolVjDZvN5MAFAPZD/05WRRqJ5BK9PF63O5/nNJWWS9pdbENPQEXp0Y7rTsBdZNPhxQYPg/JexgAeTANpSRq10XmcwkBX3tvgYmvAtWH1nwsEGUbTM+Oye6Dm3WxEShiwVhPRg==;
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>

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:
`$(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 Saturday, December 13, 2014 8:45 AM, Wei Liu <wei.liu2@xxxxxxxxxx> wrote:

On Sat, Dec 13, 2014 at 01:34:14AM +0000, Mark Pryor wrote:
> Instead 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 bug report.

I will post a patch for this.


> 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/tools/hotplug/Linux/xendomains.in
> @@ -175,7 +175,7 @@ contains_something()
>  # read name from xen config file
>  rdname()
>  {
> -    NM=$($CMD create --quiet --dryrun --defconfig "$1" |
> +    NM=$($CMD create --quiet --dryrun --defconfig "$1" 2>&1 |
>           sed -n 's/^.*(name \(.*\))$/\1/p;s/^.*"name": "\(.*\)",$/\1/p')

>  }

> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxx
> http://lists.xen.org/xen-devel

Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.