Skip to content

Critical fix to properly create and delete volumes#2

Merged
kfox1111 merged 1 commit into
kfox1111:ephemeralfrom
vladimirvivien:ephemeral-path-fix
Mar 26, 2019
Merged

Critical fix to properly create and delete volumes#2
kfox1111 merged 1 commit into
kfox1111:ephemeralfrom
vladimirvivien:ephemeral-path-fix

Conversation

@vladimirvivien

Copy link
Copy Markdown
  • Fix path references in ControllerServer
  • Refactor volume creation and deletion into createHostpathVolume()/deleteHospathVolume() functions
  • Update Node and Controller servers to use volume creation functions uniformaly

@kfox1111 kfox1111 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Looks good to me. Only the tiniest of issues inline.

Comment thread pkg/hostpath/nodeserver.go Outdated
volName := fmt.Sprintf("ephemeral-%s", volID)
vol, err := createHospathVolume(req.GetVolumeId(), volName, maxStorageCapacity, mountAccess)
if err != nil && !os.IsExist(err) {
glog.Error("ephemeral mode failed to creatae volume: ", err)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

creatae typo.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

@kfox1111 PTAL

- Fix path references in ControllerServer
- Refactor volume creation and deletion into createHostpathVolume()/deleteHospathVolume() functions
- Update Node and Controller servers to use volume creation functions
@kfox1111 kfox1111 merged commit 56d4a34 into kfox1111:ephemeral Mar 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants