Last modified: 2014-03-20 05:04:05 UTC
The javascript api calls 'deleteInstance' on the instance object but skips the other steps that would otherwise be done in tryDeleteSubmit. This means we're leaking ldap host records.
Probably I should audit all of the API calls for similar problems.
Well.. I can't reproduce this today.
And now I can again. It's intermittent, the ldap delete is sometimes failing without explanation. The good news, we are at least /trying/ to do the ldap delete in all cases. Well... maybe that's bad news.
It is intermittent. When it fails, the opendj log looks like this: DELETE RES conn=2907494 op=3 msgID=4 result=50 message="The entry dc=i-0000019f.eqiad.wmflabs,ou=hosts,dc=wikimedia,dc=org cannot be deleted due to insufficient access rights" etime=0
This should be fixed by: https://gerrit.wikimedia.org/r/119537 https://gerrit.wikimedia.org/r/119694 https://gerrit.wikimedia.org/r/119698