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

Implement device path discovery for NVMe support #231

Merged
merged 1 commit into from
Mar 6, 2019

Conversation

leakingtapan
Copy link
Contributor

Is this a bug fix or adding new feature?
Add support for nvme on Nitro instance
Fixes: #178

What testing is done?
Manually tested following scenario:

  • nvme on m5.xlarge with filesystem mode
  • nvme on m5.xlarge with block volume mode

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Mar 4, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: leakingtapan

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 4, 2019
@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Mar 4, 2019
@leakingtapan
Copy link
Contributor Author

/cc @dkoshkin @bertinatto

@coveralls
Copy link

coveralls commented Mar 4, 2019

Pull Request Test Coverage Report for Build 498

  • 20 of 52 (38.46%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-1.08%) to 66.689%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/driver/node.go 20 52 38.46%
Totals Coverage Status
Change from base Build 490: -1.08%
Covered Lines: 997
Relevant Lines: 1495

💛 - Coveralls

pkg/driver/node.go Outdated Show resolved Hide resolved

// findDevicePath finds and verifies the path of device
// if the device is not nvme device, return the path
// if the device is nvme device, returns the actual device path
Copy link
Contributor

Choose a reason for hiding this comment

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

What does "actual device path" mean vs "the path of device"?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

clarified the docs

if err != nil {
if os.IsNotExist(err) {
klog.V(5).Infof("nvme path %q not found", p)
return "", nil
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this return an error? The condition of "" isn't checked in the previous functions.

@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Mar 5, 2019
@leakingtapan
Copy link
Contributor Author

/test pull-aws-ebs-csi-driver-unit

@leakingtapan
Copy link
Contributor Author

�[0m�[91mgo: golang.org/x/[email protected]: git fetch -f origin refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in /go/pkg/mod/cache/vcs/de5fd3af413a4f3f969455ae522b4002fcb7bb4c158f339396dfc77710c9007d: exit status 128:
	error: RPC failed; HTTP 502 curl 22 The requested URL returned error: 502 Bad Gateway
	fatal: The remote end hung up unexpectedly
�[0m�[91mgo: golang.org/x/[email protected]: unknown revision 0709b304e793
�[0m�[91mgo: golang.org/x/[email protected]: git fetch -f origin refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in /go/pkg/mod/cache/vcs/76a8992ccba6d77c6bcf031ff2b6d821cf232e4ad8d1f2362404fbd0a798d846: exit status 128:
	error: RPC failed; HTTP 502 curl 22 The requested URL returned error: 502 Bad Gateway
	fatal: The remote end hung up unexpectedly

/test pull-aws-ebs-csi-driver-e2e-single-az

@leakingtapan
Copy link
Contributor Author

@dkoshkin if no other concerns, Im going to override the coverage drop and merge the change

@dkoshkin
Copy link
Contributor

dkoshkin commented Mar 6, 2019

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 6, 2019
@leakingtapan leakingtapan merged commit f8da6cc into kubernetes-sigs:master Mar 6, 2019
@leakingtapan leakingtapan deleted the nvme branch March 6, 2019 21:23
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement support for NVMe volume
4 participants