]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/log
ceph.git
6 years agorgw: align head object size with pool alignment 25774/head
Yehuda Sadeh [Sat, 19 Jan 2019 05:04:50 +0000 (21:04 -0800)]
rgw: align head object size with pool alignment

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: head obj contains data only if on the same pool as tail
Yehuda Sadeh [Mon, 14 Jan 2019 16:41:26 +0000 (08:41 -0800)]
rgw: head obj contains data only if on the same pool as tail

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: putobj processor: fix to allow different head sizes
Yehuda Sadeh [Thu, 10 Jan 2019 15:58:59 +0000 (07:58 -0800)]
rgw: putobj processor: fix to allow different head sizes

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: fetch_remote_obj(): set compression_type inside callback
Yehuda Sadeh [Wed, 16 Jan 2019 03:36:22 +0000 (19:36 -0800)]
rgw: fetch_remote_obj(): set compression_type inside callback

The tail_rule is being determined at the callback, not before.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: lifecycle: modify locked check
Yehuda Sadeh [Wed, 16 Jan 2019 03:35:14 +0000 (19:35 -0800)]
rgw: lifecycle: modify locked check

Can get either -EBUSY or -EEXIST.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: check if default placement target is set correctly
Yehuda Sadeh [Wed, 16 Jan 2019 03:31:18 +0000 (19:31 -0800)]
rgw: check if default placement target is set correctly

Don't check if rule is empty. Rule might consist of non empty
storage class, but in this case we only care about the placement
id.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: RGWRadosPutObj() fix need_to_process_attrs handling
Yehuda Sadeh [Wed, 16 Jan 2019 03:30:14 +0000 (19:30 -0800)]
rgw: RGWRadosPutObj() fix need_to_process_attrs handling

Set need_to_process_attrs anyway, and not only if have extra_data. This
can be triggered also in cases where we get error response, in which case
there's no extra data. Make sure it's only getting called once.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: user info json encoding preserves storage_class state
Yehuda Sadeh [Wed, 16 Jan 2019 03:28:11 +0000 (19:28 -0800)]
rgw: user info json encoding preserves storage_class state

This is needed for meta sync. Otherwise one zone would have storage_class
not set, and the other zone would have it set.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agoqa/rgw/tempest: either force os_type or select random distro
Yehuda Sadeh [Tue, 15 Jan 2019 00:54:11 +0000 (16:54 -0800)]
qa/rgw/tempest: either force os_type or select random distro

Fixes: https://tracker.ceph.com/issues/37885
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agoqa/rgw_multi: adjust structure for new zone config
Yehuda Sadeh [Mon, 14 Jan 2019 16:50:23 +0000 (08:50 -0800)]
qa/rgw_multi: adjust structure for new zone config

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: sanitize header attributes
Yehuda Sadeh [Thu, 10 Jan 2019 17:45:42 +0000 (09:45 -0800)]
rgw: sanitize header attributes

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agoqa/rgw: support for storage classes
Yehuda Sadeh [Thu, 10 Jan 2019 01:16:15 +0000 (17:16 -0800)]
qa/rgw: support for storage classes

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: clean up generic attribute val
Yehuda Sadeh [Wed, 9 Jan 2019 03:40:46 +0000 (19:40 -0800)]
rgw: clean up generic attribute val

There are cases where we keep/kept attributes value with a null termination,
which bufferlist.to_str() returns as part of the string and returned
headers are broken.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agotest/cli: fix radosgw-admin cli test
Yehuda Sadeh [Tue, 8 Jan 2019 23:08:14 +0000 (15:08 -0800)]
test/cli: fix radosgw-admin cli test

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agoqa/ragweed: change the way we determine which ragweed branch to use
Yehuda Sadeh [Tue, 8 Jan 2019 03:04:25 +0000 (19:04 -0800)]
qa/ragweed: change the way we determine which ragweed branch to use

 - if force-branch, use that
 - otherwise:
    - read default-branch from client config
    - use suite branch or ceph branch if suite branch is not defined
    - if this branch is one of official releases (or master), prefix
      it with 'ceph-'

try to clone branch specified above, if failed (branch doesn't exist probably)
and not force-branch, use default-branch.
Also add an option to override ragweed repo.

Switched all force-branch from ragweed qa suite to default-branch.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: get layout rest op: fix last tail object size
Yehuda Sadeh [Mon, 7 Jan 2019 23:56:46 +0000 (15:56 -0800)]
rgw: get layout rest op: fix last tail object size

This triggered an issue in ragweed

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: fix generic obj attrs to http headers
Yehuda Sadeh [Sat, 5 Jan 2019 18:24:34 +0000 (10:24 -0800)]
rgw: fix generic obj attrs to http headers

use bl.to_str() instead of bl.c_str() to avoid encoding of the null
termination.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: fix check for no storage_class specified in obj copy
Yehuda Sadeh [Sat, 5 Jan 2019 03:41:08 +0000 (19:41 -0800)]
rgw: fix check for no storage_class specified in obj copy

S3 doesn't allow copying object into itself if it doesn't modify
attributes. Need to check that the object's storage class changes
but we only have that info later, so code rearranged a bit to
allow that.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw-admin: don't allow configuring zone placement if not configured in zonegroup
Yehuda Sadeh [Sat, 5 Jan 2019 01:27:21 +0000 (17:27 -0800)]
rgw-admin: don't allow configuring zone placement if not configured in zonegroup

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw-admin: rework storage class zone config
Yehuda Sadeh [Sat, 5 Jan 2019 00:59:09 +0000 (16:59 -0800)]
rgw-admin: rework storage class zone config

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: use dest placement for compression type
Yehuda Sadeh [Fri, 4 Jan 2019 22:46:39 +0000 (14:46 -0800)]
rgw: use dest placement for compression type

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: remove a warning
Yehuda Sadeh [Fri, 4 Jan 2019 21:27:26 +0000 (13:27 -0800)]
rgw: remove a warning

No need for warning, rgw_placement_rule is being read as a string
and backward compatible.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: fetch_remote_obj() supports placement rule
Yehuda Sadeh [Fri, 4 Jan 2019 21:19:42 +0000 (13:19 -0800)]
rgw: fetch_remote_obj() supports placement rule

placement rule is optional, and if not provided will use the storage_class of
the source object that is being fetched (if possible).

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: api adjustments following rebase
Yehuda Sadeh [Fri, 4 Jan 2019 02:59:52 +0000 (18:59 -0800)]
rgw: api adjustments following rebase

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: lifecycle: do filter checks later
Yehuda Sadeh [Fri, 4 Jan 2019 01:36:54 +0000 (17:36 -0800)]
rgw: lifecycle: do filter checks later

Filter checks (currently only tags checks) need to access the objects
themselves, while the action checks don't. Make action checks happen first
to avoid unnecessary rados operations if objects don't pass action checks.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: lifecycle: support for noncurrent transition
Yehuda Sadeh [Fri, 4 Jan 2019 01:14:59 +0000 (17:14 -0800)]
rgw: lifecycle: support for noncurrent transition

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: lifecycle: current obj transitions
Yehuda Sadeh [Thu, 3 Jan 2019 01:43:44 +0000 (17:43 -0800)]
rgw: lifecycle: current obj transitions

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: lifecycle: use unmod_since when deleting obj
Yehuda Sadeh [Wed, 2 Jan 2019 23:10:33 +0000 (15:10 -0800)]
rgw: lifecycle: use unmod_since when deleting obj

To avoid a race. Also use the op object ctx to avoid reading object
head again (if read previously), and consolidate the different
removal calls.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: lifecycle: fixes, some useful logging
Yehuda Sadeh [Wed, 2 Jan 2019 01:48:48 +0000 (17:48 -0800)]
rgw: lifecycle: fixes, some useful logging

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: tighter lifecycle processing
Yehuda Sadeh [Fri, 21 Dec 2018 07:28:44 +0000 (23:28 -0800)]
rgw: tighter lifecycle processing

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: lifecycle: consolidate versioned and non-versioned operation
Yehuda Sadeh [Mon, 17 Dec 2018 15:00:36 +0000 (07:00 -0800)]
rgw: lifecycle: consolidate versioned and non-versioned operation

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: lifecycle: rework listing iteration
Yehuda Sadeh [Mon, 17 Dec 2018 14:17:02 +0000 (06:17 -0800)]
rgw: lifecycle: rework listing iteration

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: lifecycle: some code cleanup
Yehuda Sadeh [Mon, 17 Dec 2018 11:48:31 +0000 (03:48 -0800)]
rgw: lifecycle: some code cleanup

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: lifecycle and xml parser fixes
Yehuda Sadeh [Sat, 10 Nov 2018 01:37:15 +0000 (17:37 -0800)]
rgw: lifecycle and xml parser fixes

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: rework lifecycle parsing
Yehuda Sadeh [Fri, 2 Nov 2018 00:54:42 +0000 (17:54 -0700)]
rgw: rework lifecycle parsing

Use new style xml parsing, instead of inheriting from XMLParser.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: move check_date place
Zhang Shaowen [Wed, 25 Jul 2018 04:36:40 +0000 (12:36 +0800)]
rgw: move check_date place

Signed-off-by: Zhang Shaowen <zhangshaowen@cmss.chinamobile.com>
6 years agorgw: remove enum defination for storage class.
Zhang Shaowen [Wed, 25 Jul 2018 04:25:53 +0000 (12:25 +0800)]
rgw: remove enum defination for storage class.

Signed-off-by: Zhang Shaowen <zhangshaowen@cmss.chinamobile.com>
6 years agorgw: support object transition in lifecycle config set.
Zhang Shaowen [Mon, 23 Jul 2018 09:43:18 +0000 (17:43 +0800)]
rgw: support object transition in lifecycle config set.

Signed-off-by: Zhang Shaowen <zhangshaowen@cmss.chinamobile.com>
6 years agorgw: check that placement rule is valid if bucket exists
Yehuda Sadeh [Wed, 31 Oct 2018 22:16:28 +0000 (15:16 -0700)]
rgw: check that placement rule is valid if bucket exists

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: prevent creation of bucket with non-existent storage class
Yehuda Sadeh [Wed, 31 Oct 2018 20:22:48 +0000 (13:22 -0700)]
rgw: prevent creation of bucket with non-existent storage class

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: don't try to read beyong object size
Yehuda Sadeh [Thu, 25 Oct 2018 22:32:16 +0000 (15:32 -0700)]
rgw: don't try to read beyong object size

Otherwise even if we prefetch all the data, we'd try to issue another
request to read the rest of the object.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: tiering: encode standard storage_class in rule explicitly
Yehuda Sadeh [Thu, 25 Oct 2018 22:28:57 +0000 (15:28 -0700)]
rgw: tiering: encode standard storage_class in rule explicitly

If it's standard storage class, don't avoid encoding it,
otherwise we can't know if it was set or not.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: tiering: add support for multipart uploads
Yehuda Sadeh [Fri, 12 Oct 2018 17:36:18 +0000 (10:36 -0700)]
rgw: tiering: add support for multipart uploads

Encode multipart info structure in the upload meta object,
store the storage_cass info there. Use the storage class
that was set on upload init when uploading all the parts,
and when completing the upload.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: tighten storage_class assignment
Yehuda Sadeh [Thu, 11 Oct 2018 22:09:27 +0000 (15:09 -0700)]
rgw: tighten storage_class assignment

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: fix storage_class in rgw_bucket_dir_entry_meta::dump
yuliyang [Wed, 17 Oct 2018 00:38:57 +0000 (08:38 +0800)]
rgw: fix storage_class in rgw_bucket_dir_entry_meta::dump

Signed-off-by: yuliyang <yuliyang@cmss.chinamobile.com>
6 years agorgw, cls_rgw: propagate storage class to the index
Yehuda Sadeh [Wed, 10 Oct 2018 23:55:45 +0000 (16:55 -0700)]
rgw, cls_rgw: propagate storage class to the index

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: copy_obj() inherit dest rule from default bucket rule
Yehuda Sadeh [Wed, 10 Oct 2018 22:09:50 +0000 (15:09 -0700)]
rgw: copy_obj() inherit dest rule from default bucket rule

Otherwise it can be empty, in which case we'll always copy data, even
if rule doesn't change.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: set dest placement rule when copying object
Yehuda Sadeh [Wed, 10 Oct 2018 21:10:19 +0000 (14:10 -0700)]
rgw: set dest placement rule when copying object

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: blacklist x-amz-storage-class header
Yehuda Sadeh [Wed, 10 Oct 2018 00:42:48 +0000 (17:42 -0700)]
rgw: blacklist x-amz-storage-class header

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: data obj synchronous read, use correct ioctx
Yehuda Sadeh [Wed, 10 Oct 2018 00:25:28 +0000 (17:25 -0700)]
rgw: data obj synchronous read, use correct ioctx

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: encode dest storage_class when copying object
Yehuda Sadeh [Wed, 10 Oct 2018 00:22:52 +0000 (17:22 -0700)]
rgw: encode dest storage_class when copying object

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: use bl.to_str() and not bl.c_str()
Yehuda Sadeh [Wed, 10 Oct 2018 00:22:25 +0000 (17:22 -0700)]
rgw: use bl.to_str() and not bl.c_str()

can't rely on bufferlist to be null terminated

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw-admin: clean dumped attrs
Yehuda Sadeh [Wed, 10 Oct 2018 00:20:01 +0000 (17:20 -0700)]
rgw-admin: clean dumped attrs

don't show terminating null chars

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: tiering fixes
Yehuda Sadeh [Tue, 9 Oct 2018 00:28:41 +0000 (17:28 -0700)]
rgw: tiering fixes

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agotest/rgw: api fixes
Yehuda Sadeh [Tue, 7 Aug 2018 00:07:14 +0000 (17:07 -0700)]
test/rgw: api fixes

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: propagate storage class to manifest generator
Yehuda Sadeh [Tue, 26 Jun 2018 01:29:14 +0000 (18:29 -0700)]
rgw: propagate storage class to manifest generator

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: more storage class data structure changes
Yehuda Sadeh [Fri, 22 Jun 2018 02:25:15 +0000 (19:25 -0700)]
rgw: more storage class data structure changes

storage class also handles compression info

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: add support for storage class
Yehuda Sadeh [Fri, 15 Jun 2018 01:17:01 +0000 (18:17 -0700)]
rgw: add support for storage class

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: object write processors use tail placement rule
Yehuda Sadeh [Wed, 13 Jun 2018 22:34:42 +0000 (15:34 -0700)]
rgw: object write processors use tail placement rule

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agoMerge pull request #25674 from alfredodeza/wip-rm37442
Alfredo Deza [Thu, 3 Jan 2019 18:44:06 +0000 (13:44 -0500)]
Merge pull request #25674 from alfredodeza/wip-rm37442

ceph-volume normalize comma to dot for string to int conversions

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
6 years agoMerge PR #24635 into master
Patrick Donnelly [Thu, 3 Jan 2019 18:15:31 +0000 (10:15 -0800)]
Merge PR #24635 into master

* refs/pull/24635/head:
test: add scrub control command tests
mds: scrub abort/pause/resume/status control commands
test: switch using "scrub start" tell interface to initiate scrub
mds: introduce "scrub start" tell interface to initiate scrub
mds: dump scrub formatted output when context completion
mds: generate random scrub tag when empty
mds: introduce C_ExecAndReply context completion class
mds: use CInode::scrub_is_in_progress() wherever required

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Zheng Yan <zyan@redhat.com>
6 years agoMerge pull request #25473 from theanalyst/rgw/version-copy-fix
Matt Benjamin [Thu, 3 Jan 2019 15:42:31 +0000 (10:42 -0500)]
Merge pull request #25473 from theanalyst/rgw/version-copy-fix

rgw: fix versioned obj copy generating tags

6 years agoMerge pull request #25761 from tchaikov/wip-qa-health-schema
Kefu Chai [Thu, 3 Jan 2019 15:15:45 +0000 (23:15 +0800)]
Merge pull request #25761 from tchaikov/wip-qa-health-schema

mgr/dashboard: updated API test to reflect changes in ModuleInfo

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge PR #25736 into master
Sage Weil [Thu, 3 Jan 2019 15:03:39 +0000 (09:03 -0600)]
Merge PR #25736 into master

* refs/pull/25736/head:
common/options: document some osd/rados options
unittest_osdmap: feed options as defaults
mon/OSDMonitor: allow osd_pool_default_pgp_num to be 0

Reviewed-by: Neha Ojha <nojha@redhat.com>
6 years agoMerge pull request #25766 from tchaikov/wip-rgw-readdir-flags
Kefu Chai [Thu, 3 Jan 2019 15:01:29 +0000 (23:01 +0800)]
Merge pull request #25766 from tchaikov/wip-rgw-readdir-flags

pybind/rgw: pass the flags to callback function

Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
6 years agoMerge pull request #25635 from rhcs-dashboard/36740-pool-stats-disabled-by-default
Kefu Chai [Thu, 3 Jan 2019 14:45:54 +0000 (22:45 +0800)]
Merge pull request #25635 from rhcs-dashboard/36740-pool-stats-disabled-by-default

mgr/dashboard: pool stats not returned by default

Reviewed-by: Volker Theile <vtheile@suse.com>
6 years agoMerge PR #25528 into master
Patrick Donnelly [Thu, 3 Jan 2019 14:43:29 +0000 (06:43 -0800)]
Merge PR #25528 into master

* refs/pull/25528/head:
mds: log evicted clients to clog/dbg

Reviewed-by: Zheng Yan <zyan@redhat.com>
6 years agoMerge pull request #24845 from pritha-srivastava/wip-rgw-assume-role-fixes
Casey Bodley [Thu, 3 Jan 2019 14:24:58 +0000 (09:24 -0500)]
Merge pull request #24845 from pritha-srivastava/wip-rgw-assume-role-fixes

rgw: Minor fixes to AssumeRole for boto compliance.

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
6 years agoMerge pull request #25180 from pritha-srivastava/wip-rgw-user-policy-fixes
Casey Bodley [Thu, 3 Jan 2019 14:22:36 +0000 (09:22 -0500)]
Merge pull request #25180 from pritha-srivastava/wip-rgw-user-policy-fixes

rgw: Fixes to permission evaluation related to user policies.

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #25659 from Linbing/wip-fixup-read-deadlock
Kefu Chai [Thu, 3 Jan 2019 14:06:27 +0000 (22:06 +0800)]
Merge pull request #25659 from Linbing/wip-fixup-read-deadlock

os/bluestore: fixup access a destroy cond cause deadlock or undefine behavior

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge PR #25673 into master
Sage Weil [Thu, 3 Jan 2019 13:23:57 +0000 (07:23 -0600)]
Merge PR #25673 into master

* refs/pull/25673/head:
mon/Monitor: quorum_age in JSON output as int, not string

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoqa/mgr: add "module_options" to module_info_schema 25761/head
Kefu Chai [Thu, 3 Jan 2019 03:02:26 +0000 (11:02 +0800)]
qa/mgr: add "module_options" to module_info_schema

it was introduced in 280c23ba. so update the schema test accordingly

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agopybind/rgw: pass the flags to callback function 25766/head
Kefu Chai [Thu, 3 Jan 2019 11:00:19 +0000 (19:00 +0800)]
pybind/rgw: pass the flags to callback function

before this change, the `flags` parameter passed to `LibRGWFS.readdir()`
will be dropped on the floor and ignored.
after this change, it will be passed to the specified callback function.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #25580 from cyx1231st/wip-crimson-msgr-logging
Kefu Chai [Thu, 3 Jan 2019 09:09:09 +0000 (17:09 +0800)]
Merge pull request #25580 from cyx1231st/wip-crimson-msgr-logging

crimson/net: fix addresses during banner exchange

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agocrimson/net: fix address learning during banner exchange 25580/head
Yingxin [Mon, 17 Dec 2018 13:51:49 +0000 (21:51 +0800)]
crimson/net: fix address learning during banner exchange

* Don't store my_addr in `Connection`, because my_addr can be learned
  and thus changed.
* Support nonce in SocketMessenger.
* Always set nonce when set_myaddr().
* Add learned_addr() for SocketMessenger.
* Add side_t and socket_port to show the real connecting
  ports of the SocketConnection.
* Fix bannder exchange logic for addresses, including nonce, type, ip,
  port, socket_port for my_addr and peer_addr.
* Add more detailed logging prefixes for SocketConnection.

Signed-off-by: Yingxin <yingxin.cheng@intel.com>
6 years agocrimson/net: add logic_name to indicate the msgr role for debugging
Yingxin [Tue, 25 Dec 2018 06:02:56 +0000 (14:02 +0800)]
crimson/net: add logic_name to indicate the msgr role for debugging

Signed-off-by: Yingxin <yingxin.cheng@intel.com>
6 years agocrimson/net: add basic loggings for SocketConnection
Yingxin [Tue, 25 Dec 2018 06:01:54 +0000 (14:01 +0800)]
crimson/net: add basic loggings for SocketConnection

Signed-off-by: Yingxin <yingxin.cheng@intel.com>
6 years agoMerge pull request #25757 from gregsfortytwo/wip-doc-put-warning
Kefu Chai [Thu, 3 Jan 2019 06:21:00 +0000 (14:21 +0800)]
Merge pull request #25757 from gregsfortytwo/wip-doc-put-warning

doc: warn about how 'rados put' works in the manpage

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #25706 from joscollin/wip-build-doc-librados
Kefu Chai [Thu, 3 Jan 2019 06:18:42 +0000 (14:18 +0800)]
Merge pull request #25706 from joscollin/wip-build-doc-librados

librados: fix admin/build-doc warning

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #25734 from tchaikov/wip-mgr-default-options
Kefu Chai [Thu, 3 Jan 2019 06:12:54 +0000 (14:12 +0800)]
Merge pull request #25734 from tchaikov/wip-mgr-default-options

mgr: define option defaults for MgrStandbyModule as well

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #25735 from wjwithagen/wjw-fix-WRITE_LIFE
Kefu Chai [Thu, 3 Jan 2019 06:12:02 +0000 (14:12 +0800)]
Merge pull request #25735 from wjwithagen/wjw-fix-WRITE_LIFE

os/bluestore: Only use WRITE_LIFE_ when available

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #25746 from tchaikov/wip-pg-autoscale-mode
Kefu Chai [Thu, 3 Jan 2019 06:10:15 +0000 (14:10 +0800)]
Merge pull request #25746 from tchaikov/wip-pg-autoscale-mode

osd/OSDMap: set pg_autoscale_mode with setting from conf

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #25588 from tchaikov/wip-auth-silence-gcc-warning
Kefu Chai [Thu, 3 Jan 2019 06:09:20 +0000 (14:09 +0800)]
Merge pull request #25588 from tchaikov/wip-auth-silence-gcc-warning

cls/rbd: init local var with known value

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-By: Casey Bodley <cbodley@redhat.com>
6 years agoqa/mgr: extract module_info_schema and reused it
Kefu Chai [Thu, 3 Jan 2019 03:00:31 +0000 (11:00 +0800)]
qa/mgr: extract module_info_schema and reused it

both standby mgr and active mgr have this sub-schema. so extract it out
and reuse it.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocls/rbd: init local var with known value 25588/head
Kefu Chai [Thu, 20 Dec 2018 03:24:28 +0000 (11:24 +0800)]
cls/rbd: init local var with known value

DirectoryState does not have an "invalid" enum so far, since it's
defined using `enum class`, init a value of this type with a known value
could be a better choice even it is always initialized before being read.

this silences the GCC warning of:

src/cls/rbd/cls_rbd.cc:3147:3: warning: ‘on_disk_directory_state’ may be
used uninitialized in this function [-Wmaybe-uninitialized]
   if (directory_state != on_disk_directory_state) {
   ^~

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #25687 from tchaikov/wip-pg-stats
Kefu Chai [Thu, 3 Jan 2019 01:41:46 +0000 (09:41 +0800)]
Merge pull request #25687 from tchaikov/wip-pg-stats

osd/PrimaryLogPG: do not count failed read in delta_stats

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
6 years agodoc: warn about how 'rados put' works in the manpage 25757/head
Greg Farnum [Wed, 2 Jan 2019 23:00:25 +0000 (15:00 -0800)]
doc: warn about how 'rados put' works in the manpage

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
6 years agoMerge pull request #25705 from joscollin/wip-doc-common
Gregory Farnum [Wed, 2 Jan 2019 22:21:28 +0000 (14:21 -0800)]
Merge pull request #25705 from joscollin/wip-doc-common

doc: Fix Create a Cluster url in Running Multiple Clusters

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
6 years agoMerge pull request #25450 from ivancich/wip-rgw-category-cleanup
J. Eric Ivancich [Wed, 2 Jan 2019 22:00:28 +0000 (17:00 -0500)]
Merge pull request #25450 from ivancich/wip-rgw-category-cleanup

rgw: clean-up -- use enum class for stats category

Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
6 years agorgw: clean-up -- remove unnessary "struct"s 25450/head
J. Eric Ivancich [Thu, 13 Dec 2018 20:55:20 +0000 (15:55 -0500)]
rgw: clean-up -- remove unnessary "struct"s

In C++ "struct" is unnecessary when referencing a defined
struct. Clean up all uses in src/cls/rgw source files.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
6 years agorgw: clean-up use enum class for stats category
J. Eric Ivancich [Wed, 5 Dec 2018 15:18:22 +0000 (10:18 -0500)]
rgw: clean-up use enum class for stats category

The stats entries for rgw buckets has a category, which used a
combination of uint8_t and enum RGWObjClass. Clean this up by
converting RGWObjClass to an enum class and using that
throughout. This provides type safety and better code clarity. Also,
add some source code documentation.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
6 years agoceph-volume tests.util ensure ints and strings with commas can be converted to ints 25674/head
Alfredo Deza [Wed, 2 Jan 2019 19:18:14 +0000 (14:18 -0500)]
ceph-volume tests.util ensure ints and strings with commas can be converted to ints

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume test verify strings with a comma can be converted to ints
Alfredo Deza [Fri, 21 Dec 2018 20:26:39 +0000 (15:26 -0500)]
ceph-volume test verify strings with a comma can be converted to ints

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume util normalize comma with dot for str-to-int conversion
Alfredo Deza [Fri, 21 Dec 2018 20:24:25 +0000 (15:24 -0500)]
ceph-volume util normalize comma with dot for str-to-int conversion

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoMerge pull request #24676 from TheJJ/cryptsetup-allow-discards
Alfredo Deza [Wed, 2 Jan 2019 18:23:21 +0000 (13:23 -0500)]
Merge pull request #24676 from TheJJ/cryptsetup-allow-discards

ceph-volume: enable device discards

Reviewed-by: Alfredo Deza <adeza@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
6 years agocommon/options: document some osd/rados options 25736/head
Sage Weil [Tue, 1 Jan 2019 22:37:04 +0000 (16:37 -0600)]
common/options: document some osd/rados options

Many of these are actually on the mon.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agounittest_osdmap: feed options as defaults
Sage Weil [Wed, 2 Jan 2019 17:40:22 +0000 (11:40 -0600)]
unittest_osdmap: feed options as defaults

We can't change some of these at runtime due to FLAG_CREATE.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoosd/OSDMap: set pg_autoscale_mode with setting from conf 25746/head
Kefu Chai [Wed, 2 Jan 2019 16:20:13 +0000 (00:20 +0800)]
osd/OSDMap: set pg_autoscale_mode with setting from conf

* update build_simple_optioned() to set pg_autoscale_mode with the setting
  read from conf, otherwise it will be a random value in heap.
* update cli test accordingly, otherwise we will have

/home/jenkins-build/build/workspace/ceph-pull-requests/src/test/cli/osdmaptool/create-racks.t:
failed
---
/home/jenkins-build/build/workspace/ceph-pull-requests/src/test/cli/osdmaptool/create-racks.t
+++
/home/jenkins-build/build/workspace/ceph-pull-requests/src/test/cli/osdmaptool/create-racks.t.err
@@ -796,7 +796,7 @@
   nearfull_ratio 0
   min_compat_client jewel

-  pool 1 'rbd' replicated size 3 min_size 2 crush_rule 0 object_hash
rjenkins pg_num 15296 pgp_num 15296 last_change 0 flags hashpspool
stripe_width 0 application rbd
+  pool 1 'rbd' replicated size 3 min_size 2 crush_rule 0 object_hash
rjenkins pg_num 15296 pgp_num 15296 autoscale_mode ??? last_change 0
flags hashpspool stripe_width 0 application rbd

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #25441 from theanalyst/decode-refcount-types
Kefu Chai [Wed, 2 Jan 2019 16:45:50 +0000 (00:45 +0800)]
Merge pull request #25441 from theanalyst/decode-refcount-types

cls: refcount: add obj_refcount to ceph-dencoder

Reviewed-By: Casey Bodley <cbodley@redhat.com>
6 years agoceph-volume: enable device discards 24676/head
Jonas Jelten [Fri, 19 Oct 2018 13:15:03 +0000 (15:15 +0200)]
ceph-volume: enable device discards

When using SSDs as encrypted OSD device, discards do not pass the
encryption layer. This option activates discard requests.

Signed-off-by: Jonas Jelten <jj@stusta.net>