summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--nova/endpoint/cloud.py1
-rw-r--r--nova/tests/quota_unittest.py9
2 files changed, 1 insertions, 9 deletions
diff --git a/nova/endpoint/cloud.py b/nova/endpoint/cloud.py
index b5ac5be4d..5209ec906 100644
--- a/nova/endpoint/cloud.py
+++ b/nova/endpoint/cloud.py
@@ -450,7 +450,6 @@ class CloudController(object):
@defer.inlineCallbacks
def allocate_address(self, context, **kwargs):
# check quota
- print quota.allowed_floating_ips(context, 1)
if quota.allowed_floating_ips(context, 1) < 1:
logging.warn("Quota exceeeded for %s, tried to allocate address",
context.project.id)
diff --git a/nova/tests/quota_unittest.py b/nova/tests/quota_unittest.py
index 9d697ccd3..cab9f663d 100644
--- a/nova/tests/quota_unittest.py
+++ b/nova/tests/quota_unittest.py
@@ -147,16 +147,9 @@ class QuotaTestCase(test.TrialTestCase):
'host': FLAGS.host})
float_addr = self.network.allocate_floating_ip(self.context,
self.project.id)
- # NOTE(vish): This assert doesn't work. When cloud attempts to
+ # NOTE(vish): This assert never fails. When cloud attempts to
# make an rpc.call, the test just finishes with OK. It
# appears to be something in the magic inline callbacks
# that is breaking.
self.assertFailure(self.cloud.allocate_address(self.context),
cloud.QuotaError)
- try:
- yield self.cloud.allocate_address(self.context)
- self.fail('Should have raised QuotaError')
- except cloud.QuotaError:
- pass
-
-