Commit Graph

23898 Commits

Author SHA1 Message Date
Travis Rhoden
51a0a220c1 doc: Move pool=... syntax inside of single quotes
When specifying caps, the entire 'allow ...' bit needs to be in the
single quotes, including the pool= part.

Signed-off-by: Travis Rhoden <trhoden@gmail.com>
2013-02-14 11:19:20 -05:00
Sage Weil
ccdcae3a54 doc/release-notes: v0.56.3
Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-13 17:43:50 -08:00
Samuel Just
0c1eb423c1 Merge branch 'wip_4113'
Reviewed-by: Sage Weil <sage@inktank.com>
2013-02-13 16:25:32 -08:00
Samuel Just
1334a424ed PG,OSD: convert write_info users to write_if_dirty
Also, explicitely dirty info and biginfo where necessary.

Signed-off-by: Samuel Just <sam.just@inktank.com>
2013-02-13 15:02:00 -08:00
Samuel Just
34ed5daacd OSD: init infos_object in OSD::init()
Signed-off-by: Samuel Just <sam.just@inktank.com>
2013-02-13 13:32:32 -08:00
Samuel Just
93b3da6a26 PG: place biginfo on the infos object next to the info and epoch keys
This is simpler and possibly more efficient.

Signed-off-by: Samuel Just <sam.just@inktank.com>
2013-02-13 13:32:32 -08:00
Samuel Just
f4b70c8904 PG: minor style change for append_log and read_info
They exceeded 80 characters on a line!

Signed-off-by: Samuel Just <sam.just@inktank.com>
2013-02-13 13:32:32 -08:00
Samuel Just
f3bc8dfee1 PG: use helpers to generate info and epoch keys
Signed-off-by: Samuel Just <sam.just@inktank.com>
2013-02-13 13:32:29 -08:00
Sam Lang
7e192077ff libcephfs: Fix shutdown segfault
client->shutdown() should only be called once, but with
new inited flag, we were calling it twice.  This sets
the inited flag back to false after client->shutdown()
is called the first time.

Broken by 133295ed00.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
2013-02-13 12:56:41 -08:00
Sage Weil
e9c770358e Merge branch 'wip-deploy'
Reviewed-by: Greg Farnum <greg@inktank.com>
2013-02-13 12:47:30 -08:00
John Wilkins
6879e8b3c2 doc: Minor clarification.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-02-13 12:44:35 -08:00
Samuel Just
760b5ff389 OSD: dirty big_info in build_past_intervals_parallel
Otherwise, the newly generated intervals won't get written!

Signed-off-by: Samuel Just <sam.just@inktank.com>
2013-02-13 12:43:23 -08:00
Sage Weil
e011ad128e upstart: ceph-hotplug -> ceph-osd-activate
This is a more meaningful name.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-13 12:39:34 -08:00
Sage Weil
792e45c63d upstart/ceph-hotplug: tell activate to start via upstart
This will mark the OSD data dir as upstart-managed.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-13 12:39:34 -08:00
Sage Weil
b2ff6e8c9d ceph-disk-prepare: refactor to support DIR, DISK, or PARTITION for data or journal
Lots of code reorganization collapsed into a single commit here.

- detect whether the user gave us a directory, disk, or partition, and Do The
Right Thing
- allow them to force that the input was of type X, for the careful/paranoid.
- make --zap-disk an option -- no longer the default

Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-13 12:39:34 -08:00
John Wilkins
64ec2d4291 doc: Made a few clarifications from feedback.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-02-13 12:39:24 -08:00
Sage Weil
191d5f7535 ceph-disk-activate: detect whether PATH is mount or dir
remove in-the-way symlinks in /var/lib/ceph/osd

This is simpler.  Just detect what the path is and Do The Right Thing.

Closes #3341 (which wanted to make --mount the default)

Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-13 12:35:43 -08:00
Sage Weil
fd4a921085 ceph-disk-activate: add --mark-init INITSYSTEM option
Do not assume we will manage via upstart; let that be passed down via the
command line.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-13 12:35:43 -08:00
Sage Weil
0765528828 ceph-disk-activate: factor mounting out of activate
The activate stuff is generic for any OSD, regardless of whether we want
to mount it or not.  Pull that part out.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-13 12:35:42 -08:00
Sage Weil
23ad3a46a0 debian: put ceph-mds upstart conf in ceph-mds package
Fixes: #3157
Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-13 12:30:22 -08:00
Sage Weil
e80675a0f3 debian: include /var/lib/ceph/bootstrap-mds in package
Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-13 12:30:22 -08:00
Sage Weil
809143f16c ceph-create-keys: create mds bootstrap key
Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-13 12:30:22 -08:00
Sage Weil
4698b6a103 upstart/ceph-hotplug: drop -- in ceph-disk-activate args
We would like to transition to

 ceph-disk-activate --mount DEV

and away from a generic multi-definition PATH argument.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-13 12:30:22 -08:00
Sage Weil
c8f528a407 init-ceph: iterate/locate local sysvinit-tagged directories
Search /var/lib/ceph/$type/ceph-$id and start/stop those daemons if
present and tagged with the sysvinit file.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-13 12:30:22 -08:00
Sage Weil
b8aa4769a6 init-ceph: consider sysvinit-tagged dirs as local
If there is a 'sysvinit' file in the daemon directory in the default
location (/var/lib/ceph/$type/ceph-$id), consider it sysvinit-managed.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-13 12:30:22 -08:00
Sage Weil
50cbd10531 debian: implement purge postrm script for ceph, ceph-mds
Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-13 12:30:22 -08:00
Sage Weil
af2372ca4a ceph-disk-prepare: align mkfs, mount config options with mkcephfs
'osd mkfs ...', not 'osd fs mkfs ...'.  Sigh.  Support both.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-13 12:28:48 -08:00
John Wilkins
617bde9550 doc: Added many Q/A sections to the FAQ.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-02-13 12:06:25 -08:00
Sage Weil
670a14827a qa: fix mon/osd.sh
It needs to be a valid osd id that we try to remove (that doesn't exist).

Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-13 08:30:09 -08:00
Sam Lang
7aefe92353 specfile: Add ceph-coverage to list of binaries
Signed-off-by: Sam Lang <sam.lang@inktank.com>
2013-02-13 09:53:55 -06:00
Sage Weil
9d6eccbff9 osd/PG: initialize info_struct_v in ctor
Otherwise we randomly assert on the first write_info() for newly created
PGs.  Introduced by 188f3ea686.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-12 21:20:20 -08:00
John Wilkins
977ba79b21 doc: clarified ceph id vs. ceph name, and fixed a typo.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-02-12 17:53:02 -08:00
Josh Durgin
0fec0fde42 Merge branch 'next'
Conflicts:
	src/include/ceph_features.h
2013-02-12 16:55:32 -08:00
David Zafman
188f3ea686 osd/PG: store pg_info_t in leveldb (omap), purged_snaps separately
Separate the purged_snaps portion of pg_info_t (the one that gets big).

Feature #3891: osd: move purged_snaps out of info

Add a separate dirty_big_info flag so that we only update the pginfo
"biginfo" file if that state changes.  This lets us avoid the cost in the
general case, like a regular PG write.

Add LEVELDBINFO feature

Put info, biginfo in leveldb
Move epoch to omap

Feature #3892: osd: move pg info into leveldb

Signed-off-by: Sage Weil <sage@inktank.com>
Signed-off-by: David Zafman <david.zafman@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Reviewed-by: Sam Just <sam.just@inktank.com>
2013-02-12 17:18:25 -08:00
John Wilkins
0e9852798b doc: Added some of the troubleshooting steps into the libvirt procedure and removed path for virsh edit.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-02-12 17:12:41 -08:00
Josh Durgin
fe283813b4 librbd: unprotect any non-unprotected snapshot
Include snapshots in the UNPROTECTING state as well, which can occur
after an unprotect is interrupted.

Fixes: #4100
Backport: bobtail
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
Reviewed-by: Dan Mick <dan.mick@inktank.com>
2013-02-12 16:43:36 -08:00
Sam Lang
376cca2d4d deb: Add ceph-coverage to ceph-test deb package
Teuthology uses the ceph-coverage script extensively
and expects it to be installed by the ceph task.  Add
the script to the ceph-test debian package so that it
gets installed for that use case.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
2013-02-12 17:12:35 -06:00
Sam Lang
78ff229afa mds: Setting pool on a file requires latest osdmap
If we create a file, then create a pool, then try to
set the pool on the file with the vxattr, no mds operation
triggers a request for the latest osdmap, so we get back
EINVAL.  So if we fail to find the pool initially, fall back
to requesting a new osdmap and trying the vxattr again.  We
don't wait for a new map if we don't get anything newer than
what we already have.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
2013-02-12 14:44:24 -08:00
Sam Lang
d8c6b08e8e mds: Add retry field to MDRequest
The MDRequest can be retried via the RetryRequest finisher,
we add a retry field that gets incremented before each
retry in the finisher.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
2013-02-12 14:44:24 -08:00
Sam Lang
ed6c3ff50c qa/workunits: Add vxattr set pool test script
Add a test script that tests for creating a pool
and then setting the layout for a (pre-existing)
file to that pool.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
2013-02-12 14:44:24 -08:00
Sam Lang
5517000fbb cephtool: Add add_data_pool command to help
Signed-off-by: Sam Lang <sam.lang@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
2013-02-12 14:44:24 -08:00
Sage Weil
1b05517a83 msg/Messenger: rename option
It's unhandled, not unexpected.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-12 14:18:37 -08:00
Gregory Farnum
de5247ed56 Merge pull request #50 from dalgaaf/wip-da-sca-clang-overloaded-virt-2
mds/LogEvent.h: change print() signature to const
2013-02-12 14:17:57 -08:00
Sage Weil
302b26ff70 osd: only share maps on hb connection of OSD_HBMSGS feature is set
Back in 1bc419a7af we started sharing maps
with dead osds via the heartbeat connection, but old code will crash on an
unexpected message.  Only do this if the OSD_HBMSGS feature is present.

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Samuel Just <sam.just@inktank.com>
2013-02-12 14:11:09 -08:00
Sage Weil
afda30aeaa osd: tolerate unexpected messages on the heartbeat interface
We should note but not crash on unexpected messages.  Announce this awesome
new "capability" via a feature bit.

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Samuel Just <sam.just@inktank.com>
2013-02-12 14:10:51 -08:00
Sage Weil
1e68ccf6aa msg/Messenger: do not crash on unhandled message
This is just polite.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-12 14:10:18 -08:00
Sage Weil
a88f9bea54 .gitignore: fix ceph_filestore_dump name
Underscores!

Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-12 14:10:18 -08:00
Sage Weil
2cb6bcc901 Revert "Makefile: name binary ceph-filestore-dump"
This reverts commit f0b2e32af6.

Be consistent with everything else.
2013-02-12 14:10:18 -08:00
Danny Al-Gaaf
0c65cd5f5e mds/LogEvent.h: change print() signature to const
Fix print() function of src/mds/LogEvent.h, declare as

virtual void print(ostream& out) const {...}

Adapt functions of derived classes. This should fix a problem
with print function of derived classes EImportStart and
EImportFinish, which had a const signature, hiding virtual
function of the base class LogEvent (which wasn't const).

Fix -Woverloaded-virtual warning from clang was:

mds/events/EImportStart.h:43:8: warning: 'EImportStart::print'
 hides overloaded virtual function [-Woverloaded-virtual]
  void print(ostream& out) const {
       ^
mds/events/../LogEvent.h:95:16: note: hidden overloaded virtual
 function 'LogEvent::print' declared here
  virtual void print(ostream& out) {
               ^
In file included from mds/journal.cc:31:
mds/events/EImportFinish.h:35:8: warning: 'EImportFinish::print'
 hides overloaded virtual function [-Woverloaded-virtual]
  void print(ostream& out) const {
       ^
mds/events/../LogEvent.h:95:16: note: hidden overloaded
 virtual function 'LogEvent::print' declared here
  virtual void print(ostream& out) {

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-02-12 22:17:38 +01:00
tamil
e2b8e0f13c modified the perl file name
Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
2013-02-12 10:55:39 -08:00