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

data/bootstrap: pass volume-plugin-dir to kubelet param to avoid flexvolume warnings #1681

Merged

Conversation

vrutkovs
Copy link
Member

@vrutkovs vrutkovs commented Apr 26, 2019

Bootstrap kubelet attempts to create /usr/libexec/kubernetes/kubelet-plugins/volume/exec/ for flexvolume plugins and warns readonly FS in kubelet log:

Apr 25 13:53:45 ip-10-0-8-85 hyperkube[1358]: W0425 13:53:45.762647    1358 probe.go:271] Flexvolume plugin directory at /usr/libexec/kubernetes/kubelet-plugins/volume/exec/ does not exist. Recreating.
Apr 25 13:53:45 ip-10-0-8-85 hyperkube[1358]: E0425 13:53:45.762700    1358 plugins.go:517] Error initializing dynamic plugin prober: Error (re-)creating driver directory: mkdir /usr/libexec/kubernetes: read-only file system

This PR would ensure /etc/kubernetes/kubelet-plugins/volume/exec is used for flexvolume plugins, this would prevent this misleading warning from showing.

MCO does the same on masters: openshift/machine-config-operator#315

…bout flexvolume

Boostrap kubelet attempts to create /usr/libexec/kubernetes/kubelet-plugins/volume/exec/ for flexvolume plugins and warns readonly FS in kubelet log. This commit would ensure /etc/kubernetes/kubelet-plugins/volume/exec is used for flexvolume plugins, this would prevent this misleading warning from showing
@openshift-ci-robot openshift-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Apr 26, 2019
@abhinavdahiya
Copy link
Contributor

  1. what errors?
  2. how did you decide that location

@vrutkovs
Copy link
Member Author

Updated description, see also openshift/machine-config-operator#315

@gnufied
Copy link
Member

gnufied commented Apr 26, 2019

yeah I guess this is a minor annoyance. We do not expect an actual flexvolume plugin to be deployed on bootstrap kubelet!

@vrutkovs
Copy link
Member Author

/retest

@abhinavdahiya
Copy link
Contributor

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Apr 26, 2019
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: abhinavdahiya, vrutkovs

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

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 26, 2019
@openshift-merge-robot openshift-merge-robot merged commit b1de2ac into openshift:master Apr 26, 2019
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. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants