[tripleo][ironic] What I had to do to get standalone ironic working with ovn enabled

Lars Kellogg-Stedman lars at redhat.com
Thu Feb 21 00:21:32 UTC 2019


On Thu, Feb 21, 2019 at 10:54:33AM +1300, Steve Baker wrote:
> > 1. I added to my deploy:
> > 
> >       -e /usr/share/tripleo-heat-templates/environment/services/neutron-ovn-standalone.yaml
> > 
> >     With this change, `openstack tripleo container image prep`
> >     correctly detected that ovn was enabled and generated the
> >     appropriate image parameters.
> 
> Can you provide your full deployment command. I think it is most likely that
> the order of environment files is resulting in an incorrect value in
> NeutronMechanismDrivers. You may be able to confirm this by looking at the
> resulting plan file with something like:

Upon closer inspection, I believe you are correct.  The problem is
twofold:

- First, by default, NeutronMechanismDrivers is unset. So if you
  simply run:

    openstack tripleo container image prepare -e container-prepare-parameters.yaml

  ...you get no OVN images.

- Second, the ironic.yaml environment file explicitly sets:

    NeutronMechanismDrivers: ['openvswitch', 'baremetal']

  So if ironic.yaml is included after something like
  neutron-ovn-standalone.yaml, it will override the value.

Is this one bug or two? Arguably, ironic.yaml shouldn't be setting
NeutronMechanismDrivers explicitly like that (although I don't know if
there is an "append" mechanism).  But shouldn't
NeutronMechanismDrivers default to 'ovn', if that's the default
mechanism now?

-- 
Lars Kellogg-Stedman <lars at redhat.com> | larsks @ {irc,twitter,github}
http://blog.oddbit.com/                |



More information about the openstack-discuss mailing list