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

Sets the default version to giant #190

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

jperville
Copy link
Contributor

A few months ago, I created this branch to cherry-pick the different PRs (from @hufman and @klamontagne) that I have found useful to make this cookbook work with Ceph "giant" release.

After merging current master (as of version 0.8.0) into it, the difference between the branches became so tiny that I think it a merge into master could be considered.

@@ -22,6 +22,26 @@

cluster = 'ceph'

if node['ceph']['version'] >= 'giant'
Copy link
Contributor

Choose a reason for hiding this comment

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

are you sure that >= can work with future ceph version?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The mds pools are not created by default for versions >= giant (before that they were automatically created, so there was no code in the cookbook to create the pools if not present).

After thinking about it, creating the pool "not_if" already exists should be safe with older versions and also future proof. Want me to clean this up?

@guilhem
Copy link
Contributor

guilhem commented Feb 27, 2015

I need some advice from @hufman and a squashing :p

The only things that is shocking me (but I'm easily shocked :p) is line with not_if, if and big_mount_grep

@@ -29,6 +29,7 @@ def manage_mount(directory, subdir, use_fuse, action)
dump 0
pass 0
action action
not_if "mount | grep \"^ceph-fuse on #{Regexp.escape(directory)}\"" if action == :mount
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Mounting fuse-based filesystem does not play well when the system reboots: the fstab entry is mounted again by the system, but the "mount" resource does not see that the volume is mounted and tried mounting again, which fails the chef-run. Interested in more pretty workarounds.

Copy link
Contributor

Choose a reason for hiding this comment

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

The chef s3fs mount cookbook checks where the directory is a mountpoint, not specifically that it is an s3fs mountpoint.

Copy link
Contributor

Choose a reason for hiding this comment

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

This change will replace #170

Walter Huf and others added 3 commits August 14, 2015 17:53
The fstab and stuff need the weird option string as the 'device'
But the mount command shows 'ceph-fuse' as the device
Chef sees that they are different and tries to mount again
This adds a workaround to detect that it's already mounted
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.

3 participants