nova/bin
David Ripton 34de8d1529 Raise rather than generating millions of IPs.
Fixes bug #1163394

Formerly if we tried to create many millions of floating IPs with a
range like "192.168.2.224/2", address_to_hosts would happily iterate
over all of them (which would take a long time) and then nova-manage
would eventually crash with an OutOfMemoryError when we tried putting
all of them in a list.  Or, if the initial list wasn't quite big
enough to use all memory, it would blow up later (even more slowly)
when we tried to put them in the database via SQLAlchemy.

Now, raise exception.InvalidInput if the number of IPs is a million
or more.  (A million is erring on the side of caution.)

Change-Id: Ifc6b6a8faadc2e97e09f9f6c975e52229f705789
2013-04-02 14:51:16 -04:00
..
nova-all Remove gettext.install() from nova/__init__.py 2013-04-01 13:44:47 -04:00
nova-api Remove gettext.install() from nova/__init__.py 2013-04-01 13:44:47 -04:00
nova-api-ec2 Remove gettext.install() from nova/__init__.py 2013-04-01 13:44:47 -04:00
nova-api-metadata Remove gettext.install() from nova/__init__.py 2013-04-01 13:44:47 -04:00
nova-api-os-compute Remove gettext.install() from nova/__init__.py 2013-04-01 13:44:47 -04:00
nova-baremetal-deploy-helper Merge "Remove gettext.install() from nova/__init__.py" 2013-04-01 19:59:37 +00:00
nova-baremetal-manage Use oslo-config-2013.1b4 2013-02-19 21:16:32 -08:00
nova-cells Remove gettext.install() from nova/__init__.py 2013-04-01 13:44:47 -04:00
nova-cert Remove gettext.install() from nova/__init__.py 2013-04-01 13:44:47 -04:00
nova-clear-rabbit-queues Update OpenStack LLC to Foundation 2013-02-26 19:15:29 -05:00
nova-compute Remove gettext.install() from nova/__init__.py 2013-04-01 13:44:47 -04:00
nova-conductor Remove gettext.install() from nova/__init__.py 2013-04-01 13:44:47 -04:00
nova-console Remove gettext.install() from nova/__init__.py 2013-04-01 13:44:47 -04:00
nova-consoleauth Remove gettext.install() from nova/__init__.py 2013-04-01 13:44:47 -04:00
nova-dhcpbridge Change nova-dhcpbridge FLAGFILE to a list of files 2013-02-24 23:41:56 -03:30
nova-manage Raise rather than generating millions of IPs. 2013-04-02 14:51:16 -04:00
nova-network Remove gettext.install() from nova/__init__.py 2013-04-01 13:44:47 -04:00
nova-novncproxy Remove gettext.install() from nova/__init__.py 2013-04-01 13:44:47 -04:00
nova-objectstore Remove gettext.install() from nova/__init__.py 2013-04-01 13:44:47 -04:00
nova-rootwrap Sync everything from oslo-incubator. 2013-03-22 14:10:07 -04:00
nova-rpc-zmq-receiver Fix copyright - from LLC to Foundation 2013-03-13 17:59:13 -04:00
nova-scheduler Use oslo-config-2013.1b4 2013-02-19 21:16:32 -08:00
nova-spicehtml5proxy Remove gettext.install() from nova/__init__.py 2013-04-01 13:44:47 -04:00
nova-xvpvncproxy Remove gettext.install() from nova/__init__.py 2013-04-01 13:44:47 -04:00