Allocate a floating IP when no floating IPs available, although HTTP code is correct,
exception message with stack information is responsed which may be not friendly.
{
"itemNotFound": {
"code": 404,
"message": "NoMoreFloatingIps_Remote: Zero floating ips available.\nTraceback (most recent call last):\n\n File \"path/nova/openstack/common/rpc/amqp.py\", line 275, in _process_data\n rval = self.proxy.dispatch(ctxt, version, method, **args)\n\n File \"path/nova/openstack/common/rpc/dispatcher.py\", line 145, in dispatch\n return getattr(proxyobj, method)(ctxt, **kwargs)\n\n File \"path/nova/network/manager.py\", line 279, in wrapped\n return func(self, context, *args, **kwargs)\n\n File \"path/nova/network/manager.py\", line 481, in allocate_floating_ip\n QUOTAS.rollback(context, reservations)\n\n File \"/usr/lib/python2.7/contextlib.py\", line 24, in __exit__\n self.gen.next()\n\n File \"path/nova/network/manager.py\", line 468, in allocate_floating_ip\n pool)\n\n File \"path/nova/db/api.py\", line 277, in floating_ip_allocate_address\n return IMPL.floating_ip_allocate_address(context, project_id, pool)\n\n File \"path/nova/db/sqlalchemy/api.py\", line 131, in wrapper\n return f(*args, **kwargs)\n\n File \"path/nova/db/sqlalchemy/api.py\", line 744, in floating_ip_allocate_address\n raise exception.NoMoreFloatingIps()\n\nNoMoreFloatingIps: Zero floating ips available.\n"
}
}
The problem also meet when FloatingIpLimitExceeded raised.
{
"overLimit": {
"code": 413,
"message": "FloatingIpLimitExceeded_Remote: Maximum number of floating ips exceeded\nTraceback (most recent call last):\n\n File \"path/nova/openstack/common/rpc/amqp.py\", line 275, in _process_data\n rval = self.proxy.dispatch(ctxt, version, method, **args)\n\n File \"path/nova/openstack/common/rpc/dispatcher.py\", line 145, in dispatch\n return getattr(proxyobj, method)(ctxt, **kwargs)\n\n File \"path/nova/network/manager.py\", line 279, in wrapped\n return func(self, context, *args, **kwargs)\n\n File \"path/nova/network/manager.py\", line 463, in allocate_floating_ip\n raise exception.FloatingIpLimitExceeded()\n\nFloatingIpLimitExceeded: Maximum number of floating ips exceeded\n",
"retryAfter": 0
}
}
Can you please add the logs from the nova-api log? i did manage to figure out a way to recreate the 2nd problem, but not the first, that would help.
thanks,
dims