This file contains 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
NTP debugging | |
ntpq -pn | |
ntpq -c lpeer | |
ntpq -cpe -cas -crv | |
timedatectl | |
sudo nmap -sU -PN -p 123 time.vmware.com | |
sudo ntpdate -ud time.vmware.com | |
sudo tcpdump -p -i eth0 udp port 123 -vv -X // few dumps is enough. | |
This file contains 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 hudson.EnvVars | |
import hudson.model.* | |
def build_number = Job.getVariable("BUILD_NUMBER") | |
def type = Job.getVariable("Type1") | |
if (type.equalsIgnoreCase("ALL")){ | |
Job.setVariable("Type", "None") | |
} | |
def name = Job.getVariable("Name") |
This file contains 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
#!/usr/bin/env python | |
import pika | |
# Username/Password for rabbit | |
credentials = pika.PlainCredentials("guest", "I5Tldwxd") | |
connection = pika.BlockingConnection(pika.ConnectionParameters( | |
host='192.168.245.3', port=5672, credentials=credentials)) | |
channel = connection.channel() |
This file contains 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
from keystoneclient.auth.identity import v3 | |
from keystoneclient import client | |
from keystoneclient import session | |
from keystoneclient.v3 import client as v3client | |
def get_client(auth_url=None, token=None, username=None, password=None, project_name=None, | |
project_domain_name=None, user_domain_name=None, domain_name=None, | |
insecure=False, ca_cert=None): | |
This file contains 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
Fernet token : gAAAAABVAzLVJR6FS7hoFO_PG3LJZn6UCryHdvTsj81tD51luVwaKuzQZnSoo0bs8wflijDSKwxKy19bNlGXvhf5YSdduL84E-f69ZEJxzSAddz6WdT02PhQ9bTQumqWJ3W4FWcGI-ZaQBUvw-mQxM1mcXsRdVGA1A== | |
Fernet keys : | |
root@dfd26d6094b2:/etc/keystone/fernet-keys# ls | |
0 1 | |
root@dfd26d6094b2:/etc/keystone/fernet-keys# cat 0 | |
Lmxt0NSWU7QnxBtmDbBKtfzqZt6CR8ubUDp5efPTcjg= | |
root@dfd26d6094b2:/etc/keystone/fernet-keys# cat 1 |
This file contains 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 is still work in progress. We don't need ECP stuff that is in this code base once that is auto generation of ECP is merged | |
import os | |
from keystoneclient.v3 import client as v3client | |
import logging | |
import requests | |
import json | |
logging.basicConfig(level=logging.INFO) |
This file contains 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
Ansible | |
https://github.com/stackforge/os-ansible-deployment | |
https://github.com/openstack-ansible/openstack-ansible | |
https://github.com/dguerri/vagrant-ansible-openstack | |
Dolph -- Repos | |
https://github.com/dolph/keystone-deploy/tree/galera |
This file contains 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
#Create couple of roles | |
openstack --os-url http://localhost:35357/v3 --os-identity-api-version 3 --os-token=ADMIN role create domain_admin | |
openstack --os-url http://localhost:35357/v3 --os-identity-api-version 3 --os-token=ADMIN role create project_admin | |
openstack --os-url http://localhost:35357/v3 --os-identity-api-version 3 --os-token=ADMIN role create project_user | |
openstack --os-url http://localhost:35357/v3 --os-identity-api-version 3 --os-token=ADMIN role create domain_user | |
openstack --os-url http://localhost:35357/v3 --os-identity-api-version 3 --os-token=ADMIN role create cloud_admin | |
openstack --os-url http://localhost:35357/v3 --os-identity-api-version 3 --os-token=ADMIN role create admin | |
#Create a domain | |
openstack --os-url http://localhost:35357/v3 --os-identity-api-version 3 --os-token=ADMIN domain create domain_A |