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

Upgrade minimum supported k8s version to v1.12 #7723

Merged
merged 11 commits into from
Apr 17, 2020

Conversation

priyawadhwa
Copy link

@priyawadhwa priyawadhwa commented Apr 16, 2020

This fixes #7720 #7541

First, I reverted code to run update cluster and setupCerts in sequence to avoid the race condition mentioned here: #7541 (comment)

The TestStartStop/group/old-docker test was also failing because it was running k8s v1.11.10 which relies on kubeadm template version v1alpha1. v1alpha1 doesn't allow us to set parameters to prevent a DiskPressure error, and so this test was failing because the node was constantly under DiskPressure.

Upgrading to v1.12.0 as minimum supported version, which uses kubeadm template v1alpha3, fixes this issue, as it does allow us to set the necessary parameters.

Priya Wadhwa added 3 commits April 16, 2020 11:28
I think this may be creating a race condition and causing TestStartStop to fail, since we seem to be copying over some certs in UpdateCluster.
@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Apr 16, 2020
@priyawadhwa
Copy link
Author

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Apr 16, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: priyawadhwa

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 16, 2020
test/integration/start_stop_delete_test.go Outdated Show resolved Hide resolved
pkg/minikube/node/start.go Show resolved Hide resolved
@kubernetes kubernetes deleted a comment from minikube-pr-bot Apr 16, 2020
@minikube-pr-bot
Copy link

kvm2 Driver
Times for minikube: [62.438450771999996 63.407656211 60.567658771]
Average time for minikube: 62.137921917999996

Times for Minikube (PR 7723): [63.42998201899999 64.050537614 63.711255984000005]
Average time for Minikube (PR 7723): 63.73059187233333

Averages Time Per Log

+--------------------------------+-----------+--------------------+
|              LOG               | MINIKUBE  | MINIKUBE (PR 7723) |
+--------------------------------+-----------+--------------------+
| * minikube v1.9.2 on Debian    |  0.056462 |           0.054368 |
|                           9.11 |           |                    |
| * Using the kvm2 driver based  |  0.023594 |           0.020400 |
| on existing profile            |           |                    |
| * Starting control plane node  |  0.003024 |           0.003193 |
| minikube in cluster minikube   |           |                    |
| * Creating kvm2 VM (CPUs=2,    | 40.496265 |          40.622033 |
| Memory=3700MB, Disk=20000MB)   |           |                    |
| ...                            |           |                    |
| * Preparing Kubernetes v1.18.0 | 19.531940 |          20.836207 |
| on Docker 19.03.8 ...          |           |                    |
| * Enabling addons:             |  1.951715 |           2.118743 |
| default-storageclass,          |           |                    |
| storage-provisioner            |           |                    |
| * Done! kubectl is now         |  0.071408 |           0.069486 |
| configured to use "minikube"   |           |                    |
|                                |  0.003514 |           0.006164 |
+--------------------------------+-----------+--------------------+

docker Driver
Times for minikube: [26.074485235999994 25.539934885999998 25.993898902]
Average time for minikube: 25.869439674666665

Times for Minikube (PR 7723): [25.240080007000003 25.60352289 25.727880578]
Average time for Minikube (PR 7723): 25.523827825

Averages Time Per Log

+----------------------------------------+-----------+--------------------+
|                  LOG                   | MINIKUBE  | MINIKUBE (PR 7723) |
+----------------------------------------+-----------+--------------------+
| * minikube v1.9.2 on Debian            |  0.067664 |           0.071178 |
|                                   9.11 |           |                    |
| * Using the docker driver              |  0.002166 |           0.002680 |
| based on existing profile              |           |                    |
| * Starting control plane node          |  0.055611 |           0.053260 |
| minikube in cluster minikube           |           |                    |
| * Creating docker container            |  7.496285 |           7.190643 |
| (CPUs=2, Memory=3700MB) ...            |           |                    |
| * Preparing Kubernetes v1.18.0         |  0.000188 |           0.000151 |
| on Docker 19.03.2 ...                  |           |                    |
|   -                                    | 16.484249 |          17.150257 |
| kubeadm.pod-network-cidr=10.244.0.0/16 |           |                    |
| * Enabling addons:                     |  1.699668 |           0.991158 |
| default-storageclass,                  |           |                    |
| storage-provisioner                    |           |                    |
| * Done! kubectl is now                 |  0.061123 |           0.060368 |
| configured to use "minikube"           |           |                    |
|                                        |  0.002485 |           0.004131 |
+----------------------------------------+-----------+--------------------+

@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Apr 17, 2020
@minikube-pr-bot
Copy link

kvm2 Driver
Times for minikube: [66.78299125800001 64.75061151899999 62.013807483]
Average time for minikube: 64.51580342

Times for Minikube (PR 7723): [61.690081624 64.99763299399999 60.58878878000001]
Average time for Minikube (PR 7723): 62.42550113266666

Averages Time Per Log

+--------------------------------+-----------+--------------------+
|              LOG               | MINIKUBE  | MINIKUBE (PR 7723) |
+--------------------------------+-----------+--------------------+
| * minikube v1.9.2 on Debian    |  0.056031 |           0.052798 |
|                           9.11 |           |                    |
| * Using the kvm2 driver based  |  0.018544 |           0.020796 |
| on existing profile            |           |                    |
| * Starting control plane node  |  0.004698 |           0.003176 |
| minikube in cluster minikube   |           |                    |
| * Creating kvm2 VM (CPUs=2,    | 40.108570 |          40.049048 |
| Memory=3700MB, Disk=20000MB)   |           |                    |
| ...                            |           |                    |
| * Preparing Kubernetes v1.18.0 | 22.021219 |          20.299236 |
| on Docker 19.03.8 ...          |           |                    |
| * Enabling addons:             |  2.223179 |           1.925600 |
| default-storageclass,          |           |                    |
| storage-provisioner            |           |                    |
| * Done! kubectl is now         |  0.079473 |           0.071409 |
| configured to use "minikube"   |           |                    |
|                                |  0.004089 |           0.003439 |
+--------------------------------+-----------+--------------------+

docker Driver
Times for minikube: [24.875156184 25.675391336000004 26.06861605]
Average time for minikube: 25.539721189999998

Times for Minikube (PR 7723): [25.618497805999997 26.710137192 26.53495615]
Average time for Minikube (PR 7723): 26.287863716

Averages Time Per Log

+----------------------------------------+-----------+--------------------+
|                  LOG                   | MINIKUBE  | MINIKUBE (PR 7723) |
+----------------------------------------+-----------+--------------------+
| * minikube v1.9.2 on Debian            |  0.072010 |           0.071655 |
|                                   9.11 |           |                    |
| * Using the docker driver              |  0.002202 |           0.003755 |
| based on existing profile              |           |                    |
| * Starting control plane node          |  0.054651 |           0.056256 |
| minikube in cluster minikube           |           |                    |
| * Creating docker container            |  7.291075 |           7.335123 |
| (CPUs=2, Memory=3700MB) ...            |           |                    |
| * Preparing Kubernetes v1.18.0         |  0.000189 |           0.000139 |
| on Docker 19.03.2 ...                  |           |                    |
|   -                                    | 16.965341 |          17.351919 |
| kubeadm.pod-network-cidr=10.244.0.0/16 |           |                    |
| * Enabling addons:                     |  1.086090 |           1.405413 |
| default-storageclass,                  |           |                    |
| storage-provisioner                    |           |                    |
| * Done! kubectl is now                 |  0.064010 |           0.059141 |
| configured to use "minikube"           |           |                    |
|                                        |  0.004154 |           0.004463 |
+----------------------------------------+-----------+--------------------+

@minikube-pr-bot
Copy link

kvm2 Driver
Times for minikube: [64.09955942500001 63.88586315800001 65.27800811899999]
Average time for minikube: 64.42114356733333

Times for Minikube (PR 7723): [63.960688520999994 61.431970304000004 65.338161071]
Average time for Minikube (PR 7723): 63.57693996533334

Averages Time Per Log

+--------------------------------+-----------+--------------------+
|              LOG               | MINIKUBE  | MINIKUBE (PR 7723) |
+--------------------------------+-----------+--------------------+
| * minikube v1.9.2 on Debian    |  0.058513 |           0.053823 |
|                           9.11 |           |                    |
| * Using the kvm2 driver based  |  0.017451 |           0.018752 |
| on existing profile            |           |                    |
| * Starting control plane node  |  0.015022 |           0.010433 |
| minikube in cluster minikube   |           |                    |
| * Creating kvm2 VM (CPUs=2,    | 41.047779 |          40.597832 |
| Memory=3700MB, Disk=20000MB)   |           |                    |
| ...                            |           |                    |
| * Preparing Kubernetes v1.18.0 | 21.083172 |          20.701119 |
| on Docker 19.03.8 ...          |           |                    |
| * Enabling addons:             |  2.099910 |           2.116962 |
| default-storageclass,          |           |                    |
| storage-provisioner            |           |                    |
| * Done! kubectl is now         |  0.094981 |           0.073686 |
| configured to use "minikube"   |           |                    |
|                                |  0.004316 |           0.004332 |
+--------------------------------+-----------+--------------------+

docker Driver
Times for minikube: [26.567762228 25.349598087 26.452959507]
Average time for minikube: 26.123439940666668

Times for Minikube (PR 7723): [25.660940914 24.976913125999996 25.339073459999998]
Average time for Minikube (PR 7723): 25.325642499999997

Averages Time Per Log

+----------------------------------------+-----------+--------------------+
|                  LOG                   | MINIKUBE  | MINIKUBE (PR 7723) |
+----------------------------------------+-----------+--------------------+
| * minikube v1.9.2 on Debian            |  0.073945 |           0.072062 |
|                                   9.11 |           |                    |
| * Using the docker driver              |  0.003165 |           0.002787 |
| based on existing profile              |           |                    |
| * Starting control plane node          |  0.053752 |           0.054693 |
| minikube in cluster minikube           |           |                    |
| * Creating docker container            |  7.223510 |           7.276246 |
| (CPUs=2, Memory=3700MB) ...            |           |                    |
| * Preparing Kubernetes v1.18.0         |  0.000166 |           0.000189 |
| on Docker 19.03.2 ...                  |           |                    |
|   -                                    | 17.004772 |          16.695867 |
| kubeadm.pod-network-cidr=10.244.0.0/16 |           |                    |
| * Enabling addons:                     |  1.677151 |           1.158120 |
| default-storageclass,                  |           |                    |
| storage-provisioner                    |           |                    |
| * Done! kubectl is now                 |  0.083291 |           0.060886 |
| configured to use "minikube"           |           |                    |
|                                        |  0.003689 |           0.004793 |
+----------------------------------------+-----------+--------------------+

@priyawadhwa priyawadhwa changed the title wip: fix flaky TestStartStop/group/old-docker test Upgrade minimum supported k8s version to v1.12 Apr 17, 2020
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 17, 2020
@codecov-io
Copy link

Codecov Report

Merging #7723 into master will decrease coverage by 0.11%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #7723      +/-   ##
==========================================
- Coverage   36.22%   36.11%   -0.12%     
==========================================
  Files         148      148              
  Lines        9217     9215       -2     
==========================================
- Hits         3339     3328      -11     
- Misses       5488     5495       +7     
- Partials      390      392       +2     
Impacted Files Coverage Δ
pkg/minikube/bootstrapper/bsutil/kubeadm.go 83.09% <100.00%> (-0.47%) ⬇️
pkg/minikube/bootstrapper/images/images.go 87.50% <0.00%> (-12.50%) ⬇️

@minikube-pr-bot
Copy link

kvm2 Driver
Times for minikube: [63.353236415 65.32340369399998 63.427967775000006]
Average time for minikube: 64.03486929466665

Times for Minikube (PR 7723): [64.852346336 64.95869502700002 62.503016899]
Average time for Minikube (PR 7723): 64.10468608733333

Averages Time Per Log

+--------------------------------+-----------+--------------------+
|              LOG               | MINIKUBE  | MINIKUBE (PR 7723) |
+--------------------------------+-----------+--------------------+
| * minikube v1.9.2 on Debian    |  0.059034 |           0.054644 |
|                           9.11 |           |                    |
| * Using the kvm2 driver based  |  0.017872 |           0.019674 |
| on existing profile            |           |                    |
| * Starting control plane node  |  0.002796 |           0.002816 |
| minikube in cluster minikube   |           |                    |
| * Creating kvm2 VM (CPUs=2,    | 41.002120 |          40.836920 |
| Memory=3700MB, Disk=20000MB)   |           |                    |
| ...                            |           |                    |
| * Preparing Kubernetes v1.18.0 | 21.099056 |          20.840776 |
| on Docker 19.03.8 ...          |           |                    |
| * Enabling addons:             |  1.778897 |           2.274730 |
| default-storageclass,          |           |                    |
| storage-provisioner            |           |                    |
| * Done! kubectl is now         |  0.071708 |           0.071227 |
| configured to use "minikube"   |           |                    |
|                                |  0.003386 |           0.003897 |
+--------------------------------+-----------+--------------------+

docker Driver
Times for minikube: [25.044951227 24.744274751 25.900796475999996]
Average time for minikube: 25.230007484666668

Times for Minikube (PR 7723): [26.329752643 25.438378344 26.140624827]
Average time for Minikube (PR 7723): 25.969585271333333

Averages Time Per Log

+----------------------------------------+-----------+--------------------+
|                  LOG                   | MINIKUBE  | MINIKUBE (PR 7723) |
+----------------------------------------+-----------+--------------------+
| * minikube v1.9.2 on Debian            |  0.069964 |           0.070232 |
|                                   9.11 |           |                    |
| * Using the docker driver              |  0.002496 |           0.002779 |
| based on existing profile              |           |                    |
| * Starting control plane node          |  0.054225 |           0.056643 |
| minikube in cluster minikube           |           |                    |
| * Creating docker container            |  7.191635 |           7.268822 |
| (CPUs=2, Memory=3700MB) ...            |           |                    |
| * Preparing Kubernetes v1.18.0         |  0.000178 |           0.000157 |
| on Docker 19.03.2 ...                  |           |                    |
|   -                                    | 16.144011 |          16.817583 |
| kubeadm.pod-network-cidr=10.244.0.0/16 |           |                    |
| * Enabling addons:                     |  1.701868 |           1.686250 |
| default-storageclass,                  |           |                    |
| storage-provisioner                    |           |                    |
| * Done! kubectl is now                 |  0.062534 |           0.061922 |
| configured to use "minikube"           |           |                    |
|                                        |  0.003096 |           0.005198 |
+----------------------------------------+-----------+--------------------+

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.

Looks good to me, please feel free to merge after linux virtualbox test are okay

@priyawadhwa priyawadhwa merged commit 74e34c0 into kubernetes:master Apr 17, 2020
@priyawadhwa priyawadhwa deleted the flake branch April 17, 2020 21:23
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/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

flake test: WithError(Failed to setup certs)=certificate symlinks
6 participants