From: Dario Faggioli <dario.faggioli@citrix.com>
To: Wei Liu <wei.liu2@citrix.com>, Sarah Newman <srn@prgmr.com>
Cc: xen-devel <xen-devel@lists.xenproject.org>,
Ian Jackson <Ian.Jackson@eu.citrix.com>
Subject: Re: Error during domain creation on xen 4.8
Date: Wed, 14 Jun 2017 15:48:37 +0200 [thread overview]
Message-ID: <1497448117.20371.1.camel@citrix.com> (raw)
In-Reply-To: <20170614093833.nqc4vc7ooz2d66w6@citrix.com>
[-- Attachment #1.1: Type: text/plain, Size: 3383 bytes --]
On Wed, 2017-06-14 at 10:38 +0100, Wei Liu wrote:
> On Tue, Jun 13, 2017 at 11:27:27AM -0700, Sarah Newman wrote:
> > On 06/13/2017 10:28 AM, Sarah Newman wrote:
> > libxl: debug: libxl_device.c:1157:device_hotplug: calling hotplug
> > script: /etc/xen/scripts/block add
> > libxl: debug: libxl_device.c:1158:device_hotplug: extra args:
> > libxl: debug: libxl_device.c:1166:device_hotplug: env:
> > libxl: debug: libxl_device.c:1173:device_hotplug: script:
> > /etc/xen/scripts/block
> > libxl: debug:
> > libxl_device.c:1173:device_hotplug: XENBUS_TYPE: vbd
> > libxl: debug:
> > libxl_device.c:1173:device_hotplug: XENBUS_PATH:
> > backend/vbd/2853/268441856
> > libxl: debug:
> > libxl_device.c:1173:device_hotplug: XENBUS_BASE_PATH: backend
> > libxl: debug: libxl_aoutils.c:593:libxl__async_exec_start: forking
> > to execute: /etc/xen/scripts/block add
> > libxl: debug: libxl_event.c:686:libxl__ev_xswatch_deregister: watch
> > w=0x1ad98f0: deregister unregistered
> > libxl: debug: libxl_linux.c:200:libxl__get_hotplug_script_info:
> > num_exec 1, not running hotplug scripts
> > libxl: debug: libxl_device.c:1143:device_hotplug: No hotplug script
> > to execute
> > libxl: debug: libxl_event.c:686:libxl__ev_xswatch_deregister: watch
> > w=0x1ad98f0: deregister unregistered
> > libxl: error: libxl_dom.c:60:libxl__domain_cpupool: got info for
> > dom2852, wanted dom2851
> > : No such file or directory
> > libxl: debug: libxl_numa.c:502:libxl__get_numa_candidate: New best
> > NUMA placement candidate found: nr_nodes=1, nr_cpus=20,
> > nr_vcpus=184, free_memkb=151897
> > libxl: debug: libxl_numa.c:502:libxl__get_numa_candidate: New best
> > NUMA placement candidate found: nr_nodes=1, nr_cpus=20,
> > nr_vcpus=183, free_memkb=157905
> >
>
> No likely from the block script. The code in question is trying to
> get
> cpupool / NUMA information. Block does neither of those.
>
But then (as, in fact, is also said in the first message of the thread)
it goes on, and domains are created, aren't they?
I believe this is this message is produced by this call:
static int nr_vcpus_on_nodes()
{
dinfo = libxl_list_domain(CTX, &nr_doms);
if (dinfo == NULL)
return ERROR_FAIL;
...
for (i = 0; i < nr_doms; i++) {
...
cpupool = libxl__domain_cpupool(gc, dinfo[i].domid);
if (cpupool < 0)
goto next;
...
}
in libxl_numa.c.
What appears to have happened is that a domain disappeared (was
shutdown, was destroyed, crashed, whatever) between when we got the
list of existing domains (with libxl_list_domain()), and when we go
through it, with the for().
Looking at other places, in libxl and xl, where libxl_list_domain() is
used, that happens in a similar way, and I don't think we have anything
in place for preventing this race to happen... and in fact, is not
considered fatal.
Perhaps we should reorg logging so that it will produce a WARN instead
of an ERROR?
Regards,
Dario
--
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
[-- Attachment #2: Type: text/plain, Size: 127 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
prev parent reply other threads:[~2017-06-14 13:48 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-13 16:29 Error during domain creation on xen 4.8 Sarah Newman
2017-06-13 16:56 ` Wei Liu
2017-06-13 17:08 ` Wei Liu
2017-06-13 17:28 ` Sarah Newman
2017-06-13 18:27 ` Sarah Newman
2017-06-14 9:38 ` Wei Liu
2017-06-14 13:48 ` Dario Faggioli [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1497448117.20371.1.camel@citrix.com \
--to=dario.faggioli@citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=srn@prgmr.com \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.