-
Notifications
You must be signed in to change notification settings - Fork 522
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
add label with ceph version string #1508
Comments
Also, not really sure what the purpose of |
cc @krig |
The thing is that we probably can't do that during the container build (ie: install the package, run ceph -v and set the labels) otherwise it should have already been done. I'll try to take a look.
This variable is used when we want to build a specific ceph release (like: 14.2.3). |
The important one is |
The problem is that LABELS are generated as part of the Dockerfile, then we execute it to build. So we don't quite know which version we are getting IIRC, so this happens at build time. |
...but the get sha1 is there right? Or is that the commit for ceph-container (not ceph)? |
Yes, it's the sha1 of ceph-container (fetched at build time, since we build from that repo), not ceph. |
@leseb @liewegas @sebastian-philipp I have a tentative proposal for reading the ceph version from a What do you think? The idea is to use the label if set, but fall back to It remains to set the label on the container image of course, with the openSUSE/SLE build chain we can do it quite easily but I'd have to look into how to do it on ceph-container (sounds non-trivial). Right now the ceph version is the only label actually read by cephadm, so I thought it made sense to limit the initial work to just cover that one. |
Having to run `ceph -v` in the container image to read the ceph version number is expensive and slow. Instead, look for a label (proposed: "io.ceph.version") on the container image and use the value of that label if present. See: ceph/ceph-container#1508 See: https://tracker.ceph.com/issues/43678 Signed-off-by: Kristoffer Grönlund <kgronlund@suse.com>
Having to run `ceph -v` in the container image to read the ceph version number is expensive and slow. Instead, look for a label (proposed: "io.ceph.version") on the container image and use the value of that label if present. See: ceph/ceph-container#1508 See: https://tracker.ceph.com/issues/43678 Signed-off-by: Kristoffer Grönlund <kgronlund@suse.com>
The cephadm change looks good. We need to sort out how to add this label to the image though... @dsavineau @leseb ideas? |
Having to run `ceph -v` in the container image to read the ceph version number is expensive and slow. Instead, look for a label (proposed: "io.ceph.version") on the container image and use the value of that label if present. See: ceph/ceph-container#1508 See: https://tracker.ceph.com/issues/43678 Signed-off-by: Kristoffer Grönlund <kgronlund@suse.com>
Having to run `ceph -v` in the container image to read the ceph version number is expensive and slow. Instead, look for a label (proposed: "io.ceph.version") on the container image and use the value of that label if present. See: ceph/ceph-container#1508 See: https://tracker.ceph.com/issues/43678 Signed-off-by: Kristoffer Grönlund <kgronlund@suse.com>
As mentioned earlier, getting those information (basically running |
Having to run `ceph -v` in the container image to read the ceph version number is expensive and slow. Instead, look for a label (proposed: "io.ceph.version") on the container image and use the value of that label if present. See: ceph/ceph-container#1508 See: https://tracker.ceph.com/issues/43678 Signed-off-by: Kristoffer Grönlund <kgronlund@suse.com>
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
reopen please |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Right now the labels (as reported by podman inspect) look like:
For a
ceph -v
ofceph version 15.0.0-6884-gf0458b188a (d76dc026e8194928712f229afa002cf4005bb5df) octopus (dev)
, I'd like to add labels like the following:CEPH_VERSION
-15.0.0-6884-gf0458b188a
CEPH_RELEASE
-octopus
CEPH_RELEASE_TYPE` --
dev(or
rcor
stable``)Currently ceph-daemon is executing
ceph -v
inside the container to get this information, but simply extracting it from the container image metadata would be much faster!The text was updated successfully, but these errors were encountered: