Commit Graph

76768 Commits

Author SHA1 Message Date
Alfredo Deza
d77d86aae1 ceph-volume util add a helper to check if a device is mounted
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-09 15:10:18 -04:00
Alfredo Deza
c866123017 ceph-volume: lvm activate should not ignore exit status codes
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-09 08:22:11 -04:00
Andrew Schoen
855ce63069 ceph-volume: remove unused config from vagrant_variables.yml files
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2017-08-08 12:43:53 -05:00
Andrew Schoen
5a90f4c577 ceph-volume: adds CEPH_VOLUME_DEBUG=1 to functional tests
This will show us tracebacks if ceph-volume fails

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2017-08-08 12:24:41 -05:00
Andrew Schoen
852a94734f ceph-volume: add placeholders for prepare_activate testing in tox.ini
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2017-08-08 12:05:40 -05:00
Andrew Schoen
1b4275417d ceph-volume: adds the xenial distro factor
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2017-08-08 11:44:22 -05:00
Andrew Schoen
c8e3be6fae ceph-volume: create a centos7 factor for functional testing
We want to run these tests on multiple distros so this change sets the
foundation for that.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2017-08-08 11:41:15 -05:00
Andrew Schoen
97b216fdd1 ceph-volume: setup nodes for testinfra testing
This uses the playbook that exists in ceph-ansible to prepare the nodes for
testing by installing net-tools.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2017-08-08 10:18:45 -05:00
Alfredo Deza
476d1f50b8 ceph-volume: vagrantfile runs storagectl once
It assumes that if there is a disk left it has already run. This avoids
issues when reloading/restarting machines with vagrant.

Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-08 10:18:45 -05:00
Alfredo Deza
89ccbd8ab4 ceph-volume: tox define vagrant cwd
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-08 10:18:35 -05:00
Andrew Schoen
750d9f4125 ceph-volume: adds a functional testing scenario for lvm create
This setups up the basic test harness and adds a test for the create
subcommand. The test uses ceph-ansible to deploy a cluster using
``ceph-volume lvm create``, tests the cluster state using the
ceph-ansible test suite, reboots the nodes and then tests again.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2017-08-08 10:18:34 -05:00
Mykola Golub
43d8e23971 Merge pull request #16877 from dillaman/wip-20918
test/librbd: fix race condition with OSD map refresh

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2017-08-08 17:36:01 +03: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
Jason Dillaman
5c29664434 test/librbd: fix race condition with OSD map refresh
Fixes: http://tracker.ceph.com/issues/20918
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-08-07 14:30:15 -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