Commit Graph

19576 Commits

Author SHA1 Message Date
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
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
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
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
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
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
John Wilkins
884aa8a661 Merge branch 'master' of github.com:ceph/ceph 2012-05-22 09:54:06 -07:00
John Wilkins
b0d6895a21 doc/config-cluster/ceph-conf.rst <-Fixed some formatting issues.
doc/config-cluster/deploying-ceph-conf.rst <-minor edit.
doc/start/get-involved-in-the-ceph-community.rst <-removed $ from command line instruction.
doc/start/quick-start.rst <-added additional steps.



Signed-off-by: John Wilkins <john.wilkins@dreamhost.com>
2012-05-22 09:53:34 -07:00
Sage Weil
d7a8084b4c monmap: calc_ranks() on rename()
This is simpler than ensuring we track all the right invariants.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-22 07:05:36 -07:00
Sage Weil
4fd524913f Merge branch 'wip-defensive-alloc' 2012-05-21 20:01:03 -07:00
Sage Weil
cfe261bf9d crush: check reweight return value
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-21 20:00:51 -07:00
Ross Turk
5959ea7b78 doc: fix broken link in FAQ
Signed-off-by: Ross Turk <ross@inktank.com>
2012-05-21 19:36:59 -07:00
Ross Turk
cf5848676e doc: added links from the chef install doc to the chef config doc and back
Signed-off-by: Ross Turk <ross@inktank.com>
2012-05-21 18:22:35 -07:00
Ross Turk
6149fb700f doc: Added a FAQ page.
Added a FAQ page, which we will need to put more content in.

Signed-off-by: Ross Turk <ross@inktank.com>
2012-05-21 18:21:39 -07:00
John Wilkins
e3b3108bfd Added the Swift API as is. Still needs a lot of work.
Signed-off-by: John Wilkins <john.wilkins@dreamhost.com>
2012-05-21 17:49:35 -07:00
Sage Weil
d93410c799 doc: document range of methods for cluster creation, expansion
This isn't quite complete, and should be integrated with the info in the
ops section on mon cluster expansion, but the raw content is here at least.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-21 16:57:26 -07:00
John Wilkins
812989bf35 doc: misc updates
doc/architecture.rst - removed broken reference.
doc/config-cluster - cleanup and added chef
doc/install - Made generic to add Chef, OpenStack and libvert installs
doc/init - Created light start | stop and health section
doc/source - Removed $ from code examples. Trimmed paras to 80 char
doc/images - Added preliminary diagram for Chef.
doc/rec - Added reference to hardware. Added filesystem info.

Signed-off-by: John Wilkins <john.wilkins@dreamhost.com>
2012-05-21 16:39:15 -07:00
Sage Weil
133cd69a11 mon: fix 'no initial monitors' warning
It is valid to start with no initial monitors even when the initial set is
not defined; it just means that we are only able to join a cluster, and
never able to form a new one.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-21 15:07:42 -07:00
Yehuda Sadeh
3a2dc969ff libs3: remove make install target 2012-05-21 14:32:22 -07:00
Sage Weil
f5a9404445 v0.47.1 2012-05-21 14:28:45 -07:00
Yehuda Sadeh
4e3807bc58 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-21 14:27:04 -07:00
Sage Weil
13b350a57f filestore: test xattrs on temporary file
There isn't one we can rely on existing yet.  Broken by
1314a00798 while fixing #2452.

Backport: dho
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-21 14:21:30 -07:00
Sage Weil
6c0a12209d ceph-object-corpus: add some old v2 monmaps
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-21 14:20:38 -07:00
Sage Weil
c06fb20a8a monmap: fix decoding of old monmaps
The old monmaps had a u16 for the version.  Fix our decode.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-21 13:58:55 -07:00
Sage Weil
a4d034d0b0 qa: fix mon single_host_multi.sh test
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-21 13:15:23 -07:00
Sage Weil
731effba69 mon: rename ourselves if our name does not match committed monmap
If we are part of the quorum but our name does not match, fix it.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-21 13:15:11 -07:00
Sage Weil
cd9d862268 mon: only rename peers in seed monmap
Once we have a committed monmap, stop renaming peers.  This only gets us
confused because our monmap does not match the paxos committed one.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-21 13:14:50 -07:00
Sage Weil
e1564aff2c mon: move election msg check into elector
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-21 13:07:16 -07:00
Sage Weil
ee138678d0 mon: allow mons to rename themselves with the join message
This allows mons that got stuck in the initial quorum's monmap as noname-*
to fix their name before joining in.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-21 13:01:49 -07:00
Sage Weil
b4d2b1e4da monmap: fix rename
Update addr_name map appropriately.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-21 13:00:59 -07:00
Sage Weil
29a158a68e mon: drop useless rank racalc in init
bootstrap() handles this, no need to worry about it here.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-21 11:46:06 -07:00
Sage Weil
dae2f5324b mon: fix leak of MonMap
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-21 11:38:07 -07:00
Sage Weil
7b2614b5cf monmap: filter_initial_members -> set_initial_members
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-21 11:36:43 -07:00
Samuel Just
13c86ca2cd Update leveldb to remove CompactionInputErrorParanoid
CompactionInputErrorParanoid tends not to complete in time during
gitbuilder runs resulting in false failures.

Signed-off-by: Samuel Just <sam.just@inktank.com>
2012-05-21 10:40:39 -07:00
Tommi Virtanen
7d5fa4e506 man: Remove leftover --bin from ceph-authtool(8).
Regenerate manpage.

See 4832c46eab,
ec732816ef for the actual removal of the
feature.

Signed-off-by: Tommi Virtanen <tv@inktank.com>
2012-05-21 08:56:08 -07:00
Sage Weil
d8f4c6d208 Merge branch 'stable'
Conflicts:
	src/os/FileStore.cc
2012-05-20 21:18:36 -07:00
Sage Weil
ad663d58c8 v0.47 2012-05-20 15:33:49 -07:00
Sage Weil
e2e7f5835c keys: new release key
New release key for signing packages.  Signed by me (the old release key)
so that existing apt keyrings should be sufficient.  New keyrings should
just add the new release key.

Signed-off-by: Sage Weil <sage@newdream.net>
2012-05-20 15:33:48 -07:00
Sage Weil
5d2ec1d60f builder: make reweight helpers static, void
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-20 15:12:39 -07:00
Yehuda Sadeh
63580a902e formatter: replace malloc with new
This will throw exception if allocation failed.

Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
2012-05-20 15:12:37 -07:00
Yehuda Sadeh
7eb29aeec6 check malloc return values
There were a few places where we didn't check malloc return code.

Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
2012-05-20 15:12:33 -07:00