canary split is not working if a separate ingress is going to the same canary service. #6230
Labels
kind/bug
Categorizes issue or PR as related to a bug.
lifecycle/rotten
Denotes an issue or PR that has aged beyond stale and will be auto-closed.
NGINX Ingress controller version: nginx version 2.11.2 (ingress-nginx-2.11.2)
Kubernetes version (use kubectl version):
$ kubectl version
Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.6", GitCommit:"dff82dc0de47299ab66c83c626e08b245ab19037", GitTreeState:"clean", BuildDate:"2020-07-15T16:58:53Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"16", GitVersion:"v1.16.8", GitCommit:"ec6eb119b81be488b030e849b9e64fda4caaf33c", GitTreeState:"clean", BuildDate:"2020-03-12T20:52:22Z", GoVersion:"go1.13.8", Compiler:"gc", Platform:"linux/amd64"}
Environment:
Cloud provider or hardware configuration: aws
OS (e.g. from /etc/os-release): PRETTY_NAME="Ubuntu 16.04.7 LTS"
Kernel (e.g. uname -a): Linux ip-10-93-160-95 4.15.0-115-generic #116~16.04.1-Ubuntu SMP Wed Aug 26 17:36:48 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Install tools:
Others:
What happened:
Assuming a spilt ingress of 50%. canary split is not work if a separate ingress is going to the same canary service.
Please include exact error messages if you can: seen this in the logs perhaps related
I0924 21:09:09.335721 7 controller.go:1074] Ingress ieng-training/canary-verification-split is marked as Canary, ignoring
What you expected to happen: Traffic splits 50%
What do you think went wrong?:
bug
How to reproduce it:
backendService1: canary-verification (responds with "I am primary" on port 443 @ /v1/resource)
backendService2: canary-canary-verification (responds with I am canary" on port 443 @ /v1/resource)
apply the there ingresses I attached
use a debugPod in the cluster to curl -kI https://canary-verification.xxx.net/v1/resource
observe no split. (only "i am primary" returns)
delete resource canary-verification-canary.ingress.yaml (or edit resource canary-verification-canary.ingress.yaml L 17 to be serviceName: canary-verification-canary-non-existant)
observe split starts working ("i am primary"/"i am canary")
canary-verification-split.ingress.txt
canary-verification.ingress.txt
canary-verification-canary.ingress.txt
The text was updated successfully, but these errors were encountered: