]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
9 years agoglobal: complain about parse errors after we open the log 7545/head
Sage Weil [Thu, 3 Mar 2016 16:13:32 +0000 (11:13 -0500)]
global: complain about parse errors after we open the log

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoconfig: more parse_errors into md_config_t
Sage Weil [Thu, 3 Mar 2016 16:13:15 +0000 (11:13 -0500)]
config: more parse_errors into md_config_t

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoglobal/global_init: chown log, asok if drop privs is deferred
Sage Weil [Mon, 8 Feb 2016 16:34:11 +0000 (11:34 -0500)]
global/global_init: chown log, asok if drop privs is deferred

If we are deferring the drop privileges, then we are still root
and need to explicitly chown the log file and admin socket.

Note that this is a fragile solution: if there are other files
that we create or open for write between now and when privs are
eventually dropped, we need to explicitly handle them, too.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agocommon/admin_socket: add chown
Sage Weil [Mon, 8 Feb 2016 16:31:30 +0000 (11:31 -0500)]
common/admin_socket: add chown

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agolog: add option fchown on log file
Sage Weil [Mon, 8 Feb 2016 16:28:27 +0000 (11:28 -0500)]
log: add option fchown on log file

Add explicit call to set the log file uid/gid.  fchown it
immediately, and do the same if it is reopened.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoglobal: add DEFER_DROP_PRIVILEGES flag
Sage Weil [Mon, 8 Feb 2016 16:19:55 +0000 (11:19 -0500)]
global: add DEFER_DROP_PRIVILEGES flag

This will allow radosgw (or whoever) to drop privileges themselves
in their own special way based on cct->_set_{uid,gid}.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoglobal: record target uid/gid in cct
Sage Weil [Mon, 8 Feb 2016 16:19:08 +0000 (11:19 -0500)]
global: record target uid/gid in cct

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoglobal/global_init: ensure setuser etc messages get logged
Sage Weil [Mon, 8 Feb 2016 16:12:34 +0000 (11:12 -0500)]
global/global_init: ensure setuser etc messages get logged

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoglobal/global_init: do not apply_changes until after dropping privs
Sage Weil [Mon, 8 Feb 2016 16:12:19 +0000 (11:12 -0500)]
global/global_init: do not apply_changes until after dropping privs

This ensures we open the log file a the final user, not as root.

Fixes: #14613
Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7519 from xiexingguo/xxg-wip-finisher 7461/head
Sage Weil [Fri, 5 Feb 2016 14:17:43 +0000 (09:17 -0500)]
Merge pull request #7519 from xiexingguo/xxg-wip-finisher

librados: shutdown finisher in a more graceful way

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7506 from liewegas/wip-bluestore-block
Sage Weil [Fri, 5 Feb 2016 14:17:15 +0000 (09:17 -0500)]
Merge pull request #7506 from liewegas/wip-bluestore-block

osd: bluestore: set default wal size; improve weird implicit block file creation logic

Reviewed-by: Loic Dachary <ldachary@redhat.com>
9 years agoMerge pull request #7503 from tchaikov/wip-cmake-spdk
Sage Weil [Fri, 5 Feb 2016 14:16:59 +0000 (09:16 -0500)]
Merge pull request #7503 from tchaikov/wip-cmake-spdk

build: spdk submodule; cmake

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #7218 from dachary/wip-13942-ceph-disk
Sage Weil [Fri, 5 Feb 2016 14:15:26 +0000 (09:15 -0500)]
Merge pull request #7218 from dachary/wip-13942-ceph-disk

ceph-disk: support bluestore

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7522 from ktdreyer/wip-admin-build-doc-deps
Kefu Chai [Fri, 5 Feb 2016 03:31:41 +0000 (11:31 +0800)]
Merge pull request #7522 from ktdreyer/wip-admin-build-doc-deps

admin/build-doc: depend on zlib1g-dev and graphviz

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #7478 from jack-changtao/wip-cache-tier
Sage Weil [Thu, 4 Feb 2016 21:17:17 +0000 (16:17 -0500)]
Merge pull request #7478 from jack-changtao/wip-cache-tier

osd: enforce cache_min_evict_age

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7512 from athanatos/wip-admin-malloc
Sage Weil [Thu, 4 Feb 2016 21:15:54 +0000 (16:15 -0500)]
Merge pull request #7512 from athanatos/wip-admin-malloc

common: admin socket commands for tcmalloc heap get/set operations

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7510 from athanatos/wip-14278
Sage Weil [Thu, 4 Feb 2016 21:06:35 +0000 (16:06 -0500)]
Merge pull request #7510 from athanatos/wip-14278

osd: correctly remove pg shards which are no longer acting

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7511 from athanatos/wip-14423
Sage Weil [Thu, 4 Feb 2016 21:04:34 +0000 (16:04 -0500)]
Merge pull request #7511 from athanatos/wip-14423

Wip 14423

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7401 from batrick/systemd-sandbox
Sage Weil [Thu, 4 Feb 2016 20:25:05 +0000 (15:25 -0500)]
Merge pull request #7401 from batrick/systemd-sandbox

systemd: add systemd sandboxing to services

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Boris Ranto <branto@redhat.com>
9 years agoadmin/build-doc: depend on zlib1g-dev and graphviz 7522/head
Ken Dreyer [Thu, 4 Feb 2016 16:41:40 +0000 (09:41 -0700)]
admin/build-doc: depend on zlib1g-dev and graphviz

The docs currently require zlib1g-dev (on Ubuntu) and graphviz (on RHEL
and Ubuntu) in order to build.

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
9 years agoMerge pull request #7328 from ceph/wip-mtime-bugfix
Yehuda Sadeh [Thu, 4 Feb 2016 16:36:02 +0000 (08:36 -0800)]
Merge pull request #7328 from ceph/wip-mtime-bugfix

Bug fix for mtime anomalies in RadosGW and other places

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoMerge pull request #7453 from ceph/wip-14566
Sage Weil [Thu, 4 Feb 2016 15:10:01 +0000 (10:10 -0500)]
Merge pull request #7453 from ceph/wip-14566

msg/async: fix potential race condition

9 years agoCacheTier: set cache_min_evict_age is effective 7478/head
changtao [Mon, 1 Feb 2016 17:23:37 +0000 (01:23 +0800)]
CacheTier: set cache_min_evict_age is effective

Signed-off-by: Tao Chang <changtao@hihuron.com>
9 years agoMerge pull request #7505 from xiexingguo/xxg-wip-kstorelru
Sage Weil [Thu, 4 Feb 2016 13:43:42 +0000 (08:43 -0500)]
Merge pull request #7505 from xiexingguo/xxg-wip-kstorelru

os/kstore: insert new onode to the front position of onode LRU

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7492 from jjhuo/master
Sage Weil [Thu, 4 Feb 2016 13:43:19 +0000 (08:43 -0500)]
Merge pull request #7492 from jjhuo/master

os/bluestore: insert new onode to the front position of onode LRU

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge branch 'xxg-wip-14474' of git://github.com/xiexingguo/ceph
Sage Weil [Thu, 4 Feb 2016 13:36:06 +0000 (08:36 -0500)]
Merge branch 'xxg-wip-14474' of git://github.com/xiexingguo/ceph

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7380 from yuyuyu101/async-nip
Sage Weil [Thu, 4 Feb 2016 13:39:15 +0000 (08:39 -0500)]
Merge pull request #7380 from yuyuyu101/async-nip

msg/async: reduce extra tcp packet for message ack

9 years agoMerge pull request #7398 from theanalyst/fix/12744
Sage Weil [Thu, 4 Feb 2016 13:38:32 +0000 (08:38 -0500)]
Merge pull request #7398 from theanalyst/fix/12744

mon: PG Monitor should report waiting for backfill

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #7447 from liewegas/wip-parallel-rados-test
Sage Weil [Thu, 4 Feb 2016 13:38:09 +0000 (08:38 -0500)]
Merge pull request #7447 from liewegas/wip-parallel-rados-test

test: run rados api tests in parallel

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #7455 from yuyuyu101/bufferlist-move
Sage Weil [Thu, 4 Feb 2016 13:37:55 +0000 (08:37 -0500)]
Merge pull request #7455 from yuyuyu101/bufferlist-move

buffer: use move construct to append/push_back/push_front

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7459 from dwj192/mon-created
Sage Weil [Thu, 4 Feb 2016 13:37:22 +0000 (08:37 -0500)]
Merge pull request #7459 from dwj192/mon-created

mon: fix monmap creation stamp

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7477 from xiexingguo/wip-fix-obj
Sage Weil [Thu, 4 Feb 2016 13:36:40 +0000 (08:36 -0500)]
Merge pull request #7477 from xiexingguo/wip-fix-obj

osdc/objecter: fix race condition and result code overflow

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7482 from branch-predictor/bp-faster-health
Sage Weil [Thu, 4 Feb 2016 13:33:56 +0000 (08:33 -0500)]
Merge pull request #7482 from branch-predictor/bp-faster-health

mon: reduce CPU and memory manager pressure of pg health check

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7518 from ceph/wip-14637-man-radosgw-admin-orphans
Orit Wasserman [Thu, 4 Feb 2016 10:05:54 +0000 (11:05 +0100)]
Merge pull request #7518 from ceph/wip-14637-man-radosgw-admin-orphans

doc: add orphans commands to radosgw-admin(8)

9 years agoceph-disk: use the type file for bluestore 7218/head
Loic Dachary [Sun, 24 Jan 2016 10:07:58 +0000 (17:07 +0700)]
ceph-disk: use the type file for bluestore

The type file in the OSD bluestore data exists and contains the
bluestore string. ceph-disk activate should use it instead of
the "osd objectstore" configuration value. It is better in case the
configuration file changes between prepare and activate.

The fsid file cannot be used by bluestore to signify that ceph-osd
--mkfs has completed successfully because it is pre-populated by
ceph-disk. Introduce the mkfs_done file, dedicated to this, instead of
overloading an existing file.

Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agotests: ceph-disk tests pid files must exist
Loic Dachary [Mon, 1 Feb 2016 11:26:05 +0000 (18:26 +0700)]
tests: ceph-disk tests pid files must exist

http://tracker.ceph.com/issues/13422 made it so ceph-osd won't start
unless the pidfile can be created successfully. The default location
being the current directory, ceph-osd must explicitly be told to write
in a directory where it has write permissions.

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agotests: ceph-disk qa workunit for bluestore
Loic Dachary [Thu, 28 Jan 2016 06:53:28 +0000 (13:53 +0700)]
tests: ceph-disk qa workunit for bluestore

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoceph-disk: bluestore deactivate / destroy
Loic Dachary [Thu, 28 Jan 2016 04:59:10 +0000 (11:59 +0700)]
ceph-disk: bluestore deactivate / destroy

It is straightforward because it entirely relies on information
collected by ceph-disk list which has full support for bluestore.
It loops on all possible auxiliary devices (as found in Spaces.NAMES)
and does the associated deactivate / destruction which is merely about
handling dmcrypt map / unmap.

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoceph-disk: bluestore list
Loic Dachary [Thu, 28 Jan 2016 04:12:47 +0000 (11:12 +0700)]
ceph-disk: bluestore list

The objectstore journal and the bluestore block auxiliary device are
handled in the same way. Each occurrence of journal in the code is
replaced with a variable.

A few helpers are added to the Ptype class to factorize the most common
lookups but the code logic is unmodified with one exception: the
more_osd_info previously added a journal_uuid entry regarless. If there
was no journal_uuid file, it would be None. It is changed to only add
the {block,journal}_uuid entry if the corresponding file exist.

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoceph-disk: bluestore trigger
Loic Dachary [Thu, 28 Jan 2016 04:53:49 +0000 (11:53 +0700)]
ceph-disk: bluestore trigger

Copy paste the journal code and s/journal/block/

More work will be needed to support multiple auxiliary
devices (block.wal etc). But the goal is to minimize the change because
this commit is part of a series of commits focusing on refactoring
prepare, not the entire ceph-disk codebase.

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoceph-disk: bluestore activate
Loic Dachary [Thu, 28 Jan 2016 04:48:55 +0000 (11:48 +0700)]
ceph-disk: bluestore activate

Only support the block file for now. The refactoring consist of
replacing main_activate_journal with main_activate_space and a name
argument (block, journal). More work will be needed to support multiple
auxiliary devices (block.wal etc). But the goal is to minimize the
change because this commit is part of a series of commits focusing on
refactoring prepare, not the entire ceph-disk codebase.

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoceph-disk: bluestore prepare
Loic Dachary [Thu, 28 Jan 2016 04:43:22 +0000 (11:43 +0700)]
ceph-disk: bluestore prepare

Only support the block file for now. It is handled the same as the
journal, only with a different name (block) and it's own set of ptypes
depending on multipath or dmcrypt.

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoceph-disk: refactor prepare
Loic Dachary [Tue, 19 Jan 2016 09:49:40 +0000 (16:49 +0700)]
ceph-disk: refactor prepare

The logic / code path is only modified to the extent necessary for the
refactor.

The Prepare class roughly replaces the prepare_main function but also
handles the prepare subcommand argument parsing. It creates the data and
journal objects and delegate the actual work to them via the prepare()
method.

The Prepare class assumes that preparing an OSD consists on the
following phases:

  * optionally prepare auxiliary devices, such as the journal
  * prepare a data directory or device
  * populate the data directory with fsid etc. and optionally
    symbolic links to the auxiliary devices

The PrepareDefault class is derived from Prepare and implements the
current model where there only is one auxiliary device, the journal.

The PrepareJournal class implements the *journal* functions
and is based on a generic class, PrepareSpace which handles the
allocation of an auxiliary device. The only journal specific feature is
left to the PrepareJournal class: querying the OSD to figure out if
a journal is wanted or not.

The OSD data directory is prepared via the PrepareData class. It creates
a file system if necessary (i.e. if a device) and populate the data
directory. Further preparation is then delegated to the auxiliary
devices (i.e. adding a symlink to the device for a journal).

There was some code paths related dmcrypt / multipath devices in
the prepare functions, although it is orthogonal. A class tree for
Devices was created to isolate that.

Although that was the primary reason for adding a new class tree, two
other aspects have also been moved there: ptypes and partition creation.
The ptypes are organized into a data structure with a few helpers in
the hope it will be easier to maintain. All references to the *_UUID
variables have been updated.

The creation of a partition is delegated to sgdisk and a wrapper helps
reduce the code redundancy.

The ptype of a given partition depends on the type of the device (is it
dmcrypt'ed or a multipath device ?). It is best implemented by
derivation so the prepare function does not need to be concerned about
how the ptype of a partition is determined.

Many functions could be refactored into a Device class and its
derivatives, but that was not done to minimize the size of the refactor.

  Device knows how to create a partition and figure out the ptype tobe
  DevicePartition a regular device partition
  DevicePartitionMultipath a partition of a multipath device
  DevicePartitionCrypt base class for luks/plain dmcrypt, can map/unmap
  DevicePartitionCryptPlain knows how to setup dmcrypt plain
  DevicePartitionCryptLuks knows how to setup dmcrypt plain

The CryptHelpers class is introduced to factorize the code snippets that
were duplicated in various places but that do not really belong
because they are convenience wrappers to figure out:

   * if dmrypt should be used
   * the keysize
   * the dmcrypt type (plain or luks)

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agolibrados/RadosClient: stop client's finisher in a more graceful way 7519/head
xie xingguo [Thu, 4 Feb 2016 08:22:56 +0000 (16:22 +0800)]
librados/RadosClient: stop client's finisher in a more graceful way

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agoos/filestore/JournalingObjectStore: stop journal in a more graceful way
xie xingguo [Thu, 4 Feb 2016 08:19:27 +0000 (16:19 +0800)]
os/filestore/JournalingObjectStore: stop journal in a more graceful way

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agotests: generic ceph-disk qa check_osd_status
Loic Dachary [Thu, 28 Jan 2016 06:48:00 +0000 (13:48 +0700)]
tests: generic ceph-disk qa check_osd_status

The helper function no longer has journal hardcoded.

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agotests: pytest must not truncate data structures
Loic Dachary [Thu, 28 Jan 2016 04:07:47 +0000 (11:07 +0700)]
tests: pytest must not truncate data structures

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agotests: ceph-disk no longer test separate journals
Loic Dachary [Sun, 24 Jan 2016 10:09:00 +0000 (17:09 +0700)]
tests: ceph-disk no longer test separate journals

Remove unused argument.

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agotests: workaround ceph-disk global side effects
Loic Dachary [Tue, 19 Jan 2016 11:33:05 +0000 (18:33 +0700)]
tests: workaround ceph-disk global side effects

Because some variables are global in ceph-disk, tests that modify them
interact with each other in non-predictable ways. This will go away
eventually but requires a significant refactor. Workaround by running
one py.test per test file.

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoceph-disk: move check_journal_reqs (no change)
Loic Dachary [Tue, 19 Jan 2016 09:43:42 +0000 (16:43 +0700)]
ceph-disk: move check_journal_reqs (no change)

To help with the prepare refactor.

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoceph-disk: cleanup unused argument in list_format
Loic Dachary [Tue, 19 Jan 2016 09:39:30 +0000 (16:39 +0700)]
ceph-disk: cleanup unused argument in list_format

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoceph-disk: make all must setup.py install
Loic Dachary [Tue, 19 Jan 2016 09:19:03 +0000 (16:19 +0700)]
ceph-disk: make all must setup.py install

Refactor the test / virtualenv setup in the same way it was done for
ceph-detect-init.

All shell tests use ceph-helpers.sh which is modified to add ceph-disk /
ceph-detect-init virtualenv/bin to the PATH to ensure the source version
is used even if ceph is installed.

See "ceph-detect-init: make all must setup.py install"

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agotests: fix ceph-disk unit tests
Loic Dachary [Tue, 19 Jan 2016 09:15:43 +0000 (16:15 +0700)]
tests: fix ceph-disk unit tests

Because ceph-disk unit tests were not run as part of make check, part of
the most recent changes broke them. This is a batch fix to sanitize the
situation. Since it is now run with make check, that won't happen again.

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoceph-detect-init: make all must setup.py install
Loic Dachary [Tue, 19 Jan 2016 08:55:52 +0000 (15:55 +0700)]
ceph-detect-init: make all must setup.py install

When make all runs in the ceph-detect-init module, it does a "setup.py
build" which is not used. Replace it with a python setup.py install in a
virtualenv so that tests can add the virtualenv/bin to their PATH and
call ceph-detect-init from sources as they would if it was installed.

Part of run-tox.sh is moved to tools/setup-virtualenv.sh so that it can
be re-used by ceph-disk and other python modules.

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agotests: instructions to collect ceph-disk coverage
Loic Dachary [Sat, 2 Jan 2016 20:51:58 +0000 (21:51 +0100)]
tests: instructions to collect ceph-disk coverage

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agotests: remove ceph-disk dead code
Loic Dachary [Sat, 2 Jan 2016 16:49:24 +0000 (17:49 +0100)]
tests: remove ceph-disk dead code

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoceph-disk: flake8 fixes
Loic Dachary [Sat, 2 Jan 2016 01:08:09 +0000 (02:08 +0100)]
ceph-disk: flake8 fixes

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agotests: run ceph-disk tests via tox
Loic Dachary [Fri, 1 Jan 2016 21:09:00 +0000 (22:09 +0100)]
tests: run ceph-disk tests via tox

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoceph-disk: refactor into a proper python module
Loic Dachary [Fri, 1 Jan 2016 17:07:39 +0000 (18:07 +0100)]
ceph-disk: refactor into a proper python module

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agotests: ceph-disk deactivate takes the activate lock
Loic Dachary [Fri, 1 Jan 2016 17:05:26 +0000 (18:05 +0100)]
tests: ceph-disk deactivate takes the activate lock

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agotests: ceph-disk command returns stderr
Loic Dachary [Fri, 1 Jan 2016 17:04:40 +0000 (18:04 +0100)]
tests: ceph-disk command returns stderr

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoceph-osd: don't mention journal on mkfs
Sage Weil [Mon, 25 Jan 2016 15:21:48 +0000 (10:21 -0500)]
ceph-osd: don't mention journal on mkfs

Some backends don't use it, almost all clusters use the default
path, and there'll always be a symlink.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomakefile: include spdk source in dist tar ball. 7503/head
Kefu Chai [Thu, 4 Feb 2016 06:01:09 +0000 (14:01 +0800)]
makefile: include spdk source in dist tar ball.

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agoautotools: enable NVMEDevice if SPDK is found
Kefu Chai [Thu, 4 Feb 2016 06:00:44 +0000 (14:00 +0800)]
autotools: enable NVMEDevice if SPDK is found

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agocmake: enable NVMEDevice if SPDK is found
Kefu Chai [Wed, 3 Feb 2016 10:39:28 +0000 (18:39 +0800)]
cmake: enable NVMEDevice if SPDK is found

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agospdk: add submodule spdk for the nvme support
Kefu Chai [Wed, 3 Feb 2016 18:07:42 +0000 (02:07 +0800)]
spdk: add submodule spdk for the nvme support

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agocmake: add Find{dpdk,pciaccess}.cmake
Kefu Chai [Wed, 3 Feb 2016 10:31:45 +0000 (18:31 +0800)]
cmake: add Find{dpdk,pciaccess}.cmake

to ready the SPDK support

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agoNVMEDevice: fix the build error with latest spdk
Kefu Chai [Wed, 3 Feb 2016 10:27:18 +0000 (18:27 +0800)]
NVMEDevice: fix the build error with latest spdk

* include spdk headers in source file
* declare const string with "const" specifier
* pass flag to nvme_ns_cmd_{write,read}()

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #6268 from dachary/wip-13453-recovery-counters
Loic Dachary [Thu, 4 Feb 2016 04:16:35 +0000 (11:16 +0700)]
Merge pull request #6268 from dachary/wip-13453-recovery-counters

recovery counters

Reviewed-by: Samuel Just <sjust@redhat.com>
9 years agodoc: add orphans commands to radosgw-admin(8) 7518/head
Ken Dreyer [Thu, 4 Feb 2016 02:51:58 +0000 (19:51 -0700)]
doc: add orphans commands to radosgw-admin(8)

The --help text was added in 105a76bf542e05b739d5a03ca8ae55432350f107.
Add the corresponding entries to the man page.

Fixes: #14637
Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
9 years agoconfig: set default bluestore wal size to 96 MB 7506/head
Sage Weil [Wed, 3 Feb 2016 15:51:22 +0000 (10:51 -0500)]
config: set default bluestore wal size to 96 MB

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: change block file mkfs behavior
Sage Weil [Wed, 3 Feb 2016 15:51:01 +0000 (10:51 -0500)]
os/bluestore: change block file mkfs behavior

Previously, if path was set, we'd make a symlink.  Otherwise, if
size was set, we'd create a file and resize it accordingly. This
means that setting the size means we create the block "device"
files, which is only useful for debugging, and we want to set a
size that can be used by ceph-disk when creating partitions.

Instead, if path is set, make a symlink.  Then/also, if size is
set, and the file/symlink points to a regular file, and that
regular file is 0 bytes, then resize it.  This way, vstart.sh
(or a dev) can just touch the file and then mkfs will size it up.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7507 from tchaikov/wip-cmake
Samuel Just [Wed, 3 Feb 2016 18:40:11 +0000 (10:40 -0800)]
Merge pull request #7507 from tchaikov/wip-cmake

cmake: add KernelDevice.cc to libos_srcs

Reviewed-by: Samuel Just <sjust@redhat.com>
9 years agocmake: add KernelDevice.cc to libos_srcs 7507/head
Kefu Chai [Wed, 3 Feb 2016 17:28:18 +0000 (01:28 +0800)]
cmake: add KernelDevice.cc to libos_srcs

which fixes the build

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge remote-tracking branch 'gh/jewel'
Sage Weil [Wed, 3 Feb 2016 14:46:47 +0000 (09:46 -0500)]
Merge remote-tracking branch 'gh/jewel'

9 years agoMerge branch 'wip-rados-bench'
Sage Weil [Wed, 3 Feb 2016 14:46:12 +0000 (09:46 -0500)]
Merge branch 'wip-rados-bench'

9 years agorados: Add units to rados bench output
Gu Zhongyan [Wed, 30 Dec 2015 08:42:07 +0000 (16:42 +0800)]
rados: Add units to rados bench output

Fixes: #12248
Signed-off-by: Gu Zhongyan <guzhongyan@360.com>
Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7386 from liewegas/wip-features
Sage Weil [Wed, 3 Feb 2016 14:44:28 +0000 (09:44 -0500)]
Merge pull request #7386 from liewegas/wip-features

osd: skip redirect encoding if we can

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoos/kstore: insert new onode to the front position of onode LRU 7505/head
xiexingguo [Wed, 3 Feb 2016 14:41:49 +0000 (22:41 +0800)]
os/kstore: insert new onode to the front position of onode LRU

See https://github.com/jjhuo/ceph/commit/caed88264d77f860376d4213cc98309a5daf3af2 for detail information.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agoMerge branch 'weighted-priority-queue' of git://github.com/rldleblanc/ceph
Sage Weil [Wed, 3 Feb 2016 13:53:22 +0000 (08:53 -0500)]
Merge branch 'weighted-priority-queue' of git://github.com/rldleblanc/ceph

Reviewed-by: Samuel Just <sjust@redhat.com>
9 years agoMerge branch 'gelf-logging-backend' of git://github.com/irq0/ceph
Sage Weil [Wed, 3 Feb 2016 13:48:26 +0000 (08:48 -0500)]
Merge branch 'gelf-logging-backend' of git://github.com/irq0/ceph

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoscripts/run-coverity: fix upload process
Sage Weil [Wed, 3 Feb 2016 13:41:14 +0000 (08:41 -0500)]
scripts/run-coverity: fix upload process

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7357 from zhengbinh3c/master
Sage Weil [Wed, 3 Feb 2016 13:52:02 +0000 (08:52 -0500)]
Merge pull request #7357 from zhengbinh3c/master

osd: fix memory leak in ReplicatedPG.cc error path

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7362 from xiexingguo/xxg-wip-fixbs
Sage Weil [Wed, 3 Feb 2016 13:50:46 +0000 (08:50 -0500)]
Merge pull request #7362 from xiexingguo/xxg-wip-fixbs

osd: BlueStore: fix fsck and blockdevice read-relevant issue

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7468 from liewegas/wip-test-fuse
Sage Weil [Wed, 3 Feb 2016 13:49:37 +0000 (08:49 -0500)]
Merge pull request #7468 from liewegas/wip-test-fuse

qa/workunits/objectstore/test_fuse.sh: fix root check

9 years agoMerge pull request #7476 from tchaikov/wip-include-expat-in-source
Sage Weil [Wed, 3 Feb 2016 13:49:28 +0000 (08:49 -0500)]
Merge pull request #7476 from tchaikov/wip-include-expat-in-source

rgw: do not include "expat.h" in header file

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7479 from roidayan/fix_xio_compilation
Sage Weil [Wed, 3 Feb 2016 13:48:54 +0000 (08:48 -0500)]
Merge pull request #7479 from roidayan/fix_xio_compilation

msg/xio: fix compilation

9 years agotest_bufferlist: add move tests for bufferlist 7455/head
Haomai Wang [Wed, 3 Feb 2016 03:25:22 +0000 (11:25 +0800)]
test_bufferlist: add move tests for bufferlist

Signed-off-by: Haomai Wang <haomai@xsky.com>
9 years agoos/bluestore: insert new onode to the front position of onode LRU 7492/head
Jianjian Huo [Wed, 3 Feb 2016 05:19:37 +0000 (00:19 -0500)]
os/bluestore: insert new onode to the front position of onode LRU

When new added onode comes, it should go to the front of the LRU,
since it's least recently used.

Signed-off-by: Jianjian Huo <samuel.huo@gmail.com>
9 years agobluestore/bluefs_types: fix imcomplete output message 7324/head
xie xingguo [Mon, 25 Jan 2016 01:26:52 +0000 (09:26 +0800)]
bluestore/bluefs_types: fix imcomplete output message

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agoBlueFS: add a guard for log space allocation during mkfs
xie xingguo [Sat, 23 Jan 2016 05:09:45 +0000 (13:09 +0800)]
BlueFS: add a guard for log space allocation during mkfs

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agoBlueFS: fix race condition
xie xingguo [Sat, 23 Jan 2016 02:50:04 +0000 (10:50 +0800)]
BlueFS: fix race condition

Fixes: #14480
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agoBlueFS: fix typo
xie xingguo [Fri, 22 Jan 2016 10:11:45 +0000 (18:11 +0800)]
BlueFS: fix typo

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agoBlueFS: remove unused local variable
xie xingguo [Fri, 22 Jan 2016 10:10:15 +0000 (18:10 +0800)]
BlueFS: remove unused local variable

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agoBlueFS: remove redundant intermediate buffer pad
xie xingguo [Thu, 21 Jan 2016 08:57:22 +0000 (16:57 +0800)]
BlueFS: remove redundant intermediate buffer pad

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agoBlueFS: stop alloc if unable to replay
xie xingguo [Thu, 21 Jan 2016 06:35:39 +0000 (14:35 +0800)]
BlueFS: stop alloc if unable to replay

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agoBlueFS: fix unprecise calculation of sync interval
xie xingguo [Fri, 22 Jan 2016 10:00:08 +0000 (18:00 +0800)]
BlueFS: fix unprecise calculation of sync interval

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agoBlueFS: add log after updating prefer_bdev field.
xie xingguo [Fri, 22 Jan 2016 09:55:21 +0000 (17:55 +0800)]
BlueFS: add log after updating prefer_bdev field.

Fixes: #14474
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agoqa/workunits/rados/test.sh: bash 7447/head
Sage Weil [Tue, 2 Feb 2016 22:45:04 +0000 (17:45 -0500)]
qa/workunits/rados/test.sh: bash

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agobuffer: add operator= for ptr/bufferlist rvalue
Haomai Wang [Tue, 2 Feb 2016 17:50:51 +0000 (01:50 +0800)]
buffer: add operator= for ptr/bufferlist rvalue

Signed-off-by: Haomai Wang <haomai@xsky.com>