neutron-sanity-check always requires ovs to be present

Bug #1677746 reported by Matthew Treinish
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
neutron
Won't Fix
Medium
Unassigned

Bug Description

The neutron-sanity-check command has a hard dependency on ovs being present on the system being checked, even if you have all the --noovs* flags set. In my environment I'm running without ovs installed or configured and I hit failures like:

http://paste.openstack.org/show/604926/

even though I ran the command with: --noovsdb_native --noovs_patch --noovs_geneve --noovs_conntrack --noovs_vxlan

From that log it looks like the command is trying to always start the ovs daemon even if all the checks are disabled.

Revision history for this message
Brian Haley (brian-haley) wrote :

I can't seem to reproduce this unless I use '--config-file ...' with a filename that has an [ovs] section. Can you give the command-line you ran it with?

Changed in neutron:
status: New → Incomplete
Revision history for this message
Matthew Treinish (treinish) wrote :

So I was running it with --config-file but there is no [ovs] section in any of the config files I was using.

neutron-sanity-check --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini --config-file /etc/neutron/plugins/ml2/linuxbridge_agent.ini --noovsdb_native --noovs_patch --noovs_geneve --noovs_conntrack --noovs_vxlan

I was able to make it work without setting --config-file at all, but when I specified a --config-file flag, regardless of which file I used it failed like in the paste.

For example I tested it just now with:

neutron-sanity-check --config-file /etc/neutron/plugins/ml2/linuxbridge_agent.ini --noovsdb_native --noovs_patch --noovs_geneve --noovs_conntrack --noovs_vxlan

which only has [linux_bridge], [vxlan], and [securitygroup] sections and it still fails the same way.

Revision history for this message
Brian Haley (brian-haley) wrote :

Ok, so using --config-file must cause cfg.CONF to get created, and the default is ovsdb_interface=native, which triggers that check. Someone will have to figure out how to change this since you specified the --no* arguments. Thanks.

Changed in neutron:
status: Incomplete → Confirmed
importance: Undecided → Medium
Revision history for this message
Rodolfo Alonso (rodolfo-alonso-hernandez) wrote :

Bug closed due to lack of activity, please feel free to reopen if needed.

Changed in neutron:
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.