Commit Graph

109152 Commits

Author SHA1 Message Date
Sage Weil
75190d2153 Merge PR #33813 into octopus
* refs/pull/33813/head:
	osd/PGStateUtils: initialize NamedState::enter_time.
	osd/PGStatueUtils: remove unused member variable

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2020-03-12 12:34:07 -05:00
Sage Weil
0195e65bbe Merge PR #33814 into octopus
* refs/pull/33814/head:
	osd/OSDMap: stop encoding osd_state with >8 bits wide states only for old client

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: yanjun <yan.jun8@zte.com.cn>
2020-03-12 12:33:56 -05:00
Sage Weil
d1736aeb14 Merge PR #33064 into octopus
* refs/pull/33064/head:
	cephadm: add version to `command_ls` output
	cephadm: add type checking to `update_filewalld`
	cephadm: allow prepare-host to start an enabled service
	cephadm: add type checking for `check_host` and `prepare_host`
	cephadm: generalize logic for checking and enabling units
	cephadm: add 'CEPH_CONF' to the NFS ganesha container envs
	cephadm: trim nfs.json sample
	qa/workunits/cephadm/test_cephadm.sh: systemctl stop nfs-server
	qa/workunits/cephadm/test_cephadm.sh: make pgs available
	cephadm: add some log lines
	cephadm: check port in use
	cephadm: add/remove nfs ganesha grace
	cephadm: update firewalld with nfs service
	qa/workunits/cephadm/test_cephadm.sh: add nfs-ganesha test
	cephadm: add ganasha.conf
	cephadm: add NFSGanesha deployment type
	cephadm: consolidate list of supported daemons
	cephadm: use keyword instead of positional args

Reviewed-by: Sebastian Wagner <swagner@suse.com>
2020-03-12 12:29:14 -05:00
Sage Weil
0a4cb0940f Merge PR #33855 into octopus
* refs/pull/33855/head:
	mgr/cephadm: reconfigure ceph daemons when monmap changes

Reviewed-by: Sebastian Wagner <swagner@suse.com>
2020-03-12 12:28:43 -05:00
Sage Weil
cfc811d160 Merge PR #33829 into octopus
* refs/pull/33829/head:
	cephadm: log when we infer the image
	cephadm: Avoid `inspect` call by using ceph label
	cephadm: Infer ceph image

Reviewed-by: Sage Weil <sage@redhat.com>
2020-03-12 11:33:14 -05:00
Lenz Grimmer
1857746562
Merge pull request #33919 from LenzGr/octopus-documentation
documentation: Updated Dashboard Features, improved flow

Reviewed-by: Kiefer Chang <kiefer.chang@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2020-03-12 17:28:34 +01:00
Sage Weil
281b106dc6 Merge PR #33871 into octopus
* refs/pull/33871/head:
	qa/suites/rados/verify: debug_ms = 1, osd_heartbeat_grace = 60

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
2020-03-12 11:17:53 -05:00
Sage Weil
8251598d81 Merge PR #33890 into octopus
* refs/pull/33890/head:
	doc/install: rethink docs install page (similar to PR#33613)
	doc/install: Rethink doc/install

Reviewed-by: Sebastian Wagner <swagner@suse.com>
2020-03-12 10:40:43 -05:00
Mykola Golub
e80e13511e
Merge pull request #33902 from dillaman/wip-test-rbd-integration
test/cli-integration: fixed spacing issue for RBD formatted tables

Reviewed-by: Mykola Golub <mgolub@suse.com>
2020-03-12 17:01:07 +02:00
Sage Weil
2367faac8b mgr/cephadm: reconfigure ceph daemons when monmap changes
This keeps ceph.conf fresh.

Signed-off-by: Sage Weil <sage@redhat.com>
2020-03-12 10:00:24 -05:00
Mykola Golub
421d579ff9
Merge pull request #33898 from dillaman/wip-44567
qa/workunits/rbd: wait for nbd map to close after unmap

Reviewed-by: Mykola Golub <mgolub@suse.com>
2020-03-12 16:52:56 +02:00
Michael Fritch
d02bfa32df
cephadm: add version to command_ls output
Signed-off-by: Michael Fritch <mfritch@suse.com>
2020-03-12 08:09:00 -06:00
Michael Fritch
e00bc7a4bc
cephadm: add type checking to update_filewalld
fixes mypy errors:
cephadm:1682: error: Incompatible types in assignment (expression has type "str", variable has type "int")
cephadm:1683: error: List item 3 has incompatible type "int"; expected "str"
cephadm:1686: error: List item 3 has incompatible type "int"; expected "str"
Found 3 errors in 1 file (checked 1 source file)

Signed-off-by: Michael Fritch <mfritch@suse.com>
2020-03-12 08:09:00 -06:00
Michael Fritch
f49d7e2c1e
cephadm: allow prepare-host to start an enabled service
the service might be enabled, but not running

Signed-off-by: Michael Fritch <mfritch@suse.com>
2020-03-12 08:09:00 -06:00
Michael Fritch
1244c65306
cephadm: add type checking for check_host and prepare_host
Signed-off-by: Michael Fritch <mfritch@suse.com>
2020-03-12 08:08:59 -06:00
Michael Fritch
803b6d7f44
cephadm: generalize logic for checking and enabling units
Signed-off-by: Michael Fritch <mfritch@suse.com>
2020-03-12 08:08:59 -06:00
Michael Fritch
93533e8a5f
cephadm: add 'CEPH_CONF' to the NFS ganesha container envs
Signed-off-by: Michael Fritch <mfritch@suse.com>
2020-03-12 08:08:59 -06:00
Michael Fritch
8f4ee1c9af
cephadm: trim nfs.json sample
we only need to specify the rados pool and config object url

Signed-off-by: Michael Fritch <mfritch@suse.com>
2020-03-12 08:08:59 -06:00
Michael Fritch
8543e2e50b
qa/workunits/cephadm/test_cephadm.sh: systemctl stop nfs-server
stop any running nfs servers before attempting a deploy of nfs-ganesha

Signed-off-by: Michael Fritch <mfritch@suse.com>
2020-03-12 08:08:59 -06:00
Michael Fritch
606b79b19f
qa/workunits/cephadm/test_cephadm.sh: make pgs available
allow rados obj. create to succeed during a single node test

Signed-off-by: Michael Fritch <mfritch@suse.com>
2020-03-12 08:08:59 -06:00
Michael Fritch
2c13694bed
cephadm: add some log lines
Signed-off-by: Michael Fritch <mfritch@suse.com>
2020-03-12 08:08:58 -06:00
Michael Fritch
f13f25669d
cephadm: check port in use
Signed-off-by: Michael Fritch <mfritch@suse.com>
2020-03-12 08:08:58 -06:00
Michael Fritch
26590f7399
cephadm: add/remove nfs ganesha grace
container unit pre-start/post-stop for ganesha grace db

Signed-off-by: Michael Fritch <mfritch@suse.com>
2020-03-12 08:08:58 -06:00
Michael Fritch
0b0046074b
cephadm: update firewalld with nfs service
Signed-off-by: Michael Fritch <mfritch@suse.com>
2020-03-12 08:03:18 -06:00
Michael Fritch
71ee086368
qa/workunits/cephadm/test_cephadm.sh: add nfs-ganesha test
Signed-off-by: Michael Fritch <mfritch@suse.com>
2020-03-12 08:03:18 -06:00
Michael Fritch
563990173c
cephadm: add ganasha.conf
also allows for any arbitrary nfs conf to be deployed by adding items to
the `files` dict of the config-json

Signed-off-by: Michael Fritch <mfritch@suse.com>
2020-03-12 08:03:18 -06:00
Michael Fritch
a09206420f
cephadm: add NFSGanesha deployment type
Signed-off-by: Michael Fritch <mfritch@suse.com>
2020-03-12 08:03:18 -06:00
Michael Fritch
177e85f3fa
cephadm: consolidate list of supported daemons
Signed-off-by: Michael Fritch <mfritch@suse.com>
2020-03-12 08:03:18 -06:00
Michael Fritch
cbb79b4c35
cephadm: use keyword instead of positional args
Signed-off-by: Michael Fritch <mfritch@suse.com>
2020-03-12 08:03:18 -06:00
Lenz Grimmer
8571ce4fd2 doc: Improved Dashboard installation workflow
Moved the "Accessing the Dashboard" section in front of
the paragraphs that talk about enabling additional services.

Signed-off-by: Lenz Grimmer <lgrimmer@suse.com>
2020-03-12 14:21:11 +01:00
Lenz Grimmer
4009e9db90 doc: Updated dashboard feature overview for Octopus
Added new Dashboard features added for the Octopus
release.

Signed-off-by: Lenz Grimmer <lgrimmer@suse.com>
2020-03-12 14:19:52 +01:00
Sage Weil
97c7dcf60c cephadm: log when we infer the image
This is similar to how we log when we infer the fsid.

Signed-off-by: Sage Weil <sage@redhat.com>
2020-03-12 07:42:56 -05:00
Ricardo Marques
9993fb40de cephadm: Avoid inspect call by using ceph label
Signed-off-by: Ricardo Marques <rimarques@suse.com>
2020-03-12 07:38:11 -05:00
Ricardo Marques
3b3c70c64b cephadm: Infer ceph image
Fixes: https://tracker.ceph.com/issues/44440

Signed-off-by: Ricardo Marques <rimarques@suse.com>
2020-03-12 07:38:11 -05:00
Sage Weil
161a8330c4 Merge PR #33897 into octopus
* refs/pull/33897/head:
	mgr/PyModule: initialize options on standby class too
	Revert "pybind/mgr/mgr_module: fix standby module logging options"

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Sebastian Wagner <swagner@suse.com>
2020-03-12 07:37:10 -05:00
Jianpeng Ma
a5e2eb3201 osd/PGStateUtils: initialize NamedState::enter_time.
This bug introduce by d96c907.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
2020-03-12 20:24:39 +08:00
Jianpeng Ma
fb7ab55dae osd/PGStatueUtils: remove unused member variable
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
2020-03-12 20:24:39 +08:00
Sage Weil
83c6921920 Merge PR #33870 into octopus
* refs/pull/33870/head:
	mgr/cephadm: fix redeploy for the crash daemon
	cephadm: prefer config/keyring args
	cephadm: raise Error when no config/keyring
	cephadm: consolidate logic for reading `config-json`
	cephadm: merge `--config-and-keyring` and `--config-json` args

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Sebastian Wagner <swagner@suse.com>
2020-03-12 06:37:19 -05:00
Mykola Golub
e8e0382f39
Merge pull request #33831 from dillaman/wip-44396
rbd-mirror: prevent I/O modifications against a non-primary image

Reviewed-by: Mykola Golub <mgolub@suse.com>
2020-03-12 11:53:04 +02:00
Lenz Grimmer
bd337d5186
Merge pull request #32419 from rhcs-dashboard/fix-43419-master
mgr/dashboard: add feature toggle for NFS and fix feature toggles regression

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2020-03-12 10:17:56 +01:00
Sage Weil
3eeaefddb9 mgr/PyModule: initialize options on standby class too
Create a separate callback (_register_options) and call that on both
the regular MgrModule and MgrStandbyModule.

Fixes: https://tracker.ceph.com/issues/44562
Signed-off-by: Sage Weil <sage@redhat.com>
2020-03-11 22:42:23 -05:00
Sage Weil
ed7682fb45 Merge PR #33817 into octopus
* refs/pull/33817/head:
	mgr/dashboard: Adapt tests to new DriveGroupSpec
	fixup mgr/test_orchestrator: validate drive group matches anything.
	mgr/orch: CLI: No Tracebacks for ServiceSpecValidationError
	mgr/test_orchestrator: validate drive group matches anything.
	python-common: don't run flake8 on tests.
	python-common: Add support for legacy serialization format for Drive Groups
	doc: Move Move ServiceSpec to python-common
	python-common: Add `host_pattern` to `PlacementSpec.from_string()`
	cephadm: add host_pattern to supported scheduling
	python-common: Joined ServiceSpec and DriveGroupSpec from_json()
	python-common: Make DriveGroupSpec a sub type of ServiceSpec
	pybind/mgr: Move ServiceSpec to python-common: Fix imports
	python-common, orch: Move ServiceSpec to python-common: Fix imports
	python-common, orch: Move ServiceSpec tests to python-common
	python-common: Move ServiceSpec to python-common: fix linting
	python-common, orch: Move ServiceSpec (+deps) to python-common

Reviewed-by: Joshua Schmid <jschmid@suse.de>
2020-03-11 22:39:32 -05:00
Sage Weil
d9f3738c51 Merge PR #33895 into octopus
* refs/pull/33895/head:
	cephadm: update unit.* atomically

Reviewed-by: Michael Fritch <mfritch@suse.com>
2020-03-11 22:39:15 -05:00
Sage Weil
b767deb78e cephadm: update unit.* atomically
Some of these are run as bash scripts, which means that updating them
can lead to the running bash picking up at a weird position mid-script
when it goes to the next command.  This produces weird errors like

bash[9321]: /var/lib/ceph/f1758250-639e-11ea-9a42-001a4aab830c/mon.c/unit.run: line 2: -to-stderr=true: command not found

Signed-off-by: Sage Weil <sage@redhat.com>
2020-03-11 18:17:40 -05:00
Jason Dillaman
42c3175e43 test/cli-integration: fixed spacing issue for RBD formatted tables
The tables now use two spaces between columns instead of one.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2020-03-11 19:00:17 -04:00
Michael Fritch
8a167a6fbd
mgr/cephadm: fix redeploy for the crash daemon
`auth get` was using `crash.<name>` when it should have been
`client.crash.<name>`

Signed-off-by: Michael Fritch <mfritch@suse.com>
2020-03-11 14:02:49 -06:00
Michael Fritch
4ea11ca811
cephadm: prefer config/keyring args
let `--config` or `--keyring` take precedence over the values supplied
via the `--config-json`

Signed-off-by: Michael Fritch <mfritch@suse.com>
2020-03-11 14:02:49 -06:00
Michael Fritch
245d6a5cec
cephadm: raise Error when no config/keyring
fixes mypy error:
cephadm:1141: error: Incompatible return value type (got "Tuple[Optional[str], Optional[str]]", expected "Tuple[str, str]")

Signed-off-by: Michael Fritch <mfritch@suse.com>
2020-03-11 14:02:49 -06:00
Michael Fritch
bd0fa0c46c
cephadm: consolidate logic for reading config-json
logic for reading `--config-json` from stdin or file was duplicated

Signed-off-by: Michael Fritch <mfritch@suse.com>
2020-03-11 14:02:47 -06:00
Michael Fritch
a58468035b
cephadm: merge --config-and-keyring and --config-json args
both are passed via stdin from the mgr in a JSON format

Signed-off-by: Michael Fritch <mfritch@suse.com>
2020-03-11 14:02:12 -06:00