After adding a backendRef in httproute, gateway api controller fails to create a listener.
- backendRefs:
- group: ""
kind: Service
name: front-end-primary
port: 80
weight: 100
- group: ""
kind: Service
name: front-end
port: 80
weight: 0
matches:
- path:
type: PathPrefix
value: /
2023-02-19T03:04:08.709Z INFO controller.httproute Adding/Updating {"reconciler group": "gateway.networking.k8s.io", "reconciler kind": "HTTPRoute", "name": "front-end", "namespace": "default"}
I0219 03:04:08.709589 1 model_build_lattice_service.go:135] No customter-domain-name for httproute :front-end-default
2023-02-19T03:04:08.709Z INFO controller.httproute Successfully built model: {"reconciler group": "gateway.networking.k8s.io", "reconciler kind": "HTTPRoute", "name": "front-end", "namespace": "default", "{\"id\":\"default/front-end\",\"resources\":{\"AWS::VPCServiceNetwork::Listener\":{\"front-end-default-0-HTTP\":{\"spec\":{\"name\":\"front-end\",\"namespace\":\"default\",\"port\":0,\"protocol\":\"HTTP\",\"defaultaction\":{\"isimport\":false,\"backendservicename\":\"front-end-primary\",\"backendservicenamespace\":\"default\"}}}},\"AWS::VPCServiceNetwork::Rule\":{\"rule-1\":{\"spec\":{\"name\":\"front-end\",\"namespace\":\"default\",\"port\":0,\"protocol\":\"HTTP\",\"ruletype\":\"HTTPRouteMatch\",\"value\":\"/\",\"id\":\"rule-1\",\"action\":{\"ruletarget\":[{\"name\":\"front-end-primary\",\"namespace\":\"default\",\"isServiceImport\":false,\"weight\":100},{\"name\":\"front-end\",\"namespace\":\"default\",\"isServiceImport\":false,\"weight\":0}]},\"time\":\"2023-02-19T03:04:08.709658968Z\"}}},\"AWS::VPCServiceNetwork::Service\":{\"front-end-default\":{\"spec\":{\"name\":\"front-end\",\"namespace\":\"default\",\"protocols\":[\"HTTP\"],\"servicenetworkhname\":\"sock-shop\",\"customerdomainname\":\"\",\"customercertarn\":\"\",\"IsDeleted\":false}}},\"AWS:VPCServiceNetwork::TargetGroup\":{\"k8s-front-end-default\":{\"spec\":{\"Name\":\"k8s-front-end-default\",\"config\":{\"port\":8079,\"protocol\":\"HTTP\",\"protocolversion\":\"HTTP1\",\"vpcid\":\"vpc-07075f78eb0d17c18\",\"eksclustername\":\"\",\"serviceimport\":false,\"serviceexport\":false,\"k8sservice\":\"front-end\",\"k8sservicenamespace\":\"default\",\"k8shttproutename\":\"front-end\",\"k8shttproutenamespace\":\"default\"},\"Type\":\"IP\",\"IsDeleted\":false,\"LatticeID\":\"\"}},\"k8s-front-end-primary-default\":{\"spec\":{\"Name\":\"k8s-front-end-primary-default\",\"config\":{\"port\":8079,\"protocol\":\"HTTP\",\"protocolversion\":\"HTTP1\",\"vpcid\":\"vpc-07075f78eb0d17c18\",\"eksclustername\":\"\",\"serviceimport\":false,\"serviceexport\":false,\"k8sservice\":\"front-end-primary\",\"k8sservicenamespace\":\"default\",\"k8shttproutename\":\"front-end\",\"k8shttproutenamespace\":\"default\"},\"Type\":\"IP\",\"IsDeleted\":false,\"LatticeID\":\"\"}}},\"AWS:VPCServiceNetwork::Targets\":{\"k8s-front-end-default\":{\"spec\":{\"name\":\"front-end\",\"namespace\":\"default\",\"targetgroupID\":\"\",\"targetIPlist\":[{\"targetID\":\"192.168.31.160\",\"port\":8079}]}},\"k8s-front-end-primary-default\":{\"spec\":{\"name\":\"front-end-primary\",\"namespace\":\"default\",\"targetgroupID\":\"\",\"targetIPlist\":[{\"targetID\":\"192.168.31.160\",\"port\":8079}]}}}}}": ""}
2023-02-19T03:04:08.709Z DEBUG events Normal {"object": {"kind":"HTTPRoute","namespace":"default","name":"front-end","uid":"8d487b60-9377-4c96-9a43-0db7860d9b21","apiVersion":"gateway.networking.k8s.io/v1alpha2","resourceVersion":"17100571"}, "reason": "Reconcile", "message": "Adding/Updating Reconcile"}
E0219 03:04:10.500588 1 request.go:539] Failed request: VpcLattice/CreateListener, Payload: { DefaultAction: { Forward: { TargetGroups: [{ TargetGroupIdentifier: "tg-0ece3379e72118857", Weight: 1 }] } }, Name: "front-end-default-0-http", Port: 0, Protocol: "HTTP", ServiceIdentifier: "svc-044e0973b656236c3"}, Error: InvalidParameter: 1 validation error(s) found.
- minimum field value of 1, CreateListenerInput.Port.
I0219 03:04:10.500611 1 listener_manager.go:100] ############req creating listner ###########
I0219 03:04:10.500619 1 listener_manager.go:101] {
DefaultAction: {
Forward: {
TargetGroups: [{
TargetGroupIdentifier: "tg-0ece3379e72118857",
Weight: 1
}]
}
},
Name: "front-end-default-0-http",
Port: 0,
Protocol: "HTTP",
ServiceIdentifier: "svc-044e0973b656236c3"
}
I0219 03:04:10.500862 1 listener_manager.go:102] ############resp creating listner ###########
I0219 03:04:10.500869 1 listener_manager.go:103] create listener err :InvalidParameter: 1 validation error(s) found.
- minimum field value of 1, CreateListenerInput.Port.
I0219 03:04:10.500881 1 listener_manager.go:104] {
}
E0219 03:04:10.550989 1 request.go:539] Failed request: VpcLattice/ListRules, Payload: { ListenerIdentifier: "", ServiceIdentifier: "svc-044e0973b656236c3"}, Error: InvalidParameter: 1 validation error(s) found.
- minimum field size of 20, ListRulesInput.ListenerIdentifier.
E0219 03:04:10.551087 1 request.go:539] Failed request: VpcLattice/CreateRule, Payload: { Action: { Forward: { TargetGroups: [{ TargetGroupIdentifier: "tg-0ece3379e72118857", Weight: 100 },{ TargetGroupIdentifier: "tg-042eec348e3608dfd", Weight: 0 }] } }, ListenerIdentifier: "", Match: { HttpMatch: { PathMatch: { Match: { Prefix: "/" } } } }, Name: "k8s-1676775848-rule-1", Priority: 0, ServiceIdentifier: "svc-044e0973b656236c3"}, Error: InvalidParameter: 2 validation error(s) found.
- minimum field size of 20, CreateRuleInput.ListenerIdentifier.
- minimum field value of 1, CreateRuleInput.Priority.
I0219 03:04:10.551105 1 rule_manager.go:270] ############req creating rule ###########
I0219 03:04:10.551114 1 rule_manager.go:271] {
Action: {
Forward: {
TargetGroups: [{
TargetGroupIdentifier: "tg-0ece3379e72118857",
Weight: 100
},{
TargetGroupIdentifier: "tg-042eec348e3608dfd",
Weight: 0
}]
}
},
ListenerIdentifier: "",
Match: {
HttpMatch: {
PathMatch: {
Match: {
Prefix: "/"
}
}
}
},
Name: "k8s-1676775848-rule-1",
Priority: 0,
ServiceIdentifier: "svc-044e0973b656236c3"
}
I0219 03:04:10.551170 1 rule_manager.go:272] ############resp creating rule ###########, err: InvalidParameter: 2 validation error(s) found.
- minimum field size of 20, CreateRuleInput.ListenerIdentifier.
- minimum field value of 1, CreateRuleInput.Priority.
I0219 03:04:10.551187 1 rule_manager.go:273] {
}
2023-02-19T03:04:10.551Z DEBUG events Normal {"object": {"kind":"HTTPRoute","namespace":"default","name":"front-end","uid":"8d487b60-9377-4c96-9a43-0db7860d9b21","apiVersion":"gateway.networking.k8s.io/v1alpha2","resourceVersion":"17100571"}, "reason": "Retry-Reconcile", "message": "retry reconcile..."}