Skip to content

Instantly share code, notes, and snippets.

View ronen-fr's full-sized avatar

Ronen Friedman ronen-fr

  • Red Hat
View GitHub Profile
When given a test number (N) to review:
Look at /home/rfriedma/qa/{N}/ - in this directory you will find the following:
1. files named 0,1,2,3,... - each of these files contain the tail of the log of the corresponding OSD;
2. the file 'teuthology.log' - the main log of the test, and 'teu' - which is the tail of teuthology.log - slightly simplified;
3. the link '_', which links to the original test logs directory, where you will find the full description of the test, and the full logs and related material.
If a directory in the name '/home/rfriedma/qa/{N}/' does not exist, you can find the original test directory under '/a/{something}/{N}/'
where N (denoted here as '{N}') is the test number, and '{something}' is one path element.
@ronen-fr
ronen-fr / rtt_jag.md
Last active January 14, 2026 14:24
viewing remote traces

Based on Yuval's yuvalif/ceph-end2end-tracing.md

In order to view traces when vstart is started on a remote (Sepia) node, we must (?) use SSH tunneling:

open the remote terminal with some extra parameters:

ssh -L 16686:localhost:16686 -L 8000:localhost:8000 sockeni07.front.sepia.ceph.com
@ronen-fr
ronen-fr / gist:4a8987af6551cc734cd3bfef8c19363b
Created January 1, 2026 12:31
Q&D fix to ceph.spec.in for Fedora 43
diff --git a/ceph.spec.in b/ceph.spec.in
index 45435898907..513e1874fc1 100644
--- a/ceph.spec.in
+++ b/ceph.spec.in
@@ -151,7 +151,7 @@
%{!?python3_version_nodots: %global python3_version_nodots 3}
%{!?python3_version: %global python3_version 3}
%if 0%{?rhel} < 10
-%{!?gts_version: %global gts_version 13}
+%{!?gts_version: %global gts_version 15}
@ronen-fr
ronen-fr / .clang-format
Created August 13, 2025 17:35
clang-format as of 13.8.25
---
Language: Cpp
BasedOnStyle: Google
AlignAfterOpenBracket: AlwaysBreak
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: Inline
#AllowShortFunctionsOnASingleLine: Empty
AllowShortIfStatementsOnASingleLine: false
AllowShortLambdasOnASingleLine: All
@ronen-fr
ronen-fr / teu_collect4.py
Created June 24, 2025 16:08
~/teu_collect4.py -v -s --logs --parse rfriedma-2025-06-05_17:05:07-rados-rf-redo-50199-reef-distro-default-smithi 8311454
#!/usr/bin/python3
import sys
import argparse
import datetime
import subprocess
import tempfile
import os
import pathlib
import re
@ronen-fr
ronen-fr / .clang-format
Created August 11, 2024 16:33
clang format file as of 11 Aug 24
---
Language: Cpp
BasedOnStyle: Google
AlignAfterOpenBracket: AlwaysBreak
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: Inline
#AllowShortFunctionsOnASingleLine: Empty
AllowShortIfStatementsOnASingleLine: false
AllowShortLambdasOnASingleLine: All
@ronen-fr
ronen-fr / run_slow
Created April 3, 2024 13:54
example of initiating a slow deep-scrub
#
MDS=1 MGR=1 OSD=4 MON=1 ../src/vstart.sh -n --without-dashboard -n --msgr2 -X --memstore -o "memstore_device_bytes=68435456" -o "osd_op_queue=wpq"
sleep 5
bin/ceph -s
bin/ceph config set global osd_pool_default_pg_autoscale_mode off
sleep 2
bin/ceph osd pool create pl1 8 8
@ronen-fr
ronen-fr / gsoc24_wip_2.md
Last active March 11, 2024 15:56
GSOC24 - suggested description

Tidy Up Song

Background

Static analysis is a powerful tool when searching for code issues. It does, however, have its costs. Careful tuning is required so that the developers are not overwhelmed with "false positive" detections, while on the other hand - critical errors are not missed. It also requires simple integration into the development flow, so that new issues are continuously detected and addressed.

In this project we use clang-tidy for automated static analysis

@ronen-fr
ronen-fr / gsoc24_wip_1.md
Created March 5, 2024 14:26
GSOC24 - first edit of Yuval's

Tidy Up Song

Background

Static analysis is a powerful tool when searching for code issues. It does, however, have its costs. Careful tuning is required so that the developers are not overwhelmed with "false positive" detections, while on the other hand - critical errors are not missed. It also requires simple integration into the development flow, so that new issues are continuously detected and addressed.

In this project we use clang-tidy for automated static analysis

@ronen-fr
ronen-fr / 04092023_cpptools_log1
Created September 4, 2023 06:41
re vscode issue
-------- Diagnostics - 9/4/2023, 1:39:29 AM
Version: 1.17.5
Current Configuration:
{
"name": "Linux",
"includePath": [
"/mnt/nvme0/src/k5/ceph/**"
],
"defines": [],
"compilerPath": "/usr/lib64/ccache/clang++",