Commit Graph

71912 Commits

Author SHA1 Message Date
Kefu Chai
b71ca04489 test/compressor: disable isal tests if not available
the isal-zlib compressor plugin is not supported on non-intel archs, and
if the user does not have a capable yasm compiler, neither will he/she
get this plugin.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-05-03 16:24:28 +08:00
Drunkard Zhang
2df20b2b4b doc: cleanup in doc/man/8/ceph.rst
Subcommand doc has been removed in 904913b37f,
this is cleanup.

Signed-off-by: Drunkard Zhang <gongfan193@gmail.com>
2017-05-03 15:45:35 +08:00
John Spray
43d26b9147 systemd: update mgr auth caps
Granting it 'allow *' on mon and osd so that
it can use MCommand to remote control daemons.

Signed-off-by: John Spray <john.spray@redhat.com>
2017-05-03 13:37:52 +08:00
John Spray
3746e209d8 mgr: embed Client instance for mds_command
Now plugins can talk to MDS daemons.

Signed-off-by: John Spray <john.spray@redhat.com>
2017-05-03 13:37:52 +08:00
John Spray
bff87c5555 client: enable using external Objecter
To enable places that already have an objecter
(such as ceph-mgr) to avoid spinning up another
one inside Client.

This will also be a path to re-using the librados
objecter in multiple instances of libcephfs in the
same process, a la nfs-ganesha.

Signed-off-by: John Spray <john.spray@redhat.com>
2017-05-03 13:37:52 +08:00
Jos Collin
e348713003 dmclock: ‘std::function’ has not been declared
The following error appears during make:

ceph/src/dmclock/test/test_test_client.cc:14:0:
ceph/src/dmclock/test/../sim/src/sim_recs.h:40:12: error: ‘std::function’ has not been declared
       std::function<void()> code) {

Signed-off-by: Jos Collin <jcollin@redhat.com>
2017-05-03 10:18:54 +05:30
Yan, Zheng
d0b3d4aee0 Merge pull request #14822 from jan--f/fuse-normalize-wire-o_flags
fs/ceph-fuse: normalize file open flags on the wire
2017-05-03 11:11:57 +08:00
Kefu Chai
a9fdc4aad4 Merge pull request #14909 from joscollin/wip-dmclock-error
dmclock: error: ‘function’ in namespace ‘std’ does not name a template type

Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-05-03 11:07:29 +08:00
Kefu Chai
c26d30de9e Merge pull request #14748 from smithfarm/wip-teuthology-worker
doc: mention teuthology-worker security group

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2017-05-03 11:01:20 +08:00
John Spray
abd9f26793 pybind/rados: enable construction with CephContext
The CephContext pointer is passed around inside
a Python capsule.  It would have initially been
created by some other (non-cython) bit of C++
code, such as ceph-mgr.

This enables mgr modules to instantiate librados
with all the same config/auth/id as the mgr daemon
that they are running within.  Useful if you
want to spin up e.g. a librbd instance.

Signed-off-by: John Spray <john.spray@redhat.com>
2017-05-03 10:37:17 +08:00
John Spray
07cae6214b mgr: add get_context() to python interface
For modules that would like a CephContext* inside
a capsule, suitable for passing to librados constructor.

Signed-off-by: John Spray <john.spray@redhat.com>
2017-05-03 10:37:17 +08:00
John Spray
92a894c53f vstart: give mgr full mds/osd caps for tell
Signed-off-by: John Spray <john.spray@redhat.com>
2017-05-03 10:37:17 +08:00
John Spray
954c0b9c90 mgr: expose tell (MMonCommand) functionality
To enable plugins to talk directly to daemons when they
want to.

Signed-off-by: John Spray <john.spray@redhat.com>
2017-05-03 10:37:17 +08:00
John Spray
562089d2a1 mgr: expose Objecter to PyModules
Same motivation as exposing MonClient: so that modules
can get at the command sending code.

Signed-off-by: John Spray <john.spray@redhat.com>
2017-05-03 10:37:17 +08:00
Sage Weil
d7cd4ad2e3 mon/OSDMonitor: skip new pgs for prime_pg_temp
If the pg didn't previously exist we don't need to (and can't) prime
pg_temp for it.  This avoids crashing on mapping.get().

Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-02 20:42:34 -05:00
Yuri Weinstein
9cb79d2fe3 qa/added overrides
Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
2017-05-02 15:06:49 -07:00
Jason Dillaman
f6531fd077 qa/workunits/rbd: add additional OpenStack services
The Ocata release requires additional services to be running.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-05-02 15:43:36 -04:00
Casey Bodley
b4655405d5 Merge pull request #14412 from mikulely/cleanup-civetweb-port
rgw: drop unused port var

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
2017-05-02 13:05:00 -04:00
Yuri Weinstein
279050e4eb Merge pull request #13451 from xiexingguo/wip-add-up-primary-sum
mon/PGMap: add up_primary pg number field for pg-dump cmd

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-05-02 09:09:10 -07:00
Yuri Weinstein
0fd1689cf8 Merge pull request #14497 from tchaikov/wip-pybind-better-error-msg
pybind: better error msg

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2017-05-02 09:07:29 -07:00
Yuri Weinstein
35171b97a3 Merge pull request #14687 from jcsp/wip-mgr-suite
qa/suites: move mgr tests into rados suite

Reviewed-by: Sage Weil <sage@redhat.com>
2017-05-02 09:06:51 -07:00
Yuri Weinstein
3dbc29ba75 Merge pull request #14810 from liewegas/wip-status
mon: show inactive % in ceph status

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-05-02 09:06:13 -07:00
Yuri Weinstein
76e94a0a11 Merge pull request #14821 from badone/wip-no-death-coredumps
tests: Don't dump core when using EXPECT_DEATH

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2017-05-02 09:05:32 -07:00
Yuri Weinstein
0807f384bf Merge pull request #14857 from joscollin/wip-arch-cpuid
arch: use __get_cpuid instead of do_cpuid

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-05-02 09:04:09 -07:00
Sage Weil
94a873090e Merge pull request #12669 from hjwsm1989/unfound-objects
osd/PG: fix possible overflow on unfound objects

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
2017-05-02 10:54:19 -05:00
Sage Weil
56104449da Merge pull request #12882 from wonzhq/pglog-fixes
osd: pglog trimming fixes

Reviewed-by: Sage Weil <sage@redhat.com>
2017-05-02 10:53:26 -05:00
Sage Weil
fcd64d75ab Merge pull request #14444 from liewegas/wip-past-intervals
osd: simplify past_intervals representation

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2017-05-02 10:51:37 -05:00
Sage Weil
3b4e4d0077 Merge pull request #14898 from tchaikov/wip-clean-pending_created_pgs
mon/OSDMonitor: cleanup pending_created_pgs after done with it

Reviewed-by: Sage Weil <sage@redhat.com>
2017-05-02 10:51:12 -05:00
Sage Weil
7f97f363e8 Merge pull request #14904 from tchaikov/wip-19638-followon
osd: stop mgrc earlier in shutdown()

Reviewed-by: Sage Weil <sage@redhat.com>
2017-05-02 10:50:52 -05:00
Sage Weil
3e53e47e6b osd: fix legacy pg create conditions
1- in reality we don't really care if pg_temp is set.
2- compare against acting_primary since that's what actually matters.

Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-02 10:49:28 -05:00
Sage Weil
003113ff67 mon/OSDMonitor: fix prime_pg_temp vs creating condition
We want to *skip* creating PGs.

Fixes: http://tracker.ceph.com/issues/19826
Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-02 10:49:00 -05:00
Yuri Weinstein
3a6801751d Merge pull request #14858 from dmick/wip-config-dump
mon/ConfigKeyService: add 'config-key dump' to show keys and vals

Reviewed-by: Sage Weil <sage@redhat.com>
2017-05-02 08:25:16 -07:00
Yuri Weinstein
f7cf9d14b8 Merge pull request #14870 from smithfarm/wip-gperftools
build/ops: rpm: gperftools-devel >= 2.4

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
2017-05-02 08:23:59 -07:00
Jason Dillaman
736890fb30 qa/workunits: fix appdir setup issue in devstack
See https://bugs.launchpad.net/devstack/+bug/1667545

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-05-02 09:56:57 -04:00
Jason Dillaman
37d8a42510 qa/workunits: switch to OpenStack Ocata release for RBD testing
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-05-02 09:55:38 -04:00
Jos Collin
902561e9c3 dmclock: error: ‘function’ in namespace ‘std’ does not name a template type
The following error appears during make:

In file included from ceph/src/dmclock/support/src/run_every.cc:10:0:
ceph/src/dmclock/support/src/run_every.h:30:10: error: ‘function’ in namespace ‘std’ does not name a template type
     std::function<void()>     body;
          ^~~~~~~~
ceph/src/dmclock/support/src/run_every.h:46:12: error: ‘std::function’ has not been declared
       std::function<void()> _body) :
            ^~~~~~~~
ceph/src/dmclock/support/src/run_every.h:46:20: error: expected ‘,’ or ‘...’ before ‘<’ token
       std::function<void()> _body) :
                    ^
ceph/src/dmclock/support/src/run_every.h: In constructor ‘crimson::RunEvery::RunEvery(D, int)’:
ceph/src/dmclock/support/src/run_every.h:48:7: error: class ‘crimson::RunEvery’ does not have any field named ‘body’
       body(_body)
       ^~~~
ceph/src/dmclock/support/src/run_every.h:48:12: error: ‘_body’ was not declared in this scope
       body(_body)
            ^~~~~
ceph/src/dmclock/support/src/run_every.cc: In member function ‘void crimson::RunEvery::run()’:
ceph/src/dmclock/support/src/run_every.cc:70:7: error: ‘body’ was not declared in this scope
       body();
       ^~~~
ceph/src/dmclock/support/src/run_every.cc:70:7: note: suggested alternative: ‘bool’
       body();
       ^~~~
       bool

Signed-off-by: Jos Collin <jcollin@redhat.com>
2017-05-02 15:35:14 +05:30
Gui Hecheng
05b2fde54a rgw_file: cleanup virtual keyword on derived functions
Signed-off-by: Gui Hecheng <guihecheng@cmss.chinamobile.com>
2017-05-02 16:29:04 +08:00
Kefu Chai
1edcf1cb11 Merge pull request #14869 from wjwithagen/wip-wjw-cmake-uuid
cmake: fix the linked lib reference of unittest_rgw_crypto

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-05-02 14:41:19 +08:00
Kefu Chai
958e76d7f6 Merge pull request #14900 from jupiturliu/organization_map
mailmap: add Alibaba into organization map

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-05-02 14:28:41 +08:00
runsisi
c5c5d2fe5f librbd: get image id from directory if open image failed
Signed-off-by: runsisi <runsisi@zte.com.cn>
2017-05-02 11:38:14 +08:00
Kefu Chai
46da7ee760 Merge pull request #14895 from liewegas/wip-19778
kv: move 'bluestore-kv' hackery out of KeyValueDB into ceph-kvstore-tool

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-05-02 11:05:54 +08:00
Kefu Chai
4121a3fef7 Merge pull request #14853 from liewegas/wip-aio
os/fs/aio: use small_vector for aio_t; clean up header location

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-05-02 10:33:38 +08:00
runsisi
7580994cd8 librbd: do not delete ictx twice if open image failed
Signed-off-by: runsisi <runsisi@zte.com.cn>
2017-05-02 10:16:47 +08:00
Sage Weil
5898fe4aa0 osd: assert min_epoch <= sent_epoch
Otherwise the sender is broken and probaby didn't fill in min_epoch
properly!

Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-01 21:02:34 -05:00
Sage Weil
602c5bfd89 osd: min_epoch for MOSDRepScrub
Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-01 21:01:29 -05:00
Sage Weil
200f90b753 osd/ReplicatedBackend: cleanup repop_applied
Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-01 21:01:29 -05:00
Sage Weil
c33ee4e357 osd: min_epoch for MOSDRepOp[Reply]
Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-01 21:01:29 -05:00
Sage Weil
fad0994cba osd: min_epoch for MOSDPGUpdateLogMissing[Reply]
Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-01 21:01:29 -05:00
Sage Weil
024235fcd8 osd: min_epoch for MOSDPGScan
Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-01 21:01:29 -05:00
Sage Weil
cb1a5190cd osd: set min_epoch for push/pull/reply
Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-01 21:01:28 -05:00