-
Bug
-
Resolution: Done
-
Major
-
2.14.0 GA
-
2
-
False
-
None
-
False
-
Not Started
-
Not Started
-
Not Started
-
Not Started
-
Not Started
-
Not Started
-
-
-
-
RHOAM Sprint 54
Current behavior
When deleting 2 objects from the Product CR yaml file at the same time:
- a mapping rule
- a method which is bound to the mapping rule and it is not used by other mapping rules
the Product fails to sync with the following error:
ask failed SyncMethods: Error sync product methods [apitest]: product [apitest] delete method: error calling 3scale system - reason: {"errors":{"base":["Method is used by the latest gateway configuration and cannot be deleted"]}} - code: 403
It seems the operator is trying to delete the method before the mapping rule and therefore results in an error.
- If you delete the mapping rule and leave the method in the Product CR, the sync is OK.
- If you delete the method and leave the mapping rule, the sync fails with the error: mappingrule does not have valid metric or method reference.
- However if you delete both objects mapping rule and method at the same time from the yaml file, there is a conflict. The operator should delete first the mapping rule and then the method.
Expected behavior
The user should be able to delete both objects at once from the Product CR and the operator perform the delete operations with the correct order (delete mapping rule first).
- is cloned by
-
THREESCALE-11273 The operator doesn't delete the objects in the correct order
- Closed
-
THREESCALE-11274 The operator doesn't delete the objects in the correct order
- Closed
- links to
-
RHEA-2024:129555 Release of 3scale-operator 0.12.1mas for RHOAM - Containers