summaryrefslogtreecommitdiffstats
path: root/README.FreeBSD (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-07-29rgw: initial meta manager refactoringYehuda Sadeh21-993/+1319
I didn't intend for it to be such a big commit, and it's not even compiling yet. This changes the structure of how the metadata manager and handlers work. The idea is to be able to relatively easily hook in different meta backends (or same backends with different handling -- such as the otp). Added new services for meta, meta backend, and meta backend sysobj implementation. The meta backend service is responsible for the final data storage, and updating the meta log (log might be split later on, but at the moment it keeping it together for simplicity). The handlers themselves are the ones responsible for reading or modifying the metadata. This means that they need to call the meta backend service instead of calling the utility functions. The utility functions need to call the handlers, and not the other way around. Handlers can have utility methods to assist. Left to do: get everything actually compiling and implemented. The structure is there, now need to fill in the gaps. Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2019-07-29rgw: svc bucket: set bucket instance infoYehuda Sadeh3-18/+80
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2019-07-29rgw: move helper code out of rgw_rados.ccYehuda Sadeh3-40/+41
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2019-07-29rgw: header cleanupYehuda Sadeh2-27/+62
move implementation out of header. Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2019-07-29rgw: use bucket service for get_bucket_infoYehuda Sadeh6-65/+33
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2019-07-29rgw: svc_bucket: initial workYehuda Sadeh9-120/+464
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2019-07-29rgw: no need to pass in RGWRados to rgw_get_system_obj()Yehuda Sadeh7-13/+12
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2019-07-29rgw: move admin socket cache code into svc_sys_obj_cacheYehuda Sadeh4-145/+142
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2019-07-29rgw: move rgw_compression_info_from_attrset() to a better homeYehuda Sadeh6-26/+29
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2019-07-29rgw: svc_cls: replace svc_mfa with a more generic svc_clsYehuda Sadeh9-114/+152
Consolidate objclass util services. Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2019-07-29rgw: switch to using svc.mfaYehuda Sadeh6-246/+21
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2019-07-29rgw: svc/mfa: new service for mfa functionalityYehuda Sadeh5-0/+318
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2019-07-29rgw: move manifest code around, initial tier separationYehuda Sadeh25-1256/+1453
cascading changes, and minor improvements. Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2019-07-29rgw: more headers cleanupYehuda Sadeh28-101/+140
Dependency reduction Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2019-07-29rgw: object expirer: move code aroundYehuda Sadeh5-146/+193
move code out of RGWRados, refactor a bit to use rados svc. Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2019-07-29rgw: more headers cleanupsYehuda Sadeh6-38/+64
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2019-07-29rgw: header cleanup: remove code from rgw_rados.hYehuda Sadeh9-81/+122
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2019-07-29cephfs-shell: Fix flake8 line too long errorVarsha Rao1-1/+2
https://tracker.ceph.com/issues/40992 Signed-off-by: Varsha Rao <varao@redhat.com>
2019-07-29cephfs-shell: Fix flake8 line break after binary operator errorVarsha Rao1-9/+9
Fixes: https://tracker.ceph.com/issues/40992 Signed-off-by: Varsha Rao <varao@redhat.com>
2019-07-29cephfs-shell: Fix flake8 continuation line over-indented for hanging indent ↵Varsha Rao1-1/+1
error Fixes: https://tracker.ceph.com/issues/40992 Signed-off-by: Varsha Rao <varao@redhat.com>
2019-07-29cephfs-shell: Fix flake8 missing whitespace around arithmetic operator errorVarsha Rao1-5/+5
Fixes: https://tracker.ceph.com/issues/40992 Signed-off-by: Varsha Rao <varao@redhat.com>
2019-07-29cephfs-shell: Fix multiple spaces after ':' flake8 errorVarsha Rao1-1/+1
Fixes: https://tracker.ceph.com/issues/40992 Signed-off-by: Varsha Rao <varao@redhat.com>
2019-07-29mgr/dashboard: fix MDS counter chart is not displayedKiefer Chang1-1/+5
Unit of timetamp for performance counters is changed to nanoseconds [1]. Adapt this for CephFS MDS performance counters in backend. [1]: https://github.com/ceph/ceph/pull/28882 Fixes: https://tracker.ceph.com/issues/40971 Signed-off-by: Kiefer Chang <kiefer.chang@suse.com>
2019-07-29test/librados: avoid residual crush rule after test case executionroot2-2/+2
Fixes: http://tracker.ceph.com/issues/40970 Signed-off-by: Bingyi Zhang <zhangbingyi@umcloud.com>
2019-07-26mgr/dashboard/qa: add more fields to reportKefu Chai1-0/+4
to be in sync with #28847 Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-07-26qa/suites/rados/rest/mgr-restful: whitelist OSDMAP_FLAGSKefu Chai1-0/+1
`rest/test-restful.sh` calls `test_mgr_rest_api.py`, which in turn calls ``` ('patch', '/config/osd', {'pause': True}), ``` and rest module translates it to `ceph osd set key=pause` Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-07-26rgw: az: add archive zone testsJavier M. Mellid4-2/+653
Signed-off-by: Javier M. Mellid <jmunhoz@igalia.com>
2019-07-26mgr/telemetry: salt osd ids tooSage Weil1-6/+5
Better to fully obfuscate here. This has a nice side-effect of assigning entity names that are *globally* unique across the full telemetry data set, since the salts are unique and sha1 is (sufficiently) collision-free. Signed-off-by: Sage Weil <sage@redhat.com>
2019-07-26mgr/dashboard: Explicitly type page variablesAdam King17-17/+17
Explicitly gives a type to page variables. Helps make better use of Typescript's static type checking. Undoes mistake from #29070. Fixes: https://tracker.ceph.com/issues/40961 Signed-off-by: Adam King <adking@redhat.com> Signed-off-by: Rafael Quintero <rquinter@redhat.com>
2019-07-26mgr: Reduce logging noise when handling commandsSebastian Wagner1-4/+3
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2019-07-26pybind/mgr: don't log exception when cannot find RBD task by idJason Dillaman1-3/+2
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2019-07-26osd: fix wrong arguments when dropping refcountmyoungwon oh1-1/+2
Signed-off-by: Myoungwon Oh <omwmw@sk.com>
2019-07-26mgr/dashboard: Various UI issues related to CephFSVolker Theile5-8/+41
* Check if data is accessible, otherwise set grafanaId to undefined. * Catch errors in 'Clients' tab and stop loading spinner. Display ViewCacheStatus Exception. * Render the 'Enabled' column using the checkIcon cell template as other lists do. Fixes: https://tracker.ceph.com/issues/40925 Signed-off-by: Volker Theile <vtheile@suse.com>
2019-07-26os/bluestore: avoid unnecessary notify.Jianpeng Ma2-1/+4
Add parameter count waiting list for Onode::flush to avoid unnecessary notify. Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
2019-07-26common,tools: make sure the destination buffer can handle the size of the stringsongweibin2-2/+2
fix klocwork issues: Width is not specified for 's' conversion specifier. This can result in an overflow of the buffer provided in argument 3 of a call to 'sscanf' Signed-off-by: songweibin <song.weibin@zte.com.cn>
2019-07-26src/tools: initialize variables before the goto statementsongweibin1-5/+5
CID 172143 (#15 of 15): Branch past initialization (PW.BRANCH_PAST_INITIALIZATION) 1. branch_past_initialization: 2. name_at_decl_position: variable "oid" (declared at line 220) 3. name_at_decl_position: variable "exkeys" (declared at line 241) 4. name_at_decl_position: variable "exvals" (declared at line 242) 5. name_at_decl_position: variable "safe" (declared at line 278) Signed-off-by: songweibin <song.weibin@zte.com.cn>
2019-07-26src/mount: check before dereference bufsongweibin1-0/+4
CID 180671 (#1 of 1): Dereference null return value (NULL_RETURNS) Signed-off-by: songweibin <song.weibin@zte.com.cn>
2019-07-26src/crush: check before dereference out2songweibin1-2/+2
CID 174874 (#2 of 2): Dereference after null check (FORWARD_NULL) 30. var_deref_op: Dereference null pointer out2. Signed-off-by: songweibin <song.weibin@zte.com.cn>
2019-07-26mds: execute PurgeQueue on_error handler in finisherYan, Zheng2-13/+7
Fix: https://tracker.ceph.com/issues/40695 Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
2019-07-25qa: wait for MDS to come back after removing itPatrick Donnelly1-2/+6
Fixes: http://tracker.ceph.com/issues/40967 Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2019-07-25mon/OSDMonitor: do not clobber pending xinfo during bootSage Weil1-5/+5
If we have a pending xinfo change and also process a boot message, we should not throw out the pending xinfo change. This triggers when you mark an osd down and it sends both a MOSDMarkMeDead and a new MOSDBoot message in quick succession: the first message sets dead_epoch but the boot message processing clobbers it. Signed-off-by: Sage Weil <sage@redhat.com>
2019-07-25osd/OSDMap: add is_dead() helperSage Weil1-0/+7
Signed-off-by: Sage Weil <sage@redhat.com>
2019-07-25mon/OSDMonitor: 'osd down ... --definitely-dead'Sage Weil2-1/+14
Like 'osd down', but we also set dead_epoch. Should only be used if we know the process/host is already completely dead and unresponsive. Signed-off-by: Sage Weil <sage@redhat.com>
2019-07-25osd: send MOSDMarkMeDead when we are marked downSage Weil1-0/+9
Signed-off-by: Sage Weil <sage@redhat.com>
2019-07-25mon/OSDMonitor: implement MOSDMarkMeDead handlingSage Weil6-0/+132
Allow updates to the dead_epoch in osd_xinfo, so that the OSD can inform us that they know they are down (as of a particular epoch). Signed-off-by: Sage Weil <sage@redhat.com>
2019-07-25mgr/telemetry: obscure entity_name with a saltSage Weil1-0/+14
Signed-off-by: Sage Weil <sage@redhat.com>
2019-07-25pybind/mgr: handle duplicate rbd task commandsJason Dillaman1-23/+74
The 'ceph' CLI will duplicate commands within teuthology to test the MONs idempotency. This shouldn't be required for the MGR module, but we can keep a fixed set of completed tests to handle this possible command replay. Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2019-07-25mds: Move inline functions with loops or switch statements to CInode.ccVarsha Rao2-89/+107
Signed-off-by: Varsha Rao <varao@redhat.com>
2019-07-25mds: Reorganize class members in CInode headerVarsha Rao1-373/+346
Fixes: https://tracker.ceph.com/issues/40787 Signed-off-by: Varsha Rao <varao@redhat.com>
2019-07-25doc/mgr/telemetry: updateSage Weil1-20/+46
Signed-off-by: Sage Weil <sage@redhat.com>