osd/: add pg_log_entry_t::reverting_to for LOST_REVERT

Previously, we encoded the version to which we were
reverting in the prior_version field.  Now, we explicitely
encode that version in the reverting_to field.

Using prior_version to encode the reverting_to version
could cause us to revert to the wrong version:

primary osd.1 writes foo 7'6(0'0)
primary osd.1 writes foo 9'9(7'6)
primary osd.0 learns the log up to 9'9 but recovers no objects
primary osd.1 dies
primary osd.0 reverts the foo in version 17'11(7'6) to 7'6
primary osd.1 comes back and starts to recover itself

foo is not missing on osd.1, and so the new log entry
17'11(7'6) causes osd.1's missing set to contain an entry
for foo with need=17'11 and have=7'6.  recover_primary uses
this information to conclude that we can locally recover
the LOST_REVERT event from the local copy which it assumes
is 7'6 but in fact is 9'9.

This bug actually manifested as failing an assert in
populate_obc_watchers since the version on disk didn't
match the prior_version of the log event.

Signed-off-by: Samuel Just <sam.just@inktank.com>
osd/: encode LOST_REVERT reverting_to in prior_version pos

This will allow older osds to interpret the LOST_REVERT event
correctly.

Signed-off-by: Samuel Just <sam.just@inktank.com>
Merge remote-tracking branch 'upstream/wip_lost_unfound_event'

Reviewed-by: Sage Weil <sage@inktank.com>
osd/: add pool min_size parameter for min acting set size

Otherwise, a pg might go active with a single osd in the
acting set.  If that osd subsequently dies, we potentially
loose client writes.  Note: it's still possible for the
acting set to exceed min_size but fail to obey the spirit
of the user's crush settings (e.g., min_size is 2, but both
osds happen to be no the sam node).

Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil: <sage@inktank.com>
Update log file when rgw is not running

Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
ceph.spec.in:  Remove ceph version requirement from ceph-fuse package.

The ceph-fuse rpm package now only requires ceph as a pre-req, not a specific
version.
doc: Added topic for adding an OSD and adjusting CRUSH weights.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
doc: Removed legacy OpenStack installation.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
Merge branch 'master' of https://github.com/ceph/ceph
doc: Added topic for adding OSDs and adjusting CRUSH weights.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
doc: Minor edits for admonitions.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
doc: Edits from Peter Reiher's feedback, and minor edits for admonitions.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
doc: Minor edits for admonitions.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
doc: Fix and minor edit for admonitions.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
doc: Added new info per Ross's request.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
doc: Updated syntax usage prior to IA updates.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
doc: Updated syntax prior to IA updates.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
doc: Minor edit to admonitions.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
doc: Updated index for removal of legacy openstack install.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
doc: Updated syntax for consistent usage prior to IA updates.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>