Page MenuHomePhabricator

Instance 'delete' link doesn't always delete the ldap entry for an instance
Closed, ResolvedPublic

Description

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.


Version: unspecified
Severity: normal

Details

Reference
bz58717

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:37 AM
bzimport set Reference to bz58717.
bzimport added a subscriber: Unknown Object (MLST).

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