Skip to content

Instantly share code, notes, and snippets.

View zmc's full-sized avatar

Zack Cerza zmc

View GitHub Profile

Keybase proof

I hereby claim:

  • I am zmc on github.
  • I am zmc (https://keybase.io/zmc) on keybase.
  • I have a public key whose fingerprint is 63FD 0576 6599 D286 94CD A9F3 1C37 E35F 8FE0 7CEF

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am zmc on github.
  • I am zmc (https://keybase.io/zmc) on keybase.
  • I have a public key whose fingerprint is FD5E EA05 4E92 7D90 928A E4D6 F3F5 8789 2A46 D677

To claim this, I am signing this object:

@zmc
zmc / utest.py
Last active August 29, 2015 14:00
#!/usr/bin/env python
"""
This is a test case for http://tracker.ceph.com/issues/8116
It will base64-decode the payload, then attempt to ssh to your local machine
and read it via teuthology-wrapped paramiko
"""
import base64
import subprocess
from teuthology.orchestra.remote import Remote
#!/usr/bin/env python
import base64
import subprocess
from teuthology.orchestra.connection import paramiko
from teuthology.orchestra.remote import Remote
bad_file_name = '/tmp/monmap.bad'
hostname = subprocess.Popen('hostname', stdout=subprocess.PIPE)\
.stdout.read().strip()
@zmc
zmc / nop.yaml
Created September 22, 2014 15:30
roles:
- [mon.a, mds.a, osd.0, osd.1,client.0]
tasks:
- nop:
#!/bin/bash
# A simple script used by Red Hat to start teuthology-worker processes.
ARCHIVE=$HOME/archive
WORKER_LOGS=$ARCHIVE/worker_logs
function start_workers_for_tube {
echo "Starting $2 workers for $1"
for i in `seq 1 $2`
@zmc
zmc / README.rst
Last active August 29, 2015 14:08
New Teuthology Lab Setup Notes

Introduction

We recently set up a new lab for Ceph testing and decided to document the parts of the process that are most relevant to teuthology. This is the result.

We started by setting aside two of the test machines: one as the 'teuthology node', and another as the 'paddles/pulpito node'. These would be used to orchestrate automated testing and to store and serve the results on our intranet.

paddles/pulpito node

@zmc
zmc / ovh-debug.txt
Created February 22, 2016 20:26
ceph-ansible osd_auto_discovery debug
TASK: [ceph-osd | debug combined_parted_results.results] **********************
ok: [target078012.ovh.sepia.ceph.com] => {
"var": {
"combined_parted_results.results": [
{
"changed": false,
"cmd": "parted --script /dev/vda print | egrep -sq '^ 1.*ceph'",
"delta": "0:00:00.011337",
"end": "2016-02-22 16:36:08.487354",
"failed": false,
@zmc
zmc / pr80.md
Created September 7, 2016 16:23
autobuild-ceph/pull/80
16:20:54 zack@teuthology ceph master $ cat /tmp/old.sh
#!/bin/sh -x
set -e


# Reformat version if needed to match RPM version and release
if expr index $(git describe --always) '-' > /dev/null ; then
    desc=$(git describe --always | sed 's/^v//')
    RPM_VER=$(echo $desc | cut -d'-' -f1)
import gc
import gevent
import traceback
def find_greenlets():
greenlets = list()
objects = gc.get_objects()
for obj in objects:
if isinstance(obj, gevent.greenlet.greenlet):