]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
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>
7 years agoceph-volume: lvm: use argparse, report help as early as possible
Alfredo Deza [Wed, 12 Jul 2017 16:15:42 +0000 (12:15 -0400)]
ceph-volume: lvm: use argparse, report help as early as possible

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

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: main: use argparse, add global flags, improve main help
Alfredo Deza [Wed, 12 Jul 2017 16:13:13 +0000 (12:13 -0400)]
ceph-volume: main: use argparse, add global flags, improve main help

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: lvm.prepare: initial pass at a working prepare
Alfredo Deza [Tue, 11 Jul 2017 20:36:16 +0000 (16:36 -0400)]
ceph-volume: lvm.prepare: initial pass at a working prepare

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: lvm.activate: register the osd with the mon as part of activation
Alfredo Deza [Tue, 11 Jul 2017 20:35:13 +0000 (16:35 -0400)]
ceph-volume: lvm.activate: register the osd with the mon as part of activation

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: lvm.api: fix issue with tags not being set always
Alfredo Deza [Tue, 11 Jul 2017 20:31:18 +0000 (16:31 -0400)]
ceph-volume: lvm.api: fix issue with tags not being set always

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: util.system: allow recursive and single-level chown
Alfredo Deza [Tue, 11 Jul 2017 20:30:42 +0000 (16:30 -0400)]
ceph-volume: util.system: allow recursive and single-level chown

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: util: create the module with prepare, activate, and system utilities
Alfredo Deza [Tue, 11 Jul 2017 20:30:14 +0000 (16:30 -0400)]
ceph-volume: util: create the module with prepare, activate, and system utilities

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: terminal: add colored stderr/stdout
Alfredo Deza [Tue, 11 Jul 2017 20:08:25 +0000 (16:08 -0400)]
ceph-volume: terminal: add colored stderr/stdout

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: main: add log path inferring into main for --help reporting
Alfredo Deza [Tue, 11 Jul 2017 20:03:22 +0000 (16:03 -0400)]
ceph-volume: main: add log path inferring into main for --help reporting

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: log: remove log file inferring logic to main
Alfredo Deza [Tue, 11 Jul 2017 20:03:02 +0000 (16:03 -0400)]
ceph-volume: log: remove log file inferring logic to main

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: configuration: allow splitting by other chars for getting a list
Alfredo Deza [Tue, 11 Jul 2017 20:01:41 +0000 (16:01 -0400)]
ceph-volume: configuration: allow splitting by other chars for getting a list

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: init: define a few conf attributes
Alfredo Deza [Tue, 11 Jul 2017 19:59:50 +0000 (15:59 -0400)]
ceph-volume: init: define a few conf attributes

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: process: do not block logging on subprocess prompts
Alfredo Deza [Tue, 11 Jul 2017 14:50:22 +0000 (10:50 -0400)]
ceph-volume: process: do not block logging on subprocess prompts

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: main: store ceph conf and load it in the conf module
Alfredo Deza [Thu, 6 Jul 2017 19:17:01 +0000 (15:17 -0400)]
ceph-volume: main: store ceph conf and load it in the conf module

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: configuration: create a module to load/parse ceph configs
Alfredo Deza [Thu, 6 Jul 2017 19:16:18 +0000 (15:16 -0400)]
ceph-volume: configuration: create a module to load/parse ceph configs

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: log: use new config module
Alfredo Deza [Thu, 6 Jul 2017 19:13:35 +0000 (15:13 -0400)]
ceph-volume: log: use new config module

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: init: define the configuration modules
Alfredo Deza [Thu, 6 Jul 2017 16:14:26 +0000 (12:14 -0400)]
ceph-volume: init: define the configuration modules

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: exceptions: add configuration errors
Alfredo Deza [Thu, 6 Jul 2017 15:58:08 +0000 (11:58 -0400)]
ceph-volume: exceptions: add configuration errors

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: lvm.activate: udpdate the help to normalize representations
Alfredo Deza [Mon, 3 Jul 2017 17:51:33 +0000 (13:51 -0400)]
ceph-volume: lvm.activate: udpdate the help to normalize representations

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: exceptions: add error for multiple volume groups
Alfredo Deza [Mon, 3 Jul 2017 17:37:53 +0000 (13:37 -0400)]
ceph-volume: exceptions: add error for multiple volume groups

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: lvm.activate: add object store type support for the flags
Alfredo Deza [Mon, 3 Jul 2017 17:37:09 +0000 (13:37 -0400)]
ceph-volume: lvm.activate: add object store type support for the flags

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: lvm.api: support volume groups with same API as lvs
Alfredo Deza [Mon, 3 Jul 2017 17:36:39 +0000 (13:36 -0400)]
ceph-volume: lvm.api: support volume groups with same API as lvs

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: lvm.prepare: initial take on the module with flags
Alfredo Deza [Mon, 3 Jul 2017 17:35:35 +0000 (13:35 -0400)]
ceph-volume: lvm.prepare: initial take on the module with flags

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: lvm.api return None when .get() doesn't match anything
Alfredo Deza [Thu, 29 Jun 2017 14:54:01 +0000 (10:54 -0400)]
ceph-volume: lvm.api return None when .get() doesn't match anything

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: lvm activate checks other non-lv journals and symlinks accordingly
Alfredo Deza [Thu, 29 Jun 2017 14:53:31 +0000 (10:53 -0400)]
ceph-volume: lvm activate checks other non-lv journals and symlinks accordingly

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: lvm create the functional activate module
Alfredo Deza [Thu, 29 Jun 2017 13:49:50 +0000 (09:49 -0400)]
ceph-volume: lvm create the functional activate module

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: lvm create an api module with better interfaces/helpers
Alfredo Deza [Thu, 29 Jun 2017 13:32:25 +0000 (09:32 -0400)]
ceph-volume: lvm create an api module with better interfaces/helpers

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: systemd: create a systemctl module
Alfredo Deza [Wed, 28 Jun 2017 17:49:39 +0000 (13:49 -0400)]
ceph-volume: systemd: create a systemctl module

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: systemd: move to directory
Alfredo Deza [Wed, 28 Jun 2017 12:51:29 +0000 (08:51 -0400)]
ceph-volume: systemd: move to directory

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: systemd: create an actual directory module to add more related modules in
Alfredo Deza [Wed, 28 Jun 2017 12:29:50 +0000 (08:29 -0400)]
ceph-volume: systemd: create an actual directory module to add more related modules in

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: process: add a 'call' function helper, similar to subprocess.call
Alfredo Deza [Tue, 27 Jun 2017 17:04:03 +0000 (13:04 -0400)]
ceph-volume: process: add a 'call' function helper, similar to subprocess.call

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: main: remove extra new lines when generating help
Alfredo Deza [Tue, 27 Jun 2017 17:03:34 +0000 (13:03 -0400)]
ceph-volume: main: remove extra new lines when generating help

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: exceptions: create a MultipleLV error
Alfredo Deza [Tue, 27 Jun 2017 17:03:11 +0000 (13:03 -0400)]
ceph-volume: exceptions: create a MultipleLV error

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: lvm: initial take on tag api
Alfredo Deza [Tue, 27 Jun 2017 17:01:14 +0000 (13:01 -0400)]
ceph-volume: lvm: initial take on tag api

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: exceptions: create a module for all exceptions
Alfredo Deza [Fri, 23 Jun 2017 18:39:23 +0000 (14:39 -0400)]
ceph-volume: exceptions: create a module for all exceptions

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: systemd: move the exceptions to the new exception module
Alfredo Deza [Fri, 23 Jun 2017 18:39:07 +0000 (14:39 -0400)]
ceph-volume: systemd: move the exceptions to the new exception module

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: decorators: add a check for super user privileges
Alfredo Deza [Fri, 23 Jun 2017 18:38:14 +0000 (14:38 -0400)]
ceph-volume: decorators: add a check for super user privileges

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: main: use subhelp to parse lvm's help
Alfredo Deza [Fri, 23 Jun 2017 18:33:28 +0000 (14:33 -0400)]
ceph-volume: main: use subhelp to parse lvm's help

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: terminal: use raw instead of write
Alfredo Deza [Thu, 22 Jun 2017 21:16:36 +0000 (17:16 -0400)]
ceph-volume: terminal: use raw instead of write

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: main: no need to pass the config to log setup
Alfredo Deza [Thu, 22 Jun 2017 21:16:03 +0000 (17:16 -0400)]
ceph-volume: main: no need to pass the config to log setup

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: log: notify to stdout if it is not possible to write to the log location
Alfredo Deza [Thu, 22 Jun 2017 21:15:49 +0000 (17:15 -0400)]
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>
7 years agoceph-volume: systemd: create systemd entry point script
Alfredo Deza [Thu, 22 Jun 2017 19:38:19 +0000 (15:38 -0400)]
ceph-volume: systemd: create systemd entry point script

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: process: module for running system commands
Alfredo Deza [Thu, 22 Jun 2017 19:37:55 +0000 (15:37 -0400)]
ceph-volume: process: module for running system commands

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: main: initial take on main
Alfredo Deza [Thu, 22 Jun 2017 19:37:38 +0000 (15:37 -0400)]
ceph-volume: main: initial take on main

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: terminal: easier terminal reporting utils
Alfredo Deza [Thu, 22 Jun 2017 19:37:15 +0000 (15:37 -0400)]
ceph-volume: terminal: easier terminal reporting utils

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: decorators: catch exceptions, disable on debug
Alfredo Deza [Thu, 22 Jun 2017 19:36:59 +0000 (15:36 -0400)]
ceph-volume: decorators: catch exceptions, disable on debug

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: log: be more robust, report back to config
Alfredo Deza [Thu, 22 Jun 2017 19:36:34 +0000 (15:36 -0400)]
ceph-volume: log: be more robust, report back to config

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: log: create a utility for setting up logging
Alfredo Deza [Mon, 19 Jun 2017 20:19:24 +0000 (16:19 -0400)]
ceph-volume: log: create a utility for setting up logging

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: config: default to 'info' verbosity, set the config dict
Alfredo Deza [Mon, 19 Jun 2017 19:57:33 +0000 (15:57 -0400)]
ceph-volume: config: default to 'info' verbosity, set the config dict

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: rename: initial take on renaming to ceph-volume
Alfredo Deza [Fri, 16 Jun 2017 19:41:14 +0000 (15:41 -0400)]
ceph-volume: rename: initial take on renaming to ceph-volume

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agocmake/Distutils.cmake: make pkg files optional, add bin
Dan Mick [Thu, 20 Jul 2017 20:54:37 +0000 (13:54 -0700)]
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>
7 years agobuild: include the ceph-volume-systemd command in the spec file
Alfredo Deza [Thu, 20 Jul 2017 22:04:34 +0000 (18:04 -0400)]
build: include the ceph-volume-systemd command in the spec file

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agobuild: add ceph-volume to CMakeLists in src
Alfredo Deza [Thu, 20 Jul 2017 17:05:20 +0000 (13:05 -0400)]
build: add ceph-volume to CMakeLists in src

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agosystemd: include the ceph-volume service
Alfredo Deza [Thu, 20 Jul 2017 16:26:14 +0000 (12:26 -0400)]
systemd: include the ceph-volume service

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agobuild: create a CMakeLists file for ceph-volume
Alfredo Deza [Thu, 20 Jul 2017 15:53:07 +0000 (11:53 -0400)]
build: create a CMakeLists file for ceph-volume

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agosystemd: create a service file for ceph-volume
Alfredo Deza [Thu, 20 Jul 2017 15:26:27 +0000 (11:26 -0400)]
systemd: create a service file for ceph-volume

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agobuild: add deb install rule for ceph-volume executable
Alfredo Deza [Thu, 20 Jul 2017 15:25:12 +0000 (11:25 -0400)]
build: add deb install rule for ceph-volume executable

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agobuild: add deb rules for ceph-volume systemd service file
Alfredo Deza [Thu, 20 Jul 2017 15:24:52 +0000 (11:24 -0400)]
build: add deb rules for ceph-volume systemd service file

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agobuild/ops: add ceph-volume scripts/files to spec file
Alfredo Deza [Wed, 19 Jul 2017 14:47:55 +0000 (10:47 -0400)]
build/ops: add ceph-volume scripts/files to spec file

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: create the executables
Alfredo Deza [Tue, 18 Jul 2017 19:03:20 +0000 (15:03 -0400)]
ceph-volume: create the executables

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: packaging: create a setup.py
Alfredo Deza [Tue, 18 Jul 2017 18:55:18 +0000 (14:55 -0400)]
ceph-volume: packaging: create a setup.py

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: tests: create a tox.ini file
Alfredo Deza [Tue, 18 Jul 2017 18:53:58 +0000 (14:53 -0400)]
ceph-volume: tests: create a tox.ini file

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: add a manifest.in file
Alfredo Deza [Tue, 18 Jul 2017 18:46:16 +0000 (14:46 -0400)]
ceph-volume: add a manifest.in file

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: create a .gitignore specific to ceph-volume
Alfredo Deza [Tue, 18 Jul 2017 18:28:20 +0000 (14:28 -0400)]
ceph-volume: create a .gitignore specific to ceph-volume

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoMerge pull request #16805 from liewegas/wip-crush-classes
Sage Weil [Fri, 4 Aug 2017 13:48:53 +0000 (08:48 -0500)]
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>
7 years agoMerge pull request #16739 from liewegas/wip-multi-backfill-reject
Sage Weil [Fri, 4 Aug 2017 13:41:06 +0000 (08:41 -0500)]
Merge pull request #16739 from liewegas/wip-multi-backfill-reject

qa/suites/rados/singleton-nomsgr/all/multi-backfill-reject: sleep longer

7 years agoMerge pull request #16794 from liewegas/wip-rbd-app
Sage Weil [Fri, 4 Aug 2017 13:40:45 +0000 (08:40 -0500)]
Merge pull request #16794 from liewegas/wip-rbd-app

qa/tasks/ceph: enable rbd on rbd pool

7 years agoMerge pull request #16776 from dachary/wip-20893-ceph-fsid
Alfredo Deza [Fri, 4 Aug 2017 13:40:37 +0000 (09:40 -0400)]
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>
7 years agoqa/tasks/ceph: enable rbd on rbd pool 16794/head
Sage Weil [Thu, 3 Aug 2017 16:09:42 +0000 (12:09 -0400)]
qa/tasks/ceph: enable rbd on rbd pool

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #16798 from jdurgin/wip-complete-to-loop
Sage Weil [Fri, 4 Aug 2017 13:38:31 +0000 (08:38 -0500)]
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>
7 years agoMerge pull request #16804 from xiexingguo/wip-some-cleanup
Pan Liu [Fri, 4 Aug 2017 05:12:17 +0000 (13:12 +0800)]
Merge pull request #16804 from xiexingguo/wip-some-cleanup

os/bluestore: space between func and contents

7 years agoqa/suites/rados/thrash-erasure-code-big: add k=4 m=2
Sage Weil [Thu, 3 Aug 2017 18:10:36 +0000 (14:10 -0400)]
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>
7 years agoos/bluestore: space between func and contents 16804/head
xie xingguo [Fri, 4 Aug 2017 02:00:51 +0000 (10:00 +0800)]
os/bluestore: space between func and contents

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agocrush: remove cleanup_classes() 16805/head
Sage Weil [Fri, 4 Aug 2017 02:39:05 +0000 (22:39 -0400)]
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>
7 years agocrush/CrushWrapper: rebuild_roots_with_classes on bucket removal
Sage Weil [Fri, 4 Aug 2017 02:29:34 +0000 (22:29 -0400)]
crush/CrushWrapper: rebuild_roots_with_classes on bucket removal

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agocrush: fix preservation of shadow bucket ids
Sage Weil [Thu, 3 Aug 2017 22:05:08 +0000 (18:05 -0400)]
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>
7 years agoMerge PR #16802 into master
Patrick Donnelly [Thu, 3 Aug 2017 23:20:20 +0000 (16:20 -0700)]
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>
7 years agoqa: update wait_for_health for new health json syntax 16802/head
John Spray [Thu, 3 Aug 2017 22:45:11 +0000 (18:45 -0400)]
qa: update wait_for_health for new health json syntax

Fixes: http://tracker.ceph.com/issues/20890
Signed-off-by: John Spray <john.spray@redhat.com>
7 years agoMerge PR #16766 into master
Patrick Donnelly [Thu, 3 Aug 2017 22:05:53 +0000 (15:05 -0700)]
Merge PR #16766 into master

* refs/remotes/upstream/pull/16766/head:
cephfs: Clarify health warning
cephfs: Always print filesystem name

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agocephfs: Clarify health warning 16766/head
Douglas Fuller [Tue, 25 Jul 2017 19:54:30 +0000 (15:54 -0400)]
cephfs: Clarify health warning

Add text to MDS_INSUFFICIENT STANDBY to clarify it refers
to MDS daemons.

Signed-off-by: Douglas Fuller <dfuller@redhat.com>
7 years agocephfs: Always print filesystem name
Douglas Fuller [Mon, 24 Jul 2017 17:29:55 +0000 (12:29 -0500)]
cephfs: Always print filesystem name

Previously, the FSMap summary omitted the filesystem
name in clusters with only one filesystem. Print the
file system name no matter what.

Signed-off-by: Douglas Fuller <dfuller@redhat.com>
7 years agoqa/workunits/mon/crush_ops.sh: remove existing dev class before setting it
Kefu Chai [Sun, 30 Jul 2017 07:05:05 +0000 (15:05 +0800)]
qa/workunits/mon/crush_ops.sh: remove existing dev class before setting it

we cannot overwrite existing dev class, and "osd_class_update_on_start"
is true by default (see 0c885d6). so we should remove all device classes before
setting them.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agomon/OSDMonitor: kill unused variable 'ts'
xie xingguo [Mon, 31 Jul 2017 00:53:45 +0000 (08:53 +0800)]
mon/OSDMonitor: kill unused variable 'ts'

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agotest/osd-fast-mark-down: enable 'osd-class-update-on-start' by default
xie xingguo [Mon, 31 Jul 2017 03:36:34 +0000 (11:36 +0800)]
test/osd-fast-mark-down: enable 'osd-class-update-on-start' by default

https://github.com/ceph/ceph/pull/16016/commits/116cf759c86ca9ca7d80769b2096953516f357cb
will now hide all shadow trees(roots), so this is not applicable anymore
(actually it is misleading).

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agocrush: make 'remove_root' idempotent
xie xingguo [Mon, 31 Jul 2017 09:24:55 +0000 (17:24 +0800)]
crush: make 'remove_root' idempotent

We might use 'crush link' to link same host into
different roots, which as a result can cause different
shadow trees reference same hosts too.

This means we may need to destory the same buckets(hosts, racks, etc.)
multiple times during rebuilding all shadow trees and hence 'remove_root'
shall be idempotent.

Fixes: http://tracker.ceph.com/issues/20845
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agoMerge pull request #16740 from liewegas/wip-crush-tree
Sage Weil [Thu, 3 Aug 2017 21:16:17 +0000 (16:16 -0500)]
Merge pull request #16740 from liewegas/wip-crush-tree

mon: show class in 'osd crush tree' output; sort output

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agoMerge PR #16772 into master
Patrick Donnelly [Thu, 3 Aug 2017 21:07:32 +0000 (14:07 -0700)]
Merge PR #16772 into master

* refs/remotes/upstream/pull/16772/head:
qa: add health whitelist for all fs sub-suites

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoqa: add health whitelist for all fs sub-suites 16772/head
Patrick Donnelly [Thu, 3 Aug 2017 04:06:02 +0000 (21:06 -0700)]
qa: add health whitelist for all fs sub-suites

Fixes: http://tracker.ceph.com/issues/20892
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #16768 into master
Patrick Donnelly [Thu, 3 Aug 2017 20:55:42 +0000 (13:55 -0700)]
Merge PR #16768 into master

* refs/remotes/upstream/pull/16768/head:
qa: fix log whitelist string

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge PR #16743 into master
Patrick Donnelly [Thu, 3 Aug 2017 20:55:39 +0000 (13:55 -0700)]
Merge PR #16743 into master

* refs/remotes/upstream/pull/16743/head:
mds: add inter-mds operations to PerfCounter