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
Alfredo Deza
7067303e19
ceph-volume: devices: update imports to support py3
...
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
bab2aeff4a
ceph-volume: main: py3 support fixes with print
...
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
a774c8d475
ceph-volume: lvm.api: add parse_tags for VolumeGroup, cleanup json loads
...
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
37783b991f
ceph-volume: process: decode non-str streams from subprocess
...
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
27c4865737
ceph-volume: lvm.prepare: print help and return before parsing args if no args
...
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
dad18970cb
ceph-volume: lvm: print help and return before parsing args if no args
...
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
6a45e248ae
ceph-volume: tets: use the new validation in conf
...
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
86b6589551
ceph-volume: tests: add tests for lvm devices and API
...
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
352dc37924
ceph-volume: configuration: introduce lazy validation in configuration
...
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
d575bc1011
ceph-volume: tests: add tests for the system utility
...
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
29df8d389e
ceph-volume: util: remove ceph_user option, it is the default
...
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
01080dae12
ceph-volume: util: use the chown argument for mkdir_p
...
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
8928475fdc
ceph-volume: systemd: ensure osd_id is digit-like
...
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
302806a591
ceph-volume: tests: add systemd tests
...
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
3b625d9893
ceph-volume: tests: add tests for main/cli handling
...
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
5105b58fa3
ceph-volume: tests: add tests for decorators
...
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
d61dac1bc9
ceph-volume: tests: add configuration tests
...
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
09aa3cf295
ceph-volume: main: changes to sys.argv handling for better testing
...
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
082db7811d
ceph-volume: tests: add terminal tests
...
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
83e4c0665f
ceph-volume: main: if no args are passed mention the --help usage, print some information
...
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
b8ee4efec3
ceph-volume: lvm: use argparse, report help as early as possible
...
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
49dadb3fbc
ceph-volume: terminal: add CLI dispatching helpers
...
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
bf612baf9c
ceph-volume: main: use argparse, add global flags, improve main help
...
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
f190ba35a8
ceph-volume: lvm.prepare: initial pass at a working prepare
...
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:57 -04:00