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

qemu on maos :Auto unblock bootpd from firewall for socket_vmnet network driver #16714

Merged
merged 1 commit into from Jun 22, 2023

Conversation

spowelljr
Copy link
Member

@spowelljr spowelljr commented Jun 15, 2023

Before:

$ minikube start --driver qemu
๐Ÿ˜„  minikube v1.30.1 on Darwin 13.4 (arm64)
โœจ  Using the qemu2 driver based on user configuration
๐ŸŒ  Automatically selected the socket_vmnet network
๐Ÿ‘  Starting control plane node minikube in cluster minikube
๐Ÿ”ฅ  Creating qemu2 VM (CPUs=2, Memory=4000MB, Disk=20000MB) ...

โŒ  Exiting due to IF_BOOTPD_FIREWALL: ip not found: failed to get IP address: could not find an IP address for 9a:c3:18:28:ed:ed
๐Ÿ’ก  Suggestion: 

    Your firewall is likely blocking bootpd, to unblock it run:
    sudo /usr/libexec/ApplicationFirewall/socketfilterfw --add /usr/libexec/bootpd
    sudo /usr/libexec/ApplicationFirewall/socketfilterfw --unblock /usr/libexec/bootpd

โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚                                                                                           โ”‚
โ”‚    ๐Ÿ˜ฟ  If the above advice does not help, please let us know:                             โ”‚
โ”‚    ๐Ÿ‘‰  https://github.com/kubernetes/minikube/issues/new/choose                           โ”‚
โ”‚                                                                                           โ”‚
โ”‚    Please run `minikube logs --file=logs.txt` and attach logs.txt to the GitHub issue.    โ”‚
โ”‚                                                                                           โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

After:

$ minikube start --driver qemu
๐Ÿ˜„  minikube v1.30.1 on Darwin 13.4 (arm64)
โœจ  Using the qemu2 driver based on user configuration
๐ŸŒ  Automatically selected the socket_vmnet network
๐Ÿ”‘  Your firewall is blocking bootpd which is required for socket_vmnet. The following commands will be executed to unblock bootpd:

    $ sudo /usr/libexec/ApplicationFirewall/socketfilterfw --add /usr/libexec/bootpd 
    $ sudo /usr/libexec/ApplicationFirewall/socketfilterfw --unblock /usr/libexec/bootpd 


Password: 
๐Ÿ‘  Starting control plane node minikube in cluster minikube
๐Ÿ”ฅ  Creating qemu2 VM (CPUs=2, Memory=4000MB, Disk=20000MB) ...
๐Ÿณ  Preparing Kubernetes v1.27.2 on Docker 24.0.2 ...
    โ–ช Generating certificates and keys ...
    โ–ช Booting up control plane ...
    โ–ช Configuring RBAC rules ...
๐Ÿ”—  Configuring bridge CNI (Container Networking Interface) ...
๐ŸŒŸ  Enabled addons: storage-provisioner, default-storageclass
๐Ÿ”Ž  Verifying Kubernetes components...
๐Ÿ„  Done! kubectl is now configured to use "minikube" cluster and "default" namespace by default

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jun 15, 2023
@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jun 15, 2023
@medyagh
Copy link
Member

medyagh commented Jun 15, 2023

/ok-to-test

@k8s-ci-robot k8s-ci-robot added the ok-to-test Indicates a non-member PR verified by an org member that is safe to test. label Jun 15, 2023
if err := test.Run(); err != nil {
klog.Infof("%v may require a password: %v", c.Args, err)
if !viper.GetBool("interactive") {
klog.Warningf("%s requires a password, and --interactive=false", c.Args)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be an out. for the UI

@medyagh medyagh changed the title socket_vmnet: Auto unblock bootpd from firewall qemu on maos :Auto unblock bootpd from firewall for socket_vmnet network driver Jun 15, 2023
@minikube-pr-bot
Copy link

kvm2 driver with docker runtime

+----------------+----------+---------------------+
|    COMMAND     | MINIKUBE | MINIKUBE (PR 16714) |
+----------------+----------+---------------------+
| minikube start | 52.6s    | 51.0s               |
| enable ingress | 27.9s    | 28.1s               |
+----------------+----------+---------------------+

Times for minikube start: 49.5s 51.3s 56.6s 54.7s 51.1s
Times for minikube (PR 16714) start: 50.9s 49.4s 52.9s 50.6s 51.2s

Times for minikube ingress: 28.2s 29.7s 27.8s 26.7s 27.3s
Times for minikube (PR 16714) ingress: 27.2s 28.6s 28.3s 28.2s 28.3s

docker driver with docker runtime

+----------------+----------+---------------------+
|    COMMAND     | MINIKUBE | MINIKUBE (PR 16714) |
+----------------+----------+---------------------+
| minikube start | 23.8s    | 23.8s               |
| enable ingress | 48.8s    | 49.1s               |
+----------------+----------+---------------------+

Times for minikube ingress: 48.3s 49.3s 48.9s 49.3s 48.3s
Times for minikube (PR 16714) ingress: 49.8s 49.3s 48.4s 49.3s 48.9s

Times for minikube start: 22.2s 25.2s 25.0s 21.8s 24.9s
Times for minikube (PR 16714) start: 24.2s 24.4s 22.1s 24.2s 24.1s

docker driver with containerd runtime

+----------------+----------+---------------------+
|    COMMAND     | MINIKUBE | MINIKUBE (PR 16714) |
+----------------+----------+---------------------+
| minikube start | 23.7s    | 22.1s               |
| enable ingress | 30.9s    | 30.9s               |
+----------------+----------+---------------------+

Times for minikube start: 22.9s 24.0s 23.8s 24.0s 24.0s
Times for minikube (PR 16714) start: 22.5s 22.3s 20.3s 21.1s 24.6s

Times for minikube ingress: 31.3s 31.3s 31.3s 30.4s 30.3s
Times for minikube (PR 16714) ingress: 31.3s 31.3s 31.3s 30.3s 30.3s

@minikube-pr-bot
Copy link

These are the flake rates of all failed tests.

Environment Failed Tests Flake Rate (%)
Hyper-V_Windows TestStartStop/group/newest-cni/serial/Pause (gopogh) 0.00 (chart)
Hyper-V_Windows TestStartStop/group/newest-cni/serial/SecondStart (gopogh) 0.00 (chart)
Hyper-V_Windows TestStartStop/group/newest-cni/serial/VerifyKubernetesImages (gopogh) 0.00 (chart)
Hyper-V_Windows TestPause/serial/SecondStartNoReconfiguration (gopogh) 11.11 (chart)
Hyper-V_Windows TestNoKubernetes/serial/StartWithK8s (gopogh) 45.68 (chart)

To see the flake rates of all tests by environment, click here.

Copy link
Member

@medyagh medyagh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do u mind sharing the output Second time after run ? we should expect on the second time, it should not yell at the user or unenescarily run the sudo commands anymore (since been added already)

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: medyagh, spowelljr

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@medyagh medyagh merged commit a209cfb into kubernetes:master Jun 22, 2023
40 of 50 checks passed
@spowelljr spowelljr deleted the unblock branch June 28, 2023 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants