aws-load-balancer-controller: Failed TargetGroup creation. There are multiple interfaces attached to instance
Hello! While following the walkthrough, I experienced this. I’m using EKS, which was configured with eksctl. There are 2 m5.large, and they each have Network interfaces [eth0, eth1] by default.
$ kubectl --kubeconfig=kubeconfig version
Client Version: version.Info{Major:"1", Minor:"11", GitVersion:"v1.11.0", GitCommit:"91e7b4fd31fcd3d5f436da26c980becec37ceefe", GitTreeState:"clean", BuildDate:"2018-06-27T22:29:25Z", GoVersion:"go1.10.3", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.3", GitCommit:"2bba0127d85d5a46ab4b778548be28623b32d0b0", GitTreeState:"clean", BuildDate:"2018-05-28T20:13:43Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"linux/amd64"}
$ kubectl --kubeconfig=kubeconfig apply -f ./eks/echoserver-ingress.yaml
$ kubectl --kubeconfig=kubeconfig logs -n kube-system $(kubectl --kubeconfig=kubeconfig get po -n kube-system | egrep -o alb-ingress[a-zA-Z0-9-]+) | grep 'echoserver\/echoserver'
I0814 03:36:35.831566 1 loadbalancer.go:265] echoserver/echoserver: Start ELBV2 creation.
I0814 03:36:37.552276 1 loadbalancer.go:272] echoserver/echoserver: Completed ELBV2 creation. Name: 4d480b86-echoserver-echose-2ad7 | ARN: arn:aws:elasticloadbalancing:us-west-2:439375644179:loadbalancer/app/4d480b86-echoserver-echose-2ad7/e1b6a0b1a9e5a3b8
I0814 03:36:37.552292 1 targetgroup.go:221] echoserver/echoserver: Start TargetGroup creation.
I0814 03:36:37.978456 1 listener.go:195] echoserver/echoserver: Start Listener creation.
I0814 03:36:38.001404 1 listener.go:200] echoserver/echoserver: Completed Listener creation. ARN: arn:aws:elasticloadbalancing:us-west-2:439375644179:listener/app/4d480b86-echoserver-echose-2ad7/e1b6a0b1a9e5a3b8/30515f4c8b0c530e | Port: 80 | Proto: HTTP.
I0814 03:36:38.001422 1 rule.go:149] echoserver/echoserver: Start Rule creation.
I0814 03:36:38.036276 1 rule.go:154] echoserver/echoserver: Completed Rule creation. Rule Priority: "1" | Condition: [{ Field: "host-header", Values: ["*.nonprod.smartbizloans.com"] },{ Field: "path-pattern", Values: ["/"] }]
I0814 03:36:38.036456 1 targetgroup.go:342] echoserver/echoserver: Modifying target group targets. Adding (i-08358285745c58e50:32696, i-08b35c3293a9d280b:32696) and removing ()
E0814 03:36:38.265182 1 albingress.go:308] echoserver/echoserver: Failed to reconcile state on this ingress
E0814 03:36:38.265198 1 albingress.go:310] echoserver/echoserver: - Failed TargetGroup creation. Unable to register targets: InvalidInstanceID: There are multiple interfaces attached to instance 'i-08358285745c58e50'. Please specify an interface ID for the operation instead.
E0814 03:36:38.265203 1 albingress.go:310] echoserver/echoserver: status code: 400, request id: 4e709d95-3449-4446-8371-51123840e37b.
E0814 03:36:38.265258 1 albingress.go:310] echoserver/echoserver: - Failed TargetGroup modification. Unable to add targets: InvalidInstanceID: There are multiple interfaces attached to instance 'i-08358285745c58e50'. Please specify an interface ID for the operation instead.
E0814 03:36:38.265262 1 albingress.go:310] echoserver/echoserver: status code: 400, request id: 3bfe0010-00ff-47d4-ae5e-cc623cbbde66
E0814 03:36:38.265275 1 albingress.go:313] echoserver/echoserver: Will retry to reconcile in 497.98192ms
I0814 03:36:41.008047 1 loadbalancer.go:511] echoserver/echoserver: Modifying ELBV2 tags to [{ Key: "kubernetes.io/cluster/qa", Value: "owned" },{ Key: "kubernetes.io/ingress-name", Value: "echoserver" },{ Key: "kubernetes.io/namespace", Value: "echoserver" }].
I0814 03:36:41.027451 1 targetgroup.go:342] echoserver/echoserver: Modifying target group targets. Adding (i-08358285745c58e50:32696, i-08b35c3293a9d280b:32696) and removing ()
I0814 03:36:41.267818 1 targetgroup.go:342] echoserver/echoserver: Modifying target group targets. Adding (i-08358285745c58e50:32696, i-08b35c3293a9d280b:32696) and removing ()
E0814 03:36:41.505993 1 albingress.go:308] echoserver/echoserver: Failed to reconcile state on this ingress
E0814 03:36:41.506010 1 albingress.go:310] echoserver/echoserver: - Failed TargetGroup modification. Unable to add targets: InvalidInstanceID: There are multiple interfaces attached to instance 'i-08358285745c58e50'. Please specify an interface ID for the operation instead.
E0814 03:36:41.506015 1 albingress.go:310] echoserver/echoserver: status code: 400, request id: af98f17e-a122-47ff-97ea-f7c5bebf5c57
E0814 03:36:41.506020 1 albingress.go:310] echoserver/echoserver: - Failed TargetGroup modification. Unable to add targets: InvalidInstanceID: There are multiple interfaces attached to instance 'i-08358285745c58e50'. Please specify an interface ID for the operation instead.
E0814 03:36:41.506026 1 albingress.go:310] echoserver/echoserver: status code: 400, request id: ea5ca280-c9c1-4a8a-9ca7-69797a411113
E0814 03:36:41.506037 1 albingress.go:313] echoserver/echoserver: Will retry to reconcile in 993.851678ms
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 17 (8 by maintainers)
That’s a fair point. I’ll mess with kube2iam another day, but for now, pasting that json into a custom policy did the trick for me. Thanks so much for your help!