summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* osd/OSDCap: remove auid from is_capable() etc argsSage Weil2018-08-314-777/+768
| | | | Signed-off-by: Sage Weil <sage@redhat.com>
* auth: clean up cap parse error messagesSage Weil2018-08-313-7/+9
| | | | | | Consistent formatted. Drop newline. Signed-off-by: Sage Weil <sage@redhat.com>
* mon/AuthMonitor: raise health warning on invalid capsSage Weil2018-08-316-0/+76
| | | | | | | Raise a health warning if we have invalid (unparsable) caps in the auth database. Include a simple test. Signed-off-by: Sage Weil <sage@redhat.com>
* mon/AuthMonitor: drop ancient auth inc encoding compatSage Weil2018-08-311-13/+0
| | | | | | This is for *ancient* mons (I'm guessing bobtail?). Signed-off-by: Sage Weil <sage@redhat.com>
* messages/MPoolOp: drop auid memberSage Weil2018-08-313-16/+6
| | | | Signed-off-by: Sage Weil <sage@redhat.com>
* osdc/Objecter: drop change_pool_auidSage Weil2018-08-314-29/+2
| | | | Signed-off-by: Sage Weil <sage@redhat.com>
* pybind/rados: drop auid arg to pool_createSage Weil2018-08-312-24/+7
| | | | Signed-off-by: Sage Weil <sage@redhat.com>
* pybind/rados: drop change_auidSage Weil2018-08-312-35/+1
| | | | Signed-off-by: Sage Weil <sage@redhat.com>
* rados: drop mkpool, rmpool commandsSage Weil2018-08-3121-124/+59
| | | | | | - mkpool and rmpool users should use the normal cli/mon commands Signed-off-by: Sage Weil <sage@redhat.com>
* rados: remove 'chown' commandSage Weil2018-08-312-22/+0
| | | | Signed-off-by: Sage Weil <sage@redhat.com>
* librados: deprecate calls that take auidSage Weil2018-08-318-80/+59
| | | | | | | Return EOPNOTSUPP for auid-specific calls, or EINVAL for ones that get a non-default auid value. Signed-off-by: Sage Weil <sage@redhat.com>
* librados: mark all auid calls deprecatedSage Weil2018-08-312-15/+34
| | | | Signed-off-by: Sage Weil <sage@redhat.com>
* mon/OSDMonitor: drop variable pool auid for prepare_new_poolSage Weil2018-08-312-15/+8
| | | | | | Always set to 0 for now. Signed-off-by: Sage Weil <sage@redhat.com>
* mon/OSDMonitor: remove pool auid change supportSage Weil2018-08-311-5/+2
| | | | | | EOPNOTSUPP Signed-off-by: Sage Weil <sage@redhat.com>
* osdc/Objecter: do not pass auid to create_poolSage Weil2018-08-313-5/+4
| | | | Signed-off-by: Sage Weil <sage@redhat.com>
* ceph-authtool: remove auid optionsSage Weil2018-08-318-30/+5
| | | | Signed-off-by: Sage Weil <sage@redhat.com>
* qa/workunits/cephtool: remove auid testsSage Weil2018-08-311-26/+0
| | | | Signed-off-by: Sage Weil <sage@redhat.com>
* Merge pull request #23838 from wjwithagen/wjw-fix-ConfUtilKefu Chai2018-08-311-0/+1
|\ | | | | | | | | common: Reverse deleted include Reviewed-by: Kefu Chai <kchai@redhat.com>
| * common: Reverse deleted includeWillem Jan Withagen2018-08-311-0/+1
|/ | | | | | | | | | | | | | | | Reversing 1 delete from https://github.com/ceph/ceph/commit/09d3f546b32cdf126a1246899a0b0a3eb25282d8 Clang trips over this: home/jenkins/workspace/ceph-master/src/common/ConfUtils.cc:94:19: error: implicit instantiation of undefined template 'std::__1::basic_ostringstream<char, std:: __1::char_traits<char>, std::__1::allocator<char> >' ostringstream oss; ^ /usr/include/c++/v1/iosfwd:123:32: note: template is declared here class _LIBCPP_TEMPLATE_VIS basic_ostringstream; ^ Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
* Merge pull request #23802 from votdev/unique_validatorLenz Grimmer2018-08-316-89/+142
|\ | | | | | | | | | | mgr/dashboard: Add unique validator Reviewed-by: Stephan Müller <smueller@suse.com> Reviewed-by: Tiago Melo <tmelo@suse.com>
| * mgr/dashboard: Add unique validatorVolker Theile2018-08-306-89/+142
| | | | | | | | | | | | | | | | Relocate an already existing async validator into a separate validator that can be reused by every other form. This validator is useful to check immediately after typing if an entered value, e.g. username, already exists. The API request will be triggered after a delay of 500ms (can be modified). During this delay, every keystroke will reset the timer, so the REST API is not flooded with request. Signed-off-by: Volker Theile <vtheile@suse.com>
* | Merge pull request #23629 from wangxiaoguang/fix_deep_scrubKefu Chai2018-08-315-5/+34
|\ \ | | | | | | | | | | | | | | | | | | os/bluestore: fix deep-scrub operation againest disk silent errors Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn> Reviewed-by: Sage Weil <sage@redhat.com> Reviewed-by: David Zafman <dzafman@redhat.com>
| * | os/bluestore: fix deep-scrub operation againest disk silent errorsXiaoguang Wang2018-08-315-5/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Say a object who has data caches, but in a while later, caches' underlying physical device has silent disk erros accidentally, then caches and physical data are not same. In such case, deep-scrub operation still tries to read caches firstly and won't do crc checksum, then deep-scrub won't find such data corruptions timely. Here introduce a new flag 'CEPH_OSD_OP_FLAG_BYPASS_CLEAN_CACHE' which tells deep-scrub to bypass object caches. Note that we only bypass cache who is in STATE_CLEAN state. For STATE_WRITING caches, currently they are not written to physical device, so deep-scrub operation can not read physical device and can read these dirty caches safely. Once they are in STATE_CLEAN state(or not added to bluestore cache), next round deep-scurb can check them correctly. As to above discussions, I refactor BlueStore::BufferSpace::read sightly, adding a new 'flags' argument, whose value will be 0 or: enum { BYPASS_CLEAN_CACHE = 0x1, // bypass clean cache }; flags 0: normal read, do not bypass clean or dirty cache flags BYPASS_CLEAN_CACHE: bypass clean cache, currently only for deep-scrube operation Test: I deliberately corrupt a object with cache, with this patch, deep-scrub can find data error very timely. Signed-off-by: Xiaoguang Wang <xiaoguang.wang@easystack.cn>
| * | core: add missing flag name for CEPH_OSD_OP_FLAG_WITH_REFERENCEXiaoguang Wang2018-08-301-0/+3
| | | | | | | | | | | | Signed-off-by: Xiaoguang Wang <xiaoguang.wang@easystack.cn>
* | | Merge pull request #23555 from tspmelo/wip-task-refactorLenz Grimmer2018-08-319-195/+540
|\ \ \ | | | | | | | | | | | | | | | | | | | | mgr/dashboard: Extract/Refactor Task merge Reviewed-by: Stephan Müller <smueller@suse.com> Reviewed-by: Volker Theile <vtheile@suse.com>
| * | | mgr/dashboard: Extract/Refactor Task mergeTiago Melo2018-08-309-195/+540
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Stephan Müller <smueller@suse.com> Signed-off-by: Tiago Melo <tmelo@suse.com>
* | | | Merge pull request #23546 from xiexingguo/wip-complete-toKefu Chai2018-08-301-2/+6
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | osd/PGLog: trim - avoid dereferencing invalid iter Reviewed-by: Yan Jun <yan.jun8@zte.com.cn> Reviewed-by: Neha Ojha <nojha@redhat.com>
| * | | | osd/PGLog: trim - avoid dereferencing invalid iterxie xingguo2018-08-181-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Log(e.g., projected_log) could theoretically be emtpy and hence there might be potential access violation. Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
* | | | | Merge pull request #23800 from rjfd/wip-fix-crash-mgr-moduleKefu Chai2018-08-301-2/+3
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mgr/crash: fix python3 invalid syntax problems Reviewed-by: Nathan Cutler <ncutler@suse.com> Reviewed-by: Noah Watkins <nwatkins@redhat.com>
| * | | | | mgr/crash: fix python3 invalid syntax problemsRicardo Dias2018-08-291-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Ricardo Dias <rdias@suse.com>
* | | | | | Merge pull request #23803 from tchaikov/wip-ceph_assertKefu Chai2018-08-301-0/+4
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | include/buffer.h: do not use ceph_assert() unless __CEPH__ is defined Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
| * | | | | | include/buffer.h: do not use ceph_assert() unless __CEPH__ is definedKefu Chai2018-08-291-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Kefu Chai <kchai@redhat.com>
* | | | | | | Merge pull request #23820 from LenzGr/nautilus-404-pageLenz Grimmer2018-08-302-2/+2
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mgr/dashboard: Updated image on 404 page Reviewed-by: Stephan Müller <smueller@suse.com> Reviewed-by: Tatjana Dehler <tdehler@suse.com> Reviewed-by: Volker Theile <vtheile@suse.com>
| * | | | | | | mgr/dashboard: Updated image on 404 pageLenz Grimmer2018-08-302-2/+2
| | |_|_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replaced the image of a Mimic octopus with a Nautilus octopus in preparation for the new major release code name. The image was taken from Flickr (https://www.flickr.com/photos/146401137@N06/40335060661) and is licensed under the Creative Commons "Attribution 2.0 Generic" (CC BY 2.0) license. Fixes: https://tracker.ceph.com/issues/24489 Signed-off-by: Lenz Grimmer <lgrimmer@suse.com>
* | | | | | | Merge pull request #23785 from alfredodeza/wip-rm34309Andrew Schoen2018-08-302-14/+37
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ceph-volume: update batch documentation to explain filestore strategies Reviewed-by: Andrew Schoen <aschoen@redhat.com>
| * | | | | | | doc/man/ceph-volume uncomment flags that are now fully supported in batchAlfredo Deza2018-08-281-8/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Alfredo Deza <adeza@redhat.com>
| * | | | | | | doc/ceph-volume add filestore docs for batchAlfredo Deza2018-08-281-1/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Alfredo Deza <adeza@redhat.com>
| * | | | | | | doc/ceph-volume uncomment section of newly supported batch operationsAlfredo Deza2018-08-281-5/+4
| | |_|/ / / / | |/| | | | | | | | | | | | | | | | | | | Signed-off-by: Alfredo Deza <adeza@redhat.com>
* | | | | | | Merge PR #23509 into masterSage Weil2018-08-303-0/+8
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * refs/pull/23509/head: OSD: add recovery bytes counter to osd logger Reviewed-by: Sage Weil <sage@redhat.com>
| * | | | | | | OSD: add recovery bytes counter to osd loggerkungf2018-08-093-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | add recovery bytes counter, so we can get recovery bandwidth from prometheus Signed-off-by: kungf <yang.wang@easystack.cn>
* | | | | | | | Merge PR #23572 into masterSage Weil2018-08-302-1/+53
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * refs/pull/23572/head: qa/standalone/osd/osd-force-create-pg: add force-create-pg test mon/MonCommands: fix 'osd force-create-pg' Reviewed-by: Kefu Chai <kchai@redhat.com>
| * | | | | | | | qa/standalone/osd/osd-force-create-pg: add force-create-pg testSage Weil2018-08-151-0/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Sage Weil <sage@redhat.com>
| * | | | | | | | mon/MonCommands: fix 'osd force-create-pg'Sage Weil2018-08-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: 7797ed67d2f9140b7eb9f182b06d04233e1e309c Fixes: http://tracker.ceph.com/issues/26940 Signed-off-by: Sage Weil <sage@redhat.com>
* | | | | | | | | Merge PR #23611 into masterSage Weil2018-08-302-24/+84
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * refs/pull/23611/head: mgr/devicehealth: fix exceptions doc/mgr/devicehealth: update docs mgr/devicehealth: leave health monitoring off by default mgr/devicehealth: add 'device monitoring {on,off}' commands mgr/devicehealth: 10m wakeup interval is sufficient mgr/devicehealth: scrape at scrape_interval intervals mgr/devicehealth: UTC everywhere mgr/devicehealth: fix sleep_interval configurable
| * | | | | | | | | mgr/devicehealth: fix exceptionsSage Weil2018-08-291-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Sage Weil <sage@redhat.com>
| * | | | | | | | | doc/mgr/devicehealth: update docsSage Weil2018-08-291-1/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - several new commands weren't documented Signed-off-by: Sage Weil <sage@redhat.com>
| * | | | | | | | | mgr/devicehealth: leave health monitoring off by defaultSage Weil2018-08-291-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For now at least.. unless all of the tests have been adjusted accordingly to expect a device_health_metrics pool. Signed-off-by: Sage Weil <sage@redhat.com>
| * | | | | | | | | mgr/devicehealth: add 'device monitoring {on,off}' commandsSage Weil2018-08-261-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Sage Weil <sage@redhat.com>
| * | | | | | | | | mgr/devicehealth: 10m wakeup interval is sufficientSage Weil2018-08-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We are scraping daily, so 10m is plenty often. The life expectancy for devices is also rarely updated, and anyone who does update it can explicitly 'ceph device check-health' afterwards if they want a quick response. Signed-off-by: Sage Weil <sage@redhat.com>
| * | | | | | | | | mgr/devicehealth: scrape at scrape_interval intervalsSage Weil2018-08-261-13/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also, align the timing to the interval to avoid drift, and restructure the loop so that we do the work immediately on startup without an initial sleep. Signed-off-by: Sage Weil <sage@redhat.com>