Skip to content

Commit 155c276

Browse files
olethanhhoh
authored andcommitted
Fix update_allocation error handling code
Was causing issue when instances failed to start and there was no persistent VM Jira ticket ALEPH-436 (part of ALEPH-436 )
1 parent 1a38ca7 commit 155c276

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/aleph/vm/orchestrator/views/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -440,13 +440,13 @@ async def update_allocations(request: web.Request):
440440
except Exception as error:
441441
# Handle unknown exception separately, to avoid leaking data
442442
logger.exception("Unhandled Error while starting VM '%s': %s", instance_hash, error)
443-
scheduling_errors[vm_hash] = Exception("Unhandled Error")
443+
scheduling_errors[instance_hash] = Exception("Unhandled Error")
444444

445445
# Log unsupported features
446446
if allocation.on_demand_vms:
447447
logger.warning("Not supported yet: 'allocation.on_demand_vms'")
448448
if allocation.jobs:
449-
logger.warning("Not supported yet: 'allocation.on_demand_vms'")
449+
logger.warning("Not supported yet: 'allocation.jobs'")
450450

451451
failing = set(scheduling_errors.keys())
452452
successful = allocations - failing

0 commit comments

Comments
 (0)