Fixed _processServerCreate()

This commit fixes the setting of the quota type (for Ocata).

Change-Id: Ic7bdaa31e2028256d49cbbc0b1b41ab88e4fe1b4
Sem-Ver: bugfix
This commit is contained in:
Lisa Zangrando 2017-09-21 15:19:43 +02:00
parent ba2c862c17
commit ebc4694782
1 changed files with 4 additions and 1 deletions

View File

@ -337,7 +337,10 @@ class SchedulerManager(Manager):
request.getProjectId(), num_attempts, reason))
return
self.nova_manager.setQuotaTypeServer(server)
try:
self.nova_manager.setQuotaTypeServer(server)
except Exception:
pass
if server.isPermanent():
if quota.allocate(server, blocking=False):