-
Notifications
You must be signed in to change notification settings - Fork 449
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
Replace the existing filesystem plugin on Linux and Darwin with filesystem_v2 #974
Conversation
Filesystem’s implementation leaves a lot to be desired and contains bugs that continually burn new users. This change removes the legacy filesystem plugin on Linux and changes the filesystem_v2 plugin to write to both node[‘filesystem’] and node[‘filesystem_v2’] Signed-off-by: Tim Smith <[email protected]>
Signed-off-by: Tim Smith <[email protected]>
it "sets both filesystem and filesystem_v2 attributes" do | ||
plugin.run | ||
expect(plugin[:filesystem]).to_not be_nil | ||
expect(plugin[:filesystem_v2]).to_not be_nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
expect(plugin[:filesystem]).to eq(plugin[:filesystem_v2])
as well maybe?
but this test also seems to be failing and filesystem_v2 seems to be nil for some reason...
It seems confusing to me to go this way rather than renaming filesystem2 to filesystem and having it populate filesystem2 as a back-compat thing for now. That said as the author of fs2, I'm 👍 in general. :) |
@jaymzh The end goal for this plugin and the cloud_v2 plugin is for them to just entirely assume the namespace of the existing plugins. We'll write to both locations with the new data through the Chef 13 release cycle. In Chef 14, the V2 namespaces go away and these just become the one and only filesystem and cloud plugins. It's just a bit staggered to lesson the impact as much as we can. Until we do the final cutover there's not a huge need to rename the plugin file itself. |
Signed-off-by: Tim Smith <[email protected]>
@jaymzh I take the above statement back. We should rename them so the enable/disable config makes sense. |
Signed-off-by: Tim Smith <[email protected]>
My thoughts exactly. I like this... my only comment left is that the title here says it's for Linux, but it's for Darwin too.. Also, do we need doc changes here? |
This definitely goes into the upgrade guide. It's a big change but will eliminate a lot of support issues when people use the old plugin and have a bad time. It's worth the pain of forcing a migration |
🥇 |
Thanks again for writing this in the first place @jaymzh. Making it the default is going to prevent some 😢 out of box |
Filesystem’s implementation leaves a lot to be desired and contains bugs that continually burn new users. This change removes the legacy filesystem plugin on Linux and changes the filesystem_v2 plugin to write to both node[‘filesystem’] and node[‘filesystem_v2’]
Signed-off-by: Tim Smith [email protected]