Ask Your Question
1

Seeing error message "Unable to create the network. No tenant is available for allocation" when deploying devstack from icehouse/stable

asked 2014-08-01 12:13:39 -0500

I am new to openstack and devstack. Have been trying to deploy devstack from icehouse/stable using the ENABLE_TENANT_VLAN=True in the local.conf and seeing the below error. If I comment out the ENABLE_TENANAT_VLAN=True, devstack runs successfully. Find below the local.conf file contents as well.

Would appreciate guidance on any next steps to debug or resolve this. [Note: Reviewed other posts with same error message but could not find a solution that resolved my issue]

2014-08-01 16:44:15.793 | + echo -e Creating initial neutron network elements 2014-08-01 16:44:15.793 | + create_neutron_initial_network 2014-08-01 16:44:15.794 | ++ openstack project list 2014-08-01 16:44:15.794 | ++ grep ' demo ' 2014-08-01 16:44:15.794 | ++ get_field 1 2014-08-01 16:44:15.795 | ++ read data 2014-08-01 16:44:16.780 | ++ '[' 1 -lt 0 ']' 2014-08-01 16:44:16.780 | ++ field='$2' 2014-08-01 16:44:16.781 | ++ echo '| 7bc9c20d3d1a49ad97aa44f1c30c6555 | demo |' 2014-08-01 16:44:16.781 | ++ awk '-F[ \t]\|[ \t]' '{print $2}' 2014-08-01 16:44:16.782 | ++ read data 2014-08-01 16:44:16.783 | + TENANT_ID=7bc9c20d3d1a49ad97aa44f1c30c6555 2014-08-01 16:44:16.783 | + die_if_not_set 398 TENANT_ID 'Failure retrieving TENANT_ID for demo' 2014-08-01 16:44:16.783 | + local exitcode=0 2014-08-01 16:44:16.785 | + is_baremetal 2014-08-01 16:44:16.785 | + [[ g-api,g-reg,key,n-api,n-crt,n-obj,n-cpu,n-cond,n-sch,n-novnc,n-xvnc,n-cauth,h-eng,h-api,h-api-cfn,h-api-cw,horizon,rabbit,tempest,mysql,neutron,q-agt,q-dhcp,q-fwaas,q-l3,q-lbaas,q-meta,q-svc,heat =~ baremetal ]] 2014-08-01 16:44:16.785 | + return 1 2014-08-01 16:44:16.785 | + is_provider_network 2014-08-01 16:44:16.785 | + '[' '' == True ']' 2014-08-01 16:44:16.785 | + return 1 2014-08-01 16:44:16.786 | ++ neutron net-create --tenant-id 7bc9c20d3d1a49ad97aa44f1c30c6555 private 2014-08-01 16:44:16.786 | ++ grep ' id ' 2014-08-01 16:44:16.786 | ++ get_field 2 2014-08-01 16:44:16.787 | ++ read data 2014-08-01 16:44:20.012 | Unable to create the network. No tenant network is available for allocation. 2014-08-01 16:44:20.044 | + NET_ID= 2014-08-01 16:44:20.044 | + die_if_not_set 429 NET_ID 'Failure creating NET_ID for default 7bc9c20d3d1a49ad97aa44f1c30c6555' 2014-08-01 16:44:20.044 | + local exitcode=0 2014-08-01 16:44:20.048 | [Call Trace] 2014-08-01 16:44:20.049 | icehouse/stable/stack.sh:1243:create_neutron_initial_network 2014-08-01 16:44:20.049 | /home/stack/icehouse/stable/lib/neutron:429:die_if_not_set 2014-08-01 16:44:20.049 | /home/stack/icehouse/stable/functions-common:245:die 2014-08-01 16:44:20.052 | [ERROR] /home/stack/icehouse/stable/functions-common:429 Failure creating NET_ID for default 7bc9c20d3d1a49ad97aa44f1c30c6555 2014-08-01 16:44:21.056 | Error on exit stack@devstack-39:~$ 2014-08-01 16:44:22.321 | icehouse/stable/stack.sh: line 632: ./tools/worlddump.py: No such file or directory

CONTENTS of local.conf file

[[local|localrc]]

ADMIN_PASSWORD=devstack

HOST_IP=10.18.160.39

MYSQL_PASSWORD=${ADMIN_PASSWORD}

MYSQL_HOST=${HOST_IP}

RABBIT_PASSWORD=devstack

SERVICE_PASSWORD=${ADMIN_PASSWORD}

RABBIT_HOST=${HOST_IP}

SERVICE_HOST=${HOST_IP}

SERVICE_TOKEN=svctkn

Neutron ML2 with OpenVSwitch

Q_PLUGIN=ml2

Q_AGENT=openvswitch

enable_service neutron

enable_service q-agt

enable_service q-dhcp

enable_service q-fwaas

enable_service q-l3

enable_service q-lbaas

enable_service q-meta

enable_service q-svc

Tenant Network

ENABLE_TENANT_VLANS=True

Q_USE_NAMESPACE=True

Heat

enable_service heat

enable_service h-eng

enable_service h-api

enable_service h-api-cfn

enable_service h-api-cw

Nova

disable_service n-net

VIRT_DRIVER ... (more)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-08-18 20:08:38 -0500

updated 2014-08-18 20:22:18 -0500

I was able to finally figure out what I was missing and was able to get a successful run of stack.sh.

Below two entries were missing from my initial local.conf file

TENANT_VLAN_RANGE=901:950

OVS_PHYSICAL_BRIDGE=br-eth1

Find below the contents of the local.conf file that finally worked for me

[[local|localrc]]

ADMIN_PASSWORD=devstack

HOST_IP=10.18.160.76

MYSQL_PASSWORD=${ADMIN_PASSWORD}

RABBIT_PASSWORD=${ADMIN_PASSWORD}

SERVICE_PASSWORD=${ADMIN_PASSWORD}

SERVICE_TOKEN=${ADMIN_PASSWORD}

##Nova

disable_service n-net

##Neutron ML2 with OpenVSwitch enable_service neutron

enable_service q-agt

enable_service q-dhcp

enable_service q-fwaas

enable_service q-l3

enable_service q-lbaas

enable_service q-meta

enable_service q-svc

##Tenant Network

ENABLE_TENANT_VLANS="True"

PHYSICAL_NETWORK="phys1"

TENANT_VLAN_RANGE=901:950

OVS_PHYSICAL_BRIDGE=br-eth1

##Enable logging

LOGDAYS=2

LOGFILE=$DEST/logs/stack.sh.log

VERBOSE=True

LOG_COLOR=True

SCREEN_LOGDIR=$DEST/logs

Disable Cinder

disable_service c-vol

disable_service c-api

disable_service c-sch

disable_service c-bak

edit flag offensive delete link more

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: 2014-08-01 12:12:00 -0500

Seen: 1,725 times

Last updated: Aug 18 '14