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

refactor: remove ceph volume plugin #1441

Merged

Conversation

shaloulcy
Copy link
Contributor

As the ceph volume plugin depends on alibaba storage service, ceph
volume plugin can't work outside alibaba. So we will remove the ceph
volume. If you need ceph storage, you can use contiv volume plugin
(https://github.com/contiv-experimental/volplugin)

Signed-off-by: Eric Li lcy041536@gmail.com

Ⅰ. Describe what this PR did

As the ceph volume plugin depends on alibaba storage service, ceph volume plugin can't work outside alibaba. So we will remove the ceph volume. If you need ceph storage, you can use contiv volume plugin(https://github.com/contiv-experimental/volplugin)

Ⅱ. Does this pull request fix one issue?

NONE

Ⅲ. Describe how you did it

Remove ceph volume driver

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

@codecov-io
Copy link

codecov-io commented May 31, 2018

Codecov Report

Merging #1441 into master will increase coverage by 23.72%.
The diff coverage is 51.31%.

Impacted file tree graph

@@             Coverage Diff             @@
##           master    #1441       +/-   ##
===========================================
+ Coverage   16.26%   39.99%   +23.72%     
===========================================
  Files         206      249       +43     
  Lines       13759    16128     +2369     
===========================================
+ Hits         2238     6450     +4212     
+ Misses      11365     8865     -2500     
- Partials      156      813      +657
Impacted Files Coverage Δ
storage/volume/core_util.go 10.34% <ø> (ø)
daemon/mgr/container.go 49.7% <0%> (+49.7%) ⬆️
storage/volume/modules/tmpfs/tmpfs.go 16.12% <0%> (ø)
daemon/mgr/volume.go 80.41% <100%> (+80.41%) ⬆️
apis/server/volume_bridge.go 86.48% <100%> (+86.48%) ⬆️
storage/volume/core.go 51.66% <22.22%> (ø)
storage/volume/driver/remote.go 68.96% <64.28%> (ø)
storage/volume/modules/local/local.go 70.68% <85%> (ø)
storage/volume/driver/context.go 8.69% <0%> (ø)
cri/stream/portforward/portforward.go 0% <0%> (ø)
... and 117 more

if driver == "" {
driver = types.DefaultBackend
}

id := types.VolumeID{
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think the naming of VolumeID is so bad.
Is there anyway to change this to be a more readable one?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@allencloud I will refactor VolumeID in other PRs later

@@ -105,6 +105,41 @@ func buildVolumeConfig(options map[string]string) (*VolumeConfig, error) {
return config, nil
}

// NewVolumeFromVolumeID will create an Volume using mountPath, size and VolumeID.
func NewVolumeFromVolumeID(mountPath, size string, id VolumeID) *Volume {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Change to NewVolumeFromID

Copy link
Contributor Author

Choose a reason for hiding this comment

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

agree it


return v
}

// NewVolume generates a volume based VolumeID
func NewVolume(id VolumeID) (*Volume, error) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Change VolumeID to VolumeCreate?It means the parameter of create volume.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

plan to refactor VolumeID in other PRs

As the ceph volume plugin depends on alibaba storage service, ceph
volume plugin can't work outside alibaba. So we will remove the ceph
volume. If you need ceph storage, you can use contiv volume plugin
(https://github.com/contiv-experimental/volplugin)

Signed-off-by: Eric Li <lcy041536@gmail.com>
@shaloulcy shaloulcy force-pushed the remove_ceph_volume branch from 0cee14c to b0b2928 Compare May 31, 2018 08:36
@rudyfly rudyfly merged commit dabd3bb into AliyunContainerService:master Jun 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants