Ricardo Dias
08cee16d0a
pybind/rbd: always parse timestamps in UTC
...
Fixes: http://tracker.ceph.com/issues/23609
Signed-off-by: Ricardo Dias <rdias@suse.com>
2018-04-09 15:55:32 +01:00
Ricardo Dias
e127ec64b4
pybind/rbd: add data_pool_id()
image function
...
Fixes: http://tracker.ceph.com/issues/23609
Signed-off-by: Ricardo Dias <rdias@suse.com>
2018-04-09 15:55:32 +01:00
Ricardo Dias
72dc17ce32
pybind/rbd: fix python 3 str to bytes problems
...
Fixes: http://tracker.ceph.com/issues/23609
Signed-off-by: Ricardo Dias <rdias@suse.com>
2018-04-09 15:55:31 +01:00
Sebastian Wagner
012be1dc86
qa/tasks/mgr/dashboard: Imroved JSON validation
...
Refactored `OsdTest` to make use of `self.assertSchema()`
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2018-04-09 16:42:33 +02:00
Radoslaw Zarzynski
e18088bce9
os/bluestore: fix and enhance misleading debug message in bdev.
...
Fixes: http://tracker.ceph.com/issues/23333
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2018-04-09 16:20:30 +02:00
Yehuda Sadeh
bfec9b3204
common/options: add otp to default osd class load list
...
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2018-04-09 07:02:17 -07:00
Yehuda Sadeh
0cf3e55c3c
rgw: mfa documentation
...
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2018-04-09 07:02:17 -07:00
Yehuda Sadeh
9569cc8278
qa/tasks/s3tests: configure mfa tests
...
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2018-04-09 07:02:17 -07:00
Yehuda Sadeh
46fbc9089b
rgw: require mfa only if mfa status actually changes
...
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2018-04-09 07:02:17 -07:00
Yehuda Sadeh
ada9b94849
rgw: add distro dependencies for liboath
...
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2018-04-09 07:02:17 -07:00
Yehuda Sadeh
3d6c08fb36
rgw: fixes following rebase
...
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2018-04-09 07:02:17 -07:00
Yehuda Sadeh
4d8a6b698a
cls/otp: fixes following review
...
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2018-04-09 07:02:17 -07:00
Yehuda Sadeh
d4691332c1
rgw, cls/otp: support for base32 seed type
...
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2018-04-09 07:02:17 -07:00
Yehuda Sadeh
6976202360
cls/otp, rgw-admin: use older liboath api, parse seed once
...
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2018-04-09 07:02:17 -07:00
Yehuda Sadeh
679913512b
cls/otp: preserve otp history when modifying it
...
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2018-04-09 07:01:48 -07:00
Yehuda Sadeh
7210b9dbfc
rgw-admin, cls/otp: get current time for otp resync from osd
...
add a new method to the otp objclass that returns the
current time.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2018-04-09 07:01:48 -07:00
Yehuda Sadeh
2c16041847
rgw-admin: add mfa resync command
...
$ radosgw-admin mfa resync --uid=<uid> --totp=serial=<serial> \
--totp-pin=<pin1> --totp-pin=<pin2>
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2018-04-09 07:01:48 -07:00
Yehuda Sadeh
dc36ec424c
rgw: cleanup
...
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2018-04-09 07:01:48 -07:00
Yehuda Sadeh
eb812e9393
cls/otp: integrate with liboath
...
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2018-04-09 07:01:48 -07:00
Yehuda Sadeh
85bd4183c3
rgw: set objv_tracker for metadata mutate
...
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2018-04-09 07:01:02 -07:00
Yehuda Sadeh
bcf3432f0a
rgw_admin: use metadata mutate for mfa updates
...
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2018-04-09 07:01:02 -07:00
Yehuda Sadeh
d05bf3ca97
rgw: better api for metadata mutation
...
Unlike the regular user and bucket metadata that are plain
raw rados objects, the otp info is controlled by object
class operations. The metadata manager mutate operation
will deal with the metadata related work that is needed
to happen (objv_tracker, update meta log), and call to
the operation that modifies the otp info.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2018-04-09 07:01:02 -07:00
Yehuda Sadeh
fbe7c01e00
rgw: tie otp meta get/put to meta log, objv_tracker
...
still need to have the radosgw-admin mfa tools to go through meta
instrumentation.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2018-04-09 07:01:02 -07:00
Yehuda Sadeh
45ee591d14
rgw: trivial implementation of otp meta handlers
...
Still not there yet. Need to tie into objv_tracker, and metadata log
tooling.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2018-04-09 07:01:02 -07:00
Yehuda Sadeh
0bf1fab731
cls/otp: client api to set multiple keys
...
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2018-04-09 07:01:02 -07:00
Yehuda Sadeh
6ec41bb95b
cls/otp: update header anyway, don't use omap header
...
Update header even if it might have existed. If running within a compound op
we might not identify it correctly.
Also don't use omap header api.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2018-04-09 07:01:02 -07:00
Yehuda Sadeh
bba8c519c6
rgw: initial work to add otp as metadata provider
...
To allow transparent multisite sync
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2018-04-09 07:01:02 -07:00
Yehuda Sadeh
2d5d024f27
rgw: fix mfa setting, verify on object deletion
...
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2018-04-09 07:01:02 -07:00
Yehuda Sadeh
0c0046e259
rgw: S3 get bucket versioning returns MFA status
...
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2018-04-09 07:01:02 -07:00
Yehuda Sadeh
981f194355
rgw: functionality to modify mfa entries in user metadata
...
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2018-04-09 07:01:02 -07:00
Yehuda Sadeh
3ab463f9f5
rgw-admin: new mfa control commands
...
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2018-04-09 07:01:02 -07:00
Yehuda Sadeh
956997cff9
rgw: add otp pool, create otp service functionality
...
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2018-04-09 07:01:02 -07:00
Yehuda Sadeh
af36c08871
cls/otp: implement otp_info_t::dump()
...
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2018-04-09 07:01:02 -07:00
Yehuda Sadeh
63924ef625
cls_otp: treat empty header as -ENOENT
...
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2018-04-09 07:01:02 -07:00
Yehuda Sadeh
4fe9f176c0
rgw: send totp check to the otp objclass
...
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2018-04-09 07:01:02 -07:00
Yehuda Sadeh
f8ab2fc1fc
rgw: req_state members init refactor
...
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2018-04-09 07:01:02 -07:00
Yehuda Sadeh
9fe808b683
cls/otp: add client interfaces
...
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2018-04-09 07:01:02 -07:00
Yehuda Sadeh
a774884baf
cls/otp: implement totp check logic
...
Currently checking for bogus results, still need to integrate with
totp library.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2018-04-09 07:01:02 -07:00
Yehuda Sadeh
0c604eea56
cls/otp: initial work
...
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2018-04-09 07:01:02 -07:00
Yehuda Sadeh
c3a6f7588a
rgw: mfa - initial work
...
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2018-04-09 07:01:02 -07:00
Alfredo Deza
9808407737
Merge pull request #20758 from ceph/wip-cv-doc-typos
...
ceph-volume doc updates
Reviewed-by: Lenz Grimmer <lgrimmer@suse.com>
2018-04-09 09:58:56 -04:00
Mykola Golub
2791d15455
Merge pull request #21249 from dillaman/wip-18844
...
rbd: improve 'import-diff' corrupt input error messages
Reviewed-by: Mykola Golub <mgolub@suse.com>
2018-04-09 16:22:03 +03:00
Sebastian Wagner
58b055db94
mgr/dashboard: Refactor multiple duplicates of get_rate()
...
... And `get_latest()`.
* OSD Controller: `.stats_history` now returns the
derivative.
Fixes https://tracker.ceph.com/issues/23389
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2018-04-09 15:20:48 +02:00
Sage Weil
35c14a0162
qa/suites/rados/singleton/all/random-eio: whitelist eio error message
...
"cluster [ERR] 2.1 shard 1: soid 2:8007ad8d:::benchmark_data_smithi115_12935_object2439:head candidate had a read error"
is normal when we're injecting EIO.
Signed-off-by: Sage Weil <sage@redhat.com>
2018-04-09 07:40:23 -05:00
John Spray
48acc6c798
mgr/prometheus: fix and complete PG state names
...
...and reformat into a flat list in the same
order as found in osd_types.cc so that it's
easy to cross check.
Fixes: https://tracker.ceph.com/issues/23584
Signed-off-by: John Spray <john.spray@redhat.com>
2018-04-09 13:23:55 +01:00
John Spray
a8b4d20b70
osd: make PG "deep" state name consistent
...
Previously the state-to-string path called
deep scrubbing "deep", but the string-to-state
path called it "deep_scrub". Confusing! Also
meant that the "pg ls" help output was wrong
because it uses the state-to-string path.
Signed-off-by: John Spray <john.spray@redhat.com>
2018-04-09 13:23:55 +01:00
Sage Weil
8f6e2a1009
osd/OSDMap: propagate POOL_SNAPS|SELFMANAGED_SNAPS to tiers
...
We set this when we add selfmanaged snaps to the base tier. When those
propagate to the cache tier, propagate the flags, too!
Signed-off-by: Sage Weil <sage@redhat.com>
2018-04-09 06:51:39 -05:00
Alfredo Deza
d451a75c49
Merge pull request #21196 from jeffrey4l/fix_typo
...
ceph-volume: fix typo in ceph-volume lvm prepare help
Reviewed-by: Wido den Hollander <wido@42on.com>
Reviewed-by: Alfredo Deza <adeza@redhat.com>
2018-04-09 07:02:50 -04:00
Lenz Grimmer
0d700d014f
Merge pull request #21270 from Devp00l/ceph-table-action-fix
...
mgr/dashboard: Fix the data table action selector
Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2018-04-09 12:34:25 +02:00
Ricardo Dias
3e7d75b579
mgr/dashboard: restcontroller: fix detection of id args in element requests
...
Fixes: https://tracker.ceph.com/issues/23593
Signed-off-by: Ricardo Dias <rdias@suse.com>
2018-04-09 10:52:10 +01:00