This recipe moved to my blog.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 - |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import unittest | |
class DedupTests(unittest.TestCase): | |
def setUp(self): | |
self.roles = [ | |
{'extra': '', 'id': 1, 'name': 'role1'}, | |
{'id': 2, 'name': 'role2', 'extra': ''}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |