Commit Graph

20168 Commits

Author SHA1 Message Date
Laszlo Boszormenyi (GCS)
89492329d1 debian: build with libnss instead of crypto++
Signed-off-by: Laszlo Boszormenyi (GCS) <gcs@debian.hu>
2012-06-27 20:25:13 -07:00
Sage Weil
9d7f048073 doc/config-cluster/authentication: keyring default locations, simplify key management
- keyrings have new default locations that everyone should use.
- the user key setup is vastly simplified if you use the
  'ceph auth get-or-create' command.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-06-27 17:49:23 -07:00
Mike Ryan
f366173927 pg: report scrub status
Signed-off-by: Mike Ryan <mike.ryan@inktank.com>
2012-06-27 16:28:30 -07:00
Mike Ryan
c94583e500 pg: track who we are waiting for maps from
Signed-off-by: Mike Ryan <mike.ryan@inktank.com>
2012-06-27 16:28:13 -07:00
Mike Ryan
ecd7ffe7ce pg: reduce scrub write lock window
Wait for all replicas to construct the base scrub map before finalizing
the scrub and locking out writes.

Signed-off-by: Mike Ryan <mike.ryan@inktank.com>
2012-06-27 16:28:10 -07:00
Joao Eduardo Luis
16d55651e8 mon: MonmapMonitor: Use default port when the specified on 'add' is zero
Fixes a bug triggered by using the ceph tool to 'mon add' with a port set
to zero. We now default to the monitor's default port (6789) instead, and
we will fail if that port is already assigned to some other monitor.

Fixes: bug #2661

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2012-06-27 16:20:47 -07:00
Yehuda Sadeh
04e1c30127 rest-bench: mark request as complete later
We marked a request as complete in the callback, however
it might be that we're still inside S3_runall_request_context()
which means that request is not really complete yet.
Possibly fixes bug #2652.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2012-06-27 15:59:22 -07:00
Yehuda Sadeh
c5d19b6df0 rgw-admin: use correct modifier with strptime
Bug #2658: used %I (12h) instead of %H (24h)

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2012-06-27 13:48:15 -07:00
Samuel Just
17f433aa56 OSD: disconnect_session_watches: handle race with watch disconnect
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Tested-by: Stefan Priebe <s.priebe@profihost.ag>
2012-06-27 07:10:32 -07:00
John Wilkins
e34dfc3b6a doc: removing old 'todo' configuration reference.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2012-06-26 12:30:01 -07:00
John Wilkins
efb74a90f2 doc: converted daemon references from nasty tables to lines.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2012-06-26 12:24:23 -07:00
John Wilkins
4142ac44b3 doc: a few minor tweaks to radosgw to cleanup navigation.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2012-06-26 08:28:10 -07:00
John Wilkins
0be2611158 doc: Published RADOS GW docs and install as is for now. Needs more work.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2012-06-26 08:21:05 -07:00
caleb miles
9342573496 CrushTester.cc: removed last broken bits of obsolete method
Signed-off-by: caleb miles <caleb.miles@inktank.com>
2012-06-26 00:05:27 -07:00
caleb miles
6d551c17b8 CrushTester.cc: removed obsolete method for collapsing a CRUSH map
Signed-off-by: caleb miles <caleb.miles@inktank.com>
2012-06-26 00:02:24 -07:00
caleb miles
df7729e535 CrushTester: eliminated compiler warning
Signed-off-by: caleb miles <caselim@gmail.com>
2012-06-25 23:58:52 -07:00
Florian Haas
88e31546bb radosgw-admin: improve man page
* remove "OpenStack user" information (deprecated, should no
  longer be used. No reason to keep mentioning it)
* fix description of --uid
* mention subusers
* add key management commands

Signed-off-by: Florian Haas <florian@hastexo.com>
2012-06-26 08:39:22 +02:00
Florian Haas
63b562f93a doc: explain how to configure Ceph for radosgw
* explain creating auth creds for radosgw
* explain Apache config for radosgw
* explain starting daemons for radosgw
* explain creating users for radosgw
* explain creating subusers for radosgw
* explain using swift client against radosgw
* Explain user:subuser to tenant:user mapping in Swift

Signed-off-by: Florian Haas <florian@hastexo.com>
2012-06-26 08:37:25 +02:00
caleb miles
d82357df9b Merge branch 'master' of github.com:ceph/ceph 2012-06-25 23:14:09 -07:00
Yehuda Sadeh
07029a4f05 rgw: send both swift x-storage-token and x-auth-token
older clients need x-storage-token, newer x-auth-token

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2012-06-25 20:45:41 -07:00
Yehuda Sadeh
80a939a99d rgw: radosgw-admin date params now also accept time
The date format now is "YYYY-MM-DD[ hh:mm:ss]". Got rid of
the --time param for the old ops log stuff.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2012-06-25 20:45:38 -07:00
Yehuda Sadeh
c87c83f318 rgw-admin: fix usage help
s/show/trim

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2012-06-25 20:45:34 -07:00
Tommi Virtanen
77fcf06425 upstart: fix regex
Signed-off-by: Tommi Virtanen <tv@inktank.com>
Signed-off-by: Greg Farnum <greg@inktank.com>
2012-06-25 15:14:33 -07:00
Sage Weil
0cd21ea136 Merge branch 'next' 2012-06-25 14:45:21 -07:00
Greg Farnum
840ae24449 mon: don't tick the PaxosServices if we are currently slurping.
They aren't prepared to deal with the on-disk state being inconsistent.

Signed-off-by: Greg Farnum <greg@inktank.com>
2012-06-25 14:45:06 -07:00
Sage Weil
ef6beec992 objecter: do not feed session to op_submit()
The linger_send() method was doing this, but it is problematic because the
new Op doesn't get its pgid or acting vector set correctly.  The result is
that the request goes to the right OSD, but has the wrong pgid, and makes
the OSD complain about misdirected requests and drop it on the floor.  It
didn't affect the test results because we weren't testing whether the
watch was working in that case.

Instead, we'll just recalculate and get the same value the parent linger
op did.  Which is fine, and goes through all the usual code paths so
nothing is missed.

Also, increment num_homeless_ops before we recalc_op_target(), so that we
don't (harmlessly, but confusingly) underflow.

Fixes: #2022
Signed-off-by: Sage Weil <sage@inktank.com>
2012-06-25 14:44:30 -07:00
Samuel Just
4e45d60f6e ObjectStore::Transaction: initialize pool_override in all constructors
use_pool_override and pool_override weren't initialized in these two
constructors.

Signed-off-by: Samuel Just <sam.just@inktank.com>
2012-06-24 13:33:36 -07:00
Sage Weil
ff67210ec2 objecter: do not feed session to op_submit()
The linger_send() method was doing this, but it is problematic because the
new Op doesn't get its pgid or acting vector set correctly.  The result is
that the request goes to the right OSD, but has the wrong pgid, and makes
the OSD complain about misdirected requests and drop it on the floor.  It
didn't affect the test results because we weren't testing whether the
watch was working in that case.

Instead, we'll just recalculate and get the same value the parent linger
op did.  Which is fine, and goes through all the usual code paths so
nothing is missed.

Also, increment num_homeless_ops before we recalc_op_target(), so that we
don't (harmlessly, but confusingly) underflow.

Fixes: #2022
Signed-off-by: Sage Weil <sage@inktank.com>
2012-06-23 10:34:56 -07:00
Samuel Just
9fcc3dee9a osd_types.cc: remove hobject_t decode asserts
These asserts were useful for ensuring that pool is passed
in in the correct places, but they prevent the encoder
testing from working.

Signed-off-by: Samuel Just <sam.just@inktank.com>
2012-06-21 17:10:30 -07:00
Sage Weil
80649d08b9 mon: note that monmap may be reencoded later
Signed-off-by: Sage Weil <sage@inktank.com>
2012-06-21 17:10:30 -07:00
Sage Weil
77d836c5b8 mon: encoding new monmap using quorum feature set
It is probably unlikely that someone will expand the mon cluster with a
mixed feature set, but we know the quorum features here, so we should use
them.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-06-21 17:10:30 -07:00
Sage Weil
de5b323659 mon: conditionally encode mon features for remote mon
The only time we encode these is when forwarding messages.  Encoding using
the destination's feature set.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-06-21 17:10:30 -07:00
Sage Weil
c399d903dd mon: conditionally encode PGMap[::Incremental] with quorum features
This allows a mon cluster to transition to the new encoding during a
rolling upgrade.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-06-21 17:10:30 -07:00
Sage Weil
0aaf7334a9 mon: conditionally encode auth incremental with quorum feature bits
If the quorum does not yet all have the MONENC feature, stick to the old
encoding.

It might be more polite to require a super-quorum before switching over,
and take note so that thereafter we can stick to the new encoding, but
that has more moving parts and I'm not sure it's worth the complexity.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-06-21 17:10:29 -07:00
Sage Weil
06288a9d10 mon: track intersection of quorum member features
When we form a quorum, also note the intersection of the quorum members'
feature bits.  This will inform decisions about what encodings we use.

This is an imperfect strategy because the quorum may change, and we may
have a mon with old code join in and not understand what is going on.
However, it does ensure that a majority of the members run new code, so in
the absence of other failures we can make progress.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-06-21 17:10:29 -07:00
Sage Weil
2355b233ea mon: conditionally encode old monmap when peer lacks feature
This allows a rolling upgrade from 0.47.2 to 0.48.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-06-21 17:10:29 -07:00
Samuel Just
2fe9816305 OSD,PG,ObjectStore: handle messages with old hobject_t encoding
Messages that embed an hobject_t need to have the pool field fixed
on messages from old peers.

Signed-off-by: Samuel Just <sam.just@inktank.com>
2012-06-21 17:10:29 -07:00
Travis Rhoden
ddf7e836d6 doc: ceph osd crush add is now ceph osd crush set
Mailing list thread: http://www.spinics.net/lists/ceph-devel/msg06199.html

Signed-off-by: Travis Rhoden <trhoden@gmail.com>
2012-06-21 13:29:43 -07:00
Sage Weil
448f5b02b1 logrotate: reload all upstart instances
upstart doesn't let you wildcard all instances of a given job, so we
slog through initctl list output, and reload any running daemons.

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Tommi Virtanen <tv@inktank.com>
2012-06-21 12:43:00 -07:00
Yehuda Sadeh
58db045a2c docs: clarify example in radosgw-admin
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2012-06-21 11:35:13 -07:00
Sage Weil
7044192da5 filestore: remove btrfs start/end transaction ioctl code
This was an ill-conceived approach to getting atomic transactions out of
btrfs.  It doesn't offer rollback, which means that any error means we need
to wedge the file system and reboot in order to avoid corrupting the
data set.  And that's silly!

Snapshots are more robust and only marginally slower (because we have to
quiesce our writes while waiting for the snap to start, and btrfs resume
work in-kernel slightly faster...maybe).

Fixes: #2623
Signed-off-by: Sage Weil <sage@inktank.com>
2012-06-21 11:17:48 -07:00
Sage Weil
990febd93a mon: make pool deletion dne error code consistently ENOENT
This matches the check in _prepare_remove_pool() now.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-06-21 11:17:48 -07:00
Yehuda Sadeh
62a4ad66d1 docs: update usage logging info
added some text under radosgw, examples under radosgw-admin

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2012-06-21 10:47:44 -07:00
Sage Weil
a85a15fef4 Merge remote-tracking branch 'gh/stable' into next 2012-06-21 08:20:17 -07:00
John Wilkins
1e539daf06 doc: Normalized shell script syntax. Added generic cookbook path.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2012-06-20 15:10:23 -07:00
John Wilkins
7d38758a02 doc: Changed libvirt-dev to libvirt-bin, and cleaned up ./autogen.sh
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2012-06-20 14:29:58 -07:00
Tommi Virtanen
3e32dd08ef doc: Typo.
Signed-off-by: Tommi Virtanen <tv@inktank.com>
2012-06-20 12:55:29 -07:00
Sage Weil
c467d9d1b2 v0.47.3 2012-06-20 10:57:41 -07:00
Sage Weil
17dcf60510 filestore: disable 'filestore fiemap' by default
We've seen this failing on both btrfs (Guido) and XFS (Oliver).  This works
around #2535.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-06-20 10:02:36 -07:00
Samuel Just
88c7629e04 OSD: clear_temp: split delete into many transactions
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
2012-06-19 17:34:20 -07:00