Ask Your Question
0

Neutron: Unable to create the network.

asked 2017-03-30 14:05:23 -0600

updated 2017-03-31 13:31:06 -0600

I am running Newton on Ubuntu 16.04.

I did Install everything properly and I haven't had any issues during installation neutron.

When I am trying to add network using horizon dashboard or using command line I have an error:

Error: Failed to create network "Network 1": Unable to create the network. 
No tenant network is available for allocation. 
Neutron server returns request_ids: ['req-c1ef9fb9-2b9f-467b-9f54-e597cadd1a3f']

I was trying to add to Neutron - neutron.conf

core_plugin = neutron.plugins.ml2.plugin.Ml2Plugin
service_plugins=neutron.services.l3_router.l3_router_plugin.L3RouterPlugin

Then Restart services

here is some of mine logs

neutron ext-list
+---------------------------+---------------------------------+
| alias                     | name                            |
+---------------------------+---------------------------------+
| default-subnetpools       | Default Subnetpools             |
| availability_zone         | Availability Zone               |
| network_availability_zone | Network Availability Zone       |
| binding                   | Port Binding                    |
| agent                     | agent                           |
| subnet_allocation         | Subnet Allocation               |
| dhcp_agent_scheduler      | DHCP Agent Scheduler            |
| tag                       | Tag support                     |
| external-net              | Neutron external network        |
| flavors                   | Neutron Service Flavors         |
| net-mtu                   | Network MTU                     |
| network-ip-availability   | Network IP Availability         |
| quotas                    | Quota management support        |
| provider                  | Provider Network                |
| multi-provider            | Multi Provider Network          |
| address-scope             | Address scope                   |
| subnet-service-types      | Subnet service types            |
| standard-attr-timestamp   | Resource timestamps             |
| service-type              | Neutron Service Type Management |
| extra_dhcp_opt            | Neutron Extra DHCP opts         |
| standard-attr-revisions   | Resource revision numbers       |
| pagination                | Pagination support              |
| sorting                   | Sorting support                 |
| security-group            | security-group                  |
| rbac-policies             | RBAC Policies                   |
| standard-attr-description | standard-attr-description       |
| port-security             | Port Security                   |
| allowed-address-pairs     | Allowed Address Pairs           |
| project-id                | project_id field enabled        |
+---------------------------+---------------------------------+

openstack network agent list:

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

content of neutron.conf:

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

neutron-server.service - OpenStack Neutron Server && ps -ef | grep neutron-server:

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

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-03-31 16:07:45 -0600

I have fixed it by following a youtube video:

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

in the [ml2] section

I had (based on the installation help from OpenStack documentation)

type_drivers = flat,vlan

i did add vxlan

so it looks like this now

type_drivers = flat,vlan,vxlan

then in the [ml2 _type_ vxlan] section I did specify the vni_ranges

vni_ranges = 1:1000

Restarted all neutron services (probably you need to restart only neutron-server)

# service neutron-server restart
# service neutron-linuxbridge-agent restart
# service neutron-dhcp-agent restart
# service neutron-metadata-agent restart

and then created test network using command line:

neutron net-create some-network-name

Then I have created network using horizon dashboard, where I gave all details to network and it worked!

(I came up to another error when trying to lanuch an instance

[Error: No valid host was found. There are not enough hosts available.]

But probably it is not related to Neutron)

edit flag offensive delete link more

Comments

1

that was related with the nova services check your nova compute logs to find the problem. or nova scheduler and conductor logs.

nitin gautam gravatar imagenitin gautam ( 2017-04-01 01:18:43 -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: 2017-03-30 14:05:23 -0600

Seen: 3,457 times

Last updated: Mar 31 '17