Commit Graph

76499 Commits

Author SHA1 Message Date
Alfredo Deza
df0929a976 ceph-volume: lvm.api: fix issue with tags not being set always
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:57 -04:00
Alfredo Deza
11dba663f3 ceph-volume: util.system: allow recursive and single-level chown
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:57 -04:00
Alfredo Deza
6416fae6ca ceph-volume: util: create the module with prepare, activate, and system utilities
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:57 -04:00
Alfredo Deza
e988e22e89 ceph-volume: terminal: add colored stderr/stdout
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:57 -04:00
Alfredo Deza
6a57c08009 ceph-volume: main: add log path inferring into main for --help reporting
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:57 -04:00
Alfredo Deza
0b0bdaef7f ceph-volume: log: remove log file inferring logic to main
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:57 -04:00
Alfredo Deza
7dbe246162 ceph-volume: configuration: allow splitting by other chars for getting a list
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:57 -04:00
Alfredo Deza
c38cac1438 ceph-volume: init: define a few conf attributes
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:57 -04:00
Alfredo Deza
bf584a14a8 ceph-volume: process: do not block logging on subprocess prompts
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:57 -04:00
Alfredo Deza
58c85cbe62 ceph-volume: main: store ceph conf and load it in the conf module
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:57 -04:00
Alfredo Deza
580ec02687 ceph-volume: configuration: create a module to load/parse ceph configs
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:57 -04:00
Alfredo Deza
357b499582 ceph-volume: log: use new config module
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:57 -04:00
Alfredo Deza
44f5dffc36 ceph-volume: init: define the configuration modules
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:57 -04:00
Alfredo Deza
d677611786 ceph-volume: exceptions: add configuration errors
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:57 -04:00
Alfredo Deza
bfe5f9b879 ceph-volume: lvm.activate: udpdate the help to normalize representations
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:57 -04:00
Alfredo Deza
f10a4254e6 ceph-volume: exceptions: add error for multiple volume groups
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:57 -04:00
Alfredo Deza
16ee6f7369 ceph-volume: lvm.activate: add object store type support for the flags
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:57 -04:00
Alfredo Deza
129a351285 ceph-volume: lvm.api: support volume groups with same API as lvs
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:57 -04:00
Alfredo Deza
7b788a1523 ceph-volume: lvm.prepare: initial take on the module with flags
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:57 -04:00
Alfredo Deza
f67968f211 ceph-volume: lvm.api return None when .get() doesn't match anything
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:57 -04:00
Alfredo Deza
c2467f8b00 ceph-volume: lvm activate checks other non-lv journals and symlinks accordingly
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:57 -04:00
Alfredo Deza
05d8fe14ee ceph-volume: lvm create the functional activate module
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:57 -04:00
Alfredo Deza
1e5db4fcdb ceph-volume: lvm create an api module with better interfaces/helpers
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:57 -04:00
Alfredo Deza
d382d041bf ceph-volume: systemd: create a systemctl module
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:57 -04:00
Alfredo Deza
fefadc8add ceph-volume: systemd: move to directory
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:57 -04:00
Alfredo Deza
6513240242 ceph-volume: systemd: create an actual directory module to add more related modules in
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:57 -04:00
Alfredo Deza
0902242d8a ceph-volume: process: add a 'call' function helper, similar to subprocess.call
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:57 -04:00
Alfredo Deza
294187b23d ceph-volume: main: remove extra new lines when generating help
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:57 -04:00
Alfredo Deza
85ab5a1644 ceph-volume: exceptions: create a MultipleLV error
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:57 -04:00
Alfredo Deza
ec703adcdf ceph-volume: lvm: initial take on tag api
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:57 -04:00
Alfredo Deza
90ce30ec67 ceph-volume: exceptions: create a module for all exceptions
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:57 -04:00
Alfredo Deza
2bf2758a14 ceph-volume: systemd: move the exceptions to the new exception module
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:57 -04:00
Alfredo Deza
545f3f1e7e ceph-volume: decorators: add a check for super user privileges
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:57 -04:00
Alfredo Deza
1cc499b3a4 ceph-volume: main: use subhelp to parse lvm's help
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:57 -04:00
Alfredo Deza
2050f1ce12 ceph-volume: terminal: use raw instead of write
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:57 -04:00
Alfredo Deza
b752717ff4 ceph-volume: main: no need to pass the config to log setup
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:57 -04:00
Alfredo Deza
ebf56e7df3 ceph-volume: log: notify to stdout if it is not possible to write to the log location
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:57 -04:00
Alfredo Deza
fc5c07d4d1 ceph-volume: systemd: create systemd entry point script
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:57 -04:00
Alfredo Deza
7b8cb78e05 ceph-volume: process: module for running system commands
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:57 -04:00
Alfredo Deza
0e3ea6f09c ceph-volume: main: initial take on main
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:57 -04:00
Alfredo Deza
4fce55b381 ceph-volume: terminal: easier terminal reporting utils
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:57 -04:00
Alfredo Deza
970e3978f3 ceph-volume: decorators: catch exceptions, disable on debug
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:57 -04:00
Alfredo Deza
f291b321c7 ceph-volume: log: be more robust, report back to config
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:57 -04:00
Alfredo Deza
3c576f91a7 ceph-volume: log: create a utility for setting up logging
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:57 -04:00
Alfredo Deza
1f9807b024 ceph-volume: config: default to 'info' verbosity, set the config dict
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:57 -04:00
Alfredo Deza
0a71da843c ceph-volume: rename: initial take on renaming to ceph-volume
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:57 -04:00
Dan Mick
de06f8e504 cmake/Distutils.cmake: make pkg files optional, add bin
Skip nonexistent 'expected' Python packaging files, and add bin/ as
a possible file for symlinking during build (for Python projects with
slightly different forms, currently ceph-volume)

Signed-off-by: Dan Mick <dan.mick@redhat.com>
2017-08-04 10:25:57 -04:00
Alfredo Deza
7e0ee3d6b5 build: include the ceph-volume-systemd command in the spec file
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:57 -04:00
Alfredo Deza
171bee9ce1 build: add ceph-volume to CMakeLists in src
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:57 -04:00
Alfredo Deza
b20fdb8e84 systemd: include the ceph-volume service
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:57 -04:00