Skip to content

Instantly share code, notes, and snippets.

@dolph
dolph / event_log.md
Last active September 27, 2015 04:37
OpenStack gerrit event log
@dolph
dolph / gerrit-dashboard-dstanek-stars.ini
Last active August 27, 2015 16:18
Reviews starred by David Stanek: http://bit.ly/1EmIbCI
[dashboard]
title = Starred by David Stanek
description =
foreach =
[section "Needs work"]
query = is:open starredby:dstanek (label:Code-Review<=-1 OR label:Verified<=-1,jenkins OR label:Workflow-1) -label:Workflow+1
[section "Testing"]
query = is:open starredby:dstanek label:Verified+0,jenkins label:Workflow+0
@dolph
dolph / flatten_sequence.py
Created August 24, 2015 14:57
Attempt to flatten gerrit review sequences
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
#!/bin/bash
set -e
unset OS_TOKEN
unset OS_ENDPOINT
# mysql -ukeystone -pkeystone -e "drop database keystone; create database keystone;"
# ~/openstack/keystone/.tox/py27/bin/keystone-manage db_sync
export OS_IDENTITY_API_VERSION=2.0
@dolph
dolph / reviews.md
Last active November 17, 2015 14:26
Stable keystone reviews

This gist has been deprecated.

@dolph
dolph / backports.sh
Last active August 29, 2015 14:27
Git SHAs that have touched Fernet
set -e
git ready stable/kilo
git review -X 167124 # Apr 15, 2015 7:54 PM
tox -e py27 -e pep8
git review -y
git review -X 167141 # May 6, 2015 12:46 PM
tox -e py27 -e pep8
@dolph
dolph / _Fernet_results.md
Last active September 21, 2016 13:56
Keystone performance benchmarking, using devstack stable/kilo

Fernet token creation

Time per request: 62.748 [ms] (mean)

Requests per second: 74.76 [#/sec] (mean)

Fernet token validation

Time per request: 93.782 [ms] (mean)

@dolph
dolph / model.py
Created May 21, 2015 17:14
Example of a keystone object model
class BaseModel(object):
def __init__(self, id=None):
self.id = id or uuid.uuid4().hex
@property
def name(self):
return self._name
class ProjectModel(BaseModel):
@dolph
dolph / reviews.md
Last active September 23, 2015 13:07
Release-blocking OSAD reviews

os-ansible-deployment-specs

(this list is empty!)

os-ansible-deployment

(this list is empty!)

@dolph
dolph / auth.json
Last active June 7, 2018 07:06
Keystone performance benchmarking
{
"auth": {
"identity": {
"methods": [
"password"
],
"password": {
"user": {
"domain": {
"id": "default"