Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Unable to create the network. No tenant network is available for allocation.

controller>neutron net-create ext-net --shared --router:external=True

503-{u'NeutronError': {u'message': u'Unable to create the network. No tenant network is available for allocation.', u'type': u'NoNetworkAvailable', u'detail': u''}}

I refer Openstack Document install openstack icehouse on ubuntu 14.04. I do not know where the wrong.

view the Log File:

controller>cat /var/log/neutron/server.log

2014-05-09 15:34:47.144 989 INFO neutron.wsgi [-] (989) accepted ('10.0.0.251', 46917)

2014-05-09 15:34:47.147 989 INFO urllib3.connectionpool [-] Starting new HTTP connection (1): controller
2014-05-09 15:34:47.258 989 ERROR neutron.api.v2.resource [req-eeb01f6a-9b04-4c20-a118-9303ee7b794a None] create failed
2014-05-09 15:34:47.258 989 TRACE neutron.api.v2.resource Traceback (most recent call last):
2014-05-09 15:34:47.258 989 TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/api/v2/resource.py", line 87, in resource
2014-05-09 15:34:47.258 989 TRACE neutron.api.v2.resource     result = method(request=request, **args)
2014-05-09 15:34:47.258 989 TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/api/v2/base.py", line 419, in create
2014-05-09 15:34:47.258 989 TRACE neutron.api.v2.resource     obj = obj_creator(request.context, **kwargs)
2014-05-09 15:34:47.258 989 TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/plugin.py", line 384, in create_network
2014-05-09 15:34:47.258 989 TRACE neutron.api.v2.resource     segment = self.type_manager.allocate_tenant_segment(session)
2014-05-09 15:34:47.258 989 TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/managers.py", line 96, in allocate_tenant_segment
2014-05-09 15:34:47.258 989 TRACE neutron.api.v2.resource     raise exc.NoNetworkAvailable()
2014-05-09 15:34:47.258 989 TRACE neutron.api.v2.resource NoNetworkAvailable: Unable to create the network. No tenant network is available for allocation.
2014-05-09 15:34:47.258 989 TRACE neutron.api.v2.resource 
2014-05-09 15:34:47.264 989 INFO neutron.wsgi [req-eeb01f6a-9b04-4c20-a118-9303ee7b794a None] 10.0.0.251 - - [09/May/2014 15:34:47] "POST /v2.0/networks.json HTTP/1.1" 503 360 0.118819

Unable to create the network. No tenant network is available for allocation.

controller>neutron net-create ext-net --shared --router:external=True

503-{u'NeutronError': {u'message': u'Unable to create the network. No tenant network is available for allocation.', u'type': u'NoNetworkAvailable', u'detail': u''}}

I refer Openstack Document install openstack icehouse on ubuntu 14.04. I do not know where the wrong.

view the Log File:

controller>cat /var/log/neutron/server.log

2014-05-09 15:34:47.144 989 INFO neutron.wsgi [-] (989) accepted ('10.0.0.251', 46917)

2014-05-09 15:34:47.147 989 INFO urllib3.connectionpool [-] Starting new HTTP connection (1): controller
2014-05-09 15:34:47.258 989 ERROR neutron.api.v2.resource [req-eeb01f6a-9b04-4c20-a118-9303ee7b794a None] create failed
2014-05-09 15:34:47.258 989 TRACE neutron.api.v2.resource Traceback (most recent call last):
2014-05-09 15:34:47.258 989 TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/api/v2/resource.py", line 87, in resource
2014-05-09 15:34:47.258 989 TRACE neutron.api.v2.resource     result = method(request=request, **args)
2014-05-09 15:34:47.258 989 TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/api/v2/base.py", line 419, in create
2014-05-09 15:34:47.258 989 TRACE neutron.api.v2.resource     obj = obj_creator(request.context, **kwargs)
2014-05-09 15:34:47.258 989 TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/plugin.py", line 384, in create_network
2014-05-09 15:34:47.258 989 TRACE neutron.api.v2.resource     segment = self.type_manager.allocate_tenant_segment(session)
2014-05-09 15:34:47.258 989 TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/managers.py", line 96, in allocate_tenant_segment
2014-05-09 15:34:47.258 989 TRACE neutron.api.v2.resource     raise exc.NoNetworkAvailable()
2014-05-09 15:34:47.258 989 TRACE neutron.api.v2.resource NoNetworkAvailable: Unable to create the network. No tenant network is available for allocation.
2014-05-09 15:34:47.258 989 TRACE neutron.api.v2.resource 
2014-05-09 15:34:47.264 989 INFO neutron.wsgi [req-eeb01f6a-9b04-4c20-a118-9303ee7b794a None] 10.0.0.251 - - [09/May/2014 15:34:47] "POST /v2.0/networks.json HTTP/1.1" 503 360 0.118819

controller>ps aux | grep neutron

neutron   2587  0.2  4.0 211936 52140 ?        Ss   17:06   0:07 /usr/bin/python /usr/bin/neutron-server --config-file /etc/neutron/neutron.conf --log-file /var/log/neutron/server.log --config-file /etc/neutron/plugins/ml2/ml2_conf.ini
root      3356  0.0  0.0  11744   924 pts/1    S+   17:57   0:00 grep --color=auto neutron

controller neutron.conf file:

[DEFAULT]
verbose = True
state_path = /var/lib/neutron
lock_path = $state_path/lock
core_plugin = ml2
service_plugins = router
allow_overlapping_ips = True

notify_nova_on_port_status_changes = True
notify_nova_on_port_data_changes = True
nova_url = http://controller:8774/v2
nova_admin_username = nova
nova_admin_tenant_id = 36bf9ca9fbee42a5abad0d0ad2a69e02
nova_admin_password = nova
nova_admin_auth_url = http://controller:35357/v2.0

auth_strategy = keystone

rpc_backend = neutron.openstack.common.rpc.impl_kombu
rabbit_host = controller
rabbit_password = guest
rabbit_userid = guest
notification_driver = neutron.openstack.common.notifier.rpc_notifier

[quotas]

[agent]
root_helper = sudo /usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf

[keystone_authtoken]
auth_uri = http://controller:5000
auth_host = controller
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = neutron
admin_password = neutron
signing_dir = $state_path/keystone-signing

[database]
connection = mysql://neutron:neutron@controller/neutron

[service_providers]
#service_provider=LOADBALANCER:Haproxy:neutron.services.loadbalancer.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default
#service_provider=VPN:openswan:neutron.services.vpn.service_drivers.ipsec.IPsecVPNDriver:default

controller 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_range = 1:1000

[ml2_type_vxlan]

[securitygroup]
firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
enable_security_group = True

network node neuton.conf:

[DEFAULT]
verbose = True
state_path = /var/lib/neutron
lock_path = $state_path/lock
core_plugin = ml2
service_plugins = router
allow_overlapping_ips = True
notification_driver = neutron.openstack.common.notifier.rpc_notifier

auth_strategy = keystone

# MSG
rpc_backend = neutron.openstack.common.rpc.impl_kombu
rabbit_host = controller
rabbit_userid = guest
rabbit_password = guest

[quotas]

[agent]
root_helper = sudo /usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf

[keystone_authtoken]
auth_uri = http://controller:5000
auth_host = controller
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = neutron
admin_password = neutron
signing_dir = $state_path/keystone-signing

[database]
connection = mysql://neutron:neutron@controller/neutron

[service_providers]
service_provider=LOADBALANCER:Haproxy:neutron.services.loadbalancer.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default
service_provider=VPN:openswan:neutron.services.vpn.service_drivers.ipsec.IPsecVPNDriver:default

network node ml2_conf.ini

[ml2]
verbose = True
type_drivers = gre
tenant_network_types = gre
mechanism_drivers = openvswitch

[ml2_type_gre]
tunnel_id_ranges = 1:1000

[ovs]
local_ip = 10.0.0.241
tunnel_type = gre
enable_tunneling = True

[securitygroup]
firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
enable_security_group = True

compute node ml2_conf.ini

[ml2]
type_drivers = gre
tenant_network_types = gre
mechanism_drivers = openvswitch

[ml2_type_gre]
tunnel_id_ranges = 1:1000

[ovs]
local_ip = 10.0.0.231
tunnel_type = gre
enable_tunneling = True

[securitygroup]
firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
enable_security_group = True

Unable to create the network. No tenant network is available for allocation.

controller>neutron net-create ext-net --shared --router:external=True

503-{u'NeutronError': {u'message': u'Unable to create the network. No tenant network is available for allocation.', u'type': u'NoNetworkAvailable', u'detail': u''}}

I refer Openstack Document install openstack icehouse on ubuntu 14.04. I do not know where the wrong.

view the Log File:

controller>cat /var/log/neutron/server.log

2014-05-09 15:34:47.144 989 INFO neutron.wsgi [-] (989) accepted ('10.0.0.251', 46917)

2014-05-09 15:34:47.147 989 INFO urllib3.connectionpool [-] Starting new HTTP connection (1): controller
2014-05-09 15:34:47.258 989 ERROR neutron.api.v2.resource [req-eeb01f6a-9b04-4c20-a118-9303ee7b794a None] create failed
2014-05-09 15:34:47.258 989 TRACE neutron.api.v2.resource Traceback (most recent call last):
2014-05-09 15:34:47.258 989 TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/api/v2/resource.py", line 87, in resource
2014-05-09 15:34:47.258 989 TRACE neutron.api.v2.resource     result = method(request=request, **args)
2014-05-09 15:34:47.258 989 TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/api/v2/base.py", line 419, in create
2014-05-09 15:34:47.258 989 TRACE neutron.api.v2.resource     obj = obj_creator(request.context, **kwargs)
2014-05-09 15:34:47.258 989 TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/plugin.py", line 384, in create_network
2014-05-09 15:34:47.258 989 TRACE neutron.api.v2.resource     segment = self.type_manager.allocate_tenant_segment(session)
2014-05-09 15:34:47.258 989 TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/managers.py", line 96, in allocate_tenant_segment
2014-05-09 15:34:47.258 989 TRACE neutron.api.v2.resource     raise exc.NoNetworkAvailable()
2014-05-09 15:34:47.258 989 TRACE neutron.api.v2.resource NoNetworkAvailable: Unable to create the network. No tenant network is available for allocation.
2014-05-09 15:34:47.258 989 TRACE neutron.api.v2.resource 
2014-05-09 15:34:47.264 989 INFO neutron.wsgi [req-eeb01f6a-9b04-4c20-a118-9303ee7b794a None] 10.0.0.251 - - [09/May/2014 15:34:47] "POST /v2.0/networks.json HTTP/1.1" 503 360 0.118819

controller>ps aux | grep neutron

neutron   2587  0.2  4.0 211936 52140 ?        Ss   17:06   0:07 /usr/bin/python /usr/bin/neutron-server --config-file /etc/neutron/neutron.conf --log-file /var/log/neutron/server.log --config-file /etc/neutron/plugins/ml2/ml2_conf.ini
root      3356  0.0  0.0  11744   924 pts/1    S+   17:57   0:00 grep --color=auto neutron

controller neutron.conf file:

[DEFAULT]
verbose = True
state_path = /var/lib/neutron
lock_path = $state_path/lock
core_plugin = ml2
service_plugins = router
allow_overlapping_ips = True

notify_nova_on_port_status_changes = True
notify_nova_on_port_data_changes = True
nova_url = http://controller:8774/v2
nova_admin_username = nova
nova_admin_tenant_id = 36bf9ca9fbee42a5abad0d0ad2a69e02
nova_admin_password = nova
nova_admin_auth_url = http://controller:35357/v2.0

auth_strategy = keystone

rpc_backend = neutron.openstack.common.rpc.impl_kombu
rabbit_host = controller
rabbit_password = guest
rabbit_userid = guest
notification_driver = neutron.openstack.common.notifier.rpc_notifier

[quotas]

[agent]
root_helper = sudo /usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf

[keystone_authtoken]
auth_uri = http://controller:5000
auth_host = controller
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = neutron
admin_password = neutron
signing_dir = $state_path/keystone-signing

[database]
connection = mysql://neutron:neutron@controller/neutron

[service_providers]
#service_provider=LOADBALANCER:Haproxy:neutron.services.loadbalancer.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default
#service_provider=VPN:openswan:neutron.services.vpn.service_drivers.ipsec.IPsecVPNDriver:default

controller 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_range = 1:1000

[ml2_type_vxlan]

[securitygroup]
firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
enable_security_group = True

network node neuton.conf:

[DEFAULT]
verbose = True
state_path = /var/lib/neutron
lock_path = $state_path/lock
core_plugin = ml2
service_plugins = router
allow_overlapping_ips = True
notification_driver = neutron.openstack.common.notifier.rpc_notifier

auth_strategy = keystone

# MSG
rpc_backend = neutron.openstack.common.rpc.impl_kombu
rabbit_host = controller
rabbit_userid = guest
rabbit_password = guest

[quotas]

[agent]
root_helper = sudo /usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf

[keystone_authtoken]
auth_uri = http://controller:5000
auth_host = controller
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = neutron
admin_password = neutron
signing_dir = $state_path/keystone-signing

[database]
connection = mysql://neutron:neutron@controller/neutron

[service_providers]
service_provider=LOADBALANCER:Haproxy:neutron.services.loadbalancer.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default
service_provider=VPN:openswan:neutron.services.vpn.service_drivers.ipsec.IPsecVPNDriver:default

network node ml2_conf.ini

[ml2]
verbose = True
type_drivers = gre
tenant_network_types = gre
mechanism_drivers = openvswitch

[ml2_type_gre]
tunnel_id_ranges = 1:1000

[ovs]
local_ip = 10.0.0.241
tunnel_type = gre
enable_tunneling = True

[securitygroup]
firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
enable_security_group = True

compute node ml2_conf.ini

[ml2]
type_drivers = gre
tenant_network_types = gre
mechanism_drivers = openvswitch

[ml2_type_gre]
tunnel_id_ranges = 1:1000

[ovs]
local_ip = 10.0.0.231
tunnel_type = gre
enable_tunneling = True

[securitygroup]
firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
enable_security_group = True

network>cat /var/log/neutron/openvswitch-agent.log

2014-05-12 11:08:42.105 5863 ERROR neutron.agent.linux.ovs_lib [req-bf1f7811-19cd-4cb6-959b-2cdac9b99ac9 None] Unable to execute ['ovs-ofctl', 'add-flow', 'br-int', 'hard_timeout=0,idle_timeout=0,priority=1,actions=normal']. Exception: 
Command: ['sudo', '/usr/bin/neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ovs-ofctl', 'add-flow', 'br-int', 'hard_timeout=0,idle_timeout=0,priority=1,actions=normal']
Exit code: 1
Stdout: ''
Stderr: 'ovs-ofctl: br-int is not a bridge or a socket\n'
2014-05-12 11:08:42.188 5863 ERROR neutron.agent.linux.ovs_lib [req-bf1f7811-19cd-4cb6-959b-2cdac9b99ac9 None] Unable to execute ['ovs-vsctl', '--timeout=10', '--', '--if-exists', 'del-br', 'br-tun']. Exception: 
Command: ['sudo', '/usr/bin/neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ovs-vsctl', '--timeout=10', '--', '--if-exists', 'del-br', 'br-tun']
Exit code: 1
Stdout: ''
Stderr: '2014-05-12T03:08:42Z|00002|reconnect|WARN|unix:/var/run/openvswitch/db.sock: connection attempt failed (No such file or directory)\novs-vsctl: unix:/var/run/openvswitch/db.sock: database connection failed (No such file or directory)\n'
2014-05-12 11:08:42.338 5863 ERROR neutron.agent.linux.ovs_lib [req-bf1f7811-19cd-4cb6-959b-2cdac9b99ac9 None] Unable to execute ['ovs-vsctl', '--timeout=10', 'add-port', 'br-int', 'patch-tun', '--', 'set', 'Interface', 'patch-tun', 'type=patch', 'options:peer=patch-int']. Exception: 
Command: ['sudo', '/usr/bin/neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ovs-vsctl', '--timeout=10', 'add-port', 'br-int', 'patch-tun', '--', 'set', 'Interface', 'patch-tun', 'type=patch', 'options:peer=patch-int']
Exit code: 1
Stdout: ''
Stderr: 'ovs-vsctl: cannot create a port named patch-tun because a port named patch-tun already exists on bridge br-int\n'
2014-05-12 11:08:42.421 5863 ERROR neutron.agent.linux.ovs_lib [req-bf1f7811-19cd-4cb6-959b-2cdac9b99ac9 None] Unable to execute ['ovs-vsctl', '--timeout=10', 'add-port', 'br-tun', 'patch-int', '--', 'set', 'Interface', 'patch-int', 'type=patch', 'options:peer=patch-tun']. Exception: 
Command: ['sudo', '/usr/bin/neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ovs-vsctl', '--timeout=10', 'add-port', 'br-tun', 'patch-int', '--', 'set', 'Interface', 'patch-int', 'type=patch', 'options:peer=patch-tun']
Exit code: 1
Stdout: ''
Stderr: 'ovs-vsctl: cannot create a port named patch-int because a port named patch-int already exists on bridge br-tun\n'
2014-05-12 11:13:00.354 5863 ERROR neutron.agent.linux.ovsdb_monitor [-] Error received from ovsdb monitor: 2014-05-12T03:13:00Z|00001|fatal_signal|WARN|terminating with signal 15 (Terminated)

network>ls /var/run/openvswitch

br-ex.mgmt   br-int.snoop  db.sock                ovs-vswitchd.1083.ctl
br-ex.snoop  br-tun.mgmt   ovsdb-server.1074.ctl  ovs-vswitchd.pid
br-int.mgmt  br-tun.snoop  ovsdb-server.pid