Commit Graph

14533 Commits

Author SHA1 Message Date
Yehuda Sadeh
a0d521b2ee rgw: fix signing for some requests 2011-05-27 13:35:47 -07:00
Yehuda Sadeh
818bfd15ce rgw: serve multipard init upload
still needs to generate a random hidden object, and use rados locator
for accessing it.
2011-05-27 12:50:27 -07:00
Yehuda Sadeh
9e8484e8ab rgw: handle POST requests for s3 2011-05-26 15:18:48 -07:00
Yehuda Sadeh
73e28f2e8b rgw: return EACCES if acl xattr doesn't exist 2011-05-25 12:33:12 -07:00
Sage Weil
fe955881a8 crushtool: clean up add-item a bit; don't add item to same bucket twice
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-05-24 21:14:59 -07:00
Sage Weil
dd89ff4420 crushtool: fix remove-item
Scan all buckets instead of doing a tree traverse.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-05-24 21:05:47 -07:00
Sage Weil
1c334d1aa7 radosgw_admin: update clitest
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-05-24 20:30:38 -07:00
Colin Patrick McCabe
ab01d74e91 mkcephfs.in: print out usage if no actions given
If the user didn't specify any actions, print out a usage message rather
than silently exiting.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-05-24 18:16:08 -07:00
Colin Patrick McCabe
f7ea7c989b rgw: Fix RGWAccess::init_storage_provider
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-05-24 17:53:49 -07:00
Sage Weil
c67dd164a4 mkcephfs: error out on bad usage
Signed-off-by: Sage Weil <sage@newdream.net>
2011-05-24 17:06:13 -07:00
Yehuda Sadeh
5532f897c7 make: fix build for rgw 2011-05-24 16:40:12 -07:00
Yehuda Sadeh
203a43bf2a rgw_admin: clean warning 2011-05-24 16:33:11 -07:00
Yehuda Sadeh
95c594f6c6 Merge commit 'origin/master' into rgw-multiuser 2011-05-24 15:30:17 -07:00
Yehuda Sadeh
ab278b4b08 rgw_admin: add key create 2011-05-24 14:29:50 -07:00
Yehuda Sadeh
bd0eb9a304 rgw_admin: subuser and key removal 2011-05-24 14:17:59 -07:00
Colin Patrick McCabe
bb13c92a57 test_common.sh: skip rm before put
The rm before the put is unecessary and actually incorrect now.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-05-24 12:36:07 -07:00
Colin Patrick McCabe
e42736ae7e radostool: rados put should use write_full
If "rados put" uses write instead of write_full, the resulting object on
the server may be a mismash of old and new objects, if the old object
was longer than the new one. This is fairly counterintuitive behavior
for radostool, so remove it.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-05-24 12:34:56 -07:00
Colin Patrick McCabe
cfe372ec28 Merge branch 'wip_ceph_context' 2011-05-24 12:22:30 -07:00
Colin Patrick McCabe
9ff7cc7c37 Create a libcommon service thread
Create a libcommon service thread. Use it to handle SIGHUP.

Handle it by means of a flag that gets set. Using a queue would raise
the complicated question of what to do when the queue was full.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-05-24 12:21:02 -07:00
Sage Weil
2970268521 librados: len should be size_t
Unsigned, and size_t because it's a buffer size.

Fixes signedness warning in testrados.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-05-24 10:00:23 -07:00
Sage Weil
cea7b65182 mds: clean up get_or_create_stray
Signed-off-by: Sage Weil <sage@newdream.net>
2011-05-24 09:27:07 -07:00
Sage Weil
754cfaacb7 Merge branch 'stable' 2011-05-24 09:17:24 -07:00
Sage Weil
d66c6ca19b v0.28.1 2011-05-23 21:11:44 -07:00
Colin Patrick McCabe
9a660ac910 librads, libceph: store CephContext
Don't use the global g_ceph_context. Instead, store the CephContext in
the structures provided by the library user.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-05-23 17:28:32 -07:00
Colin Patrick McCabe
13aed89e48 Add CephContext
A CephContext represents the context held by a single library user.
There can be multiple CephContexts in the same process.

For daemons and utility programs, there will be only one CephContext.
The CephContext contains the configuration, the dout object, and
anything else that you might want to pass to libcommon with every
function call.

Move some non-config things out of md_config_t and into CephContext.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-05-23 17:28:27 -07:00
Colin Patrick McCabe
1c7b98212d Split common_init_daemonize from common_init_finish
Split off common_init_daemonize from common_init_finish. cfuse is a
daemon that calls common_init_finish, but handles daemonization itself.
This fixes cfuse.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-05-23 17:07:04 -07:00
Yehuda Sadeh
478c6bbcd1 rgw_admin: make interface a bit more explicit 2011-05-23 16:52:59 -07:00
Yehuda Sadeh
c167a28d73 rgw: subuser permissions 2011-05-23 15:12:48 -07:00
Sage Weil
6360154d79 mon: verify that crush max does not exceed osd max
- when injecting a new crushmap
- when adjusting osdmap max_osd

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-05-23 14:58:26 -07:00
Sage Weil
5d98280311 crushtool: add --reweight-item <name> <weight>
Reweight and individual item via crushtool.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-05-22 16:25:35 -07:00
Sage Weil
e9754d88ce osdmaptool: fail --import-crush if crush max_devices > osdmap max_osd
Crush will spew non-deterministic badness if it walks off the end of
the osd_weight vector.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-05-21 12:55:16 -07:00
Colin Patrick McCabe
3a2acefebd common_init: don't init crypto until after fork
Get rid of the initialize-then-shutdown-crypto hack. We just initialize
crypto once, after it is safe to do so. There is now a single callback,
common_init_finish, which does the final stage of initialization,
including starting crypto and daemonization (if required.)

common_init_finish needs to be done before messenger::start().

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-05-20 17:57:11 -07:00
Colin Patrick McCabe
35ee7e644d ceph_crypto: add assert_init
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-05-20 17:57:11 -07:00
Sage Weil
ba7ef84546 config: delete after new
Signed-off-by: Sage Weil <sage@newdream.net>
2011-05-20 18:16:49 -07:00
Sage Weil
4cc83a6876 crush: fix signedness warnings
Signed-off-by: Sage Weil <sage@newdream.net>
2011-05-20 17:10:15 -07:00
Yehuda Sadeh
5baef8f616 rgw_admin: able to create multiple keys/subusers 2011-05-20 16:46:14 -07:00
Sage Weil
cc1737bd81 crushtool: --remove-item name
Signed-off-by: Sage Weil <sage@newdream.net>
2011-05-20 16:45:41 -07:00
Sage Weil
9a14402a08 crush: fix tree bucket encoding
I wonder how long this has been broken!

Signed-off-by: Sage Weil <sage@newdream.net>
2011-05-20 16:45:40 -07:00
Sage Weil
d287ade5bc crush: fix tree weight accessor, decompile
Signed-off-by: Sage Weil <sage@newdream.net>
2011-05-20 16:45:40 -07:00
Sage Weil
127dcde18b crushtool: default to hash 0 (rjenkins1)
Otherwise we get 255 which is undefined and get bad results!

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-05-20 15:44:15 -07:00
Yehuda Sadeh
2cf5048f6b rgw: user info structure supports multiple subusers and keys 2011-05-20 15:15:48 -07:00
Sage Weil
4a83de1832 osd: update last_epoch_clean in PG::Info::History::merge()
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-05-20 15:15:12 -07:00
Sage Weil
c22aca1f99 osd: small cleanup
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-05-20 15:15:12 -07:00
Sage Weil
e3191b7dc6 osd: merge history when primary sends replica new pg info
This, among other things, lets us update last_epoch_started and
last_epoch_clean.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-05-20 15:15:12 -07:00
Sage Weil
a51bf3e9df osd: more heartbeat rework
A few things:
 - track Connection* instead of entity_inst_t for hb peers
 - we can only send maps over the cluster_messenger
   - if peer is still alive, do that
   - if peer is not, send dying MOSDPing ping with YOU_DIED flag
2011-05-20 15:15:12 -07:00
Sage Weil
b5ebe6b5a6 msgr: don't close close_on_empty until outgoing messages are acked
Otherwise, if we close the socket, we may lose in-flight data.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-05-20 15:15:12 -07:00
Sage Weil
bac1021e06 osd: only forget peer epochs if they are down AND no longer heartbeat peers
If we forget the peer epoch when we see them go down, we won't share the
map later in update_heartbeat_peers() to tell them they're down.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-05-20 15:15:12 -07:00
Sage Weil
bc960ac1ea osd: show last_epoch_clean in PG::Info::History printer
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-05-20 15:15:12 -07:00
Sage Weil
726aebea8f osd: rework peer map epoch caching
We try to keep track of which epochs our peers have so that we can be
semi-intelligent about which map incrementals we send preceeding any
messages.  Since this is useful from the heartbeat and cluster channels/
threads, protect the data with an inner lock and clean up the callers.

Be smarter about when we forget.

Make note of peer epoch when we receive a ping.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-05-20 15:15:12 -07:00
Sage Weil
27c0bce63c mon: fix parsing of 'osd foo N ...' commands with multiple ids
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-05-20 15:15:12 -07:00