mon/OSDMonitor : Use user provided ruleset for replicated pool

When creating a replicated pool, currently ceph ignore the ruleset
name provided by user but use a global default ruleset.

This patch fix this bug, so the rulset specified by
ceph osd pool create replicated
can be properly set.

Signed-off-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
vstart.sh to enable support for simple RadosGW

Signed-off-by: Luis Pabón <lpabon@redhat.com>
Merge branch 'master' into rgw-doc

Conflicts:
	src/vstart.sh
Rebased and changed debug option

Signed-off-by: Luis Pabón <lpabon@redhat.com>
Rebased civetweb version to master's
os/FileJournal: Tune the judge logic for read_header.

When reading journal-header, it should firstly check the result of
pread and then do decoce operation.

Signed-off-by: Ma Jianpeng <jianpeng.ma@intel.com>
os/FileJournal: Only using aio then alloc the related resources.

If define HAVE_LIBAIO, it alloc related resouces. But itt don't check whether
using aio mode. Only using aio it alloc the related resources.

Signed-off-by: Ma Jianpeng <jianpeng.ma@intel.com>
mon: add a cluster fingerprint

Generate it on cluster creations with the initial monmap.  Include it in
the report.  Provide no way for this uuid to be fed in to the cluster
(intentionally or not) so that it can be assumed to be a truly unique
identifier for the cluster.

Signed-off-by: Sage Weil <sage@redhat.com>
mon: generate cluster_fingerprint if null

This triggers after an upgrade of a legacy cluster that has no fingerprint.

Signed-off-by: Sage Weil <sage@redhat.com>
CrushWrapper: pick a ruleset same as rule_id

Originally in the add_simple_ruleset funtion, the ruleset_id
is not reused but rule_id is reused. So after some add/remove
against rules, the newly created rule likely to have
ruleset!=rule_id.

We dont want this happen because we are trying to hold the constraint
that ruleset == rule_id.

Signed-off-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
Doc: Add config option to turn off crush update

Signed-off-by: David Moreau Simard <dmsimard@iweb.com>
Merge pull request #2288 from xiaoxichen/fix_add_simple_ruleset

CrushWrapper: pick a ruleset same as rule_id

Reviewed-by: Loic Dachary <loic-201408@dachary.org>
Merge pull request #2307 from dmsimard/crushdoc

Doc: Add config option to turn off crush update

Reviewed-by: Loic Dachary <loic-201408@dachary.org>
Merge pull request #2291 from ceph/wip-fingerprint

mon: add a unique clsuter fingerprint

Reviewed-by: Joao Eduardo Luis <joao.luis@inktank.com>
common/shared_cache: take a cct

Signed-off-by: Sage Weil <sage@redhat.com>
Merge pull request #2304 from majianpeng/fix1

small bug fix for journal

Reviewed-by: Sage Weil <sage@redhat.com>
common/shared_cache: dump weak refs on shutdown

Before asserting, dump what the refs are along with the counts.

Signed-off-by: Sage Weil <sage@redhat.com>
Merge pull request #2292 from lpabon/rgw-doc

vstart.sh to enable support for simple Rados

Tested-by: GWabhishek.lekshmanan@gmail.com
vstart.sh: debug rgw = 20 on -d

Signed-off-by: Sage Weil <sage@redhat.com>
Merge branch 'wip-weak-refs'