Skip to content

feat(script, yaml): add openebs basepath#362

Merged
kmova merged 8 commits intoopenebs-archive:masterfrom
akhilerm:base-path-fix
Feb 1, 2020
Merged

feat(script, yaml): add openebs basepath#362
kmova merged 8 commits intoopenebs-archive:masterfrom
akhilerm:base-path-fix

Conversation

@akhilerm
Copy link
Copy Markdown
Contributor

@akhilerm akhilerm commented Jan 9, 2020

OpenEBS basepath has been added. Each component of openebs will have a directory under OPENEBS_IO_BASE_DIR on the host machine.

NDM components will be stored under OPENEBS_IO_BASE_DIR/ndm on the host. Inside the NDM container this path will be mapped to /var/openebs/ndm.

Comment thread ndm-operator.yaml
Comment thread build/ndm-daemonset/entrypoint.sh Outdated
Comment thread ndm-operator.yaml
Comment thread ndm-operator.yaml
Comment thread ndm-operator.yaml
Comment thread ndm-operator.yaml
@codecov-io
Copy link
Copy Markdown

codecov-io commented Jan 10, 2020

Codecov Report

Merging #362 into master will decrease coverage by 0.49%.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #362     +/-   ##
=======================================
- Coverage   51.49%    51%   -0.5%     
=======================================
  Files          55     55             
  Lines        2637   2637             
=======================================
- Hits         1358   1345     -13     
- Misses       1172   1182     +10     
- Partials      107    110      +3
Impacted Files Coverage Δ
cmd/ndm_daemonset/probe/eventhandler.go 46.05% <0%> (-7.9%) ⬇️
cmd/ndm_daemonset/probe/udevprobe.go 60.3% <0%> (-5.35%) ⬇️

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 a6eb990...6c5c92f. Read the comment docs.

@akhilerm akhilerm changed the title [WIP] feat(script, yaml): add openebs basepath feat(script, yaml): add openebs basepath Jan 10, 2020
vishnuitta
vishnuitta previously approved these changes Jan 10, 2020
Copy link
Copy Markdown

@vishnuitta vishnuitta 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

mittachaitu
mittachaitu previously approved these changes Jan 10, 2020
Copy link
Copy Markdown

@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

Copy link
Copy Markdown
Contributor

@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.

lgtm

Comment thread build/ndm-daemonset/entrypoint.sh Outdated
Signed-off-by: Akhil Mohan <akhil.mohan@mayadata.io>
Signed-off-by: Akhil Mohan <akhil.mohan@mayadata.io>
Signed-off-by: Akhil Mohan <akhil.mohan@mayadata.io>
Signed-off-by: Akhil Mohan <akhil.mohan@mayadata.io>
Signed-off-by: Akhil Mohan <akhil.mohan@mayadata.io>
Signed-off-by: Akhil Mohan <akhil.mohan@mayadata.io>
@kmova kmova added this to the 0.5 milestone Jan 10, 2020
`/var/openebs/ndm` will now be mounted to `/var/openebs/ndm` inside the
container. This will prevent multiple sparse directories from being
created on the host.

Signed-off-by: Akhil Mohan <akhil.mohan@mayadata.io>
Signed-off-by: Akhil Mohan <akhil.mohan@mayadata.io>
else
# making sure mountpath inside the container is available
if ! [ -d "${NDM_BASE_DIR}" ]; then
echo "OpenEBS/NDM Base directory not found"
Copy link
Copy Markdown

@mittachaitu mittachaitu Jan 24, 2020

Choose a reason for hiding this comment

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

I think to represent the message we should use $OPENEBS_BASE_DIR/$NDM_BASE_DIR

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

NDM_BASE_DIR=OPENEBS_BASE_DIR/ndm. That's why used that error message.

Copy link
Copy Markdown
Contributor

@pawanpraka1 pawanpraka1 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.

Copy link
Copy Markdown

@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

export GOTRACEBACK=crash

# openebs base directory inside the container
OPENEBS_BASE_DIR="/var/openebs"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this variable required?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This variable helps to understand how the NDM base path is constructed using the openebs base directory inside the container. Other than that it provides no additional information and is not used.

@kmova kmova merged commit 6928048 into openebs-archive:master Feb 1, 2020
akhilerm added a commit to akhilerm/node-disk-manager that referenced this pull request Feb 5, 2020
…hive#362)

Make the location for saving the NDM cores inline with other
openebs components by providing the location where core's should
be saved. 

The default location is /var/openebs/ndm, which can be
changed by passing the right value in the deployment
file. 

Signed-off-by: Akhil Mohan <akhil.mohan@mayadata.io>
kmova pushed a commit that referenced this pull request Feb 5, 2020
Make the location for saving the NDM cores inline with other
openebs components by providing the location where core's should
be saved. 

The default location is /var/openebs/ndm, which can be
changed by passing the right value in the deployment
file. 

Signed-off-by: Akhil Mohan <akhil.mohan@mayadata.io>
@kmova kmova modified the milestones: 0.5, 0.4.6 Feb 5, 2020
@akhilerm akhilerm deleted the base-path-fix branch February 6, 2020 07:01
@akhilerm akhilerm added the pr/release-note PR should be included in release notes label Feb 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr/release-note PR should be included in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants