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
Fix dir creation when cocci_cache is missing #1
Conversation
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
just to make things clear:
When you send an "old" version, but from a tarball you generated from git (that can be arbitrarily different compared to what the "old" version still refers to), you mix code in a way it is not intended. The upstream tarball your version refers to basically - depending on the changes in git - has nothing to do with your actual tarball, and it is pure luck if the generated patch (generated for the upstream version and your git compat.h) still applies. But you know all of that and you don't fetch the actual tarball, but you place the exact git tarball under the upstream name in the tarball cache directory? And you make sure the service is restarted so it does not serve old patches for another fake version from another git commit? and you know that this faked combination only works exactly for the fake tarball on the server and the exact fake tarball you build on the system? How do you avoid that your systems run into the real saas on drbd.io but use yours instead? fake drbd.io? patch it? Why not just run spatch locally? Or build patches for the kernels you support and include them into the tarball? |
The reason I'm doing this, is that some of our customers and community users have isolated environments without connection to the internet. They came with problem of building drbd module in such environments. Of course, adding coccinelle dependency to the image is made it working, but the container has grown for 523 megabytes. I was considering to run spaas in separate container since this logic is already implemented in drbd building process, so it can connect to some spaas running as a service locally in the same Kubernetes cluster.
Not exactly, I just build drbd release tarballs from the source code using specific version tag. I just call
This all is done by docker at the building time and updated automatically by the deckhouse-controller (our opinioned Kubernetes operator)
I was considering to prepare patch for drbd and piraeus projects to allow specifying saas server in enviroment variable.
We already doing this. Actually, we don't know what OS and kernels our customers are using exactly, we're working hard on support all of them. |
Thanks for the explanation, always interesting with what ideas our users come up :). And sure, if you use the git tags, then the tarball should be reasonably compatible to the upstream tarball |
When drbd tarball created from github source code, it does not contain any patches.
spaas binary can't create directory
cocci_cache/_
, becausecocci_cache
does not exists: