Thursday, 25 August 2016

Invalid input for operation: network_type value 'local' not supported

I was trying to create a type 'local' network in the controller node, but the command gave below error.

root@controller:~# neutron net-create mgmt-net --provider:network-type local
Invalid input for operation: network_type value 'local' not supported.

FIX

In the ml2 driver the 'local' type was not enabled. So edited the configuration file

/etc/neutron/plugins/ml2/ml2_conf.ini

modified the the line to add 'local' option.

type_drivers = flat,vlan,vxlan,local

After restarting the neutron service, when I tried again the network got created.

 service neutron-server restart
neutron-server stop/waiting
neutron-server start/running, process 29892

root@controller:~# neutron net-create mgmt-net --provider:network-type local
Created a new network:
+---------------------------+--------------------------------------+
| Field                     | Value                                |
+---------------------------+--------------------------------------+
| admin_state_up            | True                                 |
| availability_zone_hints   |                                      |
| availability_zones        |                                      |
| created_at                | 2016-08-25T08:00:10                  |
| description               |                                      |
| id                        | 867fc72b-164b-447b-b986-4c9f1db20c14 |
| ipv4_address_scope        |                                      |
| ipv6_address_scope        |                                      |
| mtu                       | 1500                                 |
| name                      | mgmt-net                             |
| port_security_enabled     | True                                 |
| provider:network_type     | local                                |
| provider:physical_network |                                      |
| provider:segmentation_id  |                                      |
| router:external           | False                                |
| shared                    | False                                |
| status                    | ACTIVE                               |
| subnets                   |                                      |
| tags                      |                                      |
| tenant_id                 | 670a31668af7494b91bbfb23fe406a2e     |
| updated_at                | 2016-08-25T08:00:11                  |
+---------------------------+--------------------------------------+

1 comment: