From: "Roger Pau Monné" <roger.pau@citrix.com>
To: Sylvain Munaut <s.munaut@whatever-company.com>
Cc: Ian Campbell <Ian.Campbell@citrix.com>,
"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: Custom block script started twice for root block but only stopped once
Date: Tue, 4 Dec 2012 16:28:50 +0100 [thread overview]
Message-ID: <50BE16B2.2030306@citrix.com> (raw)
In-Reply-To: <CAF6-1L7pD3Ha=gkSE984seKW+tUCfmvX15uR_w3cd4CGtv5yXQ@mail.gmail.com>
On 04/12/12 15:21, Sylvain Munaut wrote:
> A bit more info:
>
> I tried using PV-GRUB and this doesn't happen there, so it's only with PyGRUB.
>
> AFAICT it happens in tools/python/xen/xend/XendDomainInfo.py in the
> _configureBootloader method.
>
> _shouldMount will return true and so " dom0.create_vbd(vbd, disk)"
> will be executed to allow access to the device to the host by
> executing the block-script before the actuall booting.
>
>
> [2012-11-26 13:40:44 3469] INFO (XendDomainInfo:3270) Mounting
> 192.168.2.201 name=rbd;key=rbd rbd-vm test on /dev/xvdp.
> [2012-11-26 13:40:44 3469] DEBUG (DevController:95) DevController:
> writing {'backend-id': '0', 'virtual-device': '51952', 'device-type':
> 'disk', 'state': '1', 'backend':
> '/local/domain/0/backend/vbd/0/51952'} to
> /local/domain/0/device/vbd/51952.
> [2012-11-26 13:40:44 3469] DEBUG (DevController:97) DevController:
> writing {'domain': 'Domain-0', 'frontend':
> '/local/domain/0/device/vbd/51952', 'uuid':
> '1845bb27-97b5-ce21-348d-ade6e99829e9', 'bootable': '0', 'dev':
> '/dev/xvdp', 'state': '1', 'params': '192.168.2.201 name=rbd;key=rbd
> rbd-vm test', 'mode': 'r', 'online': '1', 'frontend-id': '0', 'type':
> 'rbd'} to /local/domain/0/backend/vbd/0/51952.
> [2012-11-26 13:40:44 3469] DEBUG (DevController:144) Waiting for 51952.
> [2012-11-26 13:40:44 3469] DEBUG (DevController:628)
> hotplugStatusCallback
> /local/domain/0/backend/vbd/0/51952/hotplug-status.
> [2012-11-26 13:40:45 3469] DEBUG (DevController:628)
> hotplugStatusCallback
> /local/domain/0/backend/vbd/0/51952/hotplug-status.
> [2012-11-26 13:40:45 3469] DEBUG (DevController:642) hotplugStatusCallback 1.
> [2012-11-26 13:40:45 3469] DEBUG (DevController:144) Waiting for 51952.
> [2012-11-26 13:40:45 3469] DEBUG (DevController:628)
> hotplugStatusCallback
> /local/domain/0/backend/vbd/0/51952/hotplug-status.
> [2012-11-26 13:40:45 3469] DEBUG (DevController:642) hotplugStatusCallback 1.
> [2012-11-26 13:40:45 4455] DEBUG (XendBootloader:113) Launching
> bootloader as ['/usr/lib/xen-4.1/bin/pygrub', '--args=console=hvc0
> xencons=hvc0', '--output=/var/run/xend/boot/xenbl.7585', '-q',
> '/dev/xvdp'].
> [2012-11-26 13:40:48 3469] INFO (XendDomainInfo:3289) Unmounting
> /dev/xvdp from /dev/xvdp.
> [2012-11-26 13:40:48 3469] DEBUG (XendDomainInfo:1276)
> XendDomainInfo.destroyDevice: deviceClass = vbd, device = /dev/xvdp
>
> Now in theory the destroyDevice call should have cleared up any
> resources, but it seems it didn't ...
Could you give a try to xl in Xen 4.2?
prev parent reply other threads:[~2012-12-04 15:28 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-02 10:37 Custom block script started twice for root block but only stopped once Sylvain Munaut
2012-11-08 8:26 ` Ian Campbell
2012-11-09 15:36 ` Roger Pau Monné
2012-11-09 15:46 ` Ian Campbell
2012-11-13 16:49 ` Roger Pau Monné
2012-11-26 13:45 ` Sylvain Munaut
2012-12-04 14:21 ` Sylvain Munaut
2012-12-04 15:23 ` Sylvain Munaut
2012-12-04 15:34 ` Roger Pau Monné
2012-12-04 15:28 ` Roger Pau Monné [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=50BE16B2.2030306@citrix.com \
--to=roger.pau@citrix.com \
--cc=Ian.Campbell@citrix.com \
--cc=s.munaut@whatever-company.com \
--cc=xen-devel@lists.xen.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.