Commit Graph

19071 Commits

Author SHA1 Message Date
Joao Eduardo Luis
5466ebc776 test_idempotent_sequence: Output missing options on "usage".
Signed-off-by: Joao Eduardo Luis <jecluis@gmail.com>
2012-04-20 16:51:52 -07:00
Joao Eduardo Luis
474612918e FileStoreDiff: check if two FileStores match.
This code should be on a stand-alone class, instead of being embedded on
a single test, in case someone or something find it useful somewhere down
the line.

Signed-off-by: Joao Eduardo Luis <jecluis@gmail.com>
2012-04-20 16:51:40 -07:00
Sage Weil
a8aaa93b3e admin_socket: add a separate debug subsys/level
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-04-20 16:50:43 -07:00
Sage Weil
f7699cc993 log: prefix dump with line numbers
This makes it easier to interpret the dump, and makes it obvious what is
dump (and potentially a dup of something that was already logged) and what
is not.

Signed-off-by: Sage Weil <sage@newdream.net>
2012-04-20 16:36:54 -07:00
Sage Weil
a68b3069de test_filestore_workloadgen: track pg log size in memory
Avoid a stat!

Signed-off-by: Sage Weil <sage@newdream.net>
2012-04-20 15:35:44 -07:00
Sage Weil
6b28f55cd3 test_filestore_workloadgen: whitespace
Signed-off-by: Sage Weil <sage@newdream.net>
2012-04-20 15:30:45 -07:00
Sage Weil
2834f601ef organize test_filestore_idempotent*
Signed-off-by: Sage Weil <sage@newdream.net>
2012-04-20 15:25:32 -07:00
Sage Weil
8bb58bc2b4 remove hopelessly flawed test_filestore_idempotent
Signed-off-by: Sage Weil <sage@newdream.net>
2012-04-20 15:23:17 -07:00
Sage Weil
94ebe8d951 test_store -> test_filestore
and organize source

Signed-off-by: Sage Weil <sage@newdream.net>
2012-04-20 15:22:36 -07:00
Sage Weil
77c645a199 test_wrkldgen -> test_filestore_workloadgen
Also put the code in src/test/filestore/.

Signed-off-by: Sage Weil <sage@newdream.net>
2012-04-20 15:20:16 -07:00
Sage Weil
f00dab6f4a ceph-authtool: rename cli test dir
Signed-off-by: Sage Weil <sage@newdream.net>
2012-04-20 13:28:23 -07:00
Sage Weil
613d81794b ceph-conf: rename cli test dir
Signed-off-by: Sage Weil <sage@newdream.net>
2012-04-20 13:28:03 -07:00
Sage Weil
0616c5b26d Merge branch 'stable'
Conflicts:
	src/osd/OpRequest.cc
2012-04-20 13:22:22 -07:00
Sage Weil
ac874a6253 OpRequest: mark_event output is now at debug 5
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
2012-04-20 13:21:14 -07:00
Sage Weil
f2d4574bd6 config: dump subsys log levels with --show-config
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-04-19 22:24:43 -07:00
Yehuda Sadeh
0df33e4300 Merge branch 'wip-2313' 2012-04-19 16:43:36 -07:00
Sage Weil
8335eb5383 rgw: can't remove user that owns data
This is a workaround for #1681. We don't allow the removal of
user that still has data.

Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
Reviewed-by: Sage Weil <sage@newdream.net>
2012-04-19 16:25:03 -07:00
Samuel Just
56fc92c0f2 FileStore: don't read reference to writeq head after pop_write
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
2012-04-19 15:22:53 -07:00
Yehuda Sadeh
758fa9ba7e rgw: bucket HEAD operation should return 200, not 204
Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
2012-04-19 13:21:17 -07:00
Sage Weil
9cb796a03a obsync: section 8 -> 1
Fixes: #2263
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-04-19 12:47:50 -07:00
Yehuda Sadeh
09100b6bea rgw: HEAD bucket, don't dump rounded size
Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
2012-04-19 09:23:31 -07:00
Sage Weil
9c2251f605 osd: fix vector array out of bounds
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-04-19 09:19:43 -07:00
Sage Weil
e82c33099a ceph-fuse: only call common_init_finish in child; fix admin socket
If we do it in the parent and child, we break the admin socket (among
other things).

Fixes: #2293
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-04-18 21:58:14 -07:00
Sage Weil
f1de0d6cb3 qa: drop rgw.py from test_python.sh workunit
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-04-18 21:27:49 -07:00
Sage Weil
d3a57a211a ceph.spec.in: drop rgw.py
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-04-18 21:27:39 -07:00
Sage Weil
0995d08477 Makefile: drop rgw.py
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-04-18 21:26:53 -07:00
Sage Weil
4390c08acd mon: fix full/nearfull ratio initialization
create_pending() is called before create_initial(), so just put these in
the first incremental.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-04-18 17:14:09 -07:00
Yehuda Sadeh
aab516da7f rgw: allow subuser creation on radosgw-admin user create
This fixes issue #2312: allow the creation of both user
and a subuser in a single radosgw-admin command.

Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
2012-04-18 15:45:09 -07:00
Sage Weil
dbe779a568 osd: dump old ops singly rather than all at once.
Fixes #2269. Convert the OpTracker::check_ops_in_flight interface
to take a vector<string> and create a separate warning for each old
Op, and dump those singly to the clog in the OSD.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
Reviewed-by: Sage Weil <sage@newdream.net>
2012-04-18 15:23:58 -07:00
Sage Weil
b0532aa6ed osdmap: restructure flow in OSDMap::decode
Signed-off-by: Sage Weil <sage@newdream.net>
Reviewed-by: Greg Farnum <gregory.farnum@dreamhost.com>
2012-04-18 15:23:57 -07:00
Sage Weil
bc458bfdf3 ceph-object-corpus: prune archive
Signed-off-by: Sage Weil <sage@newdream.net>
2012-04-18 15:13:38 -07:00
Sage Weil
ebb19e70b6 test/encoding/import.sh: fix
Signed-off-by: Sage Weil <sage@newdream.net>
2012-04-18 15:09:18 -07:00
Yehuda Sadeh
e1622e4f9c rgw: HEAD bucket also dumps bucket meta info
Shows total objects, bytes used, actual bytes used.

Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
2012-04-18 14:53:59 -07:00
Yehuda Sadeh
0769efa56b rgw: add x-rgw-* as a possible meta header prefix
Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
2012-04-18 14:53:06 -07:00
Sage Weil
2de37e01d7 Merge remote-tracking branch 'gh/wip_journal'
Reviewed-by: Sage Weil <sage@newdream.net>
2012-04-18 14:36:15 -07:00
Sage Weil
c3bfe45692 osdmap: remove bad cct reference
Not in OSDMap

Signed-off-by: Sage Weil <sage@newdream.net>
2012-04-18 14:10:22 -07:00
Sage Weil
9ef953b5e2 Merge branch 'wip-2286-ratio-a'
Reviewed-by: Sage Weil <sage@newdream.net>
2012-04-18 13:28:54 -07:00
Sage Weil
eea982e567 osdmap: workaround old bug that zeroed pool_max
Signed-off-by: Sage Weil <sage@newdream.net>
Reviewed-by: Greg Farnum <gregory.farnum@dreamhost.com>
2012-04-18 12:50:47 -07:00
Yehuda Sadeh
ee22c97b0f python-ceph: remove rgw bindings
We shouldn't expose these internal apis.

Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
2012-04-18 11:32:19 -07:00
Greg Farnum
eb8a8fdfee pgmap: allow Incrementals to specify [near]full_ratios of 0
This commit isn't entirely safe: old monitors used 0 to mean "no change".
We can revert this (and the PGMonitor.cc portion of
841f288531) if we don't want to allow
0 as a valid ratio setting, and to maintain perfect backwards
compatibility.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2012-04-18 11:10:36 -07:00
Greg Farnum
88525eaa0a pgmon: add "set_full_ratio x" and "set_nearfull_ratio x" commands
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2012-04-18 11:05:31 -07:00
Greg Farnum
882bd5b879 pgmon: convert PGMonitor::prepare_command to our standard infrastructure.
So that I can add another command.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2012-04-18 11:05:19 -07:00
Greg Farnum
1242b7545a pgmon: remove the PGMonitor update_full_ratios stuff
Making it a config watcher is just a huge mess in terms of consistently
updating it appropriately.
The next commit will add a monitor command for changing it.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2012-04-18 11:05:13 -07:00
Sage Weil
f1152e6765 mon: only fill in full/nearfull sets if the ratio > 0
This avoids putting all OSDs in both sets when the ratios are 0, as they
are with a fresh cluster and pgmap.  This also makes setting the ratio to
0 effectively disable the full/nearfull feature.

Signed-off-by: Sage Weil <sage@newdream.net>
2012-04-18 11:05:13 -07:00
Greg Farnum
841f288531 mon: unconditionally encode PGMap full ratios in the Incremental
This properly spreads the real value to peon monitors -- they weren't
seeing the right values at all before.
Initialize all related values to zero so that it's obvious if they
somehow avoided becoming set properly.
This doesn't require any kind of protocol revision, luckily -- mixing
monitors from before and after this change might result in extra work
recalculating full sets, but it won't spread bad values or anything.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2012-04-18 11:05:05 -07:00
Yehuda Sadeh
5a6bbd0c47 rgw-admin: user create is idempotent
Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
Reviewed-by: Sage Weil <sage@newdream.net>
2012-04-17 21:38:12 -07:00
Sage Weil
413d8be974 osdmap: dump pool_max
Signed-off-by: Sage Weil <sage@newdream.net>
2012-04-17 21:38:00 -07:00
Yehuda Sadeh
3053e4773b Merge branch 'wip-2289-2' 2012-04-17 13:22:31 -07:00
Samuel Just
dcd34fc8d0 FileJournal: let peek_write return a reference
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
2012-04-17 13:20:05 -07:00
Sage Weil
6561484758 common: add blkdev.{h,cc}
Signed-off-by: Sage Weil <sage@newdream.net>
2012-04-17 13:17:50 -07:00