kubespray icon indicating copy to clipboard operation
kubespray copied to clipboard

Avoid MetalLB speaker image download when MetalLB speaker is disabled

Open unai-ttxu opened this issue 3 years ago • 4 comments

What type of PR is this?

/kind bug

What this PR does / why we need it:

Both MetalLB controller and MetalLB speaker are downloaded when metallb_enabled: true since https://github.com/kubernetes-sigs/kubespray/pull/8715.

Since MetalLB speaker can be disabled, its image should be only downloaded when metallb_speaker_enabled: true

unai-ttxu avatar Sep 01 '22 14:09 unai-ttxu

Hi @unai-ttxu. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

k8s-ci-robot avatar Sep 01 '22 14:09 k8s-ci-robot

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: floryut, unai-ttxu

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 avatar Sep 01 '22 14:09 k8s-ci-robot

@unai-ttxu Could you rebase this pull request based on the latest master branch to pass those test jobs?

oomichi avatar Sep 12 '22 09:09 oomichi

@unai-ttxu Could you rebase this pull request based on the latest master branch to pass those test jobs?

Done!

unai-ttxu avatar Sep 12 '22 09:09 unai-ttxu

Hi @oomichi @floryut can we check this PR?

I've just rebase it again :smile:

unai-ttxu avatar Oct 10 '22 20:10 unai-ttxu

molecule_docker job is failed like:

fatal: [ubuntu20]: FAILED! => {
"msg": "The task includes an option with an undefined variable. The error was: {{ ...
'groups': ['kube_control_plane']}}: 
'metallb_speaker_enabled' is undefined
The error appears to be in '/builds/kargo-ci/kubernetes-sigs-kubespray/roles/download/tasks/download_file.yml': line 7, column 5, but may be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
  - name: download_file | Starting download of file
    ^ here\n"}

So we might need to move metallb_speaker_enabled to roles/kubespray-defaults/defaults/main.yaml to solve this issue.

oomichi avatar Oct 12 '22 02:10 oomichi

molecule_docker job is failed like:

fatal: [ubuntu20]: FAILED! => {
"msg": "The task includes an option with an undefined variable. The error was: {{ ...
'groups': ['kube_control_plane']}}: 
'metallb_speaker_enabled' is undefined
The error appears to be in '/builds/kargo-ci/kubernetes-sigs-kubespray/roles/download/tasks/download_file.yml': line 7, column 5, but may be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
  - name: download_file | Starting download of file
    ^ here\n"}

So we might need to move metallb_speaker_enabled to roles/kubespray-defaults/defaults/main.yaml to solve this issue.

Done! Thanks for the help @oomichi :smile:

unai-ttxu avatar Oct 12 '22 10:10 unai-ttxu