Forum Discussion

mhite_60883's avatar
mhite_60883
Icon for Cirrocumulus rankCirrocumulus
Jan 24, 2012

iControl error codes

Is there a central list of iControl error codes? I'd like to be able to catch them and examine the suds exception details to handle specific error conditions in my code.

 

 

ie. primary_error_code and secondary_error_code

 

 

Server raised fault: 'Exception caught in LocalLB::urn:iControl:LocalLB/Pool::add_member_v2()

 

Exception: Common::OperationFailed

 

primary_error_code : 16908390 (0x01020066)

 

secondary_error_code : 0

 

error_string : 01020066:3: The requested pool member (/test/test-pool /test/1.1.1.23 80) already exists in partition test.'

 

 

6 Replies

  • Good question mhite...

     

    I'm also utilizing the iControl:LocalLB/Pool area of the iControl API today (using Perl), so I took a look around in the API documentation. Not finding it...but I could've sworn I've seen it somewhere...

     

  • In the iControl Wiki area I found:

     

     

    http://devcentral.f5.com/wiki/iControl.AllPages.aspx?Cat=iControl.EXCEPTION

     

     

    This could be the answer...
  • Yeah, those appear to be the general Exception types, ie. operation failed, or authentication failed, etc. But not specific enough to take general action. IE. If I add a member to a pool, it's not a fatal error if the member already exists in the pool. It is fatal, however, if some other exception occurs during the attempt. The text in the exception provides the appropriate level of detail to figure this out. Just wondering if the number codes were ever published to we can handle this somewhat elegantly...

     

  • The error codes are actually from MCP and would be seen regardless of how the error was triggered (iControl, GUI, tmsh, etc). You can search for many errors on AskF5. But I think it would make a great feature request to have a searchable database of all error codes which includes:

     

     

    Alert ID, alert text, description, possible resolution steps

     

     

    If you'd like to see this added to AskF5, iHealth and/or Enterprise Manager please open a case with F5 Support. If you do this and get an RFE ID, can you reply back to this post with the ID so others can reference it?

     

     

    Thanks, Aaron
  • I would love this. Today, I parse the text of exceptions to figure out how to deal with them.

     

    • hooleylist's avatar
      hooleylist
      Icon for Cirrostratus rankCirrostratus
      It would be a lot of work to do, so please do open cases to request this. The more requests received, the more attention it will get. Thanks, Aaron