Commit Graph

76476 Commits

Author SHA1 Message Date
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
Alfredo Deza
49af65951e build: create a CMakeLists file for ceph-volume
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:57 -04:00
Alfredo Deza
d6954111dc systemd: create a service file for ceph-volume
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:57 -04:00
Alfredo Deza
31524efd1d build: add deb install rule for ceph-volume executable
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:57 -04:00
Alfredo Deza
7ca7b04521 build: add deb rules for ceph-volume systemd service file
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:57 -04:00
Alfredo Deza
004e907e6b build/ops: add ceph-volume scripts/files to spec file
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:57 -04:00
Alfredo Deza
59052b3a04 ceph-volume: create the executables
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:57 -04:00
Alfredo Deza
1fff4ffa9a ceph-volume: packaging: create a setup.py
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:57 -04:00
Alfredo Deza
dee11ceb72 ceph-volume: tests: create a tox.ini file
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:57 -04:00
Alfredo Deza
abd21c82fa ceph-volume: add a manifest.in file
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:57 -04:00
Alfredo Deza
e25b93ffd4 ceph-volume: create a .gitignore specific to ceph-volume
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:57 -04:00
Sage Weil
6dfae21eda Merge pull request #16805 from liewegas/wip-crush-classes
crush: misc changes/fixes for device classes

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
2017-08-04 08:48:53 -05:00
Sage Weil
c8af364699 Merge pull request #16739 from liewegas/wip-multi-backfill-reject
qa/suites/rados/singleton-nomsgr/all/multi-backfill-reject: sleep longer
2017-08-04 08:41:06 -05:00
Sage Weil
f681d6e794 Merge pull request #16794 from liewegas/wip-rbd-app
qa/tasks/ceph: enable rbd on rbd pool
2017-08-04 08:40:45 -05:00
Alfredo Deza
0d70d36e2f Merge pull request #16776 from dachary/wip-20893-ceph-fsid
ceph-disk: dmcrypt cluster must default to ceph

Reviewed-by: Alfredo Deza <adeza@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
2017-08-04 09:40:37 -04:00
Sage Weil
7ed9d1e8aa qa/tasks/ceph: enable rbd on rbd pool
Signed-off-by: Sage Weil <sage@redhat.com>
2017-08-04 09:40:26 -04:00
Sage Weil
b87cb025ba Merge pull request #16798 from jdurgin/wip-complete-to-loop
osd/PGLog: avoid infinite loop if missing version is corrupted

Reviewed-by: Sage Weil <sage@redhat.com>
2017-08-04 08:38:31 -05:00
Pan Liu
9964cf177b Merge pull request #16804 from xiexingguo/wip-some-cleanup
os/bluestore: space between func and contents
2017-08-04 13:12:17 +08:00
Sage Weil
47480d8a06 qa/suites/rados/thrash-erasure-code-big: add k=4 m=2
Get better coverage for larger codes.

Signed-off-by: Sage Weil <sage@redhat.com>
2017-08-03 22:50:16 -04:00
xie xingguo
af0d3661db os/bluestore: space between func and contents
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2017-08-04 10:47:25 +08:00
Sage Weil
c121501ad3 crush: remove cleanup_classes()
I can't for the life of me figure out what this is supposed to do.

- why remove (some) classes right after we populated them?
- why remove them after we decode the crush map?

Signed-off-by: Sage Weil <sage@redhat.com>
2017-08-03 22:39:05 -04:00
Sage Weil
226d210ab6 crush/CrushWrapper: rebuild_roots_with_classes on bucket removal
Signed-off-by: Sage Weil <sage@redhat.com>
2017-08-03 22:32:47 -04:00
Sage Weil
cb807b0006 crush: fix preservation of shadow bucket ids
1- a decompiled and recompiled was parsing the class bucket ids but it
wasn't actually using them.
2- rebuild_roots_with_classes() was throwing out the old ids and assigning
new ids when the tree was rebuilt.

Fix by passing in a (potentially partial) class_bucket map into
populate_classes().  Take care to allocate new bucket ids that don't
collide with previously used ids.

Signed-off-by: Sage Weil <sage@redhat.com>
2017-08-03 22:32:47 -04:00
Patrick Donnelly
d89af4a3e8
Merge PR #16802 into master
* refs/remotes/upstream/pull/16802/head:
	qa: update wait_for_health for new health json syntax

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2017-08-03 16:20:20 -07:00