Skip to content

Instantly share code, notes, and snippets.

locking a machine

first, use:

teuthology-lock --brief

to see if you already have a machine locked. if not, use:

teuthology-lock --lock-many 1 --machine-type smithi

to lock a machine.

@yuvalif
yuvalif / server.py
Created September 7, 2023 15:53 — forked from mdonkers/server.py
Simple Python 3 HTTP server for logging all GET and POST requests
#!/usr/bin/env python3
"""
License: MIT License
Copyright (c) 2023 Miel Donkers
Very simple HTTP server in python for logging requests
Usage::
./server.py [<port>]
"""
from http.server import BaseHTTPRequestHandler, HTTPServer
@vedanshbhartia
vedanshbhartia / report.md
Created August 22, 2023 14:34
GSoC 2023 Report - Ceph RGW

Project Report: "Gotta Catch 'Em All" - Leveraging Coverity for RGW Code Cleanup in Ceph

The "Gotta Catch 'Em All" project focused on leveraging the Coverity static analysis tool to enhance the code quality of the Ceph RGW (Rados Gateway) module. We addressed a range of issues and categorized them based on severity and relevance. We aim to use this data to evaluate the potential of Coverity for the Ceph organization.

Data

A total of 87 issues were fixed as part of the GSoC, and they were categorized into four main categories based on severity:

  • Critical: 36 issues
  • Not Worth Effort: 6 issues
  • Nice to Have: 10 issues
  • False Positive: 35 issues

Goal

This is list TODOs for the bucket notification PR in Rook. Based on these comments:

Priority 1

Refactoring and Unit Tests

  • code reuse with reused function (and unit test for above reused function)
  • use the regular S3 agent for notification provisioning (topic will still need the special SNS client)
@yuvalif
yuvalif / rgw_multisite_tests.md
Last active December 18, 2023 07:21
Ceph RGW multisite tests suite

Running Tests Locally

  • you run the tests locally from your "build" directory in your test environment
  • then you need to add a "test_multi.conf" file:
[DEFAULT]
num_zonegroups=1
num_zones=1
num_ps_zones=0
gateways_per_zone=1
@yuvalif
yuvalif / get_teuthology_logs.sh
Last active February 5, 2024 10:59
get logs from teuthology and grep for errors
#!/bin/bash
if [ "$#" -eq 2 ]; then
name=$1
id=$2
cluster="ceph"
endloop=0
elif [ "$#" -eq 3 ]; then
name=$1
id=$2

Fedora28-32

Current status:

df -h

Find large files in the system:

sudo find / -type f -size +1000M -exec ls -lh {} \;
@jlblancoc
jlblancoc / Install_gcc7_ubuntu_16.04.md
Last active October 10, 2023 03:09
Installing gcc-7 & g++-7 in Ubuntu 16.04LTS Xenial

Run the following in the terminal:

Install the gcc-7 packages:

sudo apt-get install -y software-properties-common
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt install g++-7 -y

Set it up so the symbolic links gcc, g++ point to the newer version:

@mdonkers
mdonkers / server.py
Last active April 25, 2024 10:25
Simple Python 3 HTTP server for logging all GET and POST requests
#!/usr/bin/env python3
"""
License: MIT License
Copyright (c) 2023 Miel Donkers
Very simple HTTP server in python for logging requests
Usage::
./server.py [<port>]
"""
from http.server import BaseHTTPRequestHandler, HTTPServer