Hi guys [+list], You might find that you have unexpected behavior down the road with that tactic. I would perhaps suggest an approach where you set a value (using xapi) for the PIF's other-config, and then run your own script (perhaps on bootup) that finds PIF and does configuration based upon that field.
Otherwise you are likely to cause Xenserver to freak out at some point, or to have stale network configuration floating around. -Reid On Thu, Sep 19, 2013 at 10:46 AM, Faisal Ali <justhu...@gmail.com> wrote: > Yes, I found that on Xenserver 6.2 the openvswitch startup script resets > the ovs configuration. With my limited knowledge of scripting I managed to > find a particular lines and comment them out. That stopped Xen from wiping > out the ovs configs > > Here the lines > > if test ! -e /var/run/openvswitch.booted; then**** > > touch /var/run/openvswitch.booted**** > > set "$@" --delete-bridges**** > > fi > > > From: Alexandru Coseru <alex.cos...@simplus.ro> > Date: Mon, 16 Sep 2013 13:28:03 +0300 > To: Faisal Ali <justhu...@gmail.com>, <rpr...@nicira.com> > Subject: Re: [ovs-discuss] Openvswitch configuration persistence > > Hello guys,**** > > ** ** > > Did somebody found a solution for the problem below?**** > > ** ** > > We want to use openvswitch to a configure a host with 2 nic with STP ON (for > switch redundacy).**** > > ** ** > > Best Regards,**** > > Alex**** > > ** ** > > ** ** > > ** ** > > ** ** > > Thanks for the clarification Reid**** > > ** ** > > On Aug 26, 2013, at 12:20 PM, Reid Price <rpr...@nicira.com> wrote:**** > > ** ** > > > OVS by itself saves configuration through boots, etc., ovsdb is > > transactional **** > > > (usually stored in /etc/openvswitch/conf.db). Xen removes that config on > > boot **** > > > up.**** > > > **** > > > On Aug 26, 2013, at 7:51 AM, Faisal Ali <justhu...@gmail.com> wrote:**** > > > **** > > >> Thank you Reid, so just so Iam clear, is it because ovs is not meant to > >> save **** > > >> the config? The reason I ask is I read it in a blog that it does save > >> it.**** > > >> **** > > >> On Aug 26, 2013, at 3:40 AM, Reid Price <rpr...@nicira.com> wrote:**** > > >> **** > > >>> Hi Faisal,**** > > >>> **** > > >>> Xen only persists its own OVS information, and recreates it from scratch > >>> **** > > >>> (xapi information) at boot.**** > > >>> **** > > >>> -Reid**** > > >>> **** > > >>> On Aug 25, 2013, at 5:41 PM, Faisal Ali <justhu...@gmail.com> wrote:**** > > >>> **** > > >>>> Hi,**** > > >>>> **** > > >>>> I am using xenserver 6.2 which has openvswitch version 1.4.6 running.**** > > >>>> **** > > >>>> When I configure ovs using ovs commands it does not save the > >>>> configuration **** > > >>>> and its lost after reboot. **** > > >>>> **** > > >>>> I am not sure if this how ovs works or Xen has a modified implementation > >>>> **** > > >>>> of ovs that does not allow to permanently save the configuration.**** > > >>>> **** > > >>>> Please let me know what is the correct way if any or my assumptions are > >>>> **** > > >>>> incorrect**** > > >>>> **** > > >>>> Thank you**** > > >>>> **** > > >>>> Faisal Ali**** > > >>>> _______________________________________________**** > > >>>> discuss mailing list**** > > >>>> discuss@openvswitch.org**** > > >>>> http://openvswitch.org/mailman/listinfo/discuss**** > > _______________________________________________**** > > discuss mailing list**** > > discuss@openvswitch.org**** > > http://openvswitch.org/mailman/listinfo/discuss**** > > ** ** >
_______________________________________________ discuss mailing list discuss@openvswitch.org http://openvswitch.org/mailman/listinfo/discuss