Boris Ranto
f59e9bf0bb
restful: Use fixed cert/pkey files
...
This allows users to create their own certificates that are signed by a
CA. If the keys are not present then a self-signed certificate will be
created and distributed amongst all the mgr nodes.
It also allows us to get rid of the pyOpenSSL dependency.
Signed-off-by: Boris Ranto <branto@redhat.com>
2017-05-22 19:20:37 +02:00
Boris Ranto
21af955573
restful: Split api.py file into a module
...
The patch makes the REST api being served by a module, not a single
monolithic file.
Signed-off-by: Boris Ranto <branto@redhat.com>
2017-05-22 19:19:02 +02:00
Boris Ranto
e58ba75bc0
restful: Prepare for api file split
...
The patch moves decorators into a separate file so they could be shared
amongst various files.
It also fixes key generation in werkzeug 0.10+ and fixes get input
method on various endpoints.
Signed-off-by: Boris Ranto <branto@redhat.com>
2017-05-22 19:19:02 +02:00
Boris Ranto
cdd2079dbb
restful: Use keys instead of tokens+cephx
...
Signed-off-by: Boris Ranto <branto@redhat.com>
2017-05-22 19:19:02 +02:00
Boris Ranto
5ed2631b09
ceph-mgr: Implement new pecan-based rest api
...
The new rest API uses pecan for the restful functionality and simplifies
the code significantly. It should be mostly equivalent in functionality
to the django-based rest API. The api is self-documenting via /doc
endpoint.
Signed-off-by: Boris Ranto <branto@redhat.com>
2017-05-22 19:18:58 +02:00
Yehuda Sadeh
34a17d5ff7
Merge pull request #12861 from theanalyst/wip-absolute-urls
...
rgw: pass authentication domain to civetweb
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2017-05-22 09:30:53 -07:00
Sage Weil
cea91e0cd6
Merge pull request #15150 from ovh/bp-doc-perf-histograms
...
doc: document perf historgrams
Reviewed-by: Sage Weil <sage@redhat.com>
2017-05-22 10:59:22 -05:00
Piotr Dałek
756b3d59e6
doc: document perf historgrams
...
Documentation for perf histograms schema and dump.
Signed-off-by: Piotr Dałek <piotr.dalek@corp.ovh.com>
2017-05-22 15:53:21 +00:00
Mykola Golub
1367ab2a2d
Merge pull request #15162 from dillaman/wip-19970
...
librbd: reduce potential of erroneous blacklisting on image close
Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2017-05-22 15:50:57 +03:00
Jos Collin
c89bbd66b6
Merge pull request #15191 from Linbing/modify-note-word-error
...
mon: Fixed typo in @post of _active()
2017-05-22 07:30:43 +05:30
linbing
e10061ee96
Note word error of _active(), take iif with if
...
Signed-off-by: Linbing <hawkerous@gmail.com>
2017-05-22 08:32:28 +08:00
Kefu Chai
e3319da51d
Merge pull request #15181 from tchaikov/wip-cxx1z-size
...
common: add ceph::size()
Reviewed-By: Adam C. Emerson <aemerson@redhat.com>
2017-05-20 09:53:45 +08:00
Sage Weil
de6c0bd618
Merge pull request #14946 from dmick/wip-mgr-dashboard
...
mgr: dashboard GUI module
2017-05-19 16:59:59 -05:00
Casey Bodley
e01fd6846c
Merge pull request #14994 from theanalyst/f/tier-fix
...
rgw_rados: create sync module instances only if run_sync_thread is set
Reviewed-by: Casey Bodley <cbodley@redhat.com>
2017-05-19 17:58:46 -04:00
Dan Mick
10b1fa211c
test: add mgr/ and smoke test for mgr dashboard
...
Signed-off-by: Dan Mick <dan.mick@redhat.com>
2017-05-19 14:47:48 -07:00
Abhishek Lekshmanan
e46fc5022c
rgw_rados: create sync module instances only if run_sync_thread is set
...
This allows for radosgw-admin to run even if there was a
misconfiguration in setting tier types which would otherwise make it
difficult to revert an invalid tier type setting. Since sync modules are
necessary only for rgw and not for the admin itself, this allows for
invalid tier configurations to be corrected as rgw-admin wouldn't fail
Fixes: http://tracker.ceph.com/issues/19830
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2017-05-19 22:08:13 +02:00
Casey Bodley
e7e7e9403a
Merge pull request #15153 from zhangsw/optimize-torrent
...
rgw: optimize generating torrent file. Object data won't stay in memory now.
Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
2017-05-19 15:03:06 -04:00
Casey Bodley
e546f46918
Merge pull request #15001 from chardan/jfw-wip-halflife_atomic_t-kamakuras
...
rgw: migrate atomic_t to std::atomic<>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
2017-05-19 15:02:14 -04:00
Casey Bodley
aa16248478
Merge pull request #14827 from liuyuhong66/rgw-swift-auth-improve
...
rgw/rgw_swift_auth.cc: using string::back() instead as the C++11 recommend
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-05-19 15:01:11 -04:00
Casey Bodley
97486e6eb1
Merge pull request #15025 from mikulely/jiaying-fix-lc-list
...
rgw: fix lc list failure when shards not be all created
Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
2017-05-19 14:58:25 -04:00
Casey Bodley
9bc4d0fcb0
Merge pull request #12300 from idealguo/rename-s3_code
...
rgw: rename s3_code to err_code for swift
Reviewed-by: Casey Bodley <cbodley@redhat.com>
2017-05-19 14:57:26 -04:00
Casey Bodley
f0300415af
Merge pull request #15045 from shashalu/fix-slo
...
rgw: fix X-Object-Meta-Static-Large-Object in SLO download
Reviewed-by: Casey Bodley <cbodley@redhat.com>
2017-05-19 14:56:53 -04:00
Sage Weil
81aeb528fa
Merge pull request #14800 from theanalyst/doc/release-notes/sse-c-correction
...
doc: release-notes clarify about rgw encryption
Reviewed-by: Casey Bodley <cbodley@redhat.com>
2017-05-19 13:54:09 -05:00
Sage Weil
bb82a9c504
Merge pull request #14922 from ukernel/wip-kcephfs-whitelist
...
qa: update log whitelists for kcephfs suite
Reviewed-by: John Spray <john.spray@redhat.com>
2017-05-19 13:41:20 -05:00
Sage Weil
2c0fe978b9
Merge pull request #14941 from wjwithagen/wip-wjw-freebsd-doc-manual-install
...
doc: add FreeBSD manual install
2017-05-19 13:40:10 -05:00
Sage Weil
d6ddaf948b
Merge pull request #14988 from ShiqiCooperation/master
...
test/unittest_bluefs: check whether mounted success
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-05-19 13:33:49 -05:00
Casey Bodley
cff53b246f
Merge pull request #14688 from cbodley/wip-rgw-multi-suite
...
qa/rgw: add multisite suite to configure and run multisite tests
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
2017-05-19 14:30:57 -04:00
Sage Weil
590fd5362a
Merge pull request #15071 from cbodley/wip-qa-dnsmasq
...
qa: add task for dnsmasq configuration
Reviewed-by: Vasu Kulkarni <vasu@redhat.com>
Reviewed-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
2017-05-19 13:25:12 -05:00
Sage Weil
39430e9618
Merge pull request #15090 from theanalyst/release/v12.0.3/notes
...
doc: release notes for v12.0.3 (dev)
2017-05-19 13:21:58 -05:00
Sage Weil
910405c19c
Merge pull request #15133 from cbodley/wip-doc-rgw-remove-fcgi
...
doc/rgw: remove fastcgi page and sample configs
Reviewed-by: Sage Weil <sage@redhat.com>
2017-05-19 13:13:24 -05:00
Sage Weil
790ceff325
Merge pull request #15144 from drunkard/master
...
doc: typo fixes on hyperlink/words
Reviewed-by: Sage Weil <sage@redhat.com>
2017-05-19 13:03:45 -05:00
Sage Weil
8e0c4ee103
Merge pull request #15161 from dzafman/wip-test-fix
...
test: Test fix for SnapSet change
Reviewed-by: Sage Weil <sage@redhat.com>
2017-05-19 13:00:20 -05:00
Kefu Chai
bc529f8745
common: add ceph::size()
...
backport from C++17
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-05-20 00:40:00 +08:00
Yuri Weinstein
4d1d9ca84d
Merge pull request #15147 from bassam/pr-speedup-ccache
...
cmake: improved build speed by 5x when using ccache
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-05-19 09:33:24 -07:00
Yuri Weinstein
e965dac013
Merge pull request #15158 from liewegas/wip-mgr-dump
...
mon/MgrMonitor: add 'mgr dump [epoch]' command
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-05-19 09:33:03 -07:00
Yuri Weinstein
5c203e86db
Merge pull request #15159 from LiumxNL/fix-ping-monitor
...
pybind/rados: avoid call free() on invalid pointer
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2017-05-19 09:32:19 -07:00
Kefu Chai
d1bf2f60ca
Merge pull request #15164 from tchaikov/wip-check-gperf-before-using-it
...
cmake: check the existence of gperf before using it
Reviewed-By: Adam C. Emerson <aemerson@redhat.com>
2017-05-19 23:57:08 +08:00
Jason Dillaman
13adcac429
librbd: block RPC requests before unregistering watch during close
...
The watch should be released after exclusive lock is released to
avoid a potential race condition which would result in the
client being blacklisted by a peer.
Fixes: http://tracker.ceph.com/issues/19970
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-05-19 11:24:38 -04:00
Kefu Chai
b2c2f759af
Merge pull request #15089 from zhsj/add-mirror
...
doc: add new cn ceph mirror to doc and mirroring
Reviewed-by: Wido den Hollander <wido@42on.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-05-19 22:32:45 +08:00
Jos Collin
8348a13fbd
Merge pull request #15173 from joscollin/wip-test-crush-warning
...
test/crush: silence warnings from -Walloc-size-larger-than= and -Wstringop-overflow=
2017-05-19 19:48:38 +05:30
Jos Collin
fccae0f196
Merge pull request #15171 from ztczll/master
...
test/objectstore: Check apply_transaction() return values
2017-05-19 19:40:31 +05:30
Sage Weil
069ca1a170
Merge pull request #15034 from liewegas/wip-bluestore-sync-write
...
os/bluestore/KernelDevice: fix sync write vs flush
Reviewed-by: Varada Kari <varada.kari@gmail.com>
2017-05-19 08:21:48 -05:00
Sage Weil
9cae712d6f
os/bluestore/KernelDevice: fix flush() vs sync write()
...
We need to set the atomic flag so that a flush will actually flush.
Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-19 09:20:27 -04:00
Jason Dillaman
95937bcd42
librbd: introduced support for blocking watch notifications
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-05-19 08:43:37 -04:00
Jason Dillaman
6fa25c2bf2
librbd: recheck current lock owner before blacklist
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-05-19 08:43:37 -04:00
Jos Collin
49fd336522
test/crush: silence warnings from -Walloc-size-larger-than= and -Wstringop-overflow=
...
The following warnings appear during make:
/home/jcollin/workspace/ceph/src/test/crush/CrushWrapper.cc: In member function ‘virtual void CrushWrapper_choose_args_compat_Test::TestBody()’:
/home/jcollin/workspace/ceph/src/test/crush/CrushWrapper.cc:1057:20: warning: argument 1 value ‘18446744073709550912’ exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=]
crush_choose_arg choose_args[c.get_max_buckets()];
^~~~~~~~~~~
In function ‘void* memset(void*, int, size_t)’,
inlined from ‘virtual void CrushWrapper_choose_args_compat_Test::TestBody()’ at /home/jcollin/workspace/ceph/src/test/crush/CrushWrapper.cc:1058:9:
/usr/include/bits/string3.h:90:70: warning: ‘void* __builtin_memset(void*, int, long unsigned int)’: specified size 18446744073709550912 exceeds maximum object size 9223372036854775807 [-Wstringop-overflow=]
return __builtin___memset_chk (__dest, __ch, __len, __bos0 (__dest));
Signed-off-by: Jos Collin <jcollin@redhat.com>
2017-05-19 16:45:08 +05:30
zhanglei
1cf018d11e
Check apply_transaction return values
...
Signed-off-by: zhanglei <243290414@qq.com>
2017-05-19 05:45:14 -04:00
Abhishek Lekshmanan
6a407bdfa5
doc: v12.0.3 release notes
...
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2017-05-19 10:58:50 +02:00
Abhishek Lekshmanan
f498aa5954
doc: PendingReleaseNotes move the 12.0.2 section of release notes
...
So that we can track whatever diff goes in after
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2017-05-19 10:58:50 +02:00
Dan Mick
bd6f2d9210
ceph.spec.in, debian/control: build/runtime dependency for cherrypy
...
Signed-off-by: Dan Mick <dan.mick@redhat.com>
2017-05-18 22:09:08 -07:00