Commit Graph

104391 Commits

Author SHA1 Message Date
Volker Theile
234171b882 python-common: Fix typo in device type
Signed-off-by: Volker Theile <vtheile@suse.com>
2019-11-20 13:14:00 +01:00
Kefu Chai
b2b3b76dbd
Merge pull request #31755 from tchaikov/wip-mgr-orch
mgr/orch: pass unicode string to ipaddress.ip_network()

Reviewed-by: Sebastian Wagner <swagner@suse.com>
Reviewed-by: Joshua Schmid <jschmid@suse.de>
2019-11-20 18:09:19 +08:00
Kefu Chai
d3fb8fb0d8 mgr/orch: pass unicode string to ipaddress.ip_network()
otherwise it complains like

>               raise e
E               AddressValueError: '10.1.1.10' does not appear to be an
IPv4 or IPv6 address. Did you pass in a bytes (str in Python 2) instead
of a unicode object?

orchestrator.py:94: AddressValueError

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-11-20 16:41:09 +08:00
Kefu Chai
71b38f5c8b pybind/mgr: add ipaddress to requirements.txt
ipaddress dependency was introduced in 16f281d2. because the tox testenv
is isolated from the host python env, the test env has no access to the
ipaddress python module installed by install-deps.sh. we have to install
ipaddress for python<3.3 for testing which uses `orchestrator.py`.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-11-20 16:41:09 +08:00
Jan Fajerski
246539dc3d
Merge pull request #31574 from jan--f/c-v-refactor-get_devices
ceph-volume: make get_devices fs location independent
2019-11-20 08:41:47 +01:00
Sage Weil
64bd0e2ab4 Merge PR #30698 into master
* refs/pull/30698/head:
	common/options: Set bluestore min_alloc size to 4K

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2019-11-19 20:25:43 -06:00
Sage Weil
f03f15cc4d Merge PR #31638 into master
* refs/pull/31638/head:
	mgr/pg_autoscaler: only generate target_* health warnings if targets set

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2019-11-19 20:24:54 -06:00
Sage Weil
b136be294d Merge PR #31572 into master
* refs/pull/31572/head:
	mgr/diskprediction_local: some debug output during predict (and self-test)

Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-11-19 20:24:33 -06:00
Sage Weil
bc62adc4f5 Merge PR #31721 into master
* refs/pull/31721/head:
	mgr/ssh: set UserKnownHostsFile

Reviewed-by: Michael Fritch <mfritch@suse.com>
2019-11-19 16:05:16 -06:00
Ali Maredia
c1b142ef71
Merge pull request #31660 from ivancich/wip-add-some-const
rgw: add const correctness to some rest functions
2019-11-19 14:23:33 -05:00
Casey Bodley
669453138d
Merge pull request #16715 from adamemerson/wip-I-Object!
osdc/Objecter: Boost.Asio (I object!)

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
2019-11-19 12:48:26 -05:00
Sage Weil
36f5fcbb97 Merge PR #31672 into master
* refs/pull/31672/head:
	mgr/orch: adapt update_mgr/mon funcs to new parsing
	mgr/orch: improve commandline parsing

Reviewed-by: Sebastian Wagner <swagner@suse.com>
Reviewed-by: Michael Fritch <mfritch@suse.com>
2019-11-19 10:37:49 -06:00
Sage Weil
9ae8a737dd Merge PR #31679 into master
* refs/pull/31679/head:
	ceph-daemon: add osd create test(s)

Reviewed-by: Sage Weil <sage@redhat.com>
2019-11-19 10:37:33 -06:00
Sage Weil
9b61479da4
Merge pull request #31731 from varshar16/wip-doc-update-orchestrator_cli-url
mgr/orchestrator_cli: Update doc link in README
2019-11-19 09:09:43 -06:00
Sage Weil
977657a4a5 mgr/ssh: set UserKnownHostsFile
Set this to /dev/null, since we have StrictHostKeyChecking
off anyway.  This gets rid of messages to stderr every time we connect
to a new host.

Signed-off-by: Sage Weil <sage@redhat.com>
2019-11-19 09:08:15 -06:00
Jan Fajerski
4749f4c59d ceph-volume: refactor tests for refactored get_devices
Signed-off-by: Jan Fajerski <jfajerski@suse.com>
2019-11-19 15:24:21 +01:00
Jan Fajerski
b35e8c485f ceph-volume: refactor get_devices, don't use os.path.realpath
Fixes: https://tracker.ceph.com/issues/42777

Signed-off-by: Jan Fajerski <jfajerski@suse.com>
2019-11-19 15:24:14 +01:00
Matt Benjamin
b35926ea8a
Merge pull request #29399 from ofriedma/master
rgw: Fix expiration header does not return the earliest rule
2019-11-19 08:42:19 -05:00
Matt Benjamin
6068e3ace1
Merge pull request #29937 from ofriedma/wip-ofriedma-days0
Add days0 to rgw lc
2019-11-19 08:41:10 -05:00
Jason Dillaman
eb3fb7479a
Merge pull request #31642 from trociny/wip-rbd-mirror-service-daemon-ns-support
rbd-mirror: add namespace support to service daemon

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2019-11-19 08:16:44 -05:00
Jason Dillaman
8617416990
Merge pull request #31627 from trociny/wip-pybind-rbd-snap_remove
pybind/rbd: provide snap remove flags

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2019-11-19 08:16:29 -05:00
Jason Dillaman
2dc02761cb
Merge pull request #31608 from trociny/wip-mock-warnings
test/rbd_mirror: fix mock warnings

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2019-11-19 08:15:26 -05:00
Jason Dillaman
f0f62cc5dd
Merge pull request #31606 from trociny/wip-test_rbd.py-tabs
test/pybind: inconsistent use of tabs and spaces in indentation

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2019-11-19 08:14:44 -05:00
Varsha Rao
f7f5d1b723 mgr/orchestrator_cli: Update doc link in README
Update the orchestrator cli doc link to fix page not found error. Also remove
some unnecessary blank lines.

Signed-off-by: Varsha Rao <varao@redhat.com>
2019-11-19 16:50:41 +05:30
Nathan Cutler
71633b2527
Merge pull request #31594 from smithfarm/wip-bri-regex-fix
backport-resolve-issue: narrow regular expression and read key/token from files

Reviewed-by: Tiago Melo <tmelo@suse.com>
2019-11-19 10:00:07 +01:00
Ramana Raja
caba9474a3
Merge pull request #30336 from joscollin/wip-F40959-subvolume-uid-gid
mgr/volumes: uid, gid for subvolume create and subvolumegroup create commands
2019-11-19 14:16:46 +05:30
Kefu Chai
310a2d37be
Merge pull request #31546 from zjcmszh/execute
pybind/rados: add WriteOp::execute()

Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-11-19 14:36:07 +08:00
Kefu Chai
1772803b16
Merge pull request #30968 from majianpeng/osd-optimze-send_message_osd_cluster
osd: optimize send_message to peers

Reviewed-by: Sage Weil <sage@redhat.com>
2019-11-19 14:35:14 +08:00
Kefu Chai
396b717e5d
Merge pull request #31550 from wido/issue-42761
systemd: Wait 5 seconds before attempting a restart of an OSD

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2019-11-19 14:28:25 +08:00
Kefu Chai
c9af7ba6e1
Merge pull request #31623 from badone/wip-tracker-42387-extend-admin-socket-timeout
common/admin_socket: Increase socket timeouts

Reviewed-by: Sage Weil <sage@redhat.com>
2019-11-19 14:25:37 +08:00
Kefu Chai
69ab2c26a3
Merge pull request #31241 from zjcmszh/add_rados_create_pool2
pybind/rados/rados.pyx: improve Rados.create_pool()

Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-11-19 14:24:49 +08:00
Kefu Chai
169be571e2
Merge pull request #31617 from Devp00l/wip-42776
mgr/dashboard: Fix pool renaming functionality

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
2019-11-19 14:23:35 +08:00
Michael Fritch
5cb5e77f50
ceph-daemon: add osd create test(s)
Signed-off-by: Michael Fritch <mfritch@suse.com>
2019-11-18 22:30:22 -07:00
Kefu Chai
e4daf56bbd
Merge pull request #31515 from drunkard/master
doc: typo fix in doc/dev/dev_cluster_deployement.rst: s/hostanme/hostname/

Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-11-19 09:25:23 +08:00
Kefu Chai
1d0579566e
Merge pull request #31541 from BlackLotus/master
added a remark to always use powers of two for pg_num

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-11-19 09:24:08 +08:00
Sage Weil
1a29371b0a
Merge pull request #31685 from liewegas/fix-mgr-shutdown
mgr: _exit(0) from signal handler even if we are standby
2019-11-18 16:54:27 -06:00
Sage Weil
d2caaca81f Merge pull request #31695 from liewegas/wip-cd-simpler-bootstrap
ceph-daemon: bootstrap: make --output-* args optional
2019-11-18 16:09:13 -06:00
Joshua Schmid
7888b3c43b mgr/orch: adapt update_mgr/mon funcs to new parsing
update_mgr and update_mon (and their correspinding orch-backend
implementation) are adapted to the new parsing parsing method
introduced in ff9093873.

Signed-off-by: Joshua Schmid <jschmid@suse.de>
2019-11-18 18:11:55 +01:00
Lenz Grimmer
42954be80f
mgr/dashboard: Remove title from sparkline tooltips (#31645)
mgr/dashboard: Remove title from sparkline tooltips

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2019-11-18 17:04:21 +00:00
Kefu Chai
d28ed32c08
Merge pull request #31689 from tchaikov/wip/workunits/cephtool/test.sh
qa/workunits/cephtool/test.sh: a handful fixes

Reviewed-by: Sage Weil <sweil@redhat.com>
2019-11-18 23:23:21 +08:00
Jason Dillaman
34a540010a
Merge pull request #30397 from MahatiC/wip-ref-counting
librbd: add reference counting

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2019-11-18 10:07:08 -05:00
Kefu Chai
153311a196 qa/suites/rados: whitelist health warnings
in cephtool/test.sh, we

ceph fs set cephfs inline_data {1,0}

so the health check fails when the test ends, like

mon.a (mon.0) 3498 : cluster [WRN] Health check failed: 1 filesystem
with deprecated feature inline_data (FS_INLINE_DATA_DEPRECATED)" in
cluster log

so, before we remove the test, we need to whitelist this warning

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-11-18 22:23:08 +08:00
Nathan Cutler
204ac51d86
Merge pull request #31688 from smithfarm/wip-bci-clean-print
backport-create-issue: flush line before overprinting

Reviewed-by: Tiago Melo <tmelo@suse.com>
2019-11-18 14:30:11 +01:00
Nathan Cutler
7dc1bd262e backport-resolve-issue: read Redmine key and GitHub token from file
Thanks to Tiago Melo for inspiring me to do this.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
2019-11-18 14:19:39 +01:00
Kefu Chai
4594ab9aa7 qa/workunits/cephtool/test.sh: set min_{bytes,pgs}_per_osd for reweight
otherwise ceph-mgr will refuse to perform reweight

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-11-18 21:17:57 +08:00
Kefu Chai
abc237960a qa/workunits/cephtool/test.sh: create pool with power-of-2 pg num
otherwise wait_for_health() fails like:

wait_for_health:  ceph health detail
HEALTH_WARN 1 pool(s) have non-power-of-two pg_num
[WRN] POOL_PG_NUM_NOT_POWER_OF_TWO: 1 pool(s) have non-power-of-two pg_num
    pool 'rbd' pg_num 10 is not a power of two
../qa/workunits/cephtool/../../standalone/ceph-helpers.sh:1613: wait_for_health:  return 1

the failure was found when testing test_mon_pg().

this behavior was introduced by 6e46b1c0e5

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-11-18 21:17:57 +08:00
Kefu Chai
2977086d1d qa/workunits/cephtool/test.sh: use "ceph compact" in test_mon_deprecated_commands()
both "compact" and "scrub" are now cli command, so we cannot issue them
using "tell" anymore.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-11-18 21:17:56 +08:00
Nathan Cutler
a51ec07c6b backport-resolve-issue: narrow regular expression
The regular expression used to extract tracker URLs from the PR body
was too generous. When there are two URLs on the same line and the
second is a tracker URl, the regex picked up both of them. For example,
the following string matched the regex:

"https://github.com/ceph/ceph/pull/26538, https://tracker.ceph.com/issues/41452"

This commit fixes the issue.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
2019-11-18 14:13:00 +01:00
Sebastian Wagner
45438fc61a
Merge pull request #31710 from votdev/ignore_ssh_config
mgr/ssh: Ignore ssh-config file

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
2019-11-18 13:29:53 +01:00
Volker Theile
316cd359d6 mgr/ssh: Ignore ssh-config file
Ignore the ssh-config file that is created when working with the Vagrant box.

Signed-off-by: Volker Theile <vtheile@suse.com>
2019-11-18 11:40:32 +01:00