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

kvm: virError(Code=89, Domain=47, Message='Error desde el servicio: changeZoneOfInterface: COMMAND_FAILED: 'python-nftables' failed: #8874

Closed
lucasponce opened this issue Jul 29, 2020 · 5 comments
Labels
co/kvm2-driver KVM2 driver related issues kind/support Categorizes issue or PR as a support question. os/linux triage/needs-information Indicates an issue needs more information in order to work on it.

Comments

@lucasponce
Copy link

lucasponce commented Jul 29, 2020

Fedora 32 box where we have installed docker [1]

Unable to start minikube with kvm2:

❗  These changes will take effect upon a minikube delete and then a minikube start
πŸ˜„  minikube v1.12.1 en Fedora 32
✨  Using the kvm2 driver based on user configuration
πŸ’Ώ  Downloading VM boot image ...
    > minikube-v1.12.0.iso.sha256: 65 B / 65 B [-------------] 100.00% ? p/s 0s
    > minikube-v1.12.0.iso: 173.57 MiB / 173.57 MiB [] 100.00% 43.17 MiB p/s 4s
πŸ‘  Starting control plane node minikube in cluster minikube
πŸ’Ύ  Downloading Kubernetes v1.17.5 preload ...
    > preloaded-images-k8s-v4-v1.17.5-docker-overlay2-amd64.tar.lz4: 522.78 MiB
πŸ”₯  Creating kvm2 VM (CPUs=4, Memory=16384MB, Disk=20000MB) ...
πŸ”₯  Eliminando "minikube" en kvm2...
🀦  StartHost failed, but will try again: creating host: create: Error creating machine: Error in driver during machine creation: ensuring active networks: starting network default: virError(Code=89, Domain=47, Message='Error desde el servicio: changeZoneOfInterface: COMMAND_FAILED: 'python-nftables' failed: 
JSON blob:
{"nftables": [{"metainfo": {"json_schema_version": 1}}, {"add": {"rule": {"family": "inet", "table": "firewalld", "chain": "filter_IN_libvirt_allow", "expr": [{"match": {"left": {"payload": {"protocol": "udp", "field": "dport"}}, "op": "==", "right": 67}}, {"match": {"left": {"ct": {"key": "state"}}, "op": "in", "right": {"set": ["new", "untracked"]}}}, {"accept": null}]}}}, {"add": {"rule": {"family": "inet", "table": "firewalld", "chain": "filter_IN_libvirt_allow", "expr": [{"match": {"left": {"payload": {"protocol": "udp", "field": "dport"}}, "op": "==", "right": 547}}, {"match": {"left": {"ct": {"key": "state"}}, "op": "in", "right": {"set": ["new", "untracked"]}}}, {"accept": null}]}}}, {"add": {"rule": {"family": "inet", "table": "firewalld", "chain": "filter_IN_libvirt_allow", "expr": [{"match": {"left": {"payload": {"protocol": "tcp", "field": "dport"}}, "op": "==", "right": 53}}, {"match": {"left": {"ct": {"key": "state"}}')
πŸ”₯  Creating kvm2 VM (CPUs=4, Memory=16384MB, Disk=20000MB) ...
😿  Failed to start kvm2 VM. "minikube start" may fix it: creating host: create: Error creating machine: Error in driver during machine creation: ensuring active networks: starting network default: virError(Code=89, Domain=47, Message='Error desde el servicio: changeZoneOfInterface: COMMAND_FAILED: 'python-nftables' failed: 
JSON blob:
{"nftables": [{"metainfo": {"json_schema_version": 1}}, {"add": {"rule": {"family": "inet", "table": "firewalld", "chain": "filter_IN_libvirt_allow", "expr": [{"match": {"left": {"payload": {"protocol": "udp", "field": "dport"}}, "op": "==", "right": 67}}, {"match": {"left": {"ct": {"key": "state"}}, "op": "in", "right": {"set": ["new", "untracked"]}}}, {"accept": null}]}}}, {"add": {"rule": {"family": "inet", "table": "firewalld", "chain": "filter_IN_libvirt_allow", "expr": [{"match": {"left": {"payload": {"protocol": "udp", "field": "dport"}}, "op": "==", "right": 547}}, {"match": {"left": {"ct": {"key": "state"}}, "op": "in", "right": {"set": ["new", "untracked"]}}}, {"accept": null}]}}}, {"add": {"rule": {"family": "inet", "table": "firewalld", "chain": "filter_IN_libvirt_allow", "expr": [{"match": {"left": {"payload": {"protocol": "tcp", "field": "dport"}}, "op": "==", "right": 53}}, {"match": {"left": {"ct": {"key": "state"}}')

πŸ’£  error provisioning host: Failed to start host: creating host: create: Error creating machine: Error in driver during machine creation: ensuring active networks: starting network default: virError(Code=89, Domain=47, Message='Error desde el servicio: changeZoneOfInterface: COMMAND_FAILED: 'python-nftables' failed: 
JSON blob:
{"nftables": [{"metainfo": {"json_schema_version": 1}}, {"add": {"rule": {"family": "inet", "table": "firewalld", "chain": "filter_IN_libvirt_allow", "expr": [{"match": {"left": {"payload": {"protocol": "udp", "field": "dport"}}, "op": "==", "right": 67}}, {"match": {"left": {"ct": {"key": "state"}}, "op": "in", "right": {"set": ["new", "untracked"]}}}, {"accept": null}]}}}, {"add": {"rule": {"family": "inet", "table": "firewalld", "chain": "filter_IN_libvirt_allow", "expr": [{"match": {"left": {"payload": {"protocol": "udp", "field": "dport"}}, "op": "==", "right": 547}}, {"match": {"left": {"ct": {"key": "state"}}, "op": "in", "right": {"set": ["new", "untracked"]}}}, {"accept": null}]}}}, {"add": {"rule": {"family": "inet", "table": "firewalld", "chain": "filter_IN_libvirt_allow", "expr": [{"match": {"left": {"payload": {"protocol": "tcp", "field": "dport"}}, "op": "==", "right": 53}}, {"match": {"left": {"ct": {"key": "state"}}')

😿  minikube is exiting due to an error. If the above message is not useful, open an issue:
πŸ‘‰  https://github.com/kubernetes/minikube/issues/new/choose
πŸ”Ž  Verifying registry addon...

πŸ’£  enable failed: run callbacks: running callbacks: [get kube-client to validate registry addon: client config: context "minikube" does not exist: client config: context "minikube" does not exist]

😿  minikube is exiting due to an error. If the above message is not useful, open an issue:
πŸ‘‰  https://github.com/kubernetes/minikube/issues/new/choose
πŸ”Ž  Verifying ingress addon...

πŸ’£  enable failed: run callbacks: running callbacks: [get kube-client to validate ingress addon: client config: context "minikube" does not exist: client config: context "minikube" does not exist]

😿  minikube is exiting due to an error. If the above message is not useful, open an issue:
πŸ‘‰  https://github.com/kubernetes/minikube/issues/new/choose

[1] https://fedoramagazine.org/docker-and-fedora-32/

@pbaitule
Copy link

pbaitule commented Aug 3, 2020

@lucasponce From one of the comments under that article, taking a sledgehammer to firewalld fixed it for me.

image

@afbjorklund
Copy link
Collaborator

afbjorklund commented Aug 5, 2020

Yup, looks like a libvirt issue.

https://bugzilla.redhat.com/show_bug.cgi?id=1786876

@afbjorklund afbjorklund added os/linux co/kvm2-driver KVM2 driver related issues kind/support Categorizes issue or PR as a support question. labels Aug 5, 2020
@priyawadhwa
Copy link

Hey @lucasponce are you still seeing this issue?

If docker is installed, you could also try running minikube with the docker driver via:

minikube start --driver docker

@priyawadhwa priyawadhwa added the triage/needs-information Indicates an issue needs more information in order to work on it. label Sep 23, 2020
@lucasponce
Copy link
Author

@priyawadhwa I moved to other environment, the only workaround I had was to disable firwalld to make it work.
I couldn't workaround it in other way.

@tstromberg tstromberg changed the title Failed to start minikube in Fedora 32 with kvm2 kvm: virError(Code=89, Domain=47, Message='Error desde el servicio: changeZoneOfInterface: COMMAND_FAILED: 'python-nftables' failed: Sep 26, 2020
@tstromberg
Copy link
Contributor

This issue appears to be a duplicate of #8772, do you mind if we move the conversation there?

Ths way we can centralize the content relating to the issue. If you feel that this issue is not in fact a duplicate, please re-open it using /reopen. If you have additional information to share, please add it to the new issue.

Thank you for reporting this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
co/kvm2-driver KVM2 driver related issues kind/support Categorizes issue or PR as a support question. os/linux triage/needs-information Indicates an issue needs more information in order to work on it.
Projects
None yet
Development

No branches or pull requests

5 participants