-
Notifications
You must be signed in to change notification settings - Fork 200
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
fix(cStor, deployments): add OpenEBS base directory in deployments #1583
Conversation
Signed-off-by: mittachaitu <sai.chaithanya@mayadata.io>
Signed-off-by: mittachaitu <sai.chaithanya@mayadata.io>
Signed-off-by: mittachaitu <sai.chaithanya@mayadata.io>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changes are good
pkg/install/v1alpha1/cstor_volume.go
Outdated
@@ -579,6 +586,8 @@ spec: | |||
mountPath: /var/run | |||
- name: conf | |||
mountPath: /usr/local/etc/istgt | |||
- name: storagepath | |||
mountPath: {{ .Config.PersistentStoragePath.value }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why PersistentStoragePath variable is needed? it has to be "/var/openebs" all the time, other wise istgt image needs to be regenerated with the new mount path? isn't it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, If that variable changed then istgt image also needs to be regenerated. So one shouldn't touch that PersistentStoragePath
variable(Made comments above that variable).
We are using in different places so made variable to make it use.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will hard code it
Signed-off-by: mittachaitu <sai.chaithanya@mayadata.io>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good.
…penebs-archive#1583) Signed-off-by: mittachaitu <sai.chaithanya@mayadata.io>
Signed-off-by: mittachaitu sai.chaithanya@mayadata.io
What this PR does / why we need it:
This PR mounts the
/var/openebs
of the container into OPENEBS_IO_BASE_DIR/<cstor_target/pool>/<resource_name> on the host path.These changes are made to persist core files on the host path.
How Users Can Configure
Users can specify the value of OPENEBS_IO_BASE_DIR in Maya deployment.
While creating cStor pool/volume corresponding component will read the ENV value
and use base_dir for mounting. If ENV doesn't exist base_dir will mount
/var/openebs
.Below are PR's to support dumping core in /var/openebs/core inside a container:
cStor: mayadata-io/cstor#284
istgt: openebs-archive/istgt#298
Which issue this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close that issue when PR gets merged): fixes #Special notes for your reviewer:
These changes are for SPC type of provisioning subsequent PRs will be raised for CSPC.
Checklist:
documentation
tagbreaking-changes
tagrequires-upgrade
tag