Skip to content
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

Additional option CVMFS_MOUNT_RW in repo.local template. #36

Merged
merged 3 commits into from
Jul 7, 2015

Conversation

mrolli
Copy link
Contributor

@mrolli mrolli commented Jun 1, 2015

This adds an additional option to be used in default.local. We are using
this in our setup. It was recommended to workaround a bug. Not sure if it
is still necessarey though.

@traylenator
Copy link
Contributor

Hi @mrolli

Given that hardly anyone uses this option I think it would be better to not alter all configurations. Perhaps set cvmfs_mount_rw to undef by default and within the template something like

<% if @cvmfs_mount_rw -%>
CVMFS_MOUNT_RW=<%= @cvmfs_mount_rw %>
<% end -%>

tests appreciated also.

@traylenator
Copy link
Contributor

And update README also with new option.

@mrolli
Copy link
Contributor Author

mrolli commented Jun 10, 2015

@traylenator

Good point. Should have thought of the default undef myself. Will update the PR and also add tests. Probably at the beginning of next week.

README already updated in commit above.

@mrolli mrolli force-pushed the feature/option-mount-rw branch 2 times, most recently from e6815f1 to f942425 Compare June 15, 2015 09:17
@mrolli
Copy link
Contributor Author

mrolli commented Jun 15, 2015

@traylenator

Changed the default value for CVMFS_MOUNT_RW, added tests and rebased to current master. The tests regarding CVMFS_MOUNT_RW are passing though I see errors regarding '$concat_basedir not defined' for the defines. In class tests for cvmfs I fixed this by setting concat_basedir to something (http://terrarum.net/blog/puppet-testing-part-1.html#a-note-about-facts), but this is missing in defines. On the other hand I see the very same tests passing in branch master. To some extent I'm confused. What shall we do now?

@traylenator
Copy link
Contributor

This is because concat version 2.0 was pulled as release. I'll rerun the tests now in master and then fix it there.

@traylenator
Copy link
Contributor

master has now been fixed for the failing tests. One more rebase and we should be there. Thanks!!

@mrolli
Copy link
Contributor Author

mrolli commented Jun 24, 2015

@traylenator Ok, all green. Thanks for the work. :-)

@@ -9,7 +9,8 @@
$cvmfs_max_ttl = undef,
$cvmfs_env_variables = undef,
$cvmfs_use_geoapi = undef,
$cvmfs_repo_list = true
$cvmfs_repo_list = true,
$cmvfs_mount_rw = 'no',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be an undef.

I've just written a test to check the that the default configuration does not change so this should be caught now.
It does not work for the main default.local file but works for the domain and mount.

Apologies for the delay.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@traylenator Yes, this should definitely be undef too like in params.pp. Sorry, apparently I switched from 'no' to undef in params.pp file only in my PR. I forgot about mount.pp, which is not using the params.pp to set it's defaults.

I'll change this, rebase and test again. Ok?

Rolli, Michael (ID) added 3 commits July 7, 2015 15:29
This adds an additional option to be used in default.local. We are using
this in our setup. It was recommended to workaround a bug. Not sure if it
is still necessarey though.
A sensible default should be 'undef' for CVMFS_MOUNT_RW is only rarely
used, in order to not cause a configuration change.
Added rspec tests for the new option.
@traylenator
Copy link
Contributor

I've finished publishing to master.

traylenator added a commit that referenced this pull request Jul 7, 2015
Additional option CVMFS_MOUNT_RW in repo.local template.
@traylenator traylenator merged commit 92474fc into voxpupuli:master Jul 7, 2015
@mrolli mrolli deleted the feature/option-mount-rw branch July 20, 2017 05:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants