]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
7 years agoosd: downgrade (ok) PG scrub messages to debug 16916/head
John Spray [Tue, 8 Aug 2017 18:53:11 +0000 (19:53 +0100)]
osd: downgrade (ok) PG scrub messages to debug

Otherwise someone watching the log at INFO level gets
pelted with potentially millions of log messages
while the system is scrubbing.

Fixes: http://tracker.ceph.com/issues/20947
Signed-off-by: John Spray <john.spray@redhat.com>
7 years agomon: downgrade "scrub ok" message to debug.
John Spray [Tue, 8 Aug 2017 18:36:03 +0000 (19:36 +0100)]
mon: downgrade "scrub ok" message to debug.

This hides lines like:
[INF]  scrub ok on 0,1,2: ScrubResult(keys {pgmap_pg=13} crc {pgmap_pg=2458062599})

from the normal cluster log views.

Fixes: http://tracker.ceph.com/issues/20947
Signed-off-by: John Spray <john.spray@redhat.com>
7 years agoMerge pull request #16791 from amitkumar50/cov-717285
Jos Collin [Sat, 5 Aug 2017 10:32:13 +0000 (10:32 +0000)]
Merge pull request #16791 from amitkumar50/cov-717285

messages: Initializing member variable in MMDSCacheRejoin

Reviewed-by: Jos Collin <jcollin@redhat.com>
7 years agoMerge pull request #16783 from amitkumar50/cov-1414515
Jos Collin [Sat, 5 Aug 2017 09:51:55 +0000 (09:51 +0000)]
Merge pull request #16783 from amitkumar50/cov-1414515

msg: Remove unused variable perf_counter in RDMAStack

Reviewed-by: Jos Collin <jcollin@redhat.com>
7 years agoMerge pull request #16810 from amitkumar50/cov-717293
Jos Collin [Sat, 5 Aug 2017 08:40:31 +0000 (08:40 +0000)]
Merge pull request #16810 from amitkumar50/cov-717293

messages: Initialize members in MMDSTableRequest

Reviewed-by: Jos Collin <jcollin@redhat.com>
7 years agoMerge PR #16833 into master
Patrick Donnelly [Sat, 5 Aug 2017 03:26:09 +0000 (20:26 -0700)]
Merge PR #16833 into master

* refs/remotes/upstream/pull/16833/head:
qa: whitelist expected MDS_CLIENT_OLDEST_TID warn
qa: ignore insufficient standby during failover
qa: fix read-only whitelist
mds: MDS_DAMAGED to MDS_DAMAGE
doc: remove duplicate CephFS health check doc

7 years agoMerge PR #16825 into master
Patrick Donnelly [Sat, 5 Aug 2017 03:26:07 +0000 (20:26 -0700)]
Merge PR #16825 into master

* refs/remotes/upstream/pull/16825/head:
Changing 'int const' to 'const int'

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #16751 into master
Patrick Donnelly [Sat, 5 Aug 2017 03:26:05 +0000 (20:26 -0700)]
Merge PR #16751 into master

* refs/remotes/upstream/pull/16751/head:
mds: Added NULL check before dereference

Reviewed-by: Jos Collin <jcollin@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #16750 into master
Patrick Donnelly [Sat, 5 Aug 2017 03:26:03 +0000 (20:26 -0700)]
Merge PR #16750 into master

* refs/remotes/upstream/pull/16750/head:
client: Added NULL check before dereference

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #16725 into master
Patrick Donnelly [Sat, 5 Aug 2017 03:26:01 +0000 (20:26 -0700)]
Merge PR #16725 into master

* refs/remotes/upstream/pull/16725/head:
mds: Removing unused variables from StrayManager

Reviewed-by: Jos Collin <jcollin@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #16671 into master
Patrick Donnelly [Sat, 5 Aug 2017 03:25:59 +0000 (20:25 -0700)]
Merge PR #16671 into master

* refs/remotes/upstream/pull/16671/head:
Client: Add function "get_default_data_pool_name" for java client

Reviewed-by: Zheng Yan <zyan@redhat.com>
7 years agoMerge PR #16570 into master
Patrick Donnelly [Sat, 5 Aug 2017 03:25:56 +0000 (20:25 -0700)]
Merge PR #16570 into master

* refs/remotes/upstream/pull/16570/head:
mds: clean up obsolete declarations/headers

Reviewed-by: Zheng Yan <zyan@redhat.com>
7 years agoqa: whitelist expected MDS_CLIENT_OLDEST_TID warn 16833/head
Patrick Donnelly [Sat, 5 Aug 2017 03:21:13 +0000 (20:21 -0700)]
qa: whitelist expected MDS_CLIENT_OLDEST_TID warn

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoqa: ignore insufficient standby during failover
Patrick Donnelly [Fri, 4 Aug 2017 20:08:07 +0000 (13:08 -0700)]
qa: ignore insufficient standby during failover

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoqa: fix read-only whitelist
Patrick Donnelly [Sat, 5 Aug 2017 03:14:48 +0000 (20:14 -0700)]
qa: fix read-only whitelist

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoChanging 'int const' to 'const int' 16825/head
amitkuma [Fri, 4 Aug 2017 21:58:21 +0000 (03:28 +0530)]
Changing 'int const' to 'const int'

As per coding Guidelines 'const int' is recommended over 'int const'
https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md

NL.26: Use conventional const notation
Example:
const int x = 7;    // OK
int const y = 9;    // bad

Note
We are well aware that you could claim the "bad" examples more logical than the ones marked "OK", but they also confuse more people, especially novices relying on teaching material using the far more common, conventional OK style.
As ever, remember that the aim of these naming and layout rules is consistency and that aesthetics vary immensely.

Enforcement
Flag const used as a suffix for a type.

Signed-off-by: Amit Kumar amitkuma@redhat.com
7 years agoMerge PR #16761 into master
Patrick Donnelly [Fri, 4 Aug 2017 20:33:51 +0000 (13:33 -0700)]
Merge PR #16761 into master

* refs/remotes/upstream/pull/16761/head:
doc/cephfs: Document ceph auth fs
mon/AuthMonitor: Add special syntax for cephfs

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #16811 from amitkumar50/cov-717296
Gregory Farnum [Fri, 4 Aug 2017 20:31:06 +0000 (13:31 -0700)]
Merge pull request #16811 from amitkumar50/cov-717296

messages: Initializing uninitialized members MMonGetVersion

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
7 years agomds: MDS_DAMAGED to MDS_DAMAGE
Patrick Donnelly [Fri, 4 Aug 2017 20:00:47 +0000 (13:00 -0700)]
mds: MDS_DAMAGED to MDS_DAMAGE

We had both and MDS_DAMAGE looks to be the right/intended one.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agodoc: remove duplicate CephFS health check doc
Patrick Donnelly [Fri, 4 Aug 2017 19:27:54 +0000 (12:27 -0700)]
doc: remove duplicate CephFS health check doc

These are documented in doc/cephfs/health-messages.rst.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge branch 'wip-qa-rbd-health' of git://github.com/dillaman/ceph
Sage Weil [Fri, 4 Aug 2017 19:07:22 +0000 (15:07 -0400)]
Merge branch 'wip-qa-rbd-health' of git://github.com/dillaman/ceph

# Conflicts:
# qa/tasks/ceph.py

7 years agoMerge pull request #16815 from amitkumar50/cov-717299
Gregory Farnum [Fri, 4 Aug 2017 19:04:38 +0000 (12:04 -0700)]
Merge pull request #16815 from amitkumar50/cov-717299

messages: Initializing uninitialized members MMonProbe

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
7 years agoMerge pull request #16817 from amitkumar50/cov-messages-branch
Gregory Farnum [Fri, 4 Aug 2017 19:04:16 +0000 (12:04 -0700)]
Merge pull request #16817 from amitkumar50/cov-messages-branch

messages: Initializing uninitialized members module messages

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
7 years agoMerge pull request #16816 from amitkumar50/cov-717300
Gregory Farnum [Fri, 4 Aug 2017 19:01:49 +0000 (12:01 -0700)]
Merge pull request #16816 from amitkumar50/cov-717300

messages: Initializing uninitialized members MOSDAlive

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
7 years agoMerge pull request #16814 from amitkumar50/cov-717298
Gregory Farnum [Fri, 4 Aug 2017 19:00:57 +0000 (12:00 -0700)]
Merge pull request #16814 from amitkumar50/cov-717298

messages: Initializing uninitialized members MMonPaxos

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
7 years agoMerge pull request #16813 from amitkumar50/cov-717297
Gregory Farnum [Fri, 4 Aug 2017 19:00:13 +0000 (12:00 -0700)]
Merge pull request #16813 from amitkumar50/cov-717297

messages: Initializing uninitialized members MMonGetVersionReply

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
7 years agoMerge pull request #16803 from dmick/master
Gregory Farnum [Fri, 4 Aug 2017 18:58:41 +0000 (11:58 -0700)]
Merge pull request #16803 from dmick/master

common/buffer: off-by-one error in max iov length blocking

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
7 years agoMerge pull request #16675 from Jeegn-Chen/skip-err-entries
Josh Durgin [Fri, 4 Aug 2017 18:47:38 +0000 (11:47 -0700)]
Merge pull request #16675 from Jeegn-Chen/skip-err-entries

osd/PGLog: skip ERROR entires in _merge_object_divergent_entries

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #16744 from joscollin/wip-osd-warning
Josh Durgin [Fri, 4 Aug 2017 18:45:42 +0000 (11:45 -0700)]
Merge pull request #16744 from joscollin/wip-osd-warning

osd: silence warning from -Wint-in-bool-context

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Eric Ivancich <ivancich@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #16820 from liewegas/wip-more-whitelist
Sage Weil [Fri, 4 Aug 2017 18:44:08 +0000 (13:44 -0500)]
Merge pull request #16820 from liewegas/wip-more-whitelist

qa/suites/rados: a bit more whitelisting

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #16614 from neha-ojha/recovery_sleep_hybrid
Sage Weil [Fri, 4 Aug 2017 18:23:38 +0000 (13:23 -0500)]
Merge pull request #16614 from neha-ojha/recovery_sleep_hybrid

osd: Check whether journal is rotational or not

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #16809 from jdurgin/wip-20904
Sage Weil [Fri, 4 Aug 2017 18:20:32 +0000 (13:20 -0500)]
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>
7 years agoMerge pull request #16812 from xiexingguo/wip-class-startup
Sage Weil [Fri, 4 Aug 2017 18:13:23 +0000 (13:13 -0500)]
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>
7 years agoosd: use recovery sleep hdd for ssd store and hdd journal case 16614/head
Neha Ojha [Fri, 4 Aug 2017 18:07:19 +0000 (11:07 -0700)]
osd: use recovery sleep hdd for ssd store and hdd journal case

Signed-off-by: Neha Ojha <nojha@redhat.com>
7 years agoMerge pull request #16827 from liewegas/wip-more-more-more
Sage Weil [Fri, 4 Aug 2017 17:39:47 +0000 (12:39 -0500)]
Merge pull request #16827 from liewegas/wip-more-more-more

qa/suites/rados/basic/tasks/rados_python: POOL_APP_NOT_ENABLED

7 years agoqa/suites/rados/basic/tasks/rados_python: POOL_APP_NOT_ENABLED 16827/head
Sage Weil [Fri, 4 Aug 2017 17:39:13 +0000 (13:39 -0400)]
qa/suites/rados/basic/tasks/rados_python: POOL_APP_NOT_ENABLED

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomessages: Initializing uninitialized members module messages 16817/head
amitkuma [Fri, 4 Aug 2017 16:46:04 +0000 (22:16 +0530)]
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
7 years agoMerge pull request #16724 from amitkumar50/cov-1403249
Jason Dillaman [Fri, 4 Aug 2017 16:34:29 +0000 (12:34 -0400)]
Merge pull request #16724 from amitkumar50/cov-1403249

librbd: Uninitialized variable used handle_refresh()

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #16742 from scienceluo/wip-luo-coverity-fix-branch
Jason Dillaman [Fri, 4 Aug 2017 16:32:34 +0000 (12:32 -0400)]
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>
7 years agoMerge pull request #16729 from amitkumar50/cov-1402141
Jason Dillaman [Fri, 4 Aug 2017 16:30:44 +0000 (12:30 -0400)]
Merge pull request #16729 from amitkumar50/cov-1402141

rbd: Drop unused member variable reopen in C_OpenComplete

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #16769 from liewegas/wip-20295-b
Sage Weil [Fri, 4 Aug 2017 16:04:38 +0000 (11:04 -0500)]
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>
7 years agoMerge pull request #16787 from liewegas/wip-bluestore-docs
Abhishek L [Fri, 4 Aug 2017 15:37:47 +0000 (17:37 +0200)]
Merge pull request #16787 from liewegas/wip-bluestore-docs

doc/release-notes: fix bluestore links

Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
7 years agodoc/cephfs: Document ceph auth fs 16761/head
Douglas Fuller [Wed, 2 Aug 2017 15:39:51 +0000 (11:39 -0400)]
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>
7 years agoMerge pull request #16632 from ceph/wip-volume
Sage Weil [Fri, 4 Aug 2017 14:51:27 +0000 (09:51 -0500)]
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>
7 years agomessages: Initializing uninitialized members MOSDAlive 16816/head
amitkuma [Fri, 4 Aug 2017 14:50:08 +0000 (20:20 +0530)]
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
7 years agomessages: Initializing uninitialized members MMonProbe 16815/head
amitkuma [Fri, 4 Aug 2017 14:44:55 +0000 (20:14 +0530)]
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
7 years agomessages: Initializing uninitialized members MMonPaxos 16814/head
amitkuma [Fri, 4 Aug 2017 14:37:30 +0000 (20:07 +0530)]
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
7 years agoceph-volume lvm trigger should check for root 16632/head
Alfredo Deza [Fri, 4 Aug 2017 14:12:11 +0000 (10:12 -0400)]
ceph-volume lvm trigger should check for root

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume lvm prepare should check for root
Alfredo Deza [Fri, 4 Aug 2017 14:11:54 +0000 (10:11 -0400)]
ceph-volume lvm prepare should check for root

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume lvm create should check for root
Alfredo Deza [Fri, 4 Aug 2017 14:11:37 +0000 (10:11 -0400)]
ceph-volume lvm create should check for root

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume lvm activate should check for root
Alfredo Deza [Fri, 4 Aug 2017 14:11:17 +0000 (10:11 -0400)]
ceph-volume lvm activate should check for root

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: decorators should call the wrapped func
Alfredo Deza [Fri, 4 Aug 2017 14:04:04 +0000 (10:04 -0400)]
ceph-volume: decorators should call the wrapped func

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: systemd script should handle type-data format as argument
Alfredo Deza [Wed, 2 Aug 2017 19:26:25 +0000 (15:26 -0400)]
ceph-volume: systemd script should handle type-data format as argument

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: lvm add the actual trigger subcommand handler
Alfredo Deza [Wed, 2 Aug 2017 19:25:35 +0000 (15:25 -0400)]
ceph-volume: lvm add the actual trigger subcommand handler

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: lvm: add a trigger sub-command to parent parser
Alfredo Deza [Wed, 2 Aug 2017 18:42:27 +0000 (14:42 -0400)]
ceph-volume: lvm: add a trigger sub-command to parent parser

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: tests update argument parsing for systemd
Alfredo Deza [Wed, 2 Aug 2017 17:06:32 +0000 (13:06 -0400)]
ceph-volume: tests update argument parsing for systemd

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: tests add an lvm trigger for the systemd argument parsing
Alfredo Deza [Wed, 2 Aug 2017 17:06:04 +0000 (13:06 -0400)]
ceph-volume: tests add an lvm trigger for the systemd argument parsing

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume remove activate utilities, not needed with 'osd new'
Alfredo Deza [Thu, 27 Jul 2017 17:55:04 +0000 (13:55 -0400)]
ceph-volume remove activate utilities, not needed with 'osd new'

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume lvm.activate remove unused import for activate utils
Alfredo Deza [Thu, 27 Jul 2017 17:53:03 +0000 (13:53 -0400)]
ceph-volume lvm.activate remove unused import for activate utils

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: systemd should retry several times to activate a device
Alfredo Deza [Thu, 27 Jul 2017 11:46:18 +0000 (07:46 -0400)]
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>
7 years agoceph-volume: devices chown the journal when activating
Alfredo Deza [Wed, 26 Jul 2017 20:33:08 +0000 (16:33 -0400)]
ceph-volume: devices chown the journal when activating

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: systemd script should pass pre-configured log args
Alfredo Deza [Wed, 26 Jul 2017 18:51:09 +0000 (14:51 -0400)]
ceph-volume: systemd script should pass pre-configured log args

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: prevent missing conf values for logging config
Alfredo Deza [Wed, 26 Jul 2017 18:50:27 +0000 (14:50 -0400)]
ceph-volume: prevent missing conf values for logging config

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: systemd: add helpers for the ceph-volume systemd unit
Alfredo Deza [Wed, 26 Jul 2017 15:34:39 +0000 (11:34 -0400)]
ceph-volume: systemd: add helpers for the ceph-volume systemd unit

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: util prepare should pass -i to consume stdin
Alfredo Deza [Tue, 25 Jul 2017 19:46:36 +0000 (15:46 -0400)]
ceph-volume: util prepare should pass -i to consume stdin

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: lvm consume the JSON secrets for preparing
Alfredo Deza [Tue, 25 Jul 2017 18:16:10 +0000 (14:16 -0400)]
ceph-volume: lvm consume the JSON secrets for preparing

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: lvm remove the creation of the osd so early in the prepare process
Alfredo Deza [Tue, 25 Jul 2017 18:15:38 +0000 (14:15 -0400)]
ceph-volume: lvm remove the creation of the osd so early in the prepare process

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: lvm: activate should not use the bootstrap-osd to auth add the keyring
Alfredo Deza [Tue, 25 Jul 2017 18:15:06 +0000 (14:15 -0400)]
ceph-volume: lvm: activate should not use the bootstrap-osd to auth add the keyring

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: util: use osd new for creating osds
Alfredo Deza [Tue, 25 Jul 2017 18:11:50 +0000 (14:11 -0400)]
ceph-volume: util: use osd new for creating osds

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: process: allow stdin to be used
Alfredo Deza [Tue, 25 Jul 2017 18:09:52 +0000 (14:09 -0400)]
ceph-volume: process: allow stdin to be used

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: main: slice args for main and subcommands differently
Alfredo Deza [Mon, 24 Jul 2017 21:04:16 +0000 (17:04 -0400)]
ceph-volume: main: slice args for main and subcommands differently

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: devices.lvm add create module for the sub-command support
Alfredo Deza [Mon, 24 Jul 2017 18:18:32 +0000 (14:18 -0400)]
ceph-volume: devices.lvm add create module for the sub-command support

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: devices.lvm add the create sub-command
Alfredo Deza [Mon, 24 Jul 2017 18:17:52 +0000 (14:17 -0400)]
ceph-volume: devices.lvm add the create sub-command

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: devices.lvm create a common module for sharing parsers
Alfredo Deza [Mon, 24 Jul 2017 18:04:33 +0000 (14:04 -0400)]
ceph-volume: devices.lvm create a common module for sharing parsers

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: devices: update coverage comments
Alfredo Deza [Mon, 17 Jul 2017 19:59:25 +0000 (15:59 -0400)]
ceph-volume: devices: update coverage comments

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: tests: add lvm api tests
Alfredo Deza [Mon, 17 Jul 2017 19:45:20 +0000 (15:45 -0400)]
ceph-volume: tests: add lvm api tests

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: tests: update coverage comments
Alfredo Deza [Mon, 17 Jul 2017 19:44:23 +0000 (15:44 -0400)]
ceph-volume: tests: update coverage comments

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: devices.lvm: update print and import for py3 support
Alfredo Deza [Mon, 17 Jul 2017 19:42:09 +0000 (15:42 -0400)]
ceph-volume: devices.lvm: update print and import for py3 support

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: lvm.main: update imports for py3 support
Alfredo Deza [Mon, 17 Jul 2017 19:41:33 +0000 (15:41 -0400)]
ceph-volume: lvm.main: update imports for py3 support

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: tests: create capture fixture for tests
Alfredo Deza [Mon, 17 Jul 2017 19:41:07 +0000 (15:41 -0400)]
ceph-volume: tests: create capture fixture for tests

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: devices: update imports to support py3
Alfredo Deza [Mon, 17 Jul 2017 19:40:48 +0000 (15:40 -0400)]
ceph-volume: devices: update imports to support py3

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: main: py3 support fixes with print
Alfredo Deza [Mon, 17 Jul 2017 19:19:20 +0000 (15:19 -0400)]
ceph-volume: main: py3 support fixes with print

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: lvm.api: add parse_tags for VolumeGroup, cleanup json loads
Alfredo Deza [Mon, 17 Jul 2017 19:19:05 +0000 (15:19 -0400)]
ceph-volume: lvm.api: add parse_tags for VolumeGroup, cleanup json loads

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: process: decode non-str streams from subprocess
Alfredo Deza [Mon, 17 Jul 2017 19:16:25 +0000 (15:16 -0400)]
ceph-volume: process: decode non-str streams from subprocess

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: lvm.prepare: print help and return before parsing args if no args
Alfredo Deza [Fri, 14 Jul 2017 17:28:30 +0000 (13:28 -0400)]
ceph-volume: lvm.prepare: print help and return before parsing args if no args

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: lvm: print help and return before parsing args if no args
Alfredo Deza [Fri, 14 Jul 2017 17:28:14 +0000 (13:28 -0400)]
ceph-volume: lvm: print help and return before parsing args if no args

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: tets: use the new validation in conf
Alfredo Deza [Fri, 14 Jul 2017 17:27:28 +0000 (13:27 -0400)]
ceph-volume: tets: use the new validation in conf

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: tests: add tests for lvm devices and API
Alfredo Deza [Fri, 14 Jul 2017 17:26:52 +0000 (13:26 -0400)]
ceph-volume: tests: add tests for lvm devices and API

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: configuration: introduce lazy validation in configuration
Alfredo Deza [Fri, 14 Jul 2017 17:26:23 +0000 (13:26 -0400)]
ceph-volume: configuration: introduce lazy validation in configuration

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: tests: add tests for the system utility
Alfredo Deza [Thu, 13 Jul 2017 13:49:55 +0000 (09:49 -0400)]
ceph-volume: tests: add tests for the system utility

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: util: remove ceph_user option, it is the default
Alfredo Deza [Thu, 13 Jul 2017 13:49:33 +0000 (09:49 -0400)]
ceph-volume: util: remove ceph_user option, it is the default

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: util: use the chown argument for mkdir_p
Alfredo Deza [Thu, 13 Jul 2017 13:48:44 +0000 (09:48 -0400)]
ceph-volume: util: use the chown argument for mkdir_p

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: systemd: ensure osd_id is digit-like
Alfredo Deza [Wed, 12 Jul 2017 21:31:54 +0000 (17:31 -0400)]
ceph-volume: systemd: ensure osd_id is digit-like

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: tests: add systemd tests
Alfredo Deza [Wed, 12 Jul 2017 21:31:36 +0000 (17:31 -0400)]
ceph-volume: tests: add systemd tests

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: tests: add tests for main/cli handling
Alfredo Deza [Wed, 12 Jul 2017 20:40:58 +0000 (16:40 -0400)]
ceph-volume: tests: add tests for main/cli handling

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: tests: add tests for decorators
Alfredo Deza [Wed, 12 Jul 2017 20:40:45 +0000 (16:40 -0400)]
ceph-volume: tests: add tests for decorators

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: tests: add configuration tests
Alfredo Deza [Wed, 12 Jul 2017 20:40:33 +0000 (16:40 -0400)]
ceph-volume: tests: add configuration tests

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: main: changes to sys.argv handling for better testing
Alfredo Deza [Wed, 12 Jul 2017 20:39:58 +0000 (16:39 -0400)]
ceph-volume: main: changes to sys.argv handling for better testing

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: tests: add terminal tests
Alfredo Deza [Wed, 12 Jul 2017 17:43:16 +0000 (13:43 -0400)]
ceph-volume: tests: add terminal tests

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: main: if no args are passed mention the --help usage, print some information
Alfredo Deza [Wed, 12 Jul 2017 16:31:39 +0000 (12:31 -0400)]
ceph-volume: main: if no args are passed mention the --help usage, print some information

Signed-off-by: Alfredo Deza <adeza@redhat.com>