Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- What Did I do ?
- ==================
- On openshift devstack environment,I tried to annotate twice the same object (service/LBaaSServiceSpec in my case , but it happened also with other objects)
- For a simple test I just added the following lines :
- '
- org_prj_id = lbaas_spec.project_id
- lbaas_spec.project_id = 'dummy_value'
- self._set_lbaas_spec(service, lbaas_spec)
- '
- to :
- https://github.com/openstack/kuryr-kubernetes/blob/master/kuryr_kubernetes/controller/handlers/lbaas.py#L57
- Expected results
- ===================
- Annotation should be updated
- Actual Result:
- ==============
- Exception from K8s_client , 'Operation cannot be fulfilled ... the object has been modified'
- The detailed exception :
- Nov 21 14:18:33 rfghghfh python[1163]: 2017-11-21 14:18:33.523 1163 ERROR kuryr_kubernetes.handlers.logging K8sClientException: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"Operation cannot be fulfilled on services \"kuryr-demo444\": the object has been modified; please apply your changes to the latest version and try again","reason":"Conflict","details":{"name":"kuryr-demo444","kind":"services"},"code":409}
Add Comment
Please, Sign In to add comment