Re: Are ceph commands backward compatible?
2024年6月14日(金) 23:24 Anthony D'Atri <aad@dreamsnake.net>:
Usually. There is a high bar for changing command structure or output. Newer versions are more likely to *add* commands and options than to change or remove them.
That said, probably some things now won't take a --cluster argument since vanity names are deprecated, similarly with filestore.
One exception that still pisses me off is when the mon time skew was factored out of ceph -s into a separate command
Thank you for your answer. I understood. Your comment matches what I had inferred from reviewing changelogs so far. Best, Satoru
On Jun 13, 2024, at 21:00, Satoru Takeuchi <satoru.takeuchi@gmail.com> wrote:
Hi,
I'm developing some tools that execute ceph commands like rbd. During development, I have come to wonder about compatibility of ceph commands.
I'd like to use ceph commands which version is >= the version used by ceph daemons. It results in executing new ceph commands against ceph clusters using old versions. So I'd like to know my tools are expected to work fine. Coud someone tell me whether ceph commands are backword compatible?
The officlal document didn't have the information I needed.
Thanks, Satoru _______________________________________________ ceph-users mailing list -- ceph-users@ceph.io To unsubscribe send an email to ceph-users-leave@ceph.io
On Mon, Jun 17, 2024 at 12:18 AM Satoru Takeuchi <satoru.takeuchi@gmail.com> wrote:
2024年6月14日(金) 23:24 Anthony D'Atri <aad@dreamsnake.net>:
Usually. There is a high bar for changing command structure or output. Newer versions are more likely to *add* commands and options than to change or remove them.
That said, probably some things now won't take a --cluster argument since vanity names are deprecated, similarly with filestore.
One exception that still pisses me off is when the mon time skew was factored out of ceph -s into a separate command
Thank you for your answer. I understood. Your comment matches what I had inferred from reviewing changelogs so far.
Hi Satoru, For rbd in particular, we try to be as compatible as possible -- we have actually rejected some improvements to structured output (--format json or --format xml) in the past to stay compatible. As long as you stick to structured output instead of parsing human-readable output, I would expect the same shell script to work for quite for a number of releases, but it's not really tested. Thanks, Ilya
Hi Ilya, Hi Satoru,
For rbd in particular, we try to be as compatible as possible -- we have actually rejected some improvements to structured output (--format json or --format xml) in the past to stay compatible. As long as you stick to structured output instead of parsing human-readable output, I would expect the same shell script to work for quite for a number of releases, but it's not really tested.
Thank you very much. I didn't know such rejections. I'll keep in mind this information. Regards, Satoru
participants (2)
-
Ilya Dryomov
-
Satoru Takeuchi