Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move down more general rule #216

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lwronski
Copy link

Hello, I tried to deploy train-ticket using Istio-deplyoment, so I prepared the ansible cookbook:

- name: Clone train-ticket repo
   ansible.builtin.git:
     repo: 'https://github.com/FudanSELab/train-ticket.git'
     dest: train-ticket
     depth: 1

 - name: Deploy databases
   command: kubectl create -f train-ticket/deployment/kubernetes-manifests/k8s-with-istio/ts-deployment-part1.yml

 - name: Deploy services
   command: kubectl create -f train-ticket/deployment/kubernetes-manifests/k8s-with-istio/ts-deployment-part2.yml

 - name: Deploy UI
   command: kubectl create -f train-ticket/deployment/kubernetes-manifests/k8s-with-istio/ts-deployment-part3.yml

 - name: Install Istio
   command: istioctl install --skip-confirmation --set profile=demo

 - name: Create Istio gateway
   command: kubectl apply -f train-ticket/deployment/kubernetes-manifests/k8s-with-istio/trainticket-gateway.yaml 

It almost worked, but when I opened the admin panel and then changed the tab to the admin user panel, and in the browser I saw the following error:

Screenshot 2022-07-13 at 19 36 13

and in istio-ingressgateway container printed the following error logs:

[2022-07-13T19:29:34.762Z] "GET /api/v1/adminuserservice/users HTTP/1.1" 503 NC cluster_not_found - "-" 0 0 0 - "172.31.27.25" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36" "33713451-40a2-9566-b05e-341bd3352f07" "a7fd3a1ba915d490ba940626b00fc5c8-747781355.us-east-1.elb.amazonaws.com" "-" - - 172.31.19.161:8080 172.31.27.25:49655 - -

So I invested it and found the cause of the problem. I think there is a problem with the order of defined rules in trainticket-gateway.yaml.

The most general rule prefix: / is matched to request /api/v1/adminuserservice/users and istio redirect request to 16116 instead of 16115.

After reordering the rules, the problem no longer occurs and I can add a user in admin panel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant