Ask Your Question

Revision history [back]

This is a bug in version Stein.

Temporary solution

update file /usr/lib/python2.7/site-packages/neutron/db/external_net_db.py line 148.

original file

def get_external_network_id(self, context):

    nets = self.get_networks(context, {extnet_apidef.EXTERNAL: [True]})

    if len(nets) > 1:

        raise n_exc.TooManyExternalNetworks()

    else:

        return nets[0]['id'] if nets else None

update to :

def get_external_network_id(self, context):

    nets = self.get_networks(context, {extnet_apidef.EXTERNAL: [True]})

    if len(nets) > 300:

        raise n_exc.TooManyExternalNetworks()

    else:

        return nets[0]['id'] if nets else None

and then restart your neutron-server and neutron-l3-agent.