Skip to content

Instantly share code, notes, and snippets.

import java.util.concurrent.BlockingQueue;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.HashMap;
public class TestMain {
public static void main(String args[]) {
BlockingQueue<Runnable> bq = new ArrayBlockingQueue<Runnable>(100);
ExecTest exec = new ExecTest(10, bq);
for (int i = 0; i < 10; i++) {
sudo apt-add-repository ppa:mozillateam/firefox-next
sudo apt-get update
sudo apt-get install firefox xvfb
sudo apt-get install firefox=45.0.2+build1-0ubuntu1
pip install selenium==2.53.6
Xvfb :10 -ac &
export DISPLAY=:10
disable_service mysql
enable_service postgresql
## Failure of Master
2016-12-12 13:37:32.714 DEBUG neutron.common.config [-] command line: /usr/local/bin/neutron-keepalived-state-change --router_id=162c5a03-7da6-43ee-9014-ac923bdcf711 --namespace=snat-162c5a03-7da6-43ee-9014-ac923bdcf711 --conf_dir=/opt/stack/data/neutron/ha_confs/162c5a03-7da6-43ee-9014-ac923bdcf711 --monitor_interface=ha-cda61386-10 --monitor_cidr=169.254.0.1/24 --pid_file=/opt/stack/data/neutron/external/pids/162c5a03-7da6-43ee-9014-ac923bdcf711.monitor.pid --state_path=/opt/stack/data/neutron --user=1000 --group=1000 from (pid=30887) setup_logging /opt/stack/neutron/neutron/common/config.py:107
2016-12-12 13:37:32.751 DEBUG neutron.agent.linux.async_process [-] Launching async process [ip netns exec snat-162c5a03-7da6-43ee-9014-ac923bdcf711 ip -o monitor address]. from (pid=30898) start /opt/stack/neutron/neutron/agent/linux/async_process.py:110
2016-12-12 13:37:32.754 DEBUG neutron.agent.linux.utils [-] Running command: ['ip', 'netns', 'exec', 'snat-162c5a03-7da6-43ee-9014-ac923bdcf71
2016-12-10 01:44:59.102475 WARNING:oslo_policy.policy:Policies ['update_rbac_policy:target_tenant'] are part of a cyclical reference.
2016-12-10 01:44:59.179871 WARNING:oslo_policy.policy:Policies ['update_rbac_policy:target_tenant'] are part of a cyclical reference.
2016-12-10 01:44:59.192622 WARNING:oslo_policy.policy:Policies ['update_rbac_policy:target_tenant'] are part of a cyclical reference.
2016-12-10 01:44:59.250029 WARNING:oslo_policy.policy:Policies ['update_rbac_policy:target_tenant'] are part of a cyclical reference.
2016-12-10 01:44:59.258922 WARNING:oslo_policy.policy:Policies ['update_rbac_policy:target_tenant'] are part of a cyclical reference.
2016-12-10 01:44:59.289306 WARNING:oslo_policy.policy:Policies ['update_rbac_policy:target_tenant'] are part of a cyclical reference.
2016-12-10 01:44:59.296100 WARNING:oslo_policy.policy:Policies ['update_rbac_policy:target_tenant'] are part of a cyclical reference.
2016-12-10 01:44:59.337389 WARNING:oslo_policy.policy:Policies ['update_rbac_policy:ta
# Copyright (c) 2012 OpenStack Foundation.
# All rights reserved.
#
# 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
mysql> select * from ml2_port_bindings where port_id='06cc9409-fb74-44cb-8270-890aa4c1d86a';
+--------------------------------------+------+----------+-----------+---------+-------------+
| port_id | host | vif_type | vnic_type | profile | vif_details |
+--------------------------------------+------+----------+-----------+---------+-------------+
| 06cc9409-fb74-44cb-8270-890aa4c1d86a | | unbound | normal | | |
+--------------------------------------+------+----------+-----------+---------+-------------+
{'_networks': {'192.168.140.0/24': ['compute02', 'compute01'], '192.168.100.0/24': ['compute02', 'compute01']}, '_clients': {'compute02': '192.168.100.118', 'compute01': '192.168.100.117'}, '_host_detail': {'compute02': {'192.168.140.0/24': {'ips': ['192.168.140.118'], 'results': {'192.168.140.117': {'host': 'compute01', 'result': 'success', 'open_ports': [22]}}}, '192.168.100.0/24': {'ips': ['192.168.100.118'], 'results': {'192.168.100.117': {'host': 'compute01', 'result': 'success', 'open_ports': [22]}}}}, 'compute01': {'192.168.140.0/24': {'ips': ['192.168.140.117'], 'results': {'192.168.140.118': {'host': 'compute02', 'result': 'success', 'open_ports': [22]}}}, '192.168.100.0/24': {'ips': ['192.168.100.117'], 'results': {'192.168.100.118': {'host': 'compute02', 'result': 'success', 'open_ports': [22]}}}}}}
CREATE DATABASE keystone;
GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'localhost' \
IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'%' \
IDENTIFIED BY 'password';
CREATE DATABASE glance;
External
========
#!/bin/bash
curl --data "username=%dme_username%&password=%dme_pw%&id=%dme_id%&ip=%external_ip%" https://cp.dnsmadeeasy.com/servlet/updateip
Internal
========
#!/bin/bash