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

[feat]tools-v2: add bs create volume snapshot #2771

Closed

Conversation

baytan0720
Copy link
Member

What problem does this PR solve?

Issue Number: #2585

Problem Summary:

What is changed and how it works?

add bs create volume snapshot

What's Changed:
modify tools-v2/internal/utils/snapshot.go
modify tools-v2/internal/utils/row.go
modify tools-v2/pkg/cli/command/curvebs/create/create.go
modify tools-v2/pkg/config/bs.go
add tools-v2/pkg/cli/command/curvebs/create/volume/snapshot/snapshot.go
add tools-v2/pkg/cli/command/curvebs/create/volume/volume.go

How it Works:

$ curve bs create volume snapshot --help
Usage:  curve bs create volume snapshot [flags]

create volume snapshot in curvebs cluster

Flags:
      --filename string        file name[required]
  -f, --format string          output format (json|plain) (default "plain")
      --httptimeout duration   http timeout (default 500ms)
      --snapshotaddr string    snapshot clone address, should be like 127.0.0.1:5550,127.0.0.1:5551,127.0.0.1:5552
      --snapshotname string    snapshot name[required]
      --user string            user name[required]

Global Flags:
  -c, --conf string   config file (default is $HOME/.curve/curve.yaml or /etc/curve/curve.yaml)
  -h, --help          print help
      --showerror     display all errors in command
      --verbose       show some log

Examples:
$ curve bs create volume snapshot --user root --filename test --snapshotname snap-test

Side effects(Breaking backward compatibility? Performance regression?):

Check List

  • Relevant documentation/comments is changed or added
  • I acknowledge that all my contributions will be made under the project's license

@baytan0720 baytan0720 closed this Sep 23, 2023
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.

1 participant