Commit Graph

51263 Commits

Author SHA1 Message Date
Jason Dillaman
e5f2bb080e librbd: initial implementation of mirror image promote/demote
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-03-15 20:38:33 -04:00
Jason Dillaman
f3cd04c688 librbd: helper methods for manipulating journal tags from API
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-03-15 20:14:45 -04:00
Jason Dillaman
74097f3294 rbd: dump mirroring primary status on info command
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-03-15 20:14:45 -04:00
Jason Dillaman
c8aa842816 librbd: expose image mirroring primary/secondary status
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-03-15 20:14:45 -04:00
Jason Dillaman
7be402281d test: update rbd cli tests to incorporate new mirror image commands
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-03-15 20:14:45 -04:00
Jason Dillaman
04073d80b3 rbd: add mirror image promote/demote/resync commands
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-03-15 20:14:45 -04:00
Jason Dillaman
4d70ff4621 librbd: stub API methods for mirror image promotion/demotion/resync
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-03-15 20:14:45 -04:00
Pete Zaitcev
e9259486de rgw: Allow an implicit tenant in case of Keystone
This, unfortunately, introduces possible double lookups, but
they should be cached. Also, the logic appears somewhat convoluted,
although the intent is quite simple: if you're an OpenStack user
with a Keystone authentication, we allow an implicit tenant of
the same name as the user.

Signed-off-by: Pete Zaitcev <zaitcev@redhat.com>

Conflicts:
	src/rgw/rgw_swift.cc
2016-03-15 16:48:00 -07:00
Yehuda Sadeh
af4d401868 Merge pull request #8095 from yehudasa/wip-rgw-sync-fixes
rgw sync fixes

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2016-03-15 15:56:38 -07:00
Yehuda Sadeh
70ca604fb5 rgw: data shard sync doesn't exit on error
We don't handle the error at the top level, so no
need to exit. Just continue with the backoff mechanism.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-03-15 15:56:31 -07:00
Matt Benjamin
cd451053a7 Merge pull request #8108 from yehudasa/wip-rgw-highres-3
Wip rgw highres 3
2016-03-15 18:37:19 -04:00
Matt Benjamin
a0289893c0 rgw ldap: s/memberattr/dnattr/;
The parameter really is dnattr (attribute used to form DNs), not
memberattr (attribute used to form group member strings).

Switch to the correct name for this attribute, to avoid confusion--
especially if we ever apply group membership checks in future.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2016-03-15 18:00:55 -04:00
Yehuda Sadeh
1c5e225847 rgw: propagate low time precision for user operations
When user set a conditional timestamp to compare (e.g. if-modified-since),
it uses a low precision time resolution. Need to adjust checks for that.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-03-15 14:22:06 -07:00
Yehuda Sadeh
809cabf693 rgw: use higher precision time when encoding / decoding external apis
When dealing with external entities (e.g., remote rgw), use higher precision time
format for object mtime.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-03-15 13:31:31 -07:00
Yehuda Sadeh
6bfaa7e0b2 utime: add gmtime_nsec()
higher precision than gmtime()

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-03-15 13:30:29 -07:00
Yehuda Sadeh
e82a801336 rgw: extend date/time parsing
So that we can parse correctly time encoded using utime_t::gmtime()

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-03-15 13:29:48 -07:00
Samuel Just
8d10fdfb5e Merge pull request #7631 from liewegas/wip-agent-flush-low
osd: consider high/low mode when putting agent to sleep

Reviewed-by: Samuel Just <sjust@redhat.com>
2016-03-15 12:58:48 -07:00
Gregory Farnum
88c50c8250 Merge pull request #8040 from ukernel/jewel-15050
mds: fix stray purging in 'stripe_count > 1' case

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2016-03-15 12:27:36 -07:00
Gregory Farnum
fcce59e46d Merge pull request #7713 from ukernel/wip-filelock-deadlock
Wip filelock deadlock

Reviewed-by: John Spray <john.spray@redhat.com>
2016-03-15 12:25:56 -07:00
Sage Weil
a7fcab11e8 osd: handle_osd_map whitespace
Signed-off-by: Sage Weil <sage@redhat.com>
2016-03-15 14:22:43 -04:00
Sage Weil
7fb0fe568d Merge pull request #8136 from athanatos/wip-split-lfn
osd: filestore: fix race condition with split vs collection_move_rename and long object names

Reviewed-by: Sage Weil <sage@redhat.com>
2016-03-15 14:16:22 -04:00
Ken Dreyer
5f3f37f9c0 packaging: move cephfs repair tools to ceph-common
The CephFS repair tools are generally useful to run on any node, not
just the MDS nodes themselves.

Move the utilities from the ceph-mds package to the ceph-common package.

Fixes: #15145
Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
2016-03-15 11:13:39 -06:00
Josh Durgin
5f85c6901c Merge pull request #8132 from dillaman/wip-librbd-memcheck
librbd: correct issues discovered via valgrind memcheck

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2016-03-15 10:10:09 -07:00
Jason Dillaman
921409f721 journal: reschedule watch if no entries available during live replay
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-03-15 12:39:10 -04:00
Jason Dillaman
4c42b95eb9 librbd: correct valgrind memcheck errors
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-03-15 12:27:04 -04:00
Ken Dreyer
2abcab005c Merge pull request #8120 from SUSE/wip-15138
RPM: fix openldap and openssl build dependencies for SUSE

Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
Reviewed-by: Jun Huang <hjwsm1989@gmail.com>
2016-03-15 09:24:25 -06:00
Sage Weil
d5c5085064 Merge pull request #8114 from liewegas/wip-tmap-migrate
qa/workunits/rados/test.sh: test tmap_migrate
2016-03-15 11:21:12 -04:00
Josh Durgin
0b70ad420c Merge pull request #8119 from dillaman/wip-qa-rbd-copy
rbd: clone operation should default to image format 2

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2016-03-15 08:21:05 -07:00
Josh Durgin
129d83b84f Merge pull request #8090 from trociny/fixup-rbd-mirror-test
test: fixup and improvements for rbd-mirror test

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2016-03-15 08:20:43 -07:00
Sage Weil
4f0a9d982e Merge pull request #8128 from jcsp/wip-15135
tools/cephfs: fix tmap_upgrade
2016-03-15 11:20:30 -04:00
Josh Durgin
10d4b0bbe0 Merge pull request #8129 from dillaman/wip-qa-rbd-permissions
test: fix issues discovered via the rbd permissions test case

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2016-03-15 08:18:25 -07:00
Josh Durgin
09143ea797 Merge pull request #8124 from dillaman/wip-qa-rbd-lock-fence
test: handle exception thrown from close during rbd lock test

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2016-03-15 08:17:21 -07:00
Jason Dillaman
36af39cdf4 qa/workunits/rbd: disable deep-flatten during permissions testing
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-03-15 11:05:02 -04:00
John Spray
c287d79f68 tools/cephfs: fix tmap_upgrade
Move it up to handle the command before we try
and initialize DataScan::driver, because drivers
require a target filesystem, and that doesn't
apply to this command.

Fixes: #15135
Signed-off-by: John Spray <john.spray@redhat.com>
2016-03-15 15:00:15 +00:00
Jason Dillaman
8a7249196b rbd: snap list should open image as read-only
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-03-15 10:57:48 -04:00
Sage Weil
35e6b76f80 Merge remote-tracking branch 'gh/jewel' 2016-03-15 10:44:15 -04:00
Sage Weil
173a0058ce Merge pull request #7243 from tchaikov/wip-py3-jewel
ceph-detect-init: fix py3 test

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-03-15 10:48:41 -04:00
Kefu Chai
f9bc07a616 Merge pull request #7975 from JiYou/fix-config-opts
config: fix osd_crush_initial_weight

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-03-15 22:17:57 +08:00
Sage Weil
af47d7a402 Merge pull request #8125 from dillaman/wip-librbd-mock
test: add missing shut_down mock method
2016-03-15 10:17:03 -04:00
Jason Dillaman
31f9454469 test: add missing shut_down mock method
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-03-15 10:11:53 -04:00
Jason Dillaman
2ae1be4259 qa/workunits/rbd: handle exception thrown from close during lock test
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-03-15 09:59:13 -04:00
Nathan Cutler
3214ae99f7 RPM: fix openldap and openssl build dependencies for SUSE
http://tracker.ceph.com/issues/15138 Fixes: #15138

Signed-off-by: Nathan Cutler <ncutler@suse.com>
2016-03-15 14:46:54 +01:00
Jason Dillaman
0b6a4c8e7c rbd: clone operation should default to image format 2
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-03-15 09:45:21 -04:00
Loic Dachary
0a92973bec Merge pull request #8116 from SUSE/wip-docdev-nuke
doc/dev: add section on interrupting a running suite

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2016-03-15 14:25:38 +01:00
Greg Farnum
980e017372 MDSMonitor: check for duplicated fs creation *before* multiple-fs creation
If we check for creating an FS with one already existing first, we will
reject (with EINVAL) duplicate attempts to create the same FS with
the same params. That makes it non-idempotent, which is bad!

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
2016-03-15 13:22:20 +00:00
Nathan Cutler
917e06b8e2 doc/dev: add section on interrupting a running suite
This commit adds a new section, entitled "Interrupt a running suite", to
the "Testing in the cloud" chapter.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
2016-03-15 14:14:09 +01:00
Sage Weil
fcfdfec774 Merge pull request #8105 from SUSE/wip-ceph-detect-init-tox
ceph-detect-init: add missing test case
2016-03-15 09:12:24 -04:00
Sage Weil
3866acaa40 Merge pull request #8088 from liewegas/wip-typo
osd/OSDMap: fix typo in summarize_mapping_stats

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-03-15 09:08:55 -04:00
Sage Weil
4c2997e82f Merge pull request #8098 from liewegas/wip-fix-crush
unittest_osdmap: default crush tunables now firefly
2016-03-15 09:00:33 -04:00
Sage Weil
bb9ce60755 Merge pull request #8089 from liewegas/wip-mark-pg-stale
mon/PGMonitor: reliably mark PGs state

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-03-15 09:00:06 -04:00