Commit Graph

51638 Commits

Author SHA1 Message Date
John Spray
d4503e97e8 vstart: support creating multiple cephfs filesystems
This is handy if you want to quickly create a cluster
with lots of filesystems, for playing with e.g. what
the ceph status output looks like when multiple filesystems
are in play.

This changes the default filesystem/pool names to be
e.g. cephfs_data_a instead of just `cephfs_data`, but anything
who relied on those names in a vstart environment houldn't have
been (this won't affect teuthology tests, of course, where we
still have a few annoying hardcoded pool names).

Signed-off-by: John Spray <john.spray@redhat.com>
2016-03-22 12:08:49 +00:00
John Spray
ccef4898a6 mon: s/mdsmap/fsmap/ in "ceph status"
Signed-off-by: John Spray <john.spray@redhat.com>
2016-03-22 12:08:49 +00:00
John Spray
bb7a286867 mds: plain text prints for FSMap/Filesystem
These were just dumping JSON as a placeholder.

Not strictly necessary to have the extra non-machine-readable
variants of these outputs, but some users will probably appreciate
it, so why not.

Signed-off-by: John Spray <john.spray@redhat.com>
2016-03-22 12:08:49 +00:00
John Spray
c6623c0aa4 mon: config setting to skip FSMap::sanity
Only for use in extremis, where we have encountered
a bug that generates an invalid FSMap, but the way
to resolve it might be to proceed anyway and stay
up long enough to use commands to fix it.

Fixes: #15063
Signed-off-by: John Spray <john.spray@redhat.com>
2016-03-22 12:08:49 +00:00
John Spray
99dd53d1ae mds: pass features through to MDSMap::encode
...from Filesystem.  This will prepare us for if
MDSMap gets any more feature-sensitive encoding
in the future.

Fixes: #15062
Signed-off-by: John Spray <john.spray@redhat.com>
2016-03-22 12:08:49 +00:00
John Spray
4fcb26de67 mds: fix mds_info_t::dump
This broke with 4ad8f7254 ('features' gets
output as an item in the 'export_targets' list),
which wasn't the fsmap branch, but fix it while
I'm tidying.

Signed-off-by: John Spray <john.spray@redhat.com>
2016-03-22 12:08:49 +00:00
John Spray
401c1866cd mds: fix whitespace in is_cluster_available
This got mangled somehow.

Signed-off-by: John Spray <john.spray@redhat.com>
2016-03-22 12:08:48 +00:00
John Spray
94fd423934 mds/FSMap: pass by ref in update_compat
Coverity: CID 1355578:  Performance inefficiencies  (PASS_BY_VALUE)

Signed-off-by: John Spray <john.spray@redhat.com>
2016-03-22 12:08:48 +00:00
John Spray
d4f2807072 tools: update naming s/handle_mds_map/handle_fs_map/
Signed-off-by: John Spray <john.spray@redhat.com>
2016-03-22 12:08:48 +00:00
John Spray
980f684b66 mon: name cleanup s/mdsmap_bl/fsmap_bl/
Signed-off-by: John Spray <john.spray@redhat.com>
2016-03-22 12:08:48 +00:00
John Spray
122e0d3b25 messages: support features in MFSMap
Not used for anything currently, but let's make
this class pass through the features to FSMap's
encode method for the benefit of the future
generations.

Signed-off-by: John Spray <john.spray@redhat.com>
2016-03-22 12:08:48 +00:00
Loic Dachary
55f4ade6d8 release-notes: draft v10.1.0 release notes (manual edits)
Signed-off-by: Loic Dachary <loic@dachary.org>
2016-03-22 11:47:50 +01:00
Wido den Hollander
fb4e5cc5d6 rgw: Do not send a Content-Length header on a 304 response
We tell the client that the content has not changed. If we
send a Content-Length header RFC2616 describes that the client
MUST use that new value:

"If a cache uses a received 304 response to update a cache entry,
the cache MUST update the entry to reflect any new field values
given in the response."

Therefor we should not send a Content-Length header

Fixes: #15119

Signed-off-by: Wido den Hollander <wido@42on.com>
2016-03-22 11:35:05 +01:00
Loic Dachary
a8428a99e5 release-notes: draft v10.1.0 release notes
Signed-off-by: Loic Dachary <loic@dachary.org>
2016-03-22 11:09:03 +01:00
Wido den Hollander
471fa29e64 rgw: Do not send a Content-Type on a '304 Not Modified' response
When we say the Content has not changed we should not respond
with a content type which defaults to binary/octet stream.

Fixes: #15119

Signed-off-by: Wido den Hollander <wido@42on.com>
2016-03-22 11:04:09 +01:00
Orit Wasserman
14dc8473e2 cmake: fix mrun to handle cmake build structure
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
2016-03-22 09:34:51 +01:00
xie xingguo
d51f56423e doc: fix wrong type of hyphen
Which makes picture of http://docs.ceph.com/docs/master/start/quick-start-preflight/
look sick.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-03-22 15:23:51 +08:00
Sage Weil
6e74170189 Merge pull request #7934 from ceph/wip-default-tcmalloc-cache-size
etc/sysconfig/ceph: set 128MB tcmalloc cache size

Reviewed-by: Mark Nelson <mnelson@redhat.com>
2016-03-21 19:11:32 -04:00
Sage Weil
ccc3955f2c doc/release-notes: known issues with 10.1.0
Signed-off-by: Sage Weil <sage@redhat.com>
2016-03-21 19:00:26 -04:00
Yehuda Sadeh
f245208f31 Merge pull request #8244 from linuxbox2/jewel-ldap-fixes
rgw_ldap fixes

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2016-03-21 14:48:12 -07:00
Yehuda Sadeh
5df0653723 Merge pull request #8225 from SUSE/wip-radosgw-description
packaging: align radosgw package description

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2016-03-21 13:41:28 -07:00
Josh Durgin
227b943d38 Merge pull request #8217 from ceph/wip-rbd-mirror-init
rbd-mirror: systemd and upstart init scripts

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2016-03-21 13:35:31 -07:00
Yehuda Sadeh
304d8b8554 Merge pull request #8245 from theanalyst/fix/delete-zone-msg
rgw: fix error message for zone delete

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2016-03-21 13:33:36 -07:00
Yehuda Sadeh
ae2d527352 Merge pull request #8243 from theanalyst/fix/zone-rm-msg
rgw: typo fix for zone delete message

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2016-03-21 13:32:38 -07:00
Abhishek Lekshmanan
c9245e7118 rgw: fix error message for zone delete
Currently if a zone is not a part of a zonegroup, an error message
is printed that zone doesn't exist, and the zone gets deleted anyway.
Since this is exhibited only if the zone isn't a part of a zonegroup
and we allow creation of such zones, clarify that the zone wasn't a
part of zonegroup instead

Fixes: #14951
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2016-03-21 20:57:34 +01:00
Mykola Golub
a67f0cfdfa rbd-mirror: asok commands to get status and flush on Mirror and Replayer level
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2016-03-21 21:44:31 +02:00
Mykola Golub
d66e8f646a rbd-mirror: async flush for ImageReplayer
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2016-03-21 21:44:26 +02:00
Matt Benjamin
88d35e9d5f rgw_ldap: move update of s->perm_mask
This should happen on successful auth, not only when a new user
record is stored.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2016-03-21 14:19:15 -04:00
Matt Benjamin
6ffa9c7559 rgw_ldap: two bug fixes
1. only attempt auth on tokens which pass valid() check
2. ignore false positive search result (and fix result in that case)

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2016-03-21 14:02:33 -04:00
Josh Durgin
46935ab819 Merge pull request #8240 from dillaman/wip-15224
cls_rbd: throw error if set_features mask included non-mutable feature

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2016-03-21 09:58:08 -07:00
Abhishek Lekshmanan
acea6efb5e rgw: fix zone delete message
Though this error message is hard to reach, it is still wrongly printed
as failed to create instead of failed to delete.

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2016-03-21 17:04:55 +01:00
Kefu Chai
35479a92e5 Merge pull request #8130 from tchaikov/wip-15113
mon: do not panic at seeing requests without session

Reviewed-by: Joao Eduardo Luis <joao@suse.de>
2016-03-21 23:04:44 +08:00
Jason Dillaman
127c26f02c cls_rbd: throw error if set_features mask included non-mutable feature
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-03-21 09:32:08 -04:00
Jianpeng Ma
b50caa4b10 global/signale_handler: print thread name in signal handle.
Now most thread has own thread name. So print thread name in signal
handle.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
2016-03-21 21:26:57 +08:00
John Spray
ba1dd35392 mon: fix mixed-version MDSMonitor
Encode old-style until mon quorum features indicate
jewel, forbid creating multiple filesystems, and
when creating a single filesystem use the legacy fscid.

Fixes: #15223
Signed-off-by: John Spray <john.spray@redhat.com>
2016-03-21 12:55:38 +00:00
Sage Weil
a6adb882a9 mon/PGMonitor: do not clobber pg_stat update with map_pg_creates
If we have a pending pg update from the OSD with a newer epoch
than the one we're processing in map_pg_creates, we shouldn't
update, as we'll warp the PG back in time (clobbering the PG
state).

Signed-off-by: Sage Weil <sage@redhat.com>
2016-03-21 08:43:03 -04:00
Sage Weil
19aabf4a30 Merge pull request #8016 from ErwanAliasr1/evelu-15042
rpm,deb: remove conditional BuildRequires for btrfs-progs

Reviewed-by: Nathan Cutler <ncutler@suse.com>
2016-03-21 07:41:55 -04:00
Sage Weil
81f53dfb67 Merge pull request #8214 from athanatos/wip-feature-bits
Deprecate or free up a bunch of feature bits

Reviewed-by: Sage Weil <sage@redhat.com>
2016-03-21 07:35:27 -04:00
Nathan Cutler
0effb9e385 qa: test_rbdmap_RBDMAPFILE.sh workunit
Before a7a3658 the rbdmap script was logging bogus messages and not working
on systemd platforms because the unit file was not defining the RBDMAPFILE
environment variable.

This workunit asserts that the bug has been fixed.

http://tracker.ceph.com/issues/14984 References: #14984

Signed-off-by: Nathan Cutler <ncutler@suse.com>
2016-03-20 22:50:47 +01:00
Abhishek Lekshmanan
098fea2695 rgw: add zone delete to rgw-admin help
This operation is already implemented (OPT_ZONE_DELETE), however not
mentioned in the help, just adding to the help options

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2016-03-20 11:19:39 +01:00
Roi Dayan
3a9a60bd41 xio: xio_init needs to be called before any other xio function
Latest accelio code removes the attribute to call xio_init on load
and XioMessenger will first try to initialize portals and create xio context.
This commit will fix this behavior and call xio_init first.

Signed-off-by: Roi Dayan <roid@mellanox.com>
2016-03-20 09:28:29 +02:00
Jason Dillaman
22cac93ec7 Merge pull request #8162 from rjfd/wip-15142
rbd-mirror: use the mirroring directory to detect candidate images

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2016-03-19 18:12:28 -04:00
Jason Dillaman
bdab6d0293 Merge pull request #8204 from rjfd/wip-15143
librbd: enable/disable image mirroring automatically for pool mode

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2016-03-19 18:00:03 -04:00
Nathan Cutler
c4364b13b7 packaging: align radosgw package description
First, make the Debian package description mention that RGW aims to
implement the Swift API.

Second, replace the RPM package description with the Debian one, both for
consistency and because the Debian one is better.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
2016-03-19 22:43:53 +01:00
Nathan Cutler
7da141df0f rbdmap: manpage
http://tracker.ceph.com/issues/15212 Fixes: #15212

Signed-off-by: Nathan Cutler <ncutler@suse.com>
2016-03-19 22:01:40 +01:00
Jason Dillaman
f65cc6fc31 Merge pull request #8172 from trociny/fix-test-rbd-mirror-position
test: rbd-mirror: compare positions using all fields

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2016-03-19 16:33:36 -04:00
Jason Dillaman
4a83b208d1 Merge pull request #8185 from trociny/wip-rbd-mirror-faster-exit
rbd-mirror: fix long termination due to 30sec wait in main loop

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2016-03-19 16:25:08 -04:00
Jason Dillaman
f938586451 Merge pull request #8221 from jdurgin/wip-test-rbd-mirror
qa: add workunit to run ceph_test_rbd_mirror

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2016-03-19 16:18:19 -04:00
Mykola Golub
bbac7669ba rbd-mirror: fix long termination due to 30sec wait in Mirror::run loop
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2016-03-19 15:43:58 +02:00
Sage Weil
5c5a50745f Merge pull request #8191 from liewegas/wip-15180
qa/workunits/rest/test.py: don't use newfs

Reviewed-by: John Spray <john.spray@redhat.com>
2016-03-19 09:13:23 -04:00