This makes the network.floating_ips module use the Service object
for its query instead of direct database access.
Related to blueprint nova-network-objects
Change-Id: I612b032824d828cf2104dd281bb88a4ecba6c8b6
This makes the network.floating_ips module use the Instance object
for queries instead of direct database access.
Related to blueprint nova-network-objects
Change-Id: I213ff4476c3e8277f9df09941e24a1374a1aa569
This makes the network.floating_ips module use the Network object
instead of going direct to the database.
Related to blueprint nova-network-objects
Change-Id: I589881515fa43f9527a466f9eb22df2768ef3f3a
This makes the network.floating_ips module use the FixedIP
objects instead of direct database interaction.
Related to blueprint nova-network-objects
Change-Id: I09505d480bae0f764b1edf92722e1d2ed1652e61
If multiple instance types in a cell had the same memory_mb value or
root_gb + ephemeral_gb added to the same value, then capacity counts
would be inaccurate since slots would get counted multiple times.
Rather than counting based on instance type it is now based on the set
of memory or disk values pulled from instance types.
Change-Id: Iaded7fa69dadb4aa0335ef1569975bdfcb2767c6
Closes-bug: #1276728
As part of commit 5668870, we now explicitly guard against the case
free_disk_gb is None or unset. However, this should never happen
since resource tracker always sets it and guarding against this case
isn't actually needed to fix the bug in question.
Also, simplify the code a little to make the intent more clear. We
assume that free_disk_gb is always set, but we want to use
disk_available_least where the driver has set it. The case where
disk_available_least is less than free_disk_gb is the exceptional
case we want to guard against.
Change-Id: I3973eab6b4ca016df546de8b57245fc0d0f03a80
oslosphinx is now available as a replacement for oslo.sphinx that
won't conflict with oslo.config in virtual envs.
Change-Id: I7c116f816af895261e76af385ee3e9288e6fa70f
Closes-Bug: #1277168
Some of tests use different method of assertTrue(isinstance(A, B)) or
assertEqual(type(A), B). The correct way is to use assertIsInstance(A,
B) provided by testtools.
Change-Id: I4a5413f9d90d2e581044885a440a46bf3d76598f
Closes-Bug: #1268480
This makes nova_ipam_lib use objects for almost everything except
for VIF-related functions, which is coming soon.
Related to blueprint nova-network-objects
Change-Id: Ib39bbc86921eeb849e715a205dccaab3aad6d1c6
This makes nova-network manager use the FixedIP object when
disassociating addresses due to timeout.
Related to blueprint nova-network-objects
Change-Id: I909f710543239207f6d27230b527b4495a23f2cb
This makes nova-network manager use the FixedIP object for
updates instead of direct database calls.
Related to blueprint nova-network-objects
Change-Id: Ia191148cf7510ffdb0fbd4186fa34bb4c5ab1b0f
This makes nova-network mananger use the FixedIP object for
disassociating IPs.
Related to blueprint nova-network-objects
Change-Id: Ia0a38bbd31cc22095893bff89bcaa402a9bc2722
This patch adds "body=" argument to v3 API unit tests for avoiding
the test failures due to KeyError when applying the API validation
framework to "create a server" API.
_process_stack() of nova's wsgi passes kwargs which includes 'body'
like:
{'body': {u'server': {u'name': u'my-server', [..]}}}
to an API method. The validation framework finds a body with the
keyword 'body' from the kwargs, and validates the body with the API
schema. So this changes is also for fitting the arguments to the wsgi
behavior.
Partially implements blueprint nova-api-validation-fw
Change-Id: Id5fa416e021b529e20aca3701e3f159bb316e7fb