Previously, the Claim class offered #test which would return a Boolean
based on availability of memory, disk, CPU and PCI devices.
Now these tests are performed from the constructor and if any test
fails, an exception is thrown. All failure reasons are described in the
exception message. EG:
Reviewed: https:/ /review. openstack. org/61359 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=105d99d4f52 fa849e80829dad3 ed12b116820118
Committed: https:/
Submitter: Jenkins
Branch: master
commit 105d99d4f52fa84 9e80829dad3ed12 b116820118
Author: jichen <email address hidden>
Date: Wed Dec 11 11:06:26 2013 -0500
When a claim is rejected, explain why
Previously, the Claim class offered #test which would return a Boolean
based on availability of memory, disk, CPU and PCI devices.
Now these tests are performed from the constructor and if any test
fails, an exception is thrown. All failure reasons are described in the
exception message. EG:
"Insufficient compute resources: Free memory 8192.00 MB <
requested 16384 MB; Free disk 45.00 GB < requested 50 GB; Free CPUs
16.00 VCPUs < requested 17 VCPUs."
Change-Id: I5bf9c81bba747a 6c164144e60a92d c6da2f98f4c
Closes-Bug: #1212768