Opened 12 years ago
Last modified 11 years ago
#118 new
Improve error message when SM does not have the requested resources
Reported by: | ahelsing@bbn.com | Owned by: | somebody |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | AM | Version: | SPIRAL4 |
Keywords: | Cc: | lnevers@bbn.com | |
Dependencies: |
Description
When you ask an SM for a resource it doesn't have, the error message is at best confusing. Fix the error message.
For example:
Ask local SM for bare metal (bare metal only available via ExoSM):
Error reported: ERROR: Exception encountered: java.lang.RuntimeException?: Missing reservation from domain http://geni-orca.renci.org/owl/f59e55dd-9abf-413a-85a4-9f8d9de5e3c4#BT.
Change History (4)
comment:1 Changed 12 years ago by
comment:2 Changed 12 years ago by
Cc: | lnevers@bbn.com added |
---|
comment:3 Changed 11 years ago by
Another examples of different error returned for unavailable bare metal is captured in ticket #136, which is being closed as a duplicate of this ticket.
comment:4 Changed 11 years ago by
Checking the error message returned when resources are requested that are not available, such as requesting a bare metal node from the local SM.
When the ticket was originally written, the request would generate the following error response:
Error reported: ERROR: Exception encountered: java.lang.RuntimeException?: Missing reservation from domain http://geni-orca.renci.org/owl/f59e55dd-9abf-413a-85a4-9f8d9de5e3c4#BT.
The current error reports less information than the original error, and does not even include the bare metal resource as part of the error.
Error from Aggregate: code 2: ERROR: Exception encountered: java.lang.NullPointerException.
Suggested error message:
ERROR: Exception encountered: This AM may not have the requested resource. Try the ExoSM aggregate <insert URL here>. (java.lang.RuntimeException?: Missing reservation from domain http://geni-orca.renci.org/owl/f59e55dd-9abf-413a-85a4-9f8d9de5e3c4#BT).