[openstack-dev] [ANVIL] Missing openvswitch dependency for basic-neutron.yaml persona

Joshua Harlow harlowja at yahoo-inc.com
Tue Aug 13 17:55:05 UTC 2013

Haha, no problem. Darn time differences.

So some other useful links that I think will be helpful.

- https://github.com/stackforge/anvil/blob/master/conf/templates/packaging/specs/openstack-neutron.spec

This one is likely the biggest part of the issue, since it is the combination of all of neutron into 1 package (which has sub-packages).

- One of those sub-packages is https://github.com/stackforge/anvil/blob/master/conf/templates/packaging/specs/openstack-neutron.spec#L274

This is pulling in the openvswitch part, that I think u don't want (at least not always want, it's wanted if neutron is going to use it, which under certain plugins it will).

As you've seen it likely shouldn't be installing/needing that if https://github.com/stackforge/anvil/blob/master/anvil/components/configurators/neutron_plugins/linuxbridge.py is used.

This should be coming from the following config (which will come from the yaml files) 'get_option' 'call':


So I think what can be done is a couple of things:

  1.  Don't include sub-packages that we don't want (the spec files are cheetah<http://www.cheetahtemplate.org/> templates, so this can be done dynamically).
  2.  See if there is a way to make yum (or via yyoom) not pull in the dependencies for a sub-package when it won't be used (?)
  3.  Always build openvswitch (not as preferable) and include it (https://github.com/stackforge/anvil/blob/master/tools/build-openvswitch.sh)
     *   I think the RDO repos might have some of these components.
     *   http://openstack.redhat.com/Frequently_Asked_Questions#For_which_distributions_does_RDO_provide_packages.3F
     *   This means we can just include the RDO repo rpm (like epel and use that openvswitch version there) instead of build your own.

Hope some of this offers some good pointers.


From: Sylvain Bauza <sylvain.bauza at bull.net<mailto:sylvain.bauza at bull.net>>
Date: Tuesday, August 13, 2013 9:52 AM
To: Joshua Harlow <harlowja at yahoo-inc.com<mailto:harlowja at yahoo-inc.com>>
Cc: OpenStack Development Mailing List <openstack-dev at lists.openstack.org<mailto:openstack-dev at lists.openstack.org>>
Subject: Re: [openstack-dev] [ANVIL] Missing openvswitch dependency for basic-neutron.yaml persona

Well, then I have to read thru the docs to see how it can be done thru a config option... =)

Nope, I won't be able to catch you up on IRC, time difference you know :-)
Anyway, let me go thru it, I'll try to sort it out.

I RTFM'd all the anvil docs, but do you have any other pointer for me ?


Le 13/08/2013 18:39, Joshua Harlow a écrit :
Well open switch is likely needed still when it's really needed right? So I think there is a need for it. It just might have to be a dynamic choice (based on a config option) instead of a static choice. Make sense??

The other personas don't use neutron so I think that's how they work, since nova-network base functionality still exists.

Any patches would be great, will be on irc soon if u want to discuss more.


Sent from my really tiny device...

On Aug 13, 2013, at 9:23 AM, "Sylvain Bauza" <sylvain.bauza at bull.net<mailto:sylvain.bauza at bull.net>> wrote:

Do you confirm the basic idea would be to get rid of any openvswitch reference in rhel.yaml ?
If so, wouldn't it be breaking other personas ?

I can provide a patch so the team would review it.


Le 13/08/2013 17:57, Joshua Harlow a écrit :
It likely shouldn't be needed :)

I haven't personally messes around with the neutron persona to much and I know that it just underwent the "great rename of 2013" so u might be hitting issues due to that.

Try seeing if u can adjust the yaml file and if not I am on irc to help more.

Sent from my really tiny device...

On Aug 12, 2013, at 9:14 AM, "Sylvain Bauza" <sylvain.bauza at bull.net<mailto:sylvain.bauza at bull.net>> wrote:


./smithy -a install -p conf/personas/in-a-box/basic-neutron.yaml is failing because of openvswitch missing.
See logs here [1].

Does anyone knows why openvswitch is needed when asking for linuxbridge in components/neutron.yaml ?
Shall I update distros/rhel.yaml ?


[1] : http://pastebin.com/TFkDrrDc

OpenStack-dev mailing list
OpenStack-dev at lists.openstack.org<mailto:OpenStack-dev at lists.openstack.org>

OpenStack-dev mailing list
OpenStack-dev at lists.openstack.org<mailto:OpenStack-dev at lists.openstack.org>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20130813/aa013eaa/attachment.html>

More information about the OpenStack-dev mailing list