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

feat(zfspv): mounting the root filesystem to remove the dependency on the Operating system #204

Merged
merged 2 commits into from
Sep 7, 2020

Conversation

pawanpraka1
Copy link
Contributor

@pawanpraka1 pawanpraka1 commented Sep 3, 2020

fixes : #202 and probably #72 also.

Signed-off-by: Pawan pawan@mayadata.io

Why is this PR required? What issue does it fix?:

We are mounting the individual library to run the zfs
binary inside the ZFS-LocalPV daemonset. The problem with this
is each OS has different sets of libraries. We need to have different
Operator yamls for different OS versions.

What this PR does?:

Here we are mounting the root directory inside the ZFS-LocalPV daemonset Pod
which does chroot to this path and run the command. As all the libraries will
be available which are present on the host inside the Pod, so we don't need to mount each
library here and also it will work for all the Operating systems.

Any additional information for your reviewer? :

To be on the safe side, we are mounting the host's root directory
as Readonly filesystem. Will cleanup the centos yamls once we have migrated to this in e2e.

Thanks @jlcox1970 for helping me verify this change on CentOS 8.

Checklist:

  • Fixes #
  • PR Title follows the convention of <type>(<scope>): <subject>
  • Has the change log section been updated?
  • Commit has unit tests
  • Commit has integration tests
  • (Optional) Are upgrade changes included in this PR? If not, mention the issue/PR to track:
  • (Optional) If documentation changes are required, which issue on https://github.com/openebs/openebs-docs is used to track them:

@pawanpraka1 pawanpraka1 added the enhancement Add new functionality to existing feature label Sep 3, 2020
@pawanpraka1 pawanpraka1 added this to the v1.0.0 milestone Sep 3, 2020
@pawanpraka1 pawanpraka1 changed the title feat(zfspv): removing OS dependency feat(zfspv): mounting the root filesystem to remove the dependency on the Operating system Sep 3, 2020
… the OS

We are mounting the individual library to run the zfs
binary inside the ZFS-LocalPV daemonset. The problem with this
is each OS has different sets of libraries. We need to have different
Operator yamls for different OS versions.

Here we are mounting the root directory inside the ZFS-LocalPV daemonset Pod
which does chroot to this path and run the command. As all the libraries will
be available which are present on the host inside the Pod, so we don't need to mount each
library here and also it will work for all the Operating systems.

To be on the safe side, we are mounting the host's root directory
as Readonly filesystem.

Signed-off-by: Pawan <pawan@mayadata.io>
@codecov-commenter
Copy link

codecov-commenter commented Sep 3, 2020

Codecov Report

Merging #204 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff           @@
##           master    #204   +/-   ##
======================================
  Coverage    9.88%   9.88%           
======================================
  Files          20      20           
  Lines        1163    1163           
======================================
  Hits          115     115           
  Misses       1047    1047           
  Partials        1       1           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 109fbce...b1027a5. Read the comment docs.

Copy link
Member

@prateekpandey14 prateekpandey14 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 , do we want to archive the other distribution centric operators in upcoming PR ?

@pawanpraka1
Copy link
Contributor Author

Yes @prateekpandey14 , once we move e2e test cases to point to this yaml, I will cleanup other yamls.

Copy link

@mittachaitu mittachaitu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changes are good

Signed-off-by: Pawan <pawan@mayadata.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Add new functionality to existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Current quay.io/openebs/zfs-driver:ci image is not provisioning on CentOS 8
6 participants