ceph / ceph-cookbook

Chef cookbooks for Ceph
Apache License 2.0
100 stars 107 forks source link

Ubuntu 14.04 installs the wrong version of Ceph #138

Closed hufman closed 10 years ago

hufman commented 10 years ago

Ubuntu 14.04's repos have version 0.79 and version 0.80 available in the repos, and so while the Chef cookbook says to install one version, another version entirely gets installed. This is mainly a problem when trying to install a specific version on a new mon node to join an existing cluster with an older version running, because the new mon isn't able to connect.

hufman commented 10 years ago

I was able to work around it by creating the following /etc/apt/preferences.d/ceph file:

Package: ceph*
Pin: version 0.72*
Pin-Priority: 500
Package: radosgw*
Pin: version 0.72*
Pin-Priority: 500

The main problem is that it requires a specific version. There may be a way to pin a specific repo. The only other example I found quickly was to pin a specific repo codename, but both the official repo and the ceph repo are code-named trusty.

hufman commented 10 years ago

I had a chance to try it out, and here's a more better one:

Package: ceph* *ceph radosgw* librbd* librados*
Pin: origin "ceph.com"
Pin-Priority: 1001
guilhem commented 10 years ago

You can use:

Package: *
Pin: origin "ceph.com"
Pin-Priority: 1001

Do you want to add this in CK?

hufman commented 10 years ago

140 is ready to merge!

hufman commented 10 years ago

Merged #140