From: Olaf Hering <olaf@aepfle.de>
To: Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: xen-devel@lists.xen.org, "Ian Campbell" <Ian.Campbell@citrix.com>,
"Roger Pau Monné" <roger.pau@citrix.com>
Subject: Re: calling vif hotplug scripts more than once
Date: Wed, 9 Jul 2014 09:36:13 +0200 [thread overview]
Message-ID: <20140709073613.GA3739@aepfle.de> (raw)
In-Reply-To: <21436.9787.783169.563387@mariner.uk.xensource.com>
On Tue, Jul 08, Ian Jackson wrote:
> Olaf Hering writes ("Re: calling vif hotplug scripts more than once"):
> > On Tue, Jul 08, Ian Jackson wrote:
> > > Surely the problem is just that the backend isn't going back to the
> > > operational state. I don't see why this would need the hotplug script
> > > to run again.
> >
> > Something needs to reconnect the device to the bridge. There is also
> > that hotplug-status thing, which netback reads. I have to check what it
> > does with that.
>
> Why is the device removed from the bridge ? What does that ?
Looks like netback does that, because the interface disappears.
Before "disable":
# brctl show
bridge name bridge id STP enabled interfaces
br0 8000.00265523e546 no eth0
vif1.0
vif1.0-emu
After "disable":
# brctl show
bridge name bridge id STP enabled interfaces
br0 8000.00265523e546 no eth0
vif1.0-emu
dmesg has:
[50367.178364] br0: port 2(vif1.0) entering forwarding state
[50367.178510] device vif1.0 left promiscuous mode
[50367.178516] br0: port 2(vif1.0) entering disabled state
[50367.227599] frontend_changed: backend/vif/1/0: prepare for reconnect
The last message appears when the frontend is in XenbusStateInitialising and
the backend is in XenbusStateClosed, then the backend changes to
XenbusStateInitWait.
It looks like the backend goes back into XenbusStateConnected when I write
/local/domain/0/backend/vif/1/0/hotplug-status connected, but nothing puts
vif1.0 back into br0.
Olaf
next prev parent reply other threads:[~2014-07-09 7:36 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-08 15:13 calling vif hotplug scripts more than once Olaf Hering
2014-07-08 16:49 ` Ian Jackson
2014-07-08 16:52 ` Olaf Hering
2014-07-08 17:11 ` Ian Jackson
2014-07-09 7:36 ` Olaf Hering [this message]
2014-07-09 8:57 ` Ian Campbell
2014-07-09 8:59 ` Paul Durrant
2014-07-09 9:08 ` Ian Campbell
2014-07-09 9:25 ` Olaf Hering
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=20140709073613.GA3739@aepfle.de \
--to=olaf@aepfle.de \
--cc=Ian.Campbell@citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=roger.pau@citrix.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.