Reservation update fails if resource_type if not provided
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Blazar |
Fix Released
|
High
|
Pierre Riteau |
Bug Description
Steps to reproduce:
blazar lease-create --physical-
blazar lease-update --reservation id=<reservation
What is expected:
Update successful if enough resources are available.
Update fails with "not enough hosts" if not enough resources are available.
What actually happens:
Client gets the following error: "ERROR: resource_type cannot be updated"
Traceback in blazar-manager:
Traceback (most recent call last):
File "/opt/stack/
result = func(*args, **kwargs)
File "/opt/stack/
raise exceptions.
blazar.
This happens because the data in the `reservations` list only contains parameters provided by the client, in this case id, min, and max. The manager code checks if the resource_type key is present in each reservation dictionary, raising this exception.
Changed in blazar: | |
assignee: | nobody → Pierre Riteau (priteau) |
importance: | Undecided → High |
Fix proposed to branch: master /review. opendev. org/c/openstack /blazar/ +/824579
Review: https:/