Commit Graph

70847 Commits

Author SHA1 Message Date
Yuri Weinstein
8e532b26e6 Merge pull request #14209 from dachary/wip-crush-create-default-tunables
crush: builder: creating crush map with optimal configurations

Reviewed-by: Sage Weil <sage@redhat.com>
2017-04-10 13:27:32 -07:00
Mykola Golub
712e7e9677 Merge pull request #14401 from dillaman/wip-rbd-import-fixes
rbd: correct issues with image importing

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2017-04-10 22:23:53 +03:00
Sage Weil
6208821d0f Merge pull request #14437 from cernceph/dvanders_mgrrotate
ceph-mgr: rotate logs on sighup

Reviewed-by: Sage Weil <sage@redhat.com>
2017-04-10 14:20:32 -05:00
Abhishek Lekshmanan
10ff461fc0 script: serve-doc print the port we're serving
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2017-04-10 19:16:56 +02:00
Abhishek Lekshmanan
a69efc7760 script: build-doc use python2 only for virtualenv
This is because the sphinx-ditaa package and ceph's rbd/rgw/rados pybind
require python2

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2017-04-10 19:15:25 +02:00
Abhishek Lekshmanan
7984fcc115 doc: release notes for v10.2.7 Jewel
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2017-04-10 19:09:04 +02:00
Kefu Chai
e8f1f4a6d4 Merge pull request #14413 from hansbogert/patch-3
doc: rgw: remove mention of megabytes for quotas

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
2017-04-11 00:25:25 +08:00
Dan van der Ster
19f56b4cc0 logrotate.conf: also sighup the ceph-mgr
Tell ceph-mgr to reopen its logs postrotate.

Fixes: http://tracker.ceph.com/issues/19568
Signed-off-by: Dan van der Ster <daniel.vanderster@cern.ch>
2017-04-10 17:34:48 +02:00
Danny Al-Gaaf
f47cc2869b ceph_fuse.cc: fix 64/32bit detection
Fix for:

[src/ceph_fuse.cc:111]: (style) Condition 'sizeof(long)==4' is always false

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2017-04-10 23:34:18 +08:00
Danny Al-Gaaf
a5372d5ca6 lua_bufferlist.cc: use static_cast instead of c-style
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2017-04-10 23:34:18 +08:00
Danny Al-Gaaf
6212f76bbd BitAllocator_test.cc: use static_cast instead of c-style
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2017-04-10 23:34:18 +08:00
Danny Al-Gaaf
511159a1be test_librbd.cc: use static_cast instead of c-style
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2017-04-10 23:34:18 +08:00
Danny Al-Gaaf
439ae679c2 rgw_rest_s3.cc: use static_cast instead of c-style
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2017-04-10 23:34:17 +08:00
Danny Al-Gaaf
1a4720e95a PrimaryLogPG.cc: use static_cast instead of c-style
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2017-04-10 23:34:17 +08:00
Danny Al-Gaaf
e8b31f91bf osd/PG.cc: use static_cast instead of c-style
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2017-04-10 23:34:17 +08:00
Danny Al-Gaaf
e37365385c BitAllocator.cc: use static_cast instead of c-style
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2017-04-10 23:34:16 +08:00
Kefu Chai
bbaac7bfdc Merge pull request #14430 from jcsp/wip-19566-monassert
mon: avoid segfault in wait_auth_rotating

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-04-10 23:31:06 +08:00
Dan van der Ster
44354e0089 ceph-mgr: reopen logs on SIGHUP
Wire up the sighup_handler to reopen logs, like the other daemons.

Fixes: http://tracker.ceph.com/issues/19568
Signed-off-by: Dan van der Ster <daniel.vanderster@cern.ch>
2017-04-10 17:29:05 +02:00
Kefu Chai
6646b35ac7 mgr,mon,osdc: more constness
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-04-10 23:20:16 +08:00
Kefu Chai
c14b913bad mgr/DaemonServer: always template the return value
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-04-10 23:20:16 +08:00
Kefu Chai
f45325672f osdc/Objecter: remove duplicated with_osdmap() template function
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-04-10 23:20:16 +08:00
Kefu Chai
4a8631e5b0 mgr/DaemonServer: move reweight-by-* to mgr
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-04-10 23:20:16 +08:00
Kefu Chai
63ab319875 mgr/DaemonServer: extract reply out of handle_command()
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-04-10 23:20:16 +08:00
Kefu Chai
8486249493 mon/MonCap: chmod mgr+w osd
so mgr is able to update osdmap with 'osd reweightn'

Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-04-10 23:20:16 +08:00
Kefu Chai
efc6ebaf4d mon/OSDMonitor: add "osd reweightn" command
the "weights" parameter is an escaped serialized json dict, where double
quote is replaced with single quote.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-04-10 23:20:16 +08:00
Kefu Chai
82dccc4e74 mon/OSDMonitor: extract reweight_by_utilization into PGMap
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-04-10 23:20:16 +08:00
Kefu Chai
e053e18408 Merge pull request #14428 from tchaikov/wip-ceph_objectstore_tool-kill-all
tests: ceph_objectstore_tool.py: kill all daemons

Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
2017-04-10 23:16:09 +08:00
John Spray
d529121b60 Merge pull request #10636 from fullerdj/wip-djf-15069
cephfs: Permit recovering metadata into a new RADOS pool

Reviewed-by: John Spray <john.spray@redhat.com>
2017-04-10 13:52:04 +01:00
John Spray
4d41492708 mon: avoid segfault in wait_auth_rotating
MonClient users should not be calling into MonClient
after calling shutdown().  However, MonClient should
assert out rather than proceeding to try and
follow a maybe-null pointer.

Related to http://tracker.ceph.com/issues/19566

Signed-off-by: John Spray <john.spray@redhat.com>
2017-04-10 13:02:00 +01:00
Kefu Chai
d3de0036b4 tests: ceph_objectstore_tool.py: kill all daemons
init-ceph kills all daemons that can be identified by get_name_list() by
default, so no need to list them explicitly. also, without this change,
mgr is not stopped when the test finishes.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-04-10 19:39:26 +08:00
Danny Al-Gaaf
565d2a6303 osd/OSD.cc: use static_cast instead of c-style
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2017-04-10 18:16:17 +08:00
Danny Al-Gaaf
78ce269780 rgw_rest_s3.cc: reorder checks in while loop
Fix for:

[src/rgw/rgw_rest_s3.cc:1224]: (style) Array index 'chunk_offset'
 is used before limits check.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2017-04-10 18:16:17 +08:00
Danny Al-Gaaf
372727789d AsyncMessenger.cc: fix FORWARD_NULL
Use assert to ensure Message *m is not NULL.

Fix for:

CID 1399578 (#4 of 4): Dereference after null check (FORWARD_NULL)
 var_deref_model: Passing null pointer m to submit_message,
 which dereferences it.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2017-04-10 18:16:17 +08:00
Danny Al-Gaaf
3f7b411e1e rgw_file.h: fix potential data race condition
Fix for:

CID 1399581 (#1 of 1): Data race condition (MISSING_LOCK)
 missing_lock: Accessing this->state.atime without holding lock
 rgw::RGWFileHandle.mtx. Elsewhere, "_ZN3rgw13RGWFileHandle5StateE.atime"
 is accessed with rgw::RGWFileHandle.mtx held 2 out of 3 times
 (2 of these accesses strongly imply that it is necessary).

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2017-04-10 18:16:17 +08:00
Danny Al-Gaaf
d6b4ff076a cls_rgw_client.h: Close resource leak
Fix for:

CID 1395687 (#1 of 1): Resource leak (RESOURCE_LEAK)
CID 1395679 (#1 of 1): Resource leak (RESOURCE_LEAK)
 leaked_storage: Variable c going out of scope leaks the storage it
 points to.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2017-04-10 18:16:17 +08:00
Danny Al-Gaaf
bbceab5939 mount.ceph.c: fix resource leak
Addressed issue:

CID 1219611 (#1 of 1): Resource leak (RESOURCE_LEAK)
 leaked_storage: Variable saw_name going out of scope leaks
 the storage it points to.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2017-04-10 18:16:17 +08:00
Danny Al-Gaaf
5202b9f95f test_ipaddr.cc: fix UNINIT issues around sockaddr_in struct
Fix for:

CID 1396088 (#1 of 1): Uninitialized scalar variable (UNINIT)
CID 1396090 (#1 of 1): Uninitialized scalar variable (UNINIT)
CID 1396091 (#1 of 1): Uninitialized scalar variable (UNINIT)
CID 1396092 (#1 of 1): Uninitialized scalar variable (UNINIT)
CID 1396096 (#1 of 1): Uninitialized scalar variable (UNINIT)
CID 1396097 (#1 of 1): Uninitialized scalar variable (UNINIT)
CID 1396099 (#1 of 1): Uninitialized scalar variable (UNINIT)
CID 1396101 (#1 of 1): Uninitialized scalar variable (UNINIT)
CID 1396103 (#1 of 1): Uninitialized scalar variable (UNINIT)
CID 1396104 (#1 of 1): Uninitialized scalar variable (UNINIT)

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2017-04-10 18:16:17 +08:00
Radoslaw Zarzynski
c80878a6bb Merge pull request #14280 from tone-zhang/bug_19442
rgw: fix response header of Swift API

Reviewed-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-04-10 11:51:55 +02:00
Kefu Chai
6caa1b647e Merge pull request #14378 from kestrels/wip-19454
arch: fix build on PowerPC with FreeBSD

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
2017-04-10 16:01:26 +08:00
Kefu Chai
5215e291da mon/MonClient: make get_mon_log_message() atomic
* LogClient: move reset_session() into get_mon_log_message() and add a
  "flush" param to the latter. so it can get_mon_log_message()
  atomically. otherwise another call changing the log queue could sneak
  in between reset_session() and get_mon_log_message().
* MonClient: add a "flush" param to do_send() so we can reset the
  LogClient session once we are connected to a monitor.

Fixes: http://tracker.ceph.com/issues/19427
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-04-10 14:58:05 +08:00
YunfeiGuan
4ef830c5d6 cephfs: fix mount point break off problem after mds switch occured
The hot-standby become active as we expected but the mount piont broken strangely
when the active mds is down. The root reason is the new mds use last_cap_renews
decoded from ESesson::replay in find_idle_sessions and wrongly killed the session.
Maybe we should reset session->last_cap_renew to the current time when server send
OPEN to client in reconnect stage.

Fixes: http://tracker.ceph.com/issues/19437
Signed-off-by: Guan yunfei <yunfei.guan@xtaotech.com>
2017-04-10 05:48:47 +00:00
Brad Hubbard
ac6123d7a6 docs: Clarify the relationship of min_size to EC pool recovery
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
2017-04-10 15:14:20 +10:00
Brad Hubbard
b973c88dfa Merge pull request #14360 from joscollin/wip-Update-organizationmap
.organizationmap: Updated authors

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
2017-04-10 12:34:44 +10:00
Jason Dillaman
0b61e113fd Merge pull request #13803 from trociny/wip-18785
rbd-mirror: separate ImageReplayer handling from Replayer

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-04-09 09:59:57 -04:00
Kefu Chai
ce9c539563 Merge pull request #14406 from wjwithagen/wip-wjw-freebsd.readme
README.FreeBSD: Update the status

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-04-09 20:34:56 +08:00
Hans van den Bogert
b26f62265b doc: rgw: remove mention of megabytes for quotas
Remove mention of confusing reference to megabytes in opening paragraph of "quota management".
To remove further confusion, mention that setting a size for '--max-size' is in bytes by default.

Signed-off-by: Hans van den Bogert <hansbogert@gmail.com>
2017-04-09 13:40:29 +02:00
Willem Jan Withagen
f2afb81cc0 README.FreeBSD: Update the status
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
2017-04-09 12:08:45 +02:00
Kefu Chai
654faeed16 Merge pull request #14397 from liewegas/wip-19541
osd/PG: only correct filestore collection bits on load

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-04-09 15:59:59 +08:00
Amir Vadai
f47025f837 msg/async/rdma: get_device() by ibv_context
This function will be used by RDMAConnCM

Issue: 995322
Change-Id: I52b684e8bbac14c1070801b2ba470c7c0dfe40b9
Signed-off-by: Amir Vadai <amir@vadai.me>
2017-04-09 07:30:31 +00:00
Amir Vadai
ce4677612f msg/async/rdma: Pass specific ConnMgr info in constructor
Pass specific information for RDMAConnTCP (and later for RDMAConnCM) in
the constructor.
This makes set_accept_fd() redundant.

Issue: 995322
Change-Id: I10b4a626f180858465a378e886a238fe187180d5
Signed-off-by: Amir Vadai <amir@vadai.me>
2017-04-09 07:22:41 +00:00