Skip to content

Instantly share code, notes, and snippets.

[abhishekl@pxe-sup3:/ssd/builds/cpp/ceph/src](⎇ rgw/multi-master-zg)$
./radosgw-admin period update --commit
2016-04-12 21:38:54.180661 7f5b76e33b40 -1 WARNING: the following dangerous and experimental features are enabled: *
2016-04-12 21:38:54.180887 7f5b76e33b40 -1 WARNING: the following dangerous and experimental features are enabled: *
2016-04-12 21:38:54.217579 7f5b76e33b40 -1 WARNING: the following dangerous and experimental features are enabled: *
2016-04-12 21:38:54.912427 7f5b76e33b40 0 RGWZoneParams::create(): error creating default zone params: (17) File exists
2016-04-12 21:38:55.730382 7f5b76e33b40 0 ERROR: updating periodmap, multiple master zonegroups in same realm
failed to update period: (22) Invalid argument
[abhishekl@pxe-sup3:/ssd/builds/cpp/ceph/src](⎇ rgw/multi-master-zg)$
./radosgw-admin period update
function ceph-workbench() {
mkdir -p $HOME/.ceph-workbench
sudo docker run --rm -ti \
-v $HOME/.ceph-workbench:/opt/.ceph-workbench \
-v /var/run/docker.sock:/run/docker.sock \
-v $(which docker):/bin/docker \
-w /opt/.ceph-workbench \
--env USER_ID=$(id -u) --env USER_NAME=$(id -un) \
dachary/ceph-workbench \
/opt/ceph-workbench/virtualenv/bin/ceph-workbench "$@"
#!/bin/bash
# 2 clusters dc1 and dc2 started via mstart (+ patch for rgw ports)
# Cluster 1, Zone 1 : Realm: EU, Zonegroup: DE , Zone : NUE master
# export CEPH_CONF=/path/to/ceph.conf cluster1 otherwise all commands has to have a -c with path to conf file
echo "export ZONE_ACCESS_KEY=1555b35654ad1656d804" >> ~/.s3zone
echo "export ZONE_SECRET_KEY=h7GhxuBLTrlhVUyxSPUKUV8r/2EI4ngqJxD7iBdBYLhwluN30JaT3Q==" >> ~/.s3zone
. ~/.s3zone
export CEPH_CONF=~/spells/storage/ceph/src/run/dc1/ceph.conf
./radosgw-admin realm create --rgw-realm=eu
./radosgw-admin zonegroup create --rgw-zonegroup=de --endpoints=http://localhost:8001 --master
@theanalyst
theanalyst / make_release_notes.py
Last active August 29, 2015 14:19
release notes helper
#!/usr/bin/env python
# Originally borrowed from A. Israel's https://gist.github.com/aisrael/b2b78d9dfdd176a232b9
from __future__ import print_function
import re
import github
from git import Repo
gh = github.GitHub(
* allow -L to disable lttng. Enable it by default (#11303 Alfredo Deza)
* mon: MDSMonitor: wait for osdmon to be writable when requesting proposal (#9794 Joao Eduardo Luis)
* osd: Get pgid ancestor from last_map when building past intervals (#10430 David Zafman)
* Objecter: failed assert(tick_event==NULL) at osdc/Objecter.cc (#11183 Zhiqiang Wang)
* ceph-objectstore-tool: Output only unsupported features when incompatible (#11176 David Zafman)
* rgw: Swift API. Support for X-Remove-Container-Meta-{key} header. (#10475 Dmytro Iurchenko)
* librados: Translate operation flags from C APIs (#10497 Matthew Richards)
* Objecter: check the 'initialized' atomic_t safely (#9617 Josh Durgin)
* Objecter: init with a constant of the correct type (#9617 Josh Durgin)
* CrushWrapper: pick a ruleset same as rule_id (#9675 Xiaoxi Chen)
@theanalyst
theanalyst / giant-release-notes.txt
Created April 21, 2015 11:23
giant-release-notes
* allow -L to disable lttng. Enable it by default (Alfredo Deza)
* mon: MDSMonitor: wait for osdmon to be writable when requesting proposal (#9794 Joao Eduardo Luis)
* mon: MDSMonitor: have management_command() returning int instead of bool (Joao Eduardo Luis)
* osd: Get pgid ancestor from last_map when building past intervals (#10430 David Zafman)
* Objecter: failed assert(tick_event==NULL) at osdc/Objecter.cc (#11183 Zhiqiang Wang)
* ceph-objectstore-tool: Output only unsupported features when incomatible (#11176 David Zafman)
* rgw: Swift API. Support for X-Remove-Container-Meta-{key} header. (#10475 Dmytro Iurchenko)
* librados: Translate operation flags from C APIs (Matthew Richards)
* Objecter: check the 'initialized' atomic_t safely (#9617 Josh Durgin)
* Objecter: init with a constant of the correct type (Josh Durgin)
(defun send-region-as-email (start end)
"A hacky function to send a region as mail
Assumes the region follows the below format
To: <recepient>
Subject: <subject>
<mail body>"
(interactive (if (use-region-p)
(list (region-beginning) (region-end))
(list nil nil)))
(let* ((selection (buffer-substring-no-properties start end))
@theanalyst
theanalyst / vagrant-failure.log
Last active August 29, 2015 14:14
vagrant failure
Bringing machine 'default' up with 'kvm' provider...
==> default: Importing base box 'precise64'...
==> default: Assigning a new mac address to the VM.
==> default: Preparing network interfaces based on configuration...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 192.168.123.99:22
default: SSH username: vagrant
default: SSH auth method: private key
default: Warning: Host unreachable. Retrying...
@theanalyst
theanalyst / Dockerfile
Created October 14, 2014 12:57
ceph make check dockerfile
FROM ubuntu:14.04
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -y \
autoconf \
automake \
autotools-dev \
ccache \
libbz2-dev \