debian: Create placeholder dirs for mon and osd data directories.

Signed-off-by: Tommi Virtanen <tv@inktank.com>
debian, upstart, osd: osd disk preparation and activation scripts

Signed-off-by: Tommi Virtanen <tv@inktank.com>
upstart: support mds

Closes: #2414
Signed-off-by: Tommi Virtanen <tv@inktank.com>
Makefile: include ceph-mds upstart bits in dist tarball

Signed-off-by: Sage Weil <sage@inktank.com>
objecter: fix pgls

First problem: if the osd returns more entries than we ask for, max_entries
was going negative, and we were requesting (u64)(-small number) on the
next iteration, slamming the OSD when the PG was big.  We fix that by
finishing response_size >= max_entries.

Second problem: AFAICS we were not requesting the second chunk on a large
PG at all, here, if the OSD returned less than what we wanted.  Fix this
by asking for more in that case.

That means we detect the end of a PG in two ways:

 * if the OSD sets the return value to 1 (instead of 0)
 * if we get 0 items in the response

Another patch will change the OSD behavior to return 1, and all will be
well.  If we run against an old OSD, we'll send an extra request for each
PG and get nothing back before we realize we've hit the end and move on.

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Sam Just <sam.just@inktank.com>
ReplicatedPG: fix pgls listing, add max listing size

Previously, a client requesting a large pgls could tie up the
osd for an unacceptable amount of time.  Also, it's possible
for the osd to return less than the requested number of
entries anyway, so we now return 1 when we have completed the
listing.

Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
omapbench: fix misc warnings

Signed-off-by: Sage Weil <sage@inktank.com>
omapbench: fix warning

Signed-off-by: Sage Weil <sage@inktank.com>
paxos: warn on extreme clock skew

This would have helped us diagnose #2480.

Signed-off-by: Sage Weil <sage@inktank.com>
upstart: simplify start; allow group stop via an abstract job

Use a 'ceph-mds' or 'ceph-mon' event to start instances instead of
explicitly calling start.  This avoids the ugly is-this-already-running
check.  [Thanks Guilhem Lettron for that!]

Make the -all job abstract (which means it stays started and can be
stopped).  Trigger a helper task (-all-starter) to trigger instance
start.  Make instances stop with the -all task.  This allows you to do

 start ceph-mds-all
 stop ceph-mds-all
 start ceph-mds id=foo
 start ceph-mds-all
 stop ceph-mds id=bar
 stop ceph-mds-all

but not

 start ceph-mds id=foo
 stop ceph-mds-all

because ceph-mds-all isn't running.  Not quite as flexible in sysvinit in
that regard, but good enough for me.

Fixes: #2414
Signed-off-by: Sage Weil <sage@inktank.com>
Merge remote branch 'gh/chef-3'
admin_socket: only init if path is defined

Signed-off-by: Sage Weil <sage@inktank.com>
rgw: try to create fcgi socket through open() first

FCGX_OpenSocket might just exit() without any warning if it fails
to create the socket.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
rgw: shutdown init_timer

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
doc: Added ${lsb_release -sc} based on Sam's feedback.


Signed-off-by: John Wilkins <john.wilkins@inktank.com>
Makefile.am: explicitly mention that -Wl,--as-needed is location-sensitive.
doc: adding code samples for S3 API usage (thanks, DH!)

Signed-off-by: Ross Turk <ross@inktank.com>
doc: Added S3 examples to the toctree.


Signed-off-by: John Wilkins <john.wilkins@inktank.com>
mon: clear osd_stat on osd creation/destruction

Reported-by: Vladimir Bashkirtsev <vladimir@bashkirtsev.com>
Signed-off-by: Sage Weil <sage@inktank.com>
src/: Add namespace and pool fields to hobject_t

From this point, hobjects in the ObjectStore will be globally unique.  This
will allow us to avoid including the collection in the ObjectMap key encoding
and thereby enable efficient collection renames and, eventually, collection
splits.

Signed-off-by: Samuel Just <sam.just@inktank.com>