Guest User

Untitled

a guest
Nov 21st, 2017
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. What Did I do ?
  2. ==================
  3. On openshift devstack environment,I tried to annotate twice the same object (service/LBaaSServiceSpec in my case , but it happened also with other objects)
  4. For a simple test I just added the following lines :
  5.  
  6. '
  7. org_prj_id = lbaas_spec.project_id
  8. lbaas_spec.project_id = 'dummy_value'
  9. self._set_lbaas_spec(service, lbaas_spec)
  10. '
  11. to :
  12. https://github.com/openstack/kuryr-kubernetes/blob/master/kuryr_kubernetes/controller/handlers/lbaas.py#L57
  13.  
  14.  
  15. Expected results
  16. ===================
  17. Annotation should be updated
  18.  
  19.  
  20. Actual Result:
  21. ==============
  22. Exception from K8s_client , 'Operation cannot be fulfilled ... the object has been modified'
  23.  
  24. The detailed exception :
  25. 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