Commit Graph

90562 Commits

Author SHA1 Message Date
yuliyang
3275dffa45 rgw: website routing rules num limit
According to AWS S3 , an website routing rules can
have up to 50 rules.

Signed-off-by: yuliyang <yuliyang@cmss.chinamobile.com>
2018-09-20 08:50:32 +08:00
Neha Ojha
38ef3da8d2 qa: install build dependencies for cfuse_workunit_kernel_untar_build.yaml
Fixes: https://tracker.ceph.com/issues/36076
Signed-off-by: Neha Ojha <nojha@redhat.com>
2018-09-19 15:22:16 -07:00
Alfredo Deza
0a16dbd7a8 ceph-volume lvm.batch add sizing flags for journal and block.db LVs
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-09-19 17:08:16 -04:00
Ricardo Marques
20cfc0212a
Merge pull request #23779 from Devp00l/wip-table-actions-component
mgr/dashboard: Add table actions component

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2018-09-19 20:51:41 +01:00
Jason Dillaman
e8eee15518 librbd: use the correct error code when the exclusive lock isn't locked
If the client is currently blacklisted, use -EBLACKLISTED, otherwise
use -EROFS.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-09-19 15:03:02 -04:00
Jason Dillaman
a84fbb2565 librbd: helper to retrieve the correct error code for read-only op
When the exclusive lock is unlocked, the error code should be
-EBLACKLISTED when the client is blacklisted, otherwise -EROFS.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-09-19 14:52:48 -04:00
Jason Dillaman
2057d99f45 librbd: reacquire lock should properly handle failed watcher
If the watch has been lost, assume the lock has been lost but attempt
to reacquire it if and when the watch is re-established.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-09-19 14:52:48 -04:00
Jason Dillaman
b4fc7b520a librbd: fix improper indentation of 'ceph_assert' statements
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-09-19 14:52:48 -04:00
Jason Dillaman
60064f68f5 librbd: assume lock is unlocked if blacklisted or object deleted
This will ensure that it's possible to potentially re-acquire the
lock should the blacklist expire before the image is closed.

Fixes: http://tracker.ceph.com/issues/34534
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-09-19 14:52:48 -04:00
Jason Dillaman
9ea94f2840 librbd: watcher should internally track blacklisted state
Since it will periodically attempt to re-acquire the watch,
it will know when the RADOS client has been blacklisted and
when the blacklist has been removed.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-09-19 14:52:48 -04:00
Jason Dillaman
23b7447f6b librbd: attempt to recover lost image watcher upon all failures
For example, if an image is blacklisted and the blacklist eventually
expires, the image should recover its watch.

Fixes: http://tracker.ceph.com/issues/34534
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-09-19 14:52:48 -04:00
Sage Weil
41c67ab1be
Merge pull request #24160 from jdurgin/wip-rados-lead
doc/dev/index: update rados lead

Reviewed-by: Sage Weil <sage@redhat.com>
2018-09-19 13:45:32 -05:00
Jason Dillaman
bbdc545ec1 rbd-mirror: instantiate the status formatter before changing state
This will avoid a possible race between pre-queued status updates
firing between the time the state has been changed and the formatter
has been instantiated.

Fixes: http://tracker.ceph.com/issues/36084
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-09-19 14:27:24 -04:00
Mykola Golub
ce6e35a81e
Merge pull request #23662 from dillaman/wip-24412
librbd: support v2 cloning across namespaces

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Mykola Golub <mgolub@suse.com>
Reviewed-by: songweibin <song.weibin@zte.com.cn>
2018-09-19 21:20:58 +03:00
Casey Bodley
bd6d3f61e1
Merge pull request #24059 from cbodley/wip-rgw-opstate-rm
rgw, cls: remove cls_statelog and rgw opstate tracking

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2018-09-19 14:01:04 -04:00
Yuri Weinstein
eaca188733 qa/tests: removed knfs suite
Fixes: http://tracker.ceph.com/issues/36075
Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
2018-09-19 09:36:34 -07:00
Sage Weil
fe14970768 Merge PR #24143 into master
* refs/pull/24143/head:
	qa/workunits/cephtool/test_kvstore_tool.sh: run test in ., not /tmp

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2018-09-19 10:41:04 -05:00
Stephan Müller
62b85cc9a2 mgr/dashboard: Use table actions component for roles
Signed-off-by: Stephan Müller <smueller@suse.com>
2018-09-19 17:17:01 +02:00
Stephan Müller
9d9e093e1d mgr/dashboard: Use table actions component for users
Signed-off-by: Stephan Müller <smueller@suse.com>
2018-09-19 17:17:00 +02:00
Stephan Müller
e5e47fb454 mgr/dashboard: Add HTML coverage reports
Signed-off-by: Stephan Müller <smueller@suse.com>
2018-09-19 17:16:59 +02:00
Stephan Müller
f8a41efc59 mgr/dashboard: Fixes ts warning in RBD snapshot tests
Typescript has thrown an warning because a private method is called in the
RBD snapshot unit tests.

Signed-off-by: Stephan Müller <smueller@suse.com>
2018-09-19 17:16:58 +02:00
Stephan Müller
f4dc187191 mgr/dashboard: Use table actions component for RBD snapshots
Signed-off-by: Stephan Müller <smueller@suse.com>
2018-09-19 17:16:57 +02:00
Stephan Müller
46a8ea6789 mgr/dashboard: Use table actions component for OSDs
Signed-off-by: Stephan Müller <smueller@suse.com>
2018-09-19 17:16:56 +02:00
Casey Bodley
eac80144c8
Merge pull request #24007 from tianshan/fix_35905
rgw: async sync_object and remove_object does not access coroutine me…

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2018-09-19 10:50:06 -04:00
Casey Bodley
7219d19280
Merge pull request #23610 from XiangxiangMeng/fix-rgw-bucket-policy
rgw: policy: fix s3:x-amz-grant-read-acp keyword error

Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
2018-09-19 10:47:42 -04:00
Lenz Grimmer
01c2ea52c1
Merge pull request #24128 from ricardoasmarques/wip-optional-user-password
mgr/dashboard: User password should be optional

Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
2018-09-19 16:44:51 +02:00
Sage Weil
b567d183d5 Merge PR #24145 into master
* refs/pull/24145/head:
	qa/workunits/mon/caps.sh: wait longer to time out

Reviewed-by: João Eduardo Luís <joao@suse.de>
2018-09-19 09:40:24 -05:00
Casey Bodley
c7a8daf0a9
Merge pull request #23544 from joke-lee/wip-multiobjdelete-num-limit
rgw: delete multi object num limit

Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
2018-09-19 10:37:38 -04:00
Casey Bodley
8d69e90531
Merge pull request #24001 from joke-lee/doc_life_cycle
rgw: update cls_rgw.cc and cls_rgw_const.h

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2018-09-19 10:36:58 -04:00
Casey Bodley
f54d8e33ba
Merge pull request #24114 from robbat2/wip-35990
rgw: fix chunked-encoding for chunks >1MiB

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2018-09-19 10:35:57 -04:00
Casey Bodley
740c522e94
Merge pull request #24110 from cbodley/wip-35986
rgw: abort_bucket_multiparts() ignores individual NoSuchUpload errors

Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
2018-09-19 10:34:35 -04:00
Casey Bodley
dd5e9cde27 cls: remove cls_statelog and tests
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2018-09-19 10:32:55 -04:00
Casey Bodley
d897b92878 osd: remove statelog from osd_class_load_list config
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2018-09-19 10:32:55 -04:00
Casey Bodley
4cf38b90d3 common: remove config variables related to rgw opstate
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2018-09-19 10:32:55 -04:00
Casey Bodley
8203e42181 rgw: remove dependencies on cls_statelog
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2018-09-19 10:32:55 -04:00
Casey Bodley
b1bff84a33 rgw: remove RGWOpState and related classes
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2018-09-19 10:32:55 -04:00
Casey Bodley
5cb54ecf87 radosgw-admin: remove opstate commands
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2018-09-19 10:32:55 -04:00
Casey Bodley
efec3c0edd test/rgw: remove test for /admin/opstate rest apis
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2018-09-19 10:32:55 -04:00
Casey Bodley
0b55393c5d rgw: remove rest handlers for /admin/opstate
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2018-09-19 10:32:52 -04:00
Casey Bodley
2760e44002 rgw: remove unused opstate params from copy/fetch/stat
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2018-09-19 10:32:36 -04:00
Casey Bodley
d170e35b3b rgw: remove opstate tracking from fetch_remote_obj()
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2018-09-19 10:32:36 -04:00
Casey Bodley
d32266100a
Merge pull request #18578 from gaosibei/wip-cleanup-duplicate-include
RGW: remove duplicate include header files in rgw_rados.cc

Reviewed-by: Amit Kumar <amitkuma@redhat.com>
Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
2018-09-19 10:27:29 -04:00
Casey Bodley
cfc3d64a4c
Merge pull request #23927 from joke-lee/WIP-RGW-x-amz-version-id
rgw: return x-amz-version-id: null when delete obj in versioning suspended bucket

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2018-09-19 10:22:49 -04:00
Stephan Müller
8b74ec78d9 mgr/dashboard: Use table actions component for RGW users
Signed-off-by: Stephan Müller <smueller@suse.com>
2018-09-19 15:00:51 +02:00
Stephan Müller
980d7e951c mgr/dashboard: Use table actions component for RGW buckets
Signed-off-by: Stephan Müller <smueller@suse.com>
2018-09-19 15:00:51 +02:00
Stephan Müller
d173446bb8 mgr/dashboard: Use table actions component for RBDs
Signed-off-by: Stephan Müller <smueller@suse.com>
2018-09-19 15:00:51 +02:00
Stephan Müller
ef7a0de5cb mgr/dashboard: Add table actions component
With the help of this component it is easy to create all actions for a
table with the right permission for each table action with a simple
configuration.

Per default action button and action drop down list are shown. All
actions will be filtered depending on the permissions on
initialization. Per default all actions that have the permission
'update' or 'delete' are only enabled if an item is selected which
holds no running task.

You can use change the default behavior, to show actions only in a
named drop down.
For each item you can change it's default behaviors by using custom
functions to enable/disable an action or show/hide it
as action button or drop down item.

Please look at the tests to understand how to use it in practice.

Signed-off-by: Stephan Müller <smueller@suse.com>
2018-09-19 15:00:51 +02:00
Ricardo Marques
49ba4a7b84 mgr/dashboard: User password should be optional
Fixes: https://tracker.ceph.com/issues/36031

Signed-off-by: Ricardo Marques <rimarques@suse.com>
2018-09-19 13:49:22 +01:00
Ricardo Dias
e6f043f7d2
msgr/async: huge refactoring of protocol V1
This huge commit extracts the protocol V1 logic from the AsyncConnection
class into its own class called ProtocolV1.
The new protocol class extends from a Protocol base class that defines
an interface to allow the implementation of different wire protocols
in the future, such as the msgr V2 protocol.

Signed-off-by: Ricardo Dias <rdias@suse.com>
2018-09-19 13:47:48 +01:00
Ricardo Dias
fed335ff47
msgr/async: fix forward declaration of DispatchQueue
Signed-off-by: Ricardo Dias <rdias@suse.com>
2018-09-19 13:40:23 +01:00