Hi Cornelius,
Thanks for all your help lately!
Wanted to let you know of a bug we ran into.
If you attach a token to a machine twice, then try to detach it, you get this error:
(IntegrityError) (1451, 'Cannot delete or update a parent row: a foreign key constraint fails (`pi`.`machinetokenoptions`, CONSTRAINT `machinetokenoptions_ibfk_1` FOREIGN KEY (`machinetoken_id`) REFERENCES `machinetoken` (`id`))') 'DELETE FROM machinetoken WHERE machinetoken.token_id = %s AND machinetoken.machine_id = %s AND machinetoken.machineresolver_id = %s AND machinetoken.application = %s' (15L, 'CN=DWSLBASECP303,OU=Linux,OU=Servers NonProd,OU=Cloud,DC=xxxxx,DC=com', 1L, 'ssh')
This error occurred because of mistakes we made when we were first implementing the APIs (we use vRA and use Rest exclusively to add tokens and manage machines) - so its not something we expect to happen again, but that still leaves us with users that are permanently broken... and I have to imagine some other fool is going to make this mistake at some point in the future, it'd be best if the UI can just detach these tokens properly.