Commit Graph

76756 Commits

Author SHA1 Message Date
Willem Jan Withagen
fcc2e134b9 PendingReleaseNotes:Announce FreeBSD availability
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
2017-08-08 16:26:21 +02:00
Mykola Golub
50d7320f6d Merge pull request #16882 from dillaman/wip-20941
librbd: default localize parent reads to false

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2017-08-08 15:44:55 +03:00
Jason Dillaman
96cde17f29 Merge pull request #15339 from trociny/wip-rbd-ggate
rbd-ggate: tool to map images on FreeBSD via GEOM Gate

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
2017-08-08 07:37:18 -04:00
Jos Collin
7b6a14c873 Merge pull request #16846 from amitkumar50/cov-messages-4
messages: Initialize member variables

Reviewed-by: Jos Collin <jcollin@redhat.com>
2017-08-08 11:19:33 +00:00
Jos Collin
dd7d656e55 Merge pull request #16793 from amitkumar50/cov-717286
messages: initialize variable tid in MMDSFindIno

Reviewed-by: Jos Collin <jcollin@redhat.com>
2017-08-08 11:15:54 +00:00
Jos Collin
79986f77b9 Merge pull request #16890 from Songweibin/wip-librados-Wreorder
libradosstriper: silence warning from -Wreorder

Reviewed-by: Jos Collin <jcollin@redhat.com>
2017-08-08 10:43:51 +00:00
Mykola Golub
698c0ff17d test: add wrapper to run rbd-ggate test on FreeBSD
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2017-08-08 11:00:30 +02:00
Mykola Golub
b4dbfcc879 rbd-ggate: tool to map images on FreeBSD via GEOM Gate
rbd-ggate spawns a process responsible for the creation of ggate
device and forwarding I/O requests between the GEOM Gate kernel
subsystem and RADOS.

On FreeBSD it provides functionality similar to rbd-nbd on Linux.

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2017-08-08 11:00:30 +02:00
songweibin
38f909c9cd libradosstriper: silence warning from -Wreorder
Signed-off-by: songweibin <song.weibin@zte.com.cn>
2017-08-08 16:35:22 +08:00
Sage Weil
bdaf63e295 Merge pull request #16881 from liewegas/wip-kraken-x
qa/suites/upgrade/kraken-x: fixes
2017-08-07 20:38:21 -05:00
Sage Weil
bf29142b08 qa/suites/upgrade/kraken-x/stress-split*: whitelist
Signed-off-by: Sage Weil <sage@redhat.com>
2017-08-07 21:36:58 -04:00
Sage Weil
2234a0ed11 qa/suites/upgrade/kraken-x/parallel: whitelist
Signed-off-by: Sage Weil <sage@redhat.com>
2017-08-07 21:36:58 -04:00
Matt Benjamin
94883e0459 Merge pull request #16823 from adamemerson/wip-use-after-free
rgw: Fix use after free in IAM policy parser
2017-08-07 19:42:30 -04:00
Jason Dillaman
6e71c3a324 Merge pull request #16866 from amitkumar50/cov-librbd
librbd: initialization of state member variables

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-08-07 19:37:25 -04:00
Jason Dillaman
52e8f3bee3 Merge pull request #16867 from amitkumar50/cov-librbd-1
librbd: Initializing member variables

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-08-07 19:35:41 -04:00
Adam C. Emerson
5353d95268 rgw: Fix the last policy use-after-free
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
2017-08-07 17:48:37 -04:00
Adam C. Emerson
97d026dde6 rgw: Fix another use after free
This one was caused by iterator invalidation in set operations. In
this case just replace the set entirely with a bitfield.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
2017-08-07 17:48:37 -04:00
Adam C. Emerson
8377ba6525 rgw: Fix use after free in IAM policy parser
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
2017-08-07 17:48:37 -04:00
Jason Dillaman
cfc3d46036 librbd: default localize parent reads to false
Fixes: http://tracker.ceph.com/issues/20941
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-08-07 17:44:30 -04:00
Gregory Farnum
5fbd8dcbbb Merge pull request #16848 from amitkumar50/cov-messages-5
messages: Initialization of uninitialized members various classes

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2017-08-07 14:37:09 -07:00
Patrick Donnelly
6b10568732
Merge PR #16876 into master
* refs/remotes/upstream/pull/16876/head:
	doc: add new fs auth command to release notes

Reviewed-by: Sage Weil <sage@redhat.com>
2017-08-07 12:53:54 -07:00
Sage Weil
973772c11d Merge pull request #16871 from liewegas/wip-20920
mon: fix commands advertised during mon cluster upgrade

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2017-08-07 14:48:58 -05:00
Patrick Donnelly
f2051c0d4f
doc: add new fs auth command to release notes
Introduced by #16761.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2017-08-07 12:47:08 -07:00
Sage Weil
3e7d157871 qa/suites/upgrade/jewel-x/parallel: fix POOL_APP_NOT_ENABLED disable
This code runs on the mgr.

Signed-off-by: Sage Weil <sage@redhat.com>
2017-08-07 15:12:10 -04:00
Sage Weil
7c37c86bb2 mon/MonCommands: mark 'pg force_create_pg' deprecated
It's deprecated.

Also, this avoids a dup when we have an upgrading mon cluster
and it's also in PGMonitorCommands.

Signed-off-by: Sage Weil <sage@redhat.com>
2017-08-07 15:12:10 -04:00
Sage Weil
2d9045a9a5 mon: include PGMonitor commands with mixed-version mons
While we have a mixed version cluster, we have to advertise our
PGMonitor commands to our peons or else commands like 'pg dump'
won't work.

Once the mon feature flag is set, we can drop that because each
mon will include the mgr commands (either those stored in paxos
or the statically compiled ones until that point).

Signed-off-by: Sage Weil <sage@redhat.com>
2017-08-07 15:12:10 -04:00
Sage Weil
349b3c9bef mon: use vector<MonCommand> throughput for commands
The old code was pretty messy. This is standardizes on std::vector
throughout.  We also drop the win_election command args because
when we win an election we always set the leader commands to our
commands, and we can do that inside win_command() without passing
them in from here.

Signed-off-by: Sage Weil <sage@redhat.com>
2017-08-07 15:08:08 -04:00
Jason Dillaman
f0e351b50b Merge pull request #16642 from dillaman/wip-rbd-mirror-image-ids
rbd-mirror: simplify notifications for image assignment

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
2017-08-07 14:33:50 -04:00
amitkuma
2e887e729d librbd: Initializing member variables
Fixes the coverity issues:

** 1351727 Uninitialized scalar field
CID 1351727 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
2. uninit_member: Non-static class member m_state is not initialized in
this constructor nor in any functions that it calls.

** 1351728 Uninitialized scalar field
CID 1351728 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
2. uninit_member: Non-static class member m_state is not initialized in
this constructor nor in any functions that it calls.

** 1351733 Uninitialized scalar field
CID 1351733 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
2. uninit_member: Non-static class member snap_id is not initialized in
this constructor nor in any functions that it calls.

Signed-off-by: Amit Kumar amitkuma@redhat.com
2017-08-07 23:16:08 +05:30
Sage Weil
a755a0bce8 Merge pull request #16799 from liewegas/wip-smithi-have-4
qa/clusters/fixed-[23]: 4 osds per node, not 3

Vasu Kulkarni <vasu@redhat.com>
2017-08-07 12:36:42 -05:00
Sage Weil
387ad56a69 qa/clusters/fixed-[23]: 4 osds per node, not 3
Smithi have 4 nvme partitions available for use.

Signed-off-by: Sage Weil <sage@redhat.com>
2017-08-07 13:36:05 -04:00
amitkuma
ac631f6d58 librbd: Initialization of state inside module
Fixes the coverity issues:

** 1351715 Uninitialized scalar field
5. uninit_member: Non-static class member m_state is not initialized in this
constructor nor in any functions that it calls.
7. uninit_member: Non-static class member m_copyup_start is not initialized
in this constructor nor in any functions that it calls.
CID 1351715 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
9. uninit_member: Non-static class member m_copyup_end is not initialized
in this constructor nor in any functions that it calls.

** 1351724 Uninitialized scalar field
CID 1351724 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
2. uninit_member: Non-static class member m_state is not initialized in
this constructor nor in any functions that it calls.

** 1351725 Uninitialized scalar field
CID 1351725 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
2. uninit_member: Non-static class member m_state is not initialized in
this constructor nor in any functions that it calls.

** 1351726 Uninitialized scalar field
CID 1351726 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
3. uninit_member: Non-static class member m_state is not initialized in
this constructor nor in any functions that it calls.

Signed-off-by: Amit Kumar amitkuma@redhat.com
2017-08-07 23:01:12 +05:30
amitkuma
99835e1800 messages: Member initialization for class MMDSFindIno
Fixes the coverity Issue:

** 717286 Uninitialized scalar field
CID 717286 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
2. uninit_member: Non-static class member tid is not initialized
 in this constructor nor in any functions that it calls.

Signed-off-by: Amit Kumar amitkuma@redhat.com
2017-08-07 22:34:33 +05:30
Sage Weil
b5fae9a9ca Merge pull request #16873 from liewegas/wip-4-nodes
qa/suites: change fixed-2.yaml users to get 4 openstack disks

Reviewed-by: Zack Cerza <zcerza@redhat.com>
2017-08-07 11:27:40 -05:00
Sage Weil
3ffca50824 Merge pull request #16864 from smithfarm/wip-big-openstack
qa: big: add openstack.yaml
2017-08-07 11:02:59 -05:00
Sage Weil
f683d2d374 qa/suites: change fixed-2.yaml users to get 4 openstack disks
Follow-up for 4203c4f887

Signed-off-by: Sage Weil <sage@redhat.com>
2017-08-07 11:56:33 -04:00
Sage Weil
a872c44be7 Merge pull request #16842 from liewegas/wip-more-ec-map-discon
qa/suites/rados/thrash: fix thrashing with ec vs map discon
2017-08-07 10:48:56 -05:00
Haomai Wang
bb772b05a8 Merge pull request #16693 from alex-mikheev/wip_rdma_rxpool_1
msg/async/rdma: improves RX buffer management

Reviewed-by: Haomai Wang <haomai@xsky.com>
2017-08-07 23:45:48 +08:00
Sage Weil
03e6f976e7 Merge pull request #16869 from liewegas/wip-crush-ids
crush/CrushWrapper: fix out of bounds access

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
2017-08-07 10:35:47 -05:00
Jos Collin
61074a7266 Merge pull request #16845 from amitkumar50/cov-librados-aio
test/librados: Initialize member variables in aio.cc

Reviewed-by: Jos Collin <jcollin@redhat.com>
2017-08-07 14:51:13 +00:00
amitkuma
7f7c40771d test/librados: Initializing left members from aio.cc
Fixes the coverity Issue:

** 1322815 Uninitialized pointer field
CID 1322815 (#1 of 1): Uninitialized pointer field (UNINIT_CTOR)
2. uninit_member: Non-static class member m_sem is not initialized
in this constructor nor in any functions that it calls.

** 1322816 Uninitialized pointer field
CID 1322816 (#1 of 1): Uninitialized pointer field (UNINIT_CTOR)
2. uninit_member: Non-static class member m_sem is not initialized
in this constructor nor in any functions that it calls.

** 1322817 Uninitialized pointer field
CID 1322817 (#1 of 1): Uninitialized pointer field (UNINIT_CTOR)
2. uninit_member: Non-static class member m_sem is not initialized
in this constructor nor in any functions that it calls.

Signed-off-by: Amit Kumar amitkuma@redhat.com
2017-08-07 22:21:14 +05:30
Jason Dillaman
36f3c9ae09 rbd-mirror: clean up logging during test shut down
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-08-07 10:13:35 -04:00
Jason Dillaman
b38baa9489 rbd-mirror: avoid silently failing to register image replayer admin sockets
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-08-07 10:13:34 -04:00
Jason Dillaman
955e7cac4b rbd-mirror: restore deletion propagation and image replayer cleanup
The previous intermediate commits removed handling for deletion
propagation and image replayer cleanup since this logic has been
moved from instance to image replayer. Note that eventually the
policy's release notification will be responsible for the cleanup
of image replayers.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-08-07 10:13:34 -04:00
Jason Dillaman
eba021c151 rbd-mirror: ensure threads are mockable for testing
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-08-07 10:13:34 -04:00
Jason Dillaman
76b676dcb7 rbd-mirror: moved wait for deletion logic within image replayer
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-08-07 10:13:34 -04:00
Jason Dillaman
fa58b08292 rbd-mirror: simplified acquire/release notification messages
The other instances should already know about the possible peers, so
we can co-opt these messages for use by the policy mapper.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-08-07 10:13:34 -04:00
Jason Dillaman
d49945242e rbd-mirror: co-opt image acquire/release notifications
This notifications will now be used by the policy when a (re)map is
required.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-08-07 10:13:33 -04:00
Jason Dillaman
5ae0f6a6b1 rbd-mirror: new 'peer image removed' notification to instance watchers
Note: this commit intentionally breaks backwards compatibility with
Luminous RC instance watcher notifications.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-08-07 10:13:33 -04:00
Jason Dillaman
4e1b834d2d rbd-mirror: simplify resync handling within image replayer
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-08-07 10:13:33 -04:00