Skip to content

Instantly share code, notes, and snippets.

@lbragstad
lbragstad / report.conf
Last active April 27, 2018 13:45
Bug Report 27 April 2018
[report]
projects = keystone keystoneauth keystonemiddleware python-keystoneclient
start_date = 'April 20, 2018 12:00 AM CST'
end_date = 'April 27, 2018 12:00 AM CST'
diff --git a/keystone/identity/core.py b/keystone/identity/core.py
index d7d0bf4..36bffdc 100644
--- a/keystone/identity/core.py
+++ b/keystone/identity/core.py
@@ -915,12 +915,16 @@ class Manager(manager.Manager):
@domains_configured
@exception_translated('assertion')
def authenticate(self, request, user_id, password):
+ LOG.info('authenticating user id: %r' % user_id)
domain_id, driver, entity_id = (
#!/bin/bash
export IP=`hostname -I | tr -d "\n\r" | tr -d " "`
# re-create the database
mysql -uroot -ppassword -e "DROP DATABASE IF EXISTS keystone"
mysql -uroot -ppassword -e "CREATE DATABASE keystone"
source ~/keystone-venv/bin/activate
# This file is generated from information provided by
# the datasource. Changes to it will not persist across an instance.
# To disable cloud-init's network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet manual
@lbragstad
lbragstad / billrc
Last active December 29, 2017 00:16
System Scope Demo Files
export OS_AUTH_URL=http://192.168.122.11/identity/v3/
export OS_IDENTITY_API_VERSION=3
export OS_USERNAME=bill
export OS_PASSWORD=password
export OS_SYSTEM_SCOPED=True
export OS_DEFAULT_DOMAIN=default
@lbragstad
lbragstad / chocolate-chip-pancakes.md
Last active December 2, 2017 15:47
Chocolate Chip Pancakes

Chocolate Chip Pancakes

This recipe moved to my blog.

@lbragstad
lbragstad / devstack-container.log
Last active December 28, 2017 20:45
LXC and Devstack
lxc-start 20170830163529.221 ERROR lxc_utils - utils.c:safe_mount:1738 - Not a directory - Failed to mount /dev/kvm onto /usr/lib64/lxc/rootfs/dev/kvm
lxc-start 20170830163529.222 ERROR lxc_conf - conf.c:mount_entry:1768 - Not a directory - failed to mount '/dev/kvm' on '/usr/lib64/lxc/rootfs/dev/kvm'
lxc-start 20170830163529.222 ERROR lxc_conf - conf.c:lxc_setup:4011 - failed to setup the mount entries for 'full-devstack'
lxc-start 20170830163529.222 ERROR lxc_start - start.c:do_start:812 - Failed to setup container "full-devstack".
lxc-start 20170830163529.222 ERROR lxc_sync - sync.c:__sync_wait:57 - An error occurred in another process (expected sequence number 3)
lxc-start 20170830163529.267 ERROR lxc_start - start.c:__lxc_start:1355 - Failed to spawn container "full-devstack".
lxc-start 20170830163529.310 ERROR lxc_start_ui - tools/lxc_start.c:main:366 - The container failed to start.
lxc-start 20170830163529.310 ERROR lxc_start_ui -
@lbragstad
lbragstad / attempt.py
Last active August 16, 2017 17:51
removing duplicate dictionaries from a list
import time
import unittest
class DedupTests(unittest.TestCase):
def setUp(self):
self.roles = [
{'extra': '', 'id': 1, 'name': 'role1'},
{'id': 2, 'name': 'role2', 'extra': ''},
@lbragstad
lbragstad / dep.py
Created August 10, 2017 16:52
dependency registry with meta classes
import re
registry = {}
class Meta(type):
def __new__(meta, name, bases, class_dict):
cls = type.__new__(meta, name, bases, class_dict)
parts = [p.lower() for p in re.split(r'([A-Z][a-z]*)', name) if p]
@lbragstad
lbragstad / keystone.conf
Last active July 19, 2017 14:18
scripts and tools for debugging 1689888
[cache]
config_prefix = cache.keystone
backend = dogpile.cache.memcached
backend_argument = url:127.0.0.1:11211
enabled = true
debug_cache_backend = true
memcache_servers = 127.0.0.1:11211
memcache_pool_connection_get_timeout = 1