oveits / ProvisioningEngine

Ruby on Rails based ProvisioningEngine Frontend for provisioning of legacy systems via Apache Camel Backend (SOAP/XML+SPML+File import)
3 stars 6 forks source link

Upon Customer de-provision request, ProvisioningEngine tries to de-provision an already de-provisioned site #53

Open oveits opened 8 years ago

oveits commented 8 years ago

When you have a customer with a site, and you 1) de-provision the site first, and 2) then try to de-provision the customer, the ProvisioningEngine tries to de-provision the already de-provisioned site again and reports the status "deletion failed (import errors)".

image

This leads to an inconsistent state showing a site that still exists (because the deletion has failed), but the parent customer is de-provisioned successfully.

image

TODO: 1) if an empty SoapMassProv import file is applied to the OSV, the ProvisioningEngine should not give back an Error. This will prevent the "deletion failed (import errors)" above. 2) After 1) is resolved, we also should try to detect immediately, that an object is de-provisioned and not to try to de-provision it again.

The best solution for 2) is to 2 a) synchronize recursively the actual status of the customer. Synchronization will detect that the Site is not provisioned anymore 2 b) and then rely on the non-provisioned status and skip the recursive de-provisioning of the child site.