]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
6 years agorbd: bench snapshot if it was specified 25371/head
Mykola Golub [Sun, 2 Dec 2018 16:33:20 +0000 (18:33 +0200)]
rbd: bench snapshot if it was specified

Signed-off-by: Mykola Golub <mgolub@suse.com>
6 years agomgr/osd_perf_query: add query to test all supported subkeys
Mykola Golub [Sun, 2 Dec 2018 16:31:53 +0000 (18:31 +0200)]
mgr/osd_perf_query: add query to test all supported subkeys

Signed-off-by: Mykola Golub <mgolub@suse.com>
6 years agoosd: support more dynamic perf query subkey types
Mykola Golub [Sun, 2 Dec 2018 08:25:39 +0000 (10:25 +0200)]
osd: support more dynamic perf query subkey types

Signed-off-by: Mykola Golub <mgolub@suse.com>
6 years agoMerge pull request #25335 from ifed01/wip-ifed-fix-enospc
Kefu Chai [Tue, 4 Dec 2018 06:51:31 +0000 (14:51 +0800)]
Merge pull request #25335 from ifed01/wip-ifed-fix-enospc

os/bluestore: fix and unify log output on allocation failure

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #25343 from liewegas/wip-36612
Kefu Chai [Tue, 4 Dec 2018 06:50:03 +0000 (14:50 +0800)]
Merge pull request #25343 from liewegas/wip-36612

msg/async: do not trigger RESETSESSION from connect fault during connection phase

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Reviewed-by: Haomai Wang <haomai@xsky.com>
6 years agoMerge pull request #25336 from dragonylffly/wip-silence-warning
Kefu Chai [Tue, 4 Dec 2018 06:31:49 +0000 (14:31 +0800)]
Merge pull request #25336 from dragonylffly/wip-silence-warning

crush/CrushWrapper: silence compiler warning

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge PR #25373 into master
Sage Weil [Tue, 4 Dec 2018 04:10:43 +0000 (22:10 -0600)]
Merge PR #25373 into master

* refs/pull/25373/head:
ceph_argparse: fix CephBool to CephChoices conversion

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #25361 from badone/wip-add-luminous-12.2.9-and-10
Brad Hubbard [Mon, 3 Dec 2018 23:16:52 +0000 (09:16 +1000)]
Merge pull request #25361 from badone/wip-add-luminous-12.2.9-and-10

doc/releases: Add luminous releases 12.2.9 and 10

Reviewed-by: Noah Watkins <noahwatkins@gmail.com>
6 years agoMerge pull request #25305 from cbodley/wip-37440
Casey Bodley [Mon, 3 Dec 2018 14:00:39 +0000 (09:00 -0500)]
Merge pull request #25305 from cbodley/wip-37440

qa/rgw: fix invalid syntax error in radosgw_admin_rest.py

Reviewed-by: Volker Theile <vtheile@suse.com>
6 years agoos/bluestore: fix and unify log output on allocation failure 25335/head
Igor Fedotov [Fri, 30 Nov 2018 08:47:02 +0000 (11:47 +0300)]
os/bluestore: fix and unify log output on allocation failure

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
6 years agoMerge pull request #25366 from jtlayton/wip-orchestrator
jtlayton [Mon, 3 Dec 2018 12:08:05 +0000 (07:08 -0500)]
Merge pull request #25366 from jtlayton/wip-orchestrator

orchestrator: add the ability to remove services

6 years agoMerge pull request #25344 from sebastian-philipp/volumes-py3
Ricardo Dias [Mon, 3 Dec 2018 10:05:51 +0000 (10:05 +0000)]
Merge pull request #25344 from sebastian-philipp/volumes-py3

mgr/volumes: Fix Python 3 import error

Reviewed-by: Ricardo Dias <rdias@suse.com>
6 years agoceph_argparse: fix CephBool to CephChoices conversion 25373/head
Ricardo Dias [Mon, 3 Dec 2018 08:05:31 +0000 (08:05 +0000)]
ceph_argparse: fix CephBool to CephChoices conversion

Commit 525623b has introduced a regression that makes Ceph clients of
versions prior to Nautilus to receive invalid unicode characters in the
commands list JSON sent by the monitors.

The unicode characters are caused by memory corruption in a dangling
pointer stored by a std::string_view. The dangling pointer belonged to
an std::string object that was already destructed when the
std::string_view is used.
The fix in this PR makes the std::string object to live enough time for
the std::string_view to be used safely.

Signed-off-by: Ricardo Dias <rdias@suse.com>
6 years agoMerge pull request #24445 from jmolmo/wip_ansible_orchestrator
Sebastian Wagner [Mon, 3 Dec 2018 09:38:53 +0000 (10:38 +0100)]
Merge pull request #24445 from jmolmo/wip_ansible_orchestrator

mgr/ansible: Ansible orchestrator module

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
Reviewed-by: Sébastien Han <seb@redhat.com>
6 years agoMerge pull request #25339 from jtlayton/wip-volumes
jtlayton [Sun, 2 Dec 2018 16:40:10 +0000 (11:40 -0500)]
Merge pull request #25339 from jtlayton/wip-volumes

mgr/volumes: fix orchestrator remove operation

6 years agoorchestrator_cli: add a service rm command 25366/head
Jeff Layton [Thu, 15 Nov 2018 19:10:53 +0000 (14:10 -0500)]
orchestrator_cli: add a service rm command

Signed-off-by: Jeff Layton <jlayton@redhat.com>
6 years agoorchestrator/rook: add a rm_service backend command
Jeff Layton [Thu, 15 Nov 2018 18:59:15 +0000 (13:59 -0500)]
orchestrator/rook: add a rm_service backend command

Signed-off-by: Jeff Layton <jlayton@redhat.com>
6 years agomgr/volumes: fix orchestrator remove operation 25339/head
Jeff Layton [Fri, 30 Nov 2018 15:07:50 +0000 (10:07 -0500)]
mgr/volumes: fix orchestrator remove operation

Signed-off-by: Jeff Layton <jlayton@redhat.com>
6 years agoMerge pull request #25126 from xiexingguo/wip-heartbeat-bs
Xie Xingguo [Sat, 1 Dec 2018 10:23:33 +0000 (18:23 +0800)]
Merge pull request #25126 from xiexingguo/wip-heartbeat-bs

osd: two heartbeat fixes

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
6 years agodoc/releases: Add luminous releases 12.2.9 and 10 25361/head
Brad Hubbard [Sat, 1 Dec 2018 00:36:55 +0000 (10:36 +1000)]
doc/releases: Add luminous releases 12.2.9 and 10

Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
6 years agoMerge pull request #25122 from noahdesu/insights-osd-space
Noah Watkins [Fri, 30 Nov 2018 19:57:51 +0000 (11:57 -0800)]
Merge pull request #25122 from noahdesu/insights-osd-space

pybind/mgr: add osd space utilization to insights report

Reviewed-by: Sebastian Wagner <swagner@suse.com>
6 years agoMerge PR #25308 into master
Sage Weil [Fri, 30 Nov 2018 19:19:42 +0000 (13:19 -0600)]
Merge PR #25308 into master

* refs/pull/25308/head:
osd/OSD: OSD::mkfs asserts when reusing disk with existing superblock.
os/bluestore: add main device expand capability.

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge PR #25328 into master
Sage Weil [Fri, 30 Nov 2018 19:19:26 +0000 (13:19 -0600)]
Merge PR #25328 into master

* refs/pull/25328/head:
spec: fix cython package version to less than 0.29

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
6 years agoMerge pull request #25330 from alfredodeza/wip-rm37449
Alfredo Deza [Fri, 30 Nov 2018 18:41:12 +0000 (13:41 -0500)]
Merge pull request #25330 from alfredodeza/wip-rm37449

ceph-volume  zap: improve zapping to remove all partitions and all LVs, encrypted or not

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
6 years agoceph-volume tests patch udevadm so it doesn't actually call udevadm in a test 25330/head
Alfredo Deza [Fri, 30 Nov 2018 17:31:02 +0000 (12:31 -0500)]
ceph-volume tests patch udevadm so it doesn't actually call udevadm in a test

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume util.disk use device.path for error reporting
Alfredo Deza [Fri, 30 Nov 2018 13:27:01 +0000 (08:27 -0500)]
ceph-volume util.disk use device.path for error reporting

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume tests.functional add back sdc1 partitions with parted to redeploy after...
Alfredo Deza [Fri, 30 Nov 2018 11:44:56 +0000 (06:44 -0500)]
ceph-volume tests.functional add back sdc1 partitions with parted to redeploy after zapping

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume tests.functional add back partitions with parted to redeploy after zapping
Alfredo Deza [Thu, 29 Nov 2018 23:07:09 +0000 (18:07 -0500)]
ceph-volume tests.functional add back partitions with parted to redeploy after zapping

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume tests.functional recreate partitions previously removed with --destroy
Alfredo Deza [Thu, 29 Nov 2018 19:10:46 +0000 (14:10 -0500)]
ceph-volume tests.functional recreate partitions previously removed with --destroy

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume tests.util ensure that both disk and device report is_device
Alfredo Deza [Wed, 28 Nov 2018 21:09:49 +0000 (16:09 -0500)]
ceph-volume tests.util ensure that both disk and device report is_device

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume tests.util ensure is_encrypted works for lv, partition, and mapper devices
Alfredo Deza [Wed, 28 Nov 2018 21:01:52 +0000 (16:01 -0500)]
ceph-volume tests.util ensure is_encrypted works for lv, partition, and mapper devices

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume tests.util ensure partitions are listed as top-level keys
Alfredo Deza [Wed, 28 Nov 2018 18:53:56 +0000 (13:53 -0500)]
ceph-volume tests.util ensure partitions are listed as top-level keys

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume tests add mapper test for dm paths
Alfredo Deza [Wed, 28 Nov 2018 18:47:01 +0000 (13:47 -0500)]
ceph-volume tests add mapper test for dm paths

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume tests update is_mapper unit test when zapping
Alfredo Deza [Wed, 28 Nov 2018 18:46:05 +0000 (13:46 -0500)]
ceph-volume tests update is_mapper unit test when zapping

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume util.device check both dm and mapper paths for is_mapper property
Alfredo Deza [Wed, 28 Nov 2018 18:26:59 +0000 (13:26 -0500)]
ceph-volume util.device check both dm and mapper paths for is_mapper property

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume lvm skip empty vg_name removals
Alfredo Deza [Wed, 28 Nov 2018 13:18:03 +0000 (08:18 -0500)]
ceph-volume lvm skip empty vg_name removals

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume util.arg_validators optionally skip gpt header check
Alfredo Deza [Wed, 28 Nov 2018 12:56:34 +0000 (07:56 -0500)]
ceph-volume util.arg_validators optionally skip gpt header check

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume util.device if no vgs, set it to an empty list
Alfredo Deza [Wed, 28 Nov 2018 12:52:46 +0000 (07:52 -0500)]
ceph-volume util.device if no vgs, set it to an empty list

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume util.device set vgs to Device object if available
Alfredo Deza [Wed, 28 Nov 2018 12:51:51 +0000 (07:51 -0500)]
ceph-volume util.device set vgs to Device object if available

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume util update is_device when reported as device or disk
Alfredo Deza [Wed, 28 Nov 2018 12:50:50 +0000 (07:50 -0500)]
ceph-volume util update is_device when reported as device or disk

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume util add method to detect encryption on devices
Alfredo Deza [Wed, 28 Nov 2018 12:47:59 +0000 (07:47 -0500)]
ceph-volume util add method to detect encryption on devices

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume util.disk add a helper to remove partitions
Alfredo Deza [Tue, 27 Nov 2018 14:45:17 +0000 (09:45 -0500)]
ceph-volume util.disk add a helper to remove partitions

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoqa/rgw: radosgw_admin_rest.py uses /admin/user?list for user listing 25305/head
Casey Bodley [Fri, 30 Nov 2018 17:21:29 +0000 (12:21 -0500)]
qa/rgw: radosgw_admin_rest.py uses /admin/user?list for user listing

Signed-off-by: Casey Bodley <cbodley@redhat.com>
6 years agoceph-volume util.disk include partitions as top level devices in get_devices
Alfredo Deza [Tue, 27 Nov 2018 14:31:58 +0000 (09:31 -0500)]
ceph-volume util.disk include partitions as top level devices in get_devices

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume util.disk fix issue when capturing partition information
Alfredo Deza [Tue, 27 Nov 2018 14:26:33 +0000 (09:26 -0500)]
ceph-volume util.disk fix issue when capturing partition information

Before, the `if` condition meant that it would only work when the output
was '1', which is incorrect as that would only happen if a partition was
the first one, ignoring any other partition. The contents of that file
is the partition number, not a boolean to tell if it is a partition or
not.

It now includes the `holders` file contents which is needed for
dm-mapper work

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume lvm.zap split zapping in methods per device type
Alfredo Deza [Tue, 27 Nov 2018 13:23:19 +0000 (08:23 -0500)]
ceph-volume lvm.zap split zapping in methods per device type

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoMerge pull request #25201 from jan--f/c-v-inventory-add-device_id
Alfredo Deza [Fri, 30 Nov 2018 17:11:23 +0000 (12:11 -0500)]
Merge pull request #25201 from jan--f/c-v-inventory-add-device_id

ceph-volume add device_id to inventory listing

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Sebastien Han <shan@redhat.com>
Reviewed-by: Alfredo Deza <adeza@redhat.com>
6 years agoMerge pull request #25203 from jan--f/c-v-batch-fix-py3
Alfredo Deza [Fri, 30 Nov 2018 16:48:06 +0000 (11:48 -0500)]
Merge pull request #25203 from jan--f/c-v-batch-fix-py3

ceph-volume: fix Batch object in py3 environments

Reviewed-by: Alfredo Deza <adeza@redhat.com>
6 years agoMerge pull request #25178 from joke-lee/wip-fix-rgw-multisite-info-get-set-caps-check
Casey Bodley [Fri, 30 Nov 2018 16:41:35 +0000 (11:41 -0500)]
Merge pull request #25178 from joke-lee/wip-fix-rgw-multisite-info-get-set-caps-check

rgw: get or set realm zonegroup zone need check user's caps

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agomsg/async: do not trigger RESETSESSION from connect fault during connection phase 25343/head
Sage Weil [Fri, 30 Nov 2018 15:40:49 +0000 (09:40 -0600)]
msg/async: do not trigger RESETSESSION from connect fault during connection phase

Previously, if we got a connection fault during the connect/connect_reply
phase, we would increment connect_seq on the client side and trigger a
RESETSESSION on the server side (because there was not yet an existing
connection to replace).  This led to dropped messages, usually in the
form of stuck peering in the rados/thrash suite.

The problem is that the condition for 'reconnect' vs 'backoff' inherited
the test from SimpleMessenger, which had only a STATE_CONNECTING.  In
contract, AsyncMessenger also as CONNECTING_WAIT_BANNER_AND_IDENTIFY and
CONNECTING_SEND_CONNECT_MSG, and if we were in these states, we would
increment connect_seq instead of backing off and retrying (without an
increment).

Fix by adjusting the condition to match the range of CONNECTING states
in asyncmessenger.

Fixes: http://tracker.ceph.com/issues/36612
Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomgr/volumes: Fix Python 3 import error 25344/head
Sebastian Wagner [Fri, 30 Nov 2018 15:47:42 +0000 (16:47 +0100)]
mgr/volumes: Fix Python 3 import error

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
6 years agocrush/CrushWrapper: silence compiler warning 25336/head
Li Wang [Fri, 30 Nov 2018 10:05:32 +0000 (10:05 +0000)]
crush/CrushWrapper: silence compiler warning

silence compiler warning for comparison
between signed and unsigned integer expressions

Signed-off-by: Li Wang <laurence.liwang@gmail.com>
6 years agoceph-volume: add Batch smoketest 25203/head
Jan Fajerski [Mon, 26 Nov 2018 13:54:50 +0000 (14:54 +0100)]
ceph-volume: add Batch smoketest

Signed-off-by: Jan Fajerski <jfajerski@suse.com>
6 years agoceph-volume: fix Batch object in py3 environments
Jan Fajerski [Fri, 30 Nov 2018 08:22:51 +0000 (09:22 +0100)]
ceph-volume: fix Batch object in py3 environments

Fixes: https://tracker.ceph.com/issues/37356
Signed-off-by: Jan Fajerski <jfajerski@suse.com>
6 years agopybind/mgr: handle inconsistent api state 25122/head
Noah Watkins [Thu, 29 Nov 2018 21:28:48 +0000 (13:28 -0800)]
pybind/mgr: handle inconsistent api state

Signed-off-by: Noah Watkins <nwatkins@redhat.com>
6 years agoMerge pull request #25240 from cbodley/wip-rgw-list-buckets-cleanup 25338/head
Casey Bodley [Thu, 29 Nov 2018 21:19:02 +0000 (16:19 -0500)]
Merge pull request #25240 from cbodley/wip-rgw-list-buckets-cleanup

rgw: remove duplicated RGWRados::list_buckets_ helpers

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agoMerge PR #25196 into master
Sage Weil [Thu, 29 Nov 2018 20:25:44 +0000 (14:25 -0600)]
Merge PR #25196 into master

* refs/pull/25196/head:
mon: auto clean up stale upmap items
osd/OSDMap: add pg-existence sanity check

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge PR #25303 into master
Sage Weil [Thu, 29 Nov 2018 20:25:19 +0000 (14:25 -0600)]
Merge PR #25303 into master

* refs/pull/25303/head:
mgr/DaemonState: fix get_config_defaults locking

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agorgw: removed unused RGWRados::list_buckets_* 25240/head
Casey Bodley [Fri, 23 Nov 2018 16:50:36 +0000 (11:50 -0500)]
rgw: removed unused RGWRados::list_buckets_*

Signed-off-by: Casey Bodley <cbodley@redhat.com>
6 years agoradosgw-admin: use metadata mgr to list buckets
Casey Bodley [Fri, 23 Nov 2018 16:48:13 +0000 (11:48 -0500)]
radosgw-admin: use metadata mgr to list buckets

Signed-off-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #25331 from jtlayton/wip-volumes
jtlayton [Thu, 29 Nov 2018 19:30:39 +0000 (14:30 -0500)]
Merge pull request #25331 from jtlayton/wip-volumes

volumes mgr module fixes

6 years agoMerge pull request #25161 from wjwithagen/wjw-fix-stringlist
Casey Bodley [Thu, 29 Nov 2018 19:25:10 +0000 (14:25 -0500)]
Merge pull request #25161 from wjwithagen/wjw-fix-stringlist

rgw: need to give a type in list constructor

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
6 years agoMerge pull request #25145 from adamemerson/wip-23817
Casey Bodley [Thu, 29 Nov 2018 19:24:25 +0000 (14:24 -0500)]
Merge pull request #25145 from adamemerson/wip-23817

Don't treat colons specially when matching resource field of ARNs in S3 Policy

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Pritha Srivastava <prsrivas@redhat.com>
6 years agoMerge pull request #25123 from yehudasa/wip-37281
Casey Bodley [Thu, 29 Nov 2018 19:21:56 +0000 (14:21 -0500)]
Merge pull request #25123 from yehudasa/wip-37281

rgw: change the way sysobj filters raw attributes, fix bucket sync state xattrs

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #25078 from mkoderer/rgw-ux
Casey Bodley [Thu, 29 Nov 2018 19:20:58 +0000 (14:20 -0500)]
Merge pull request #25078 from mkoderer/rgw-ux

[rgw]: Fix help of radosgw-admin user info in case no uid

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Lenz Grimmer <lgrimmer@suse.com>
Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
6 years agoMerge pull request #25068 from cbodley/wip-rgw-rados-yield
Casey Bodley [Thu, 29 Nov 2018 19:18:54 +0000 (14:18 -0500)]
Merge pull request #25068 from cbodley/wip-rgw-rados-yield

rgw: RADOS::Obj::operate takes optional_yield

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agoMerge pull request #25310 from cbodley/wip-37448
Casey Bodley [Thu, 29 Nov 2018 19:18:12 +0000 (14:18 -0500)]
Merge pull request #25310 from cbodley/wip-37448

rgw: data sync accepts ERR_PRECONDITION_FAILED on remove_object()

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agoMerge pull request #25081 from cbodley/wip-37091
Casey Bodley [Thu, 29 Nov 2018 19:17:32 +0000 (14:17 -0500)]
Merge pull request #25081 from cbodley/wip-37091

rgw: catch exceptions from librados::NObjectIterator

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
6 years agoMerge pull request #25329 from jtlayton/wip-orchestrator
jtlayton [Thu, 29 Nov 2018 17:52:53 +0000 (12:52 -0500)]
Merge pull request #25329 from jtlayton/wip-orchestrator

orchestrator_cli: fix HandleCommandResult invocations in _status()

6 years agoMerge pull request #25314 from tchaikov/wip-37432
Kefu Chai [Thu, 29 Nov 2018 17:49:40 +0000 (01:49 +0800)]
Merge pull request #25314 from tchaikov/wip-37432

qa/suites/rados/upgrade: set require-osd-release to nautilus

Reviewed-by: Mykola Golub <mgolub@suse.com>
6 years agomgr/volumes: fix "perm" field on ceph fs volume commands 25331/head
Jeff Layton [Thu, 29 Nov 2018 17:13:16 +0000 (12:13 -0500)]
mgr/volumes: fix "perm" field on ceph fs volume commands

They're all currently set as "r" but most of them should be "rw".

Signed-off-by: Jeff Layton <jlayton@redhat.com>
6 years agomgr/volumes: fix description text for ceph fs volume create
Jeff Layton [Thu, 29 Nov 2018 16:59:30 +0000 (11:59 -0500)]
mgr/volumes: fix description text for ceph fs volume create

Signed-off-by: Jeff Layton <jlayton@redhat.com>
6 years agomgr/volumes: call correct method to wait for the orchestrator
Jeff Layton [Thu, 29 Nov 2018 16:58:34 +0000 (11:58 -0500)]
mgr/volumes: call correct method to wait for the orchestrator

We need to use _orchestrator_wait here.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
6 years agoorchestrator_cli: fix HandleCommandResult invocations in _status() 25329/head
Jeff Layton [Thu, 29 Nov 2018 15:49:11 +0000 (10:49 -0500)]
orchestrator_cli: fix HandleCommandResult invocations in _status()

These strings were being passed in as positional parameters, but we
need to pass them in as odata=.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
6 years agoMerge pull request #25128 from dragonylffly/rb
Kefu Chai [Thu, 29 Nov 2018 15:41:22 +0000 (23:41 +0800)]
Merge pull request #25128 from dragonylffly/rb

tools/rados: allow reuse object for write test

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #25317 from tchaikov/wip-37444
Kefu Chai [Thu, 29 Nov 2018 15:38:12 +0000 (23:38 +0800)]
Merge pull request #25317 from tchaikov/wip-37444

mgr: don't write to output if EOPNOTSUPP

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #25318 from javacruft/collections.abc
Kefu Chai [Thu, 29 Nov 2018 15:36:44 +0000 (23:36 +0800)]
Merge pull request #25318 from javacruft/collections.abc

qa,pybind,tools: Correct usage of collections.abc

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #24822 from Rjerk/wip-fix-devicehealth-typo-error
Kefu Chai [Thu, 29 Nov 2018 15:34:05 +0000 (23:34 +0800)]
Merge pull request #24822 from Rjerk/wip-fix-devicehealth-typo-error

mgr/devicehealth: fix is_valid_daemon_name typo error

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agospec: fix cython package version to less than 0.29 25328/head
Ricardo Dias [Thu, 29 Nov 2018 11:47:34 +0000 (11:47 +0000)]
spec: fix cython package version to less than 0.29

Cython version 0.29 removed the support for python subinterpreters,
which completely breaks ceph-mgr funcionality.

See cython repo commit:
https://github.com/cython/cython/commit/7e27c7cd51a2f048cd6d3c246740cd977f8d2e50

Fixes: http://tracker.ceph.com/issues/37472
Signed-off-by: Ricardo Dias <rdias@suse.com>
6 years agoMerge pull request #25323 from sebastian-philipp/orchestrator-utf8
Sebastian Wagner [Thu, 29 Nov 2018 14:11:31 +0000 (15:11 +0100)]
Merge pull request #25323 from sebastian-philipp/orchestrator-utf8

mgr/orchestrator: remove unicode whitespaces

Reviewed-by: Jeff Layton <jlayton@redhat.com>
6 years agomgr/ansible: Ansible orchestrator module 24445/head
Juan Miguel Olmo Martínez [Thu, 4 Oct 2018 13:54:42 +0000 (15:54 +0200)]
mgr/ansible: Ansible orchestrator module
A Ceph Manager Orchestrator that uses a external REST API service to execute Ansible playbooks.

get_inventory implementation

Signed-off-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
Document how to use CLI through Orchestrator CLI

Signed-off-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
6 years agomgr/orchestrator: remove unicode whitespaces 25323/head
Sebastian Wagner [Thu, 29 Nov 2018 12:50:58 +0000 (13:50 +0100)]
mgr/orchestrator: remove unicode whitespaces

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
6 years agoMerge pull request #25311 from wjwithagen/wjw-fix-cores-EXPECT_DEATH
Kefu Chai [Thu, 29 Nov 2018 11:26:45 +0000 (19:26 +0800)]
Merge pull request #25311 from wjwithagen/wjw-fix-cores-EXPECT_DEATH

test: suppress core dumping in there tests as well

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoCorrect usage of collections.abc 25318/head
James Page [Thu, 29 Nov 2018 09:47:07 +0000 (09:47 +0000)]
Correct usage of collections.abc

Some classes should still be imported directly from collections;
only OrderedDict, Iterable and Callable (in the context of the
ceph codebase) are found in collections.abc.

The current code works due to the fallback support for Python 2.

Signed-off-by: James Page <james.page@ubuntu.com>
6 years agoosd/OSD: OSD::mkfs asserts when reusing disk with existing superblock. 25308/head
Igor Fedotov [Tue, 27 Nov 2018 11:39:09 +0000 (14:39 +0300)]
osd/OSD: OSD::mkfs asserts when reusing disk with existing superblock.

Fixes: http://tracker.ceph.com/issues/37404
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
6 years agoos/bluestore: add main device expand capability.
Igor Fedotov [Fri, 23 Nov 2018 11:39:20 +0000 (14:39 +0300)]
os/bluestore: add main device expand capability.

One can do that via ceph-bluestore-tool's bluefs-bdev-expand command

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
6 years agotest: suppress core dumping in there tests as well 25311/head
Willem Jan Withagen [Wed, 28 Nov 2018 21:17:53 +0000 (22:17 +0100)]
test: suppress core dumping in there tests as well

On FreeBSD coredumps are enabled by default.
And thus tests in teardown() in ceph-helpers.sh can fail because of
unwaranted cores.

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
6 years agotools/rados: allow reuse object for write test 25128/head
Li Wang [Thu, 29 Nov 2018 09:12:10 +0000 (09:12 +0000)]
tools/rados: allow reuse object for write test

Currently, for rados bench write test, it always
creates new objects for testing. Create operation
refers to non-neglectable metadata overhead, especially
for small write performance. This patch allows to
reuse objects for write testing

Signed-off-by: Li Wang <laurence.liwang@gmail.com>
6 years agoMerge pull request #20952 from shangfufei/wip-async-external-event
Kefu Chai [Thu, 29 Nov 2018 09:12:15 +0000 (17:12 +0800)]
Merge pull request #20952 from shangfufei/wip-async-external-event

msg/async: Skip the duplicated processing of the same link

Reviewed-by: Haomai Wang <haomai@xsky.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #25302 from wjwithagen/wjw-wip-build-kv_store_2
Kefu Chai [Thu, 29 Nov 2018 09:11:15 +0000 (17:11 +0800)]
Merge pull request #25302 from wjwithagen/wjw-wip-build-kv_store_2

include: define errnos if not defined for better portablity

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #25264 from tchaikov/wip-mds-mem-frag
Kefu Chai [Thu, 29 Nov 2018 09:10:25 +0000 (17:10 +0800)]
Merge pull request #25264 from tchaikov/wip-mds-mem-frag

denc: fix internal fragmentation when decoding ptr in bl

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #24878 from trociny/wip-36656
Kefu Chai [Thu, 29 Nov 2018 09:09:25 +0000 (17:09 +0800)]
Merge pull request #24878 from trociny/wip-36656

mgr: race between daemon state and service map in 'service status'

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #24733 from tchaikov/wip-19348
Kefu Chai [Thu, 29 Nov 2018 09:05:41 +0000 (17:05 +0800)]
Merge pull request #24733 from tchaikov/wip-19348

pybind: simplify timeout handling in run_in_thread()

Reviewed-by: Rishabh Dave <ridave@redhat.com>
6 years agomgr: don't write to output if EOPNOTSUPP 25317/head
Kefu Chai [Thu, 29 Nov 2018 07:44:55 +0000 (15:44 +0800)]
mgr: don't write to output if EOPNOTSUPP

if process_pg_map_command() fails to fulfill the request, we should keep
the odata intact. and let the module take care of it.

before this change, we always write to odata even if
process_pg_map_command() returns -EOPNOTSUPP, this leaves unnecessary
leftover in the output, like pg_info,pg_ready.

after this change, we won't touch odata if process_pg_map_command()
returns -EOPNOTSUPP. and odata will be filled with whatever the python
module returns.

Fixes: http://tracker.ceph.com/issues/37444
Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agomsg/async: Skip the duplicated processing of the same link. 20952/head
shangfufei [Tue, 13 Nov 2018 03:10:28 +0000 (11:10 +0800)]
msg/async: Skip the duplicated processing of the same link.

Update Event.cc

Signed-off-by: shangfufei <shangfufei@inspur.com>
6 years agoqa/suites/rados/upgrade: set require-osd-release to nautilus 25314/head
Kefu Chai [Thu, 29 Nov 2018 06:35:01 +0000 (14:35 +0800)]
qa/suites/rados/upgrade: set require-osd-release to nautilus

* add qa/releases/nautilus.yaml so it can be reused.
* use releases/nautilus.yaml in luminous-x upgrade test, so
  test_librbd_python.sh is able to use the feature introduced in
  nautilus.

Fixes: http://tracker.ceph.com/issues/37432
Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge PR #24580 into master
Patrick Donnelly [Thu, 29 Nov 2018 03:54:13 +0000 (19:54 -0800)]
Merge PR #24580 into master

* refs/pull/24580/head:
mds: bump mds protocol version
mds: handle fragment notify race

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoqa/rgw: add credentials to zone 'remove' in test_zonegroup_remove() 25178/head
Casey Bodley [Wed, 28 Nov 2018 18:18:05 +0000 (13:18 -0500)]
qa/rgw: add credentials to zone 'remove' in test_zonegroup_remove()

zone credentials are required to 'period update --commit' from
--rgw-zone remove

Signed-off-by: Casey Bodley <cbodley@redhat.com>
Conflicts:
src/test/rgw/rgw_multi/tests.py

6 years agorgw: get or set realm zonegroup zone need check user's caps
yuliyang [Tue, 20 Nov 2018 09:19:38 +0000 (17:19 +0800)]
rgw: get or set realm zonegroup zone need check user's caps

fix: https://tracker.ceph.com/issues/37352

Signed-off-by: yuliyang <yuliyang@cmss.chinamobile.com>
6 years agorgw: data sync accepts ERR_PRECONDITION_FAILED on remove_object() 25310/head
Casey Bodley [Wed, 28 Nov 2018 18:45:54 +0000 (13:45 -0500)]
rgw: data sync accepts ERR_PRECONDITION_FAILED on remove_object()

sync of deletes uses an If-UnModified-Since precondition, but does not
handle the corresponding ERR_PRECONDITION_FAILED error. treating this as
a failure means that we'll keep retrying the delete which will never
succeed. break this loop by treating ERR_PRECONDITION_FAILED as a
success

Fixes: http://tracker.ceph.com/issues/37448
Signed-off-by: Casey Bodley <cbodley@redhat.com>