floating_ip_bulk_create reads all existing floating IPs out of the database and shoves them into a dict. So fixing nova-manage to work in chunks will actually just move the problem, and we'll run out of memory in floating_ip_bulk_create instead.
So I think the real fix is to make nova-manage FloatingIpCommands.address_to_hosts raise an exception up front if we give it silly input like "192.168.2.224/2", rather than having it attempt to create millions of IPs then blow up later.
floating_ ip_bulk_ create reads all existing floating IPs out of the database and shoves them into a dict. So fixing nova-manage to work in chunks will actually just move the problem, and we'll run out of memory in floating_ ip_bulk_ create instead.
So I think the real fix is to make nova-manage FloatingIpComma nds.address_ to_hosts raise an exception up front if we give it silly input like "192.168.2.224/2", rather than having it attempt to create millions of IPs then blow up later.