Ask Your Question
0

Problem with gre network on Juno [closed]

asked 2014-10-29 04:46:16 -0600

Walter gravatar image

Scenario: Rdo Juno on Centos7, with ML2/OpenVswitch/GRE, without VXLAN. On my packstack-answer-file: CONFIG_NEUTRON_L2_PLUGIN=ml2 CONFIG_NEUTRON_ML2_TYPE_DRIVERS=gre CONFIG_NEUTRON_ML2_TENANT_NETWORK_TYPES=gre CONFIG_NEUTRON_ML2_MECHANISM_DRIVERS=openvswitch CONFIG_NEUTRON_OVS_TENANT_NETWORK_TYPE=gre

The creation of network and a subnetwork from the wizard(on Horizon): Project->Network->Networks->"Create Network", creation of network and subnetwork in one "operation" fails with: Error: Failed to create network "net_test": Unable to create the network. No tenant network is available for allocation. "net_test" is the name of network. This a single operation in Horizon: network +subnetwork.

The creation works from: "Admin"->Networks->Create Network and from the new network "Create Subnet". They are two distinct operation in Horizon: before the network and after the subnetwork.

This is a know bug? Or I'm wrong in something ?

Thanks Walter

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Walter
close date 2014-10-29 06:43:43.435398

Comments

Please post your ml2_conf.ini on Controller and ls -l under /etc/neutron

dbaxps gravatar imagedbaxps ( 2014-10-29 05:27:48 -0600 )edit

2 answers

Sort by ยป oldest newest most voted
1

answered 2014-10-29 06:03:59 -0600

dbaxps gravatar image

Forced to use answer field due to formatting option. Try following config for GRE
This configuration works for IceHouse ML2&OVS&GRE Multinode Setup

[root@icehouse1 neutron(keystone_admin)]# ls -l
total 72
-rw-r--r--. 1 root root      193 Sep 30 17:08 api-paste.ini
-rw-r-----. 1 root neutron  3901 Sep 30 19:19 dhcp_agent.ini
-rw-r--r--. 1 root root       86 Sep 30 19:20 dnsmasq.conf
-rw-r-----. 1 root neutron   208 Sep 30 17:08 fwaas_driver.ini
-rw-r-----. 1 root neutron  3431 Sep 30 17:08 l3_agent.ini
-rw-r-----. 1 root neutron  1400 Aug  8 02:56 lbaas_agent.ini
-rw-r-----. 1 root neutron  1863 Sep 30 17:08 metadata_agent.ini
lrwxrwxrwx. 1 root root       37 Sep 30 18:41 ml2_conf.ini -> /etc/neutron/plugins/ml2/ml2_conf.ini
-rw-r-----. 1 root neutron 19187 Sep 30 17:08 neutron.conf
lrwxrwxrwx. 1 root root       55 Sep 30 18:40 plugin.ini -> /etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini
-rw-r--r--. 1 root root      211 Sep 30 17:30 plugin.out
drwxr-xr-x. 4 root root     4096 Sep 30 17:08 plugins
-rw-r-----. 1 root neutron  6148 Aug  8 02:56 policy.json
-rw-r--r--. 1 root root       79 Aug 11 15:27 release
-rw-r--r--. 1 root root     1216 Aug  8 02:56 rootwrap.conf

    File ml2_conf.ini



    [root@icehouse1 neutron(keystone_admin)]# cat ml2_conf.ini
    [ml2]
    type_drivers = gre
    tenant_network_types = gre
    mechanism_drivers = openvswitch
    [ml2_type_flat]
    [ml2_type_vlan]
    [ml2_type_gre]
    tunnel_id_ranges = 1:1000
    [ml2_type_vxlan]
    [securitygroup]
    firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
    enable_security_group = True
    [ovs]
    local_ip = 192.168.0.127
    [agent]
    tunnel_types = gre
    root_helper = sudo /usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf

   Just the same plugin.ini

[root@icehouse1 neutron(keystone_admin)]# cat plugin.ini
[ml2]
type_drivers = gre
tenant_network_types = gre
mechanism_drivers = openvswitch
[ml2_type_flat]
[ml2_type_vlan]
[ml2_type_gre]
tunnel_id_ranges = 1:1000
[ml2_type_vxlan]
[securitygroup]
firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
enable_security_group = True
[ovs]
local_ip = 192.168.0.127
[agent]
tunnel_types = gre
root_helper = sudo /usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf
edit flag offensive delete link more

Comments

Thanks It works !!!!!!!!

Walter gravatar imageWalter ( 2014-10-29 06:43:16 -0600 )edit
0

answered 2014-10-29 05:43:41 -0600

Walter gravatar image

updated 2014-10-29 05:59:51 -0600

Answer to "dbaxps" comment:

m2_conf.ini:

[ml2]
# (ListOpt) List of network type driver entrypoints to be loaded from
# the neutron.ml2.type_drivers namespace.
#
# type_drivers = local,flat,vlan,gre,vxlan
type_drivers = gre
# Example: type_drivers = flat,vlan,gre,vxlan

# (ListOpt) Ordered list of network_types to allocate as tenant
# networks. The default value 'local' is useful for single-box testing
# but provides no connectivity between hosts.
#
# tenant_network_types = local
tenant_network_types = gre
# Example: tenant_network_types = vlan,gre,vxlan

# (ListOpt) Ordered list of networking mechanism driver entrypoints
# to be loaded from the neutron.ml2.mechanism_drivers namespace.
# mechanism_drivers =
mechanism_drivers =openvswitch
# Example: mechanism_drivers = openvswitch,mlnx
# Example: mechanism_drivers = arista
# Example: mechanism_drivers = cisco,logger
# Example: mechanism_drivers = openvswitch,brocade
# Example: mechanism_drivers = linuxbridge,brocade

# (ListOpt) Ordered list of extension driver entrypoints
# to be loaded from the neutron.ml2.extension_drivers namespace.
# extension_drivers =
# Example: extension_drivers = anewextensiondriver

[ml2_type_flat]
# (ListOpt) List of physical_network names with which flat networks
# can be created. Use * to allow flat networks with arbitrary
# physical_network names.
#
# flat_networks =
# Example:flat_networks = physnet1,physnet2
# Example:flat_networks = *
[ml2_type_vlan]
# (ListOpt) List of <physical_network>[:<vlan_min>:<vlan_max>] tuples
# specifying physical_network names usable for VLAN provider and
# tenant networks, as well as ranges of VLAN tags on each
# physical_network available for allocation as tenant networks.
#
# network_vlan_ranges =
# Example: network_vlan_ranges = physnet1:1000:2999,physnet2

[ml2_type_gre]
# (ListOpt) Comma-separated list of <tun_min>:<tun_max> tuples enumerating ranges of GRE tunnel IDs that are available for tenant network allocation
# tunnel_id_ranges =
tunnel_id_ranges =

[ml2_type_vxlan]
# (ListOpt) Comma-separated list of <vni_min>:<vni_max> tuples enumerating
# ranges of VXLAN VNI IDs that are available for tenant network allocation.
#
# vni_ranges =
vni_ranges =10:100

# (StrOpt) Multicast group for the VXLAN interface. When configured, will
# enable sending all broadcast traffic to this multicast group. When left
# unconfigured, will disable multicast VXLAN mode.
#
# vxlan_group =
vxlan_group =224.0.0.1
# Example: vxlan_group = 239.1.1.1

[securitygroup]
# Controls if neutron security group is enabled or not.
# It should be false when you use nova security group.
# enable_security_group = True
enable_security_group = True

# Use ipset to speed-up the iptables security groups. Enabling ipset support
# requires that ipset is installed on L2 agent node.
# enable_ipset = True

/etc/neutron:

-rw-r--r-- 1 root root 195 28 ott 13.55 api-paste.ini
-rw-r----- 1 root neutron 3853 28 ott 13.47 dhcp_agent.ini
-rw-r----- 1 root neutron 208 28 ott 15.14 fwaas_driver.ini
-rw-r----- 1 root neutron 4320 28 ott 13.50 l3_agent.ini
-rw-r----- 1 root neutron 1806 28 ott 13.47 lbaas_agent.ini
-rw-r----- 1 root neutron 2229 28 ott 13.55 metadata_agent.ini
-rw-r----- 1 root neutron 686 28 ott 13.50 metering_agent.ini
-rw-r----- 1 root neutron 24192 28 ott 16.59 neutron.conf
lrwxrwxrwx 1 root root 37 28 ott 13.50 plugin.ini -> /etc/neutron/plugins/ml2/ml2_conf.ini
drwxr-xr-x 4 root root 34 28 ott 13.50 plugins
-rw-r----- 1 root neutron 6016 16 ott 15.14 policy.json

-rw-r--r-- 1 root root 85 17 ott 12.03 release

-rw-r--r-- 1 root root 1164 16 ott 15.14 rootwrap.conf

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-10-29 04:46:16 -0600

Seen: 719 times

Last updated: Oct 29 '14