Sage Weil
b04b73d473
filestore: mkfs: less noise about leveldb creation
...
and make it clear that we didn't necessarily create it; it may have already
been there.
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-23 16:31:42 -07:00
Sage Weil
598dea1241
filestore: mkfs: only create snap_0 if we created current_op_seq
...
We only need to create snap_0 if we just created current_op_seq and this is
a brand-new dir.
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-23 16:31:42 -07:00
Sage Weil
ec7bf5640f
filestore: fix misplaced #endif
...
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-23 16:31:42 -07:00
John
09192d6597
doc/api/s3/bucketops.rst Corrected heading.
...
doc/install/chef.rst Added Sam's edits to the Chef install.
Signed-off-by: John <john@admin-host.(none)>
2012-05-23 16:12:06 -07:00
Yehuda Sadeh
bf2028fc51
rgw: replace all bad use of formatter->dump_format()
...
This fixes #2465 . We should never ever use the dumped value
as the format. Never.
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2012-05-23 16:09:34 -07:00
John
3956cb8f19
doc/api/s3 <-chipping away at objectops and clean up. Added Copy Object.
...
doc/source <-fixed a typo, updates for installing on precise, rm $ from cmds
doc/start <-replaced clone link with tarball link. Link to Ceph Source Code.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2012-05-23 15:44:11 -07:00
Sage Weil
36951d6e48
mon: use temp access_{r,all,cmd} variables to simplify the checks
...
Avoid duplicating the compound check all over the place.
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-23 14:03:47 -07:00
Tommi Virtanen
f1e4d44d4b
upstart: support mds
...
Closes : #2414
Signed-off-by: Tommi Virtanen <tv@inktank.com>
2012-05-23 14:02:34 -07:00
Tommi Virtanen
176a14aef9
debian, upstart, osd: osd disk preparation and activation scripts
...
Signed-off-by: Tommi Virtanen <tv@inktank.com>
2012-05-23 14:02:34 -07:00
Sage Weil
18af8137ce
mon: drop redundant get_allow_all() cap check
...
check_privileges() already does this.
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-23 13:49:40 -07:00
Greg Farnum
1870e12c5c
msgr: add mistakenly-removed msgr->lock.Lock() back in
...
This was accidentally deleted in
828f619c84
but is definitely required.
Signed-off-by: Greg Farnum <greg@inktank.com>
2012-05-23 13:24:30 -07:00
Tommi Virtanen
475e07a256
debian: Create placeholder dirs for mon and osd data directories.
...
Signed-off-by: Tommi Virtanen <tv@inktank.com>
2012-05-23 12:46:06 -07:00
Sage Weil
ab04d95ad5
monmap: return ENOENT from build_from_host_list when no mons
...
Make sure we return an error when no monitors are parsed.
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-23 11:25:46 -07:00
Sage Weil
80c6278f23
monmap: ignore conf mon entries when -m is specified
...
Use -m <addrs> instead of conf mons (instead of combining them into a
single large search pool).
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-23 11:25:27 -07:00
Sage Weil
8bf9fde89b
v0.47.2
2012-05-23 10:55:49 -07:00
Sage Weil
26843ada65
Makefile: do not install librgw.h
...
Signed-off-by: Sage Weil <sage@newdream.net>
2012-05-23 10:55:49 -07:00
Alexandre Oliva
a330c64cb0
Update ceph.spec for ceph-0.47
...
Add BuildRequires: libxml2-devel.
Move BuildRequires: libcurl-devel to a more proper place.
[libs3 and librgw.h bits of patch dropped -sw]
Signed-off-by: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Signed-off-by: Sage Weil <sage@newdream.net>
2012-05-23 10:55:49 -07:00
Yehuda Sadeh
244992df6c
libs3: remove make install target
2012-05-23 10:55:49 -07:00
Yehuda Sadeh
cf6db40a46
Makefile.am: only append libs3 to SUBDIRS when needed
...
We appended libs3 to SUBDIRS unconditionally, we only need that
when we actually want to compile it.
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2012-05-23 10:55:49 -07:00
Sage Weil
f461e132d4
monclient: sanity check on monmap size
...
Signed-off-by: Sage Weil <sage@newdream.net>
2012-05-23 10:40:07 -07:00
Sage Weil
d173c7bfeb
monmap: avoid dup addrs in generated initial monmap
...
We were getting a dup addr from -m <foo> and ceph.conf. Prefer the
ceph.conf name in this case.
Also check for dup names here just to be thorough (even though I don't
think that can come up currently).
Fixes : #2464
Signed-off-by: Sage Weil <sage@newdream.net>
2012-05-23 10:39:48 -07:00
Sage Weil
75e9c0cba6
monmap: aseert addrs are unique on add(), calc_ranks()
...
Signed-off-by: Sage Weil <sage@newdream.net>
2012-05-23 10:38:21 -07:00
Sage Weil
c31ab04b57
doc: librados: fix getxattr return code
...
Fixes : #2391
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-22 20:47:21 -07:00
Sage Weil
311a23ce85
mon: restrict mon 'join' message/command
...
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-22 18:31:48 -07:00
Sage Weil
e895d61f3e
mon: apply 'r' and 'w' caps to mon and pg commands
...
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-22 18:31:48 -07:00
Sage Weil
fb6ed150c5
mon: apply 'r' and 'w' caps to mdsmap
...
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-22 18:31:48 -07:00
Sage Weil
c1c93e57b4
mon: apply 'r' and 'w' caps to osdmap
...
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-22 18:31:47 -07:00
Sage Weil
880e86b29c
mon: allow health, status, log, etc. messages with 'r' cap
...
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-22 18:31:47 -07:00
Sage Weil
b7f279171c
mon: fix error messages
...
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-22 18:31:47 -07:00
Sage Weil
def15d7fea
mon: push down 'auth ...' command auth checks
...
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-22 18:31:47 -07:00
Sage Weil
7d0552a19e
mon: push down command auth checks to each command
...
Everything except 'fsid', which I figure is truly public information?
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-22 18:31:47 -07:00
Sage Weil
c43c7744a5
mon: require admin privs to issue any monitor commands
...
This is overkill, but a first step before pushing caps enforcement down
into each subfunction that processes monitor commands.
Fixes : #2443
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-22 18:31:47 -07:00
Sage Weil
2dec922f09
vstart.sh: set HOSTNAME when -l is used
...
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-22 18:31:34 -07:00
Sage Weil
8701439197
mon: fix 'get-or-create-key'
...
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-22 18:30:57 -07:00
Sage Weil
b01dbcdd93
filestore: leave existing current/
...
If current exists, leave it be, but:
* make sure it's a dir
* check if it's a btrfs snapshot, and set btrfs_stable_commits if so
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-22 17:24:10 -07:00
Sage Weil
b7a85a8f77
filestore: create but do not clobber current/commit_op_seq
...
If it exists, preserve its value. Otherwise, create and set it to 1.
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-22 17:24:10 -07:00
Sage Weil
79d60770e8
filestore: mkfs: only (re)set fsid if not already set
...
Only set fsid if it is not set.
Also, error out if it exists and does not match.
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-22 17:24:10 -07:00
Sage Weil
d923e33878
filestore: pass target into read_fsid()
...
Don't assume it should be read into this->fsid.
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-22 17:24:10 -07:00
Sage Weil
36503d1b0b
filestore: mkfs: rename buf -> fsid_fn
...
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-22 17:24:10 -07:00
Sage Weil
143762f506
filestore: always open/verify basedir; clean up error messages
...
Verify basedir exists immediately.
Clean up error output.
Clean up label names.
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-22 17:24:10 -07:00
Sage Weil
58d8fafb63
filestore: do not wipe on mkfs
...
Do not wipe out old content in the data dir.
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-22 17:24:10 -07:00
Sage Weil
05db988a2f
filestore: remove unused 'filestore dev' option
...
Eons ago we would call mount/unmount on this, but it's been dead for a
while now.
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-22 17:24:10 -07:00
Sage Weil
17c4624e93
osd: only (re)write_meta files if old content is incorrect
...
Do nothing if the file already exists with the correct content.
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-22 17:24:10 -07:00
Sage Weil
53b05d5892
osd: only create superblock if not present
...
If it exists, leave it be.
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-22 17:24:06 -07:00
Sage Weil
55c21de537
Merge branch 'wip-quorum'
2012-05-22 17:13:28 -07:00
John Wilkins
ff64818f1c
doc/config-cluster/chef.rst <-fixed an error in upload command.
...
doc/config-cluster/deploying-ceph-conf.rst <-added sudo. required.
doc/config-cluster/deploying-ceph-with-mkcephfs.rst <-cd to /etc/ceph so keyring goes there.
doc/install/chef.rst <-added update and install opscode-keyring, and upgrade.
doc/install/debian.rst <-added ceph-common to the install
Signed-off-by: John Wilkins <john.wilkins@dreamhost.com>
2012-05-22 17:10:43 -07:00
Greg Farnum
c444723092
Merge remote-tracking branch 'origin/master' into wip-msgr-interface
...
Conflicts:
src/msg/Messenger.h
src/msg/SimpleMessenger.h
Signed-off-by: Greg Farnum <greg@inktank.com>
2012-05-22 13:53:25 -07:00
Yehuda Sadeh
53269374b3
config: add --show-args option
...
The --show-args dumps the arguments passed on the command line.
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2012-05-22 13:53:11 -07:00
Josh Durgin
0ae59eae3d
Merge branch 'stable'
2012-05-22 12:54:09 -07:00
Sage Weil
11030793fa
objectcacher: fix infinite loop in flusher_entry
...
The addition of accounting for simultaneous writers in
f3043fee3e
could lead to an infinite
loop. This could happen because starting a flush doesn't decrease
dirty_waiters, only the number of dirty bytes (they change to tx). If
dirty_waiters is more than target_dirty, the loop would continue
forever while holding the object cacher lock, since the object cacher
lock is required by the write callbacks.
The extra while (!flusher_stop) loop is unnecessary, so remove it.
This means the flusher thread always releases the lock after starting
flushing, so progress can be made.
Signed-off-by: Sage Weil <sage@inktank.com>
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2012-05-22 12:48:19 -07:00