Skip to content

Add fujitsu ETERNUS DX driver#935

Merged
xing-yang merged 2 commits into
sodafoundation:developmentfrom
hirokikmr:add-eternus-driver
Jul 1, 2019
Merged

Add fujitsu ETERNUS DX driver#935
xing-yang merged 2 commits into
sodafoundation:developmentfrom
hirokikmr:add-eternus-driver

Conversation

@hirokikmr

@hirokikmr hirokikmr commented Jun 27, 2019

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:
Adding fujitsu ETERNUS DX driver.

Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #
N/A

Special notes for your reviewer:

This driver has below functions for now.

  • List/Show/Create/Update/Extend/Delete volume.
  • List/Show/Create/Delete volume attachment.
  • Create/Delete snapshot.

Release note:

Fujitsu ETERNUS DX driver.
This driver is for evaluation purpose only and limited support will be given.
This driver has below functions for now.
- List/Show/Create/Update/Extend/Delete volume.
- List/Show/Create/Delete volume attachment.
- Create/Delete snapshot.

@codecov

codecov Bot commented Jun 27, 2019

Copy link
Copy Markdown

Codecov Report

Merging #935 into development will increase coverage by 2.2%.
The diff coverage is 63.66%.

@@              Coverage Diff              @@
##           development    #935     +/-   ##
=============================================
+ Coverage         31.2%   33.4%   +2.2%     
=============================================
  Files               82      85      +3     
  Lines            15216   16325   +1109     
=============================================
+ Hits              4748    5454    +706     
- Misses            9764   10091    +327     
- Partials           704     780     +76
Impacted Files Coverage Δ
contrib/drivers/drivers.go 28.37% <0%> (-2.06%) ⬇️
contrib/drivers/fujitsu/eternus/common.go 100% <100%> (ø)
contrib/drivers/fujitsu/eternus/eternus.go 49.37% <49.37%> (ø)
contrib/drivers/fujitsu/eternus/client.go 70.5% <70.5%> (ø)

@xing-yang xing-yang left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@hirokikmr Thanks for contributing the Fujitsu driver! Can you please fill the "release note" section at the top of the PR?

Comment thread contrib/drivers/fujitsu/eternus/eternus.go Outdated
Comment thread contrib/drivers/fujitsu/eternus/eternus.go Outdated
Comment thread contrib/drivers/fujitsu/eternus/eternus.go Outdated
Comment thread contrib/drivers/fujitsu/eternus/eternus.go Outdated

@leonwanghui leonwanghui left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

After developing the code, please use gofmt or goimports to format the code style.

Comment thread Gopkg.toml Outdated
Comment thread Gopkg.toml Outdated
Comment thread contrib/drivers/fujitsu/eternus/common.go
Comment thread contrib/drivers/fujitsu/eternus/common_test.go

@leonwanghui leonwanghui left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@leonwanghui

Copy link
Copy Markdown
Collaborator

@xing-yang @wisererik PTAL, thanks!

@leonwanghui leonwanghui added CAPRI To be handled before Capri 18th June 2019 feature there is a huge framework change or feature addition labels Jun 29, 2019
}

// ParseIPv4 : convert hex string to ip address
func ParseIPv4(ip string) string {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

To me these functions appear to be common which can be used by other driver developers too. @leonwanghui Can we put this in driver common and then other can also re-use it

hostLunID = strconv.Itoa(i)
break
}
hostLunID = strconv.Itoa(i + 1)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

One question: Will there be a synchronization issue while generating the LunID?

@xing-yang xing-yang left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

lgtm

@xing-yang xing-yang merged commit 3a88190 into sodafoundation:development Jul 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CAPRI To be handled before Capri 18th June 2019 feature there is a huge framework change or feature addition

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants