Expected runtime Behavior if CNI ADD call fails

39 views
Skip to first unread message

Aggarwal Sre

unread,
Jul 1, 2020, 11:06:22 PM7/1/20
to cni-dev
Hi CNI Dev,

I want to ask if there is an expectation on the container runtime with regards to calling CNI DEL, if CNI ADD fails for some reason.

As per this:


The container runtime must order ADD and DEL operations for a container, such that ADD is always eventually followed by a corresponding DEL. DEL may be followed by additional DELs but plugins should handle multiple DELs permissively (i.e. plugin DEL should be idempotent).


-- 
Regards,
Vivek Aggarwal

Aggarwal Sre

unread,
Jul 8, 2020, 11:21:24 AM7/8/20
to cni-dev
Ping. I would really appreciate a guidance on this. 

Aggarwal Sre

unread,
Jul 8, 2020, 11:22:48 AM7/8/20
to cni-dev
Ping, I would appreciate, if could confirm the guidance on this

--
You received this message because you are subscribed to a topic in the Google Groups "cni-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cni-dev/mQKZMnnMtzY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cni-dev+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cni-dev/03625a4f-d1f0-44cb-8d54-53f09e889b9bn%40googlegroups.com.

br...@weave.works

unread,
Jul 8, 2020, 12:24:54 PM7/8/20
to cni-dev
I answered on the issue:  https://github.com/containernetworking/cni/issues/775, but I will reproduce here:

Interesting question. My first instinct was to say "no".

However it is specified that DEL must be called for a list, and I would expect the single-plugin case to behave the same as a list of 1. So that makes it "yes".


Reply all
Reply to author
Forward
0 new messages