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

bug: Unable to completely delete upstream data in ETCD #2292

Open
wxqmail opened this issue Sep 4, 2024 · 7 comments
Open

bug: Unable to completely delete upstream data in ETCD #2292

wxqmail opened this issue Sep 4, 2024 · 7 comments

Comments

@wxqmail
Copy link

wxqmail commented Sep 4, 2024

Current Behavior

I created an apisixRoute, and when I tried to delete it, I found that the data in ETCD was not deleted.

deployment.yaml

apiVersion: apps/v1
kind: Deployment
metadata:
name: testhttpbin
labels:
app: testhttpbin
spec:
replicas: 2
selector:
matchLabels:
app: testhttpbin
template:
metadata:
labels:
app: testhttpbin
spec:
containers:
- name: testhttpbin
image: reg.sprucetec.com/apptest/echo-server
ports:
- containerPort: 80
- containerPort: 8089


apiVersion: v1
kind: Service
metadata:
name: testhttpbin
spec:
selector:
app: testhttpbin
ports:
- protocol: TCP
port: 80
targetPort: 80
name: http
- protocol: TCP
port: 8089
targetPort: 8089
name: http-test


apiVersion: v1
kind: Service
metadata:
name: testhttpbin-preview
spec:
selector:
app: testhttpbin
ports:
- protocol: TCP
port: 80
targetPort: 80
name: http
- protocol: TCP
port: 8089
targetPort: 8089
name:


apiVersion: apisix.apache.org/v2beta3
kind: ApisixRoute
metadata:
name: testhttpserver-route
spec:
http:

  • name: testhttpbin
    match:
    hosts:

    • local.httpbin.org
      paths:
    • /*
      backends:
    • serviceName: testhttpbin
      servicePort: 80
    • resolveGranularity: service
      serviceName: testhttpbin
      servicePort: 80
  • name: testhttpbin8089
    match:
    hosts:

    • local.httpbin.org
      paths:
    • /8089*
      backends:
    • serviceName: testhttpbin
      servicePort: 8089
    • resolveGranularity: service
      serviceName: testhttpbin
      servicePort: 8089

Expected Behavior

I executed kubectl delete apisixRoute testhttpserver-route, and it has been deleted from Kubernetes, but checking ETCD still shows that the data exists.
20240904-175754

Error Logs

No response

Steps to Reproduce

1、 kubectl apply -f deployment.yaml
2、 kubectl delete apisixRoute testhttpserver-route

Environment

  • APISIX Ingress controller version (run apisix-ingress-controller version --long)
  • Kubernetes cluster version (run kubectl version)
  • OS version if running APISIX Ingress controller in a bare-metal environment (run uname -a)
@fzj55
Copy link

fzj55 commented Sep 6, 2024

1.Does the controller log say anything?2.What is the controller version?

@wxqmail
Copy link
Author

wxqmail commented Sep 6, 2024

1.Does the controller log say anything?2.What is the controller version?

apisix :2.15
controller : 1.8.0
error logs : failed to get upstream default_ testhttpbin_80: not foun

@fzj55
Copy link

fzj55 commented Sep 6, 2024 via email

@fzj55
Copy link

fzj55 commented Sep 6, 2024

If this is just a demo, it is recommended to upgrade apisix . Ingress1.8 which should correspond to apisix3.0+

@wxqmail
Copy link
Author

wxqmail commented Sep 6, 2024

If this is just a demo, it is recommended to upgrade apisix . Ingress1.8 which should correspond to apisix3.0+

已经投入生产, 运行了有几个月的时间了

Copy link

github-actions bot commented Dec 6, 2024

This issue has been marked as stale due to 90 days of inactivity. It will be closed in 30 days if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the [email protected] list. Thank you for your contributions.

@github-actions github-actions bot added the stale label Dec 6, 2024
@fzj55
Copy link

fzj55 commented Dec 6, 2024 via email

@github-actions github-actions bot removed the stale label Dec 7, 2024
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

No branches or pull requests

2 participants