The lease-create request when given using API call, does not accept multiple properties
(Properties here means hypervisor_properties)
Below is the request given to create lease reservation
ERROR: blazar.manager.service Failed to create reservation for a lease. Rollback the lease and associated reservations: sqlalchemy.exc.OperationalError: (MySQLdb._exceptions.OperationalError) (1241, 'Operand should contain 1 column(s)')
The lease-create request when given using API call, does not accept multiple properties properties)
(Properties here means hypervisor_
Below is the request given to create lease reservation
{ hypervisor_ properties" : "[ type\", \"phyp\"]", hostname\ ",\"89D0T\ "]", version\ ",\"8\" ]" resource_ type": "physical:host", resource_ properties" : ""
"name": "test_lease_1",
"reservations": [
{
"
"and",
"[\">=\", \"$memory_mb\", \"1024\"]",
"[\">=\", \"$vcpus\", \"2\"]",
"[\"=\", \"$hypervisor_
"[\"=\", \"$hypervisor_
"[\"=\", \"$hypervisor_
]",
"max": 1,
"min": 1,
"
"
}
],
"start_date": "now",
"end_date": "2023-05-21 08:00"
}
ERROR: blazar. manager. service Failed to create reservation for a lease. Rollback the lease and associated reservations: sqlalchemy. exc.Operational Error: (MySQLdb. _exceptions. OperationalErro r) (1241, 'Operand should contain 1 column(s)')