Open utsavanand2 opened 4 years ago
Derek add label: help-wanted
@carlosedp cc
What do you have on that line?
I believe replacing:
defaultInterface := gocni.DefaultPrefix + "0"
ip := &result.Interfaces[defaultInterface].IPConfigs[0].IP
With:
ip, ipErr := getIP(DefaultBridgeName, int(task.Pid()))
if ipErr != nil {
serviceMap.Add(name, ip)
serviceMap.Update()
}
Might fix this, I'd like to know more about this.
@utsavanand2 can you list your interfaces with ip link
?
I added this patch to fix some of the error conditions. https://github.com/alexellis/faas-containerd/commit/b00ddadd6ef6d174d2b19dacb5d00667109d2f38
Fixed by #26. Can you retest @utsavanand2 ?
Sure @carlosedp 😄
Expected Behaviour
I shoud be able to deploy my function with faas-cli
Current Behaviour
faas-containerd is crashing with an index out of range error
Steps to Reproduce (for bugs)
Followed the steps in the README.md
Your Environment
OS and architecture: Ubuntu 18.04
Versions: