Comments (5)
I propose we start with a simple implementation as an additional field to CreateOptions
// CreateOptions are passed in with a CreateRequest
type CreateOptions struct {
// FailIfExists fail create request if a volume with matching Locator already exists.
FailIfExists bool
// CreateFromSnap will create a volume with specified SnapID
CreateFromSnap VolumeID
// SourceURI e.g github://github.com/libopenstorage/openstorage
SourceURI string
}
from openstorage.
That would work for starters. However I think people will have multiple source URIs and do not necessarily want that to equate to multiple production volumes to manage. That said, this is a start in the right direction.
from openstorage.
The need is very practical, But I feel putting provisioning logic in osd/driver code will make it more complex.
I like the way Hashicorp Packer does the provisioning for preparing images. You may like to take look at that.
Parse the yaml file, and move the provisioning code in shell script or if any other supported provisioner format like chef, ansible. (sooner or later, people will raise this request too)
So whole provisioning will be offloaded to external process rather then OSD.
from openstorage.
I think my original proposal is a bit complicated but I think one of the most common practices with volumes and containers are to start up a job with some pre populated data. In order to do that you want to create a volume staged with some contents and that is the motivation behind this PR.
Maybe a simple workflow where a volume create followed by a "cp" of some sort into the volume (not a running container) will suffice. Then the volume can be attached to the container ... and then the container can be started with the volume with the staged contents.
from openstorage.
Seeding for github is supported.
from openstorage.
Related Issues (20)
- SDK REST Gateway server cannot be extended
- Add cloud group-backup in SDK
- During volume create, SDK should not return existing volume not in up state HOT 2
- Documentaion is lacking, even compared to earlier releases
- How do I debug this thing? HOT 1
- Add support for all secrets providers for pkg/auth/secrets
- PVC Metadata not being added to VolumeLabels
- CSI: NodeUnpublishVolume failing during statefulsets deletion
- Some libraries in vendor.json are not supported upstream and should be replaced
- OpenstorageMigrate proto should be inline with Openstorage-Sdk
- Cloud backup group create access denied error
- Panic on csi/node.go:169
- Remove flaky Alerts test.
- GPLv3 dependency?
- Errors you may encounter when upgrading the libraries HOT 3
- Potential security issue: CVE-2020-26160 HOT 1
- gRPC backupClient.EnumerateWithFilters to support date ranges HOT 1
- introduce and API Call similar to pxctl volume list HOT 1
- osd nfs enumerate and osd nfs inspect <volume> commands raise exception
- Why were the patch versions for vulnerability (snky id: SNYK-GOLANG-GITHUBCOMLIBOPENSTORAGEOPENSTORAGEAPISERVER-565845) released so late?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openstorage.