-
Notifications
You must be signed in to change notification settings - Fork 82
cli: Support Setting old Volume option names #816
base: master
Are you sure you want to change the base?
Conversation
Fixes: #739 Signed-off-by: Aravinda VK <[email protected]>
https://gist.github.com/aravindavk/672146cd5b5d050309a78c948f79dc5c |
@amarts With this patch, volume set works with old option names. But Volinfo will show new names only. |
Yes, this is a good start. Lets see with this, how many regressions work, or fails. I am thinking we should do a wrapper function which can deal with compatibility in regression itself. |
We can do reverse mapping of responses back to old names as regression tests look for old names. @aravindavk Is that planned ? This approach looks good to me as long as it's primary purpose is to re-use existing regression tests. For users, we should strongly encourage using the new names and deprecate the old ones gradually. Please add a deprecated warning when old option names are used. |
+1, I second Prashanth’s opinion.
On Wed, 13 Jun 2018 at 06:57, Prashanth Pai ***@***.***> wrote:
@amarts <https://github.com/amarts> With this patch, volume set works
with old option names. But Volinfo will show new names only.
We can do reverse mapping of responses back to old names as regression
tests look for old names. @aravindavk <https://github.com/aravindavk> Is
that planned ?
This approach looks good to me as long as it's primary purpose is to
re-use existing regression tests. For users, we should strongly encourage
using the new names and deprecate the old ones gradually. Please add a
deprecated warning when old option names are used.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#816 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGp7mBuOzu--Zj7_JwYPe9pRfCMGPmWwks5t8PAYgaJpZM4URJbY>
.
--
- Atin (atinm)
|
I started this effort to add backward compatibility for Volume options, but now I realized a problem with new names. For example, Self heal daemon is common for disperse/replica, these options are set using I have some unanswered questions to proceed on this PR, we can discuss that next week. |
Would this be needed for GCS? I guess the priority can be low as many of the option settings will be done through storage class? |
Ack. GCS is a limited and opinionated deployment. |
Fixes: #739
Signed-off-by: Aravinda VK [email protected]