<div dir="ltr">Looks like we (docs) never backported those fixes to the Liberty version of the guide. For some reason, the patch does not merge cleanly so I'm not sure when I'll get to it.</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 18, 2016 at 11:08 PM, Matt Kassawara <span dir="ltr"><<a href="mailto:mkassawara@gmail.com" target="_blank">mkassawara@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">In Liberty, the L2 agent configuration moves from ml2_conf.ini to openvswitch_agent.ini for OVS and linuxbridge_agent.ini for Linux bridge.</div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Thu, Feb 18, 2016 at 10:51 PM, Mark Hayden <span dir="ltr"><<a href="mailto:mark@haydensplace.com" target="_blank">mark@haydensplace.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div>
<p>Hi,</p>
<p>I have recently installed a small openstack setup using the Liberty release (from Debian Sid packaging). I have gotten as far as setting up a controller/network and a compute node with keystone, glance, cinder and nova services, but have gotten stuck trying to set up a DVR configuration of Neutron/openvswitch.</p>
<p>I had an early OpenStack setup a few years ago (Essex release) but so much has changed from that "primitive" system with nova-network that I am pretty much a novice, but I am particulatly interested in the DVR setup to eliminate the dependency on a single network node for future expansion. However I have spent a few days not making no progress at all.</p>
<p>I have tried to follow the relevant guide at <a href="http://docs.openstack.org/liberty/networking-guide/scenario-dvr-ovs.html" target="_blank">http://docs.openstack.org/liberty/networking-guide/scenario-dvr-ovs.html</a> as close as possible but I have not been able to get anything to work. All my ports come up dead (DOWN state, and tagged 4095 in ovs-vsctl) when I set up the virtual router and I cannot launch any instances as they fail at the network port binding stage.</p>
<p>In the nova-compute.log:</p>
<p>2016-02-17 19:01:51.160 2556 ERROR nova.compute.manager [instance: 848c9525-3f48-4747-bbf1-d0d8bf52697b] PortBindingFailed: Binding failed for port bf1cde62-7ac6-47a8-8fb9-85ec524d02bd, please check neutron logs for more information.</p>
<p>In neutron-server.log:</p>
<p>2016-02-17 19:01:50.669 3224 ERROR neutron.plugins.ml2.managers [req-e6f1dbbd-d26c-456a-af6a-604c905dc194 b1ce670ebde640b0a0b159f01b18c04e ffbdd9d45cf84de0a204acfd0344ee6b - - -] Failed to bind port bf1cde62-7ac6-47a8-8fb9-85ec524d02bd on host hostserver-0001</p>
<p>In neutron-openvswitch-agent.log:</p>
<p>2016-02-17 19:01:56.894 8021 INFO neutron.agent.common.ovs_lib [req-08c30666-e891-46ca-8200-be3d22285767 - - - - -] Port bf1cde62-7ac6-47a8-8fb9-85ec524d02bd not present in bridge br-int</p>
<p>2016-02-17 19:01:56.894 8021 INFO neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent [req-08c30666-e891-46ca-8200-be3d22285767 - - - - -] port_unbound(): net_uuid None not in local_vlan_map</p>
<p>I have tried using VXLAN as shown in the guide as well as VLAN but both do the same thing. However this seems to be more than a problem with the settings in the configuration files. This was revealed when I turned on debug level logging.</p>
<p>For some reason no matter what settings I try in ml2_conf.ini most of them are ignored--it doesn't matter how many services I stop and start or even rebooting the entire system (even completely wiping out the database and starting over with network config), ALL the settings in the [ml2] section and all the [ml2_type_*] sections are ignored and a set of default values are used. The real sticking point seems to be that mechanism_drivers is always an empty list and tenant_network_types is always just ['local']. As such nova refuses to start any instances on the networks I set up.</p>
<p>Has anybody else seen this behaviour? For what it's worth here is what I currently have in my ml2_conf.ini file:</p>
<p> </p>
<p><code>[ml2]<br> type_drivers = flat,vlan,gre,vxlan<br> tenant_network_types = vlan,gre,vxlan<br> mechanism_drivers = openvswitch,l2population<br> <br> [ml2_type_flat]<br> flat_networks = public<br> <br> [ml2_type_vlan]<br> network_vlan_ranges = vlans:3:63<br> <br> [ml2_type_gre]<br> tunnel_id_ranges = 1000:1999<br> <br> [ml2_type_vxlan]<br> vni_ranges = 2000:2999<br> vxlan_group = 239.1.1.1<br> <br> [ovs]<br> local_ip = 10.37.3.254<br> bridge_mappings = public:br-out,vlans:br-ex<br> <br> [agent]<br> l2_population = True<br> tunnel_types = vxlan,gre<br> enable_distributed_routing = True<br> arp_responder = True<br> <br> [securitygroup]<br> firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver<br> enable_security_group = True<br> enable_ipset = True</code></p>
<p>and here is a sample of what appears in my logs:</p>
<p>In neutron-server.log </p>
<p><code> 2016-02-18 11:37:12.353 13857 DEBUG oslo_service.service [-] ml2_type_flat.flat_networks = [] log_opt_values /usr/lib/python2.7/dist-packages/oslo_config/cfg.py:2233<br> 2016-02-18 11:37:12.353 13857 DEBUG oslo_service.service [-] ml2.extension_drivers = [] log_opt_values /usr/lib/python2.7/dist-packages/oslo_config/cfg.py:2233<br> 2016-02-18 11:37:12.353 13857 DEBUG oslo_service.service [-] ml2.external_network_type = None log_opt_values /usr/lib/python2.7/dist-packages/oslo_config/cfg.py:2233<br> 2016-02-18 11:37:12.354 13857 DEBUG oslo_service.service [-] ml2.mechanism_drivers = [] log_opt_values /usr/lib/python2.7/dist-packages/oslo_config/cfg.py:2233<br> 2016-02-18 11:37:12.354 13857 DEBUG oslo_service.service [-] ml2.path_mtu = 0 log_opt_values /usr/lib/python2.7/dist-packages/oslo_config/cfg.py:2233<br> 2016-02-18 11:37:12.355 13857 DEBUG oslo_service.service [-] ml2.physical_network_mtus = [] log_opt_values /usr/lib/python2.7/dist-packages/oslo_config/cfg.py:2233<br> 2016-02-18 11:37:12.355 13857 DEBUG oslo_service.service [-] ml2.segment_mtu = 0 log_opt_values /usr/lib/python2.7/dist-packages/oslo_config/cfg.py:2233<br> 2016-02-18 11:37:12.355 13857 DEBUG oslo_service.service [-] ml2.tenant_network_types = ['local'] log_opt_values /usr/lib/python2.7/dist-packages/oslo_config/cfg.py:2233<br> 2016-02-18 11:37:12.356 13857 DEBUG oslo_service.service [-] ml2.type_drivers = ['local', 'flat', 'vlan', 'gre', 'vxlan', 'geneve'] log_opt_values /usr/lib/python2.7/dist-packages/oslo_config/cfg.py:2233<br> 2016-02-18 11:37:12.356 13857 DEBUG oslo_service.service [-] oslo_concurrency.disable_process_locking = False log_opt_values /usr/lib/python2.7/dist-packages/oslo_config/cfg.py:2233<br> 2016-02-18 11:37:12.357 13857 DEBUG oslo_service.service [-] oslo_concurrency.lock_path = /var/lib/neutron/lock log_opt_values /usr/lib/python2.7/dist-packages/oslo_config/cfg.py:2233<br> 2016-02-18 11:37:12.357 13857 DEBUG oslo_service.service [-] ml2_type_geneve.max_header_size = 50 log_opt_values /usr/lib/python2.7/dist-packages/oslo_config/cfg.py:2233<br> 2016-02-18 11:37:12.358 13857 DEBUG oslo_service.service [-] ml2_type_geneve.vni_ranges = [] log_opt_values /usr/lib/python2.7/dist-packages/oslo_config/cfg.py:2233<br> 2016-02-18 11:37:12.358 13857 DEBUG oslo_service.service [-] ml2_type_vxlan.vni_ranges = [] log_opt_values /usr/lib/python2.7/dist-packages/oslo_config/cfg.py:2233<br> 2016-02-18 11:37:12.358 13857 DEBUG oslo_service.service [-] ml2_type_vxlan.vxlan_group = None log_opt_values /usr/lib/python2.7/dist-packages/oslo_config/cfg.py:2233<br> </code></p>
<p>and also during init in same log file:</p>
<p><code> 2016-02-17 20:49:20.683 20500 INFO neutron.plugins.ml2.managers [-] Configured type driver names: ['local', 'flat', 'vlan', 'gre', 'vxlan', 'geneve']<br> 2016-02-17 20:49:20.687 20500 INFO neutron.plugins.ml2.drivers.type_flat [-] Allowable flat physical_network names: []<br> 2016-02-17 20:49:20.696 20500 INFO neutron.plugins.ml2.drivers.type_vlan [-] Network VLAN ranges: {}<br> 2016-02-17 20:49:20.702 20500 INFO neutron.plugins.ml2.driverstype_local [-] ML2 LocalTypeDriver initialization complete<br> 2016-02-17 20:49:20.707 20500 INFO neutron.plugins.ml2.managers [-] Loaded type driver names: ['flat', 'geneve', 'vlan', 'gre', 'local', 'vxlan']<br> 2016-02-17 20:49:20.708 20500 INFO neutron.plugins.ml2.managers [-] Registered types: ['flat', 'geneve', 'vlan', 'gre', 'local', 'vxlan']<br> 2016-02-17 20:49:20.708 20500 INFO neutron.plugins.ml2.managers [-] Tenant network_types: ['local']<br> 2016-02-17 20:49:20.709 20500 INFO neutron.plugins.ml2.managers [-] Configured extension driver names: []<br> 2016-02-17 20:49:20.710 20500 INFO neutron.plugins.ml2.managers [-] Loaded extension driver names: []<br> 2016-02-17 20:49:20.710 20500 INFO neutronplugins.ml2.managers [-] Registered extension drivers: []<br> 2016-02-17 20:49:20.710 20500 INFO neutron.plugins.ml2.managers [-] Configured mechanism driver names: []<br> 2016-02-17 20:49:20.711 20500 INFO neutronplugins.ml2.managers [-] Loaded mechanism driver names: []<br> 2016-02-17 20:49:20.712 20500 INFO neutron.plugins.ml2.managers [-] Registered mechanism drivers: []<br> 2016-02-17 20:49:20.722 20500 WARNING oslo_config.cfg [-] Option "username" from group "nova" is deprecated. Use option "user-name" from group "nova".<br> 2016-02-17 20:49:20.821 20500 INFO neutron.plugins.ml2.managers [-] Initializing driver for type 'flat'<br> 2016-02-17 20:49:20.822 20500 INFO neutron.plugins.ml2.drivers.type_flat [-] ML2 FlatTypeDriver initialization complete<br> 2016-02-17 20:49:20.822 20500 INFO neutron.plugins.ml2.managers [-] Initializing driver for type 'geneve'<br> 2016-02-17 20:49:20.823 20500 INFO neutron.plugins.ml2.drivers.type_tunnel [-] geneve ID ranges: []<br> 2016-02-17 20:49:21008 20500 INFO neutron.plugins.ml2.managers [-] Initializing driver for type 'vlan'<br> 2016-02-17 20:49:21.012 20500 INFO neutron.plugins.ml2.drivers.type_vlan [-] VlanTypeDriver initialization complete<br> 2016-02-17 20:49:21.012 20500 INFO neutron.plugins.ml2.managers [-] Initializing driver for type 'gre'<br> 2016-02-17 20:49:21.013 20500 INFO neutron.plugins.ml2.drivers.type_tunnel [-] gre ID ranges: []<br> 2016-02-17 20:49:21.016 20500 INFO neutron.plugins.ml2.managers [-] Initializing driver for type 'local'<br> 2016-02-17 20:49:21.016 20500 INFO neutron.plugins.ml2.managers [-] Initializing driver for type 'vxlan'<br> 2016-02-17 20:49:21.017 20500 INFO neutron.plugins.ml2.drivers.type_tunnel [-] vxlan ID ranges: []<br> 2016-02-17 20:49:21.021 20500 INFO neutron.plugins.ml2.plugin [-] Modular L2 Plugin initialization complete<br> </code></p>
<p>examining the actual code it appears my settings are always ignored and non-functional defaults are used.</p>
<p>What am I missing? The problem persisted even after wiping the netowrk config and database and set up from scratch.</p>
<p>If anyone has an idea let me know--I can provide additional info if required.</p>
<p>Thanks!</p>
</div>
<br></div></div>_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to : <a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>