Commit Graph

76765 Commits

Author SHA1 Message Date
Sage Weil
8b7700782e Merge pull request #16809 from jdurgin/wip-20904
osd/PG: fix lost unfound + delete when there are no missing objects

Reviewed-by: Sage Weil <sage@redhat.com>
2017-08-04 13:20:32 -05:00
Sage Weil
bd119910f5 Merge pull request #16812 from xiexingguo/wip-class-startup
osd/OSD: tolerate any 'set-device-class' error on OSD startup

Reviewed-by: Sage Weil <sage@redhat.com>
2017-08-04 13:13:23 -05:00
Neha Ojha
139cc382ab osd: use recovery sleep hdd for ssd store and hdd journal case
Signed-off-by: Neha Ojha <nojha@redhat.com>
2017-08-04 11:07:19 -07:00
Sage Weil
24c8d7e5d8 Merge pull request #16827 from liewegas/wip-more-more-more
qa/suites/rados/basic/tasks/rados_python: POOL_APP_NOT_ENABLED
2017-08-04 12:39:47 -05:00
Sage Weil
82cf3046de qa/suites/rados/basic/tasks/rados_python: POOL_APP_NOT_ENABLED
Signed-off-by: Sage Weil <sage@redhat.com>
2017-08-04 13:39:13 -04:00
amitkuma
a05bf91bde messages: Initializing uninitialized members module messages
Fixes coverity Issue:

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

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

2. uninit_member: Non-static class member client_inc is not initialized in this constructor nor in any functions that it calls.
4. uninit_member: Non-static class member osdmap_epoch is not initialized in this constructor nor in any functions that it calls.
6. uninit_member: Non-static class member flags is not initialized in this constructor nor in any functions that it calls.
8. uninit_member: Non-static class member retry_attempt is not initialized in this constructor nor in any functions that it calls.
CID 717303 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
10. uninit_member: Non-static class member features is not initialized in this constructor nor in any functions that it calls.

2. uninit_member: Non-static class member flags is not initialized in this constructor nor in any functions that it calls.
4. uninit_member: Non-static class member user_version is not initialized in this constructor nor in any functions that it calls.
6. uninit_member: Non-static class member osdmap_epoch is not initialized in this constructor nor in any functions that it calls.
CID 717304 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
8. uninit_member: Non-static class member retry_attempt is not initialized in this constructor nor in any functions that it calls.

2. uninit_member: Non-static class member op is not initialized in this constructor nor in any functions that it calls.
4. uninit_member: Non-static class member map_epoch is not initialized in this constructor nor in any functions that it calls.
CID 717305 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
6. uninit_member: Non-static class member query_epoch is not initialized in this constructor nor in any functions that it calls.

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

Signed-off-by: Amit Kumar amitkuma@redhat.com
2017-08-04 22:16:04 +05:30
Jason Dillaman
7350fa65d7 Merge pull request #16724 from amitkumar50/cov-1403249
librbd: Uninitialized variable used handle_refresh()

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-08-04 12:34:29 -04:00
Jason Dillaman
cb9af1d4a8 Merge pull request #16742 from scienceluo/wip-luo-coverity-fix-branch
test/librbd/fsx: Add break in case OP_WRITESAME and OP_COMPARE_AND_WRITE

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-08-04 12:32:34 -04:00
Jason Dillaman
7560c58ed0 Merge pull request #16729 from amitkumar50/cov-1402141
rbd: Drop unused member variable reopen in C_OpenComplete

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-08-04 12:30:44 -04:00
Sage Weil
d09606619f qa/tasks/ceph: wait longer for scrub
Signed-off-by: Sage Weil <sage@redhat.com>
2017-08-04 12:06:27 -04:00
Sage Weil
9c7a653fee Merge pull request #16769 from liewegas/wip-20295-b
os/bluestore: allow multiple DeferredBatches in flight at once

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
2017-08-04 11:04:38 -05:00
Abhishek L
0a5b0021b4 Merge pull request #16787 from liewegas/wip-bluestore-docs
doc/release-notes: fix bluestore links

Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
2017-08-04 17:37:47 +02:00
Douglas Fuller
f249e3d2d5 doc/cephfs: Document ceph auth fs
Change the CephFS auth caps documentation to reflect the new ceph auth
fs command.

Signed-off-by: Douglas Fuller <dfuller@redhat.com>
2017-08-04 11:10:07 -04:00
Sage Weil
9d95f1a4df Merge pull request #16632 from ceph/wip-volume
ceph-volume: initial take on ceph-volume CLI tool

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Andrew Schoen <aschoen@redhat.com>
2017-08-04 09:51:27 -05:00
amitkuma
ddb8aacd07 messages: Initializing uninitialized members MOSDAlive
Fixes coverity Issue:

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

Signed-off-by: Amit Kumar amitkuma@redhat.com
2017-08-04 20:20:08 +05:30
amitkuma
afb604ba7c messages: Initializing uninitialized members MMonProbe
Fixes coverity Issue:

** 717299 Uninitialized scalar field
2. uninit_member: Non-static class member op is not initialized in this constructor nor in any functions that it calls.
  	4. uninit_member: Non-static class member paxos_first_version is not initialized in this constructor nor in any functions that it calls.
   	6. uninit_member: Non-static class member paxos_last_version is not initialized in this constructor nor in any functions that it calls.
   	8. uninit_member: Non-static class member has_ever_joined is not initialized in this constructor nor in any functions that it calls.

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

Signed-off-by: Amit Kumar amitkuma@redhat.com
2017-08-04 20:14:55 +05:30
amitkuma
a201ba7a5b messages: Initializing uninitialized members MMonPaxos
Fixes coverity Issue:

2. uninit_member: Non-static class member epoch is not initialized in this constructor nor in any functions that it calls.
  	4. uninit_member: Non-static class member op is not initialized in this constructor nor in any functions that it calls.
   	6. uninit_member: Non-static class member first_committed is not initialized in this constructor nor in any functions that it calls.
   	8. uninit_member: Non-static class member last_committed is not initialized in this constructor nor in any functions that it calls.
   	10. uninit_member: Non-static class member pn_from is not initialized in this constructor nor in any functions that it calls.
   	12. uninit_member: Non-static class member pn is not initialized in this constructor nor in any functions that it calls.
   	14. uninit_member: Non-static class member uncommitted_pn is not initialized in this constructor nor in any functions that it calls.

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

Signed-off-by: Amit Kumar amitkuma@redhat.com
2017-08-04 20:07:30 +05:30
Alfredo Deza
dde2a8b525 ceph-volume lvm trigger should check for root
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
58d5d8442f ceph-volume lvm prepare should check for root
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
a77dc50787 ceph-volume lvm create should check for root
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
74e977fe93 ceph-volume lvm activate should check for root
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
b189e0167f ceph-volume: decorators should call the wrapped func
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
fb10e6313a ceph-volume: systemd script should handle type-data format as argument
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
9b3eb5c512 ceph-volume: lvm add the actual trigger subcommand handler
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
a244056d91 ceph-volume: lvm: add a trigger sub-command to parent parser
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
945cc7db62 ceph-volume: tests update argument parsing for systemd
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
75899cf143 ceph-volume: tests add an lvm trigger for the systemd argument parsing
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
6d2b551f2a ceph-volume remove activate utilities, not needed with 'osd new'
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
cdbfc7019d ceph-volume lvm.activate remove unused import for activate utils
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
2f187ec7a9 ceph-volume: systemd should retry several times to activate a device
Allows environment variables to tweak the retries and intervals,
defaulting to 30 tries at 5 second intervals.

Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
11659c1880 ceph-volume: devices chown the journal when activating
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
0cf3a44a50 ceph-volume: systemd script should pass pre-configured log args
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
21ec4cea74 ceph-volume: prevent missing conf values for logging config
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
b458646ef1 ceph-volume: systemd: add helpers for the ceph-volume systemd unit
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
64523d8c5b ceph-volume: util prepare should pass -i to consume stdin
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
060d3ac339 ceph-volume: lvm consume the JSON secrets for preparing
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
f1c8c35439 ceph-volume: lvm remove the creation of the osd so early in the prepare process
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
faa8189aa0 ceph-volume: lvm: activate should not use the bootstrap-osd to auth add the keyring
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
db8bbf1c41 ceph-volume: util: use osd new for creating osds
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
80d3e6785c ceph-volume: process: allow stdin to be used
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
19c676ba6b ceph-volume: main: slice args for main and subcommands differently
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
055e16836b ceph-volume: devices.lvm add create module for the sub-command support
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
03a603002b ceph-volume: devices.lvm add the create sub-command
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
63cd2582ca ceph-volume: devices.lvm create a common module for sharing parsers
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
d7a6750b79 ceph-volume: devices: update coverage comments
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
1fc23e8111 ceph-volume: tests: add lvm api tests
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
4c7300ce25 ceph-volume: tests: update coverage comments
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
21c8854e61 ceph-volume: devices.lvm: update print and import for py3 support
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
bbaa0d9efe ceph-volume: lvm.main: update imports for py3 support
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
c5a3a7b2e1 ceph-volume: tests: create capture fixture for tests
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00