Closed displague closed 3 years ago
What should happen if the attachment is being created (not deleted) and the observation shows that the device / port has been deleted?
What should happen if the attachment is being created (not deleted) and the observation shows that the device / port has been deleted?
If I understand this scenario correctly, it should block and report error. If instead of creating in the device in the UI, it was created in Crossplane, we would fail to resolve references.
What happened?
A metal device was deleted before the VLAN Attachment resource was deleted. This resulted in 404s when looking up the device port. If this is ever encountered, it means that the port is no longer in use. We can treat this as a successful port/vlan unassignment.
Here's an example snippet of how the 404 case is handled today:
A similar situation may be encountered if the port has been reassigned to a different user, in which case a 403 may be returned.
How can we reproduce it?
What environment did it happen in?
Crossplane version: 1.22 EM Provider: 0.0.8