-
Notifications
You must be signed in to change notification settings - Fork 582
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
ignore_docker_version is ignored #2378
Comments
Noticed the same issue here Retrying with the --ignore-docker-version set results in a successful cluster deployment. |
Confirmed |
Also confirmed |
Confirmed for version 1.2.5. |
Still a problem with rke version |
After a brief look at the code, I think I may have found the problem, still needs more investigation. For this scenario, I'm assuming The config is assigned here, so Line 329 in 5aaec0c
Right after, it replaces the value of rkeConfig.IgnoreDockerVersion with a pointer to the value of the CLI flag ignore-docker-version Lines 336 to 337 in 5aaec0c
The issue is that, by default, if no value was provided, ctx.Bool returns false , so the value will always be false . This can be verified in the code for the release v1.22.5 for the package urfave/cli https://github.com/urfave/cli/blob/850de854cda08e97afb500b72967f1a56f0330e5/flag_bool.go#L54-L56 https://github.com/urfave/cli/blob/850de854cda08e97afb500b72967f1a56f0330e5/flag_bool.go#L99-L109 A possible solution would be to check if the flag was actually set and only replace the value in the config if it was if ctx.IsSet("ignore-docker-version") {
ignoreDockerVersion := ctx.Bool("ignore-docker-version")
rkeConfig.IgnoreDockerVersion = &ignoreDockerVersion
} I'm not sure about the solution, so further investigation is needed, but this can be used as a starting point. |
The
ignore_docker_version
option appears to be ignored. However, passing--ignore-docker-version
works as expected.RKE version:
rke version v1.2.3
Docker version: (
docker version
,docker info
preferred)20.10.0 (CE)
Operating system and kernel: (
cat /etc/os-release
,uname -r
preferred)Ubuntu 20.04
Type/provider of hosts: (VirtualBox/Bare-metal/AWS/GCE/DO)
VMware ESXi
cluster.yml file:
Steps to Reproduce:
rke up
Results:
Retrying with the
--ignore-docker-version
set results in a successful cluster deployment.The text was updated successfully, but these errors were encountered: