Opened 11 years ago

Closed 11 years ago

#1015 closed (fixed)

Log slice creator, email when creating ION slices

Reported by: Aaron Helsinger Owned by: xyang@maxgigapop.net
Priority: major Milestone:
Component: I2AM Version: SPIRAL5
Keywords: Cc: tlehman@maxgigapop.net, ckotil@grnoc.iu.edu
Dependencies:

Description

The ION AM should log more information locally when it creates circuits, to aid in local debugging and contacting people in case of problems:

  • Circuit ID
  • Slice URN
  • Slice creator URN
  • Slice creator email
  • Creation time

This should be logged to a file or DB, for easy access by local admins.

Note that in the SFA code, you can do get_urn() and get_email() on the certificate of the user. Given the slice credential, you do cred.gidCaller.get_urn() and cred.gidCaller.get_email().

Attachments (2)

sfa-2.0-9-patch-4.diff (3.8 KB) - added by xyang@maxgigapop.net 11 years ago.
sfa-2.0-9-patch-4.2.diff (3.8 KB) - added by xyang@maxgigapop.net 11 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 11 years ago by Aaron Helsinger

Also include any email address for the slice from the slice certificate. From a slice credential, do cred.gidObject.get_email()

comment:2 Changed 11 years ago by xyang@maxgigapop.net

Status: newassigned

In current version of SFA, GID has no get_email() method.

comment:4 Changed 11 years ago by xyang@maxgigapop.net

Patched SFA with new gid.py -- We are currently on sfa-2.0-9.

Now there will be new INFO line in sfa.log that looks like below.

2013-04-16 14:23:29,712 - INFO - NOCReport(CreateSliver): {CircuitID='ion.internet2.edu-13731',SliceURN='urn:publicid:IDN+emulab.net+slice+genistitching1',CreatorUrn='urn:publicid:IDN+emulab.net+user+xyang',CreatorEmail='xyang@emulab.net'}

Need to add sliceEmail. Need to support case that there are multiple circuits in single request.

Changed 11 years ago by xyang@maxgigapop.net

Attachment: sfa-2.0-9-patch-4.diff added

Changed 11 years ago by xyang@maxgigapop.net

Attachment: sfa-2.0-9-patch-4.2.diff added

comment:5 Changed 11 years ago by xyang@maxgigapop.net

Resolution: fixed
Status: assignedclosed

patch attached. (sfa-2.0-9-patch-4.2.diff)

Note: See TracTickets for help on using tickets.