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

Cannot see the iptables EDGE-MESH chain on centos8 #30

Closed
Poorunga opened this issue Aug 12, 2021 · 4 comments
Closed

Cannot see the iptables EDGE-MESH chain on centos8 #30

Poorunga opened this issue Aug 12, 2021 · 4 comments
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@Poorunga
Copy link
Member

Poorunga commented Aug 12, 2021

What happened:

When edgemesh-agent is running on the centos8 system, we cannot see the EDGE-MESH chain through the command:

iptables -t nat -nvL | grep EDGE-MESH

However, we can see the EDGE-MESH chain on the ubuntu 18.04 system.

PS:
what kind iptables centos8 use: iptables v1.8.2 (nf_tables)
what kind iptables ubuntu18.04 use: iptables v1.6.1 (legacy)

What you expected to happen:

No matter which system the edgemesh-agent is running on, you can use the iptables command to see the EDGE-MESH chain on the host.

Anything else we need to know?:

I found that there are two types of iptables: iptables-legacy and iptables-nft. The iptables chain and rules cannot be shared between the two, so the chain and rules created with iptables(legacy) cannot be seen in iptables(nf_tables).
Kube-Proxy also had the same problem, and k8s officially gave a repair plan, you can refer to: kubernetes/kubernetes#82966

Environment:

  • EdgeMesh version: v1.7.1
  • Kubernetes version (use kubectl version): v1.18.2
  • KubeEdge version(e.g. cloudcore --version and edgecore --version): v1.7.1
@Poorunga Poorunga added the kind/bug Categorizes issue or PR as related to a bug. label Aug 12, 2021
@Poorunga
Copy link
Member Author

/assign

@Poorunga
Copy link
Member Author

Poorunga commented Mar 2, 2022

fix in PR #316

@Poorunga
Copy link
Member Author

Poorunga commented Mar 2, 2022

/close

@kubeedge-bot
Copy link
Collaborator

@Poorunga: Closing this issue.

In response to this:

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

2 participants