Ask Your Question
0

Mitaka Provider Network Setup error

asked 2016-05-16 14:43:21 -0600

velvetpixel gravatar image

Installing Mitaka from the guide for Ubuntu 14.04 and I am getting an error

root@controller:~/envs# neutron net-create --shared --provider:physical_network provider —provider:network_type flat provider
Invalid values_specs flat provider

My Settings seem ok so I am not sure what is wrong:

root@controller:~/# neutron ext-list
+---------------------------+-----------------------------------------------+
| alias                     | name                                          |
+---------------------------+-----------------------------------------------+
| default-subnetpools       | Default Subnetpools                           |
| network-ip-availability   | Network IP Availability                       |
| network_availability_zone | Network Availability Zone                     |
| auto-allocated-topology   | Auto Allocated Topology Services              |
| ext-gw-mode               | Neutron L3 Configurable external gateway mode |
| binding                   | Port Binding                                  |
| agent                     | agent                                         |
| subnet_allocation         | Subnet Allocation                             |
| l3_agent_scheduler        | L3 Agent Scheduler                            |
| tag                       | Tag support                                   |
| external-net              | Neutron external network                      |
| net-mtu                   | Network MTU                                   |
| availability_zone         | Availability Zone                             |
| quotas                    | Quota management support                      |
| l3-ha                     | HA Router extension                           |
| provider                  | Provider Network                              |
| multi-provider            | Multi Provider Network                        |
| address-scope             | Address scope                                 |
| extraroute                | Neutron Extra Route                           |
| timestamp_core            | Time Stamp Fields addition for core resources |
| router                    | Neutron L3 Router                             |
| extra_dhcp_opt            | Neutron Extra DHCP opts                       |
| dns-integration           | DNS Integration                               |
| security-group            | security-group                                |
| dhcp_agent_scheduler      | DHCP Agent Scheduler                          |
| router_availability_zone  | Router Availability Zone                      |
| rbac-policies             | RBAC Policies                                 |
| standard-attr-description | standard-attr-description                     |
| port-security             | Port Security                                 |
| allowed-address-pairs     | Allowed Address Pairs                         |
| dvr                       | Distributed Virtual Router                    |
+---------------------------+-----------------------------------------------+

cat /etc/neutron/plugins/ml2/ml2_conf.ini |grep provider

flat_networks = provider

cat /etc/neutron/plugins/ml2/linuxbridge_agent.ini |grep provider

physical_interface_mappings = provider:em2

/etc/network/interfaces section for em2:

auto em2
iface em2 inet manual
up ip link set dev $IFACE up
down ip link set dev $IFACE down
edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
1

answered 2016-05-16 15:03:43 -0600

dbaxps gravatar image

updated 2016-05-16 15:27:22 -0600

Syntax bellow works for me ( on OVS 2.4.0 - RDO Mitaka)

# source keystonerc_admin
# neutron net-create external3 -- --router:external  \
  --provider:network_type=flat \
  --provider:physical_network=physnet3

# neutron net-create external4 -- --router:external  \
  --provider:network_type=flat \
  --provider:physical_network=physnet4
# neutron subnet-create --disable-dhcp external3 10.3.0.0/24
# neutron subnet-create --disable-dhcp external4 10.4.0.0/24

Followed by

  **************************************************************************************
    Update /etc/neutron/plugins/ml2/openvswitch_agent.ini
    Two flat external networks and one vlan created via network providers
  **************************************************************************************
    [ovs]
    network_vlan_ranges = physnet3,physnet4,vlan157:157:157
    bridge_mappings = physnet3:br-eth3,physnet4:br-eth4,vlan157:br-vlan

Another option (on Mitaka)

root@ip-192-169-142-127 ml2(keystone_demo)]# cat ml2_conf.ini
[ml2]
type_drivers = flat,vlan,vxlan
tenant_network_types = vlan,vxlan
mechanism_drivers =openvswitch
path_mtu = 0
[ml2_type_flat]
[ml2_type_vlan]
network_vlan_ranges = physnet3,physnet4,vlan157:157:157
[ml2_type_gre]
[ml2_type_vxlan]
vni_ranges =10:100
vxlan_group =224.0.0.1
[ml2_type_geneve]
[securitygroup]
enable_security_group = True

The last time using flat and vlan external network providers at a time I updated ml2_conf.ini with network_vlan_ranges = physnet3,physnet4,vlan157:157:157

edit flag offensive delete link more

Comments

Thanks. How do your commands relate to the error I am seeing when entering the exact syntax in the guide listed here: http://docs.openstack.org/mitaka/inst...

What is causing that syntax to return: Invalid values_specs flat provider

velvetpixel gravatar imagevelvetpixel ( 2016-05-16 16:03:59 -0600 )edit

I work with OVS 2.4 (RH) vs Ubuntu's LBR. Syntax might be be different . I also never use provider network for tenant's networks . Packstack takes care of tenant's network configuration (VXLAN(GRE) tunnels or VLAN enabled vm/data networks connecting Compute && Controller/Network Node )

dbaxps gravatar imagedbaxps ( 2016-05-16 17:20:26 -0600 )edit

Design at http://docs.openstack.org/mitaka/inst...
actually, avoids using neutron routers . It avoids L3 routing.
RDO Mitaka doesn't do that.

dbaxps gravatar imagedbaxps ( 2016-05-16 17:29:37 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-05-16 14:43:21 -0600

Seen: 1,015 times

Last updated: May 16 '16