Skip to content

Setting kubelet_flexvolumes_plugins_dir has no effect #5786

@danilo404

Description

@danilo404

This is caused by a task that sets a fact for kubelet_flexvolumes_plugins_dir inside roles/kubernetes/preinstall/tasks/0040-set_facts.yml which has a higher precedence than the variable kubelet_flexvolumes_plugins_dir set on the group_vars level.

Environment:

  • Cloud provider or hardware configuration:
    bare metal
  • OS (printf "$(uname -srm)\n$(cat /etc/os-release)\n"):
    Linux 4.19.106-coreos x86_64
    NAME="Container Linux by CoreOS"
    ID=coreos
    VERSION=2345.3.0
    VERSION_ID=2345.3.0
    BUILD_ID=2020-02-26-2211
    PRETTY_NAME="Container Linux by CoreOS 2345.3.0 (Rhyolite)"
    ANSI_COLOR="38;5;75"
    HOME_URL="https://coreos.com/"
    BUG_REPORT_URL="https://issues.coreos.com"
    COREOS_BOARD="amd64-usr"
  • Version of Ansible (ansible --version):
    ansible 2.9.6
    config file = /Users/daniloteralytics/projects/metal-ops/ansible/kubespray/ansible.cfg
    configured module search path = ['/Users/daniloteralytics/projects/metal-ops/ansible/kubespray/library']
    ansible python module location = /Users/daniloteralytics/.virtualenvs/metal-ops/lib/python3.8/site-packages/ansible
    executable location = /Users/daniloteralytics/.virtualenvs/metal-ops/bin/ansible
    python version = 3.8.0 (v3.8.0:fa919fdf25, Oct 14 2019, 10:23:27) [Clang 6.0 (clang-600.0.57)]
  • Version of Python (python --version):
    Python 3.8.0
    Kubespray version (commit) (git rev-parse --short HEAD):
    820d8e6

Network plugin used:

Full inventory with variables (ansible -i inventory/sample/inventory.ini all -m debug -a "var=hostvars[inventory_hostname]"):

Command used to invoke ansible:

Output of ansible run:

Anything else do we need to know:

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions