GENI-NSF / geni-tools

Omni, stitcher, GCF sample aggregate manager, and other GENI tools.
Other
11 stars 15 forks source link

Improve Sliverstatus and listresources errors when no resources #379

Open innnkkki opened 9 years ago

innnkkki commented 9 years ago

When a slice has no resources omni returns back an error: "Failed to get SliverStatus on ipv4nr ..."

Since the error code is the same predictable across AMs, maybe the output can be more user friendly like in the portal.

Imported from trac ticket #379, created by nriga on 09-20-2013 at 10:27, last modified: 10-18-2014 at 11:52

ahelsing commented 9 years ago

Sample error messages at different aggregates. Note 2 different error codes, where '2' is a generic error.

Failed to get SliverStatus on ahtest at AM utah-ig: Error from Aggregate: code 12. protogeni AM code: 12: No slice or aggregate here (PG log url - look here for details on any failures: https://boss.utah.geniracks.net/spewlogfile.php3?logfile=19b1e703389f773ec2b4154de5d98eab).

Failed to get SliverStatus on ahtest at AM plc: Error from Aggregate: code 2. sfa AM code: 2: : SliverStatus: Sliver does not exist : ch\.geni\.net.ahscaletest.ahtest (used ahscaletest_ahtest as slicename internally).

Failed to get SliverStatus on ahtest at AM ion: Error from Aggregate: code 12. sfa AM code: 12: : SliverStatus: Non existing record urn:publicid:IDN+ch.geni.net:ahscaletest+slice+ahtest, .

Failed to get SliverStatus on ahtest at AM ig-of-utah: Error from Aggregate: code 12: Attempt to get status on unknown sliver for slice urn:publicid:IDN+ch.geni.net:ahscaletest+slice+ahtest.

Failed to get SliverStatus on ahtest at AM gpo-eg: Error from Aggregate: code 2: ERROR: unable to get slice status for urn:publicid:IDN+ch.geni.net:ahscaletest+slice+ahtest.

Then for listresources:

No resources from AM utah-ig: . No resources from AM ion: . No resources from AM ig-of-utah: . No resources from AM gpo-eg:  (Error from Aggregate: code 2: Invalid slice urn urn:publicid:IDN+ch.geni.net:ahscaletest+slice+ahtest.) (Error from Aggregate: code 2: Attempt to list resources on sliver for unknown slice urn:publicid:IDN+ch.geni.net:ahscaletest+slice+ahtest.) (Error from Aggregate: code 12. protogeni AM code: 12: Nothing here by that name (PG log url - look here for details on any failures: https://boss.utah.geniracks.net/spewlogfile.php3?logfile=3f1d9ab677399419c257e4b4cffb9b4b).) (Error from Aggregate: code 12. sfa AM code: 12: : ListResources: Non existing record urn:publicid:IDN+ch.geni.net:ahscaletest+slice+ahtest, .) 

Trac comment by ahelsing on 04-02-2014 at 13:27

ahelsing commented 9 years ago

If the error messages are consistent by AM type, then Omni could change 'Failed to get...' into 'No reservation at ... in slice ...' or some such. That would require moving the stitcher utility to detect am type into omni (but simplifying it), and then adding this relevant logic.

Trac comment by ahelsing on 06-20-2014 at 16:08