Skip to content

Instantly share code, notes, and snippets.

View salv-orlando's full-sized avatar
🤡

Salvatore Orlando salv-orlando

🤡
  • VMware
  • Naples, Italy
View GitHub Profile
set -x
OVS_REPO=${OVS_REPO:-http://github.com/openvswitch/ovs.git}
OVS_REPO_NAME=$(basename ${OVS_REPO} | cut -f1 -d'.')
OVN_REPO_NAME=$OVS_REPO_NAME
OVN_REMOTE=${OVN_REMOTE:-tcp:$HOST_IP:6640}
OVS_BRANCH=${OVS_BRANCH:-origin/master}
USE_SCREEN=${USE_SCREEN:-True}
SCREEN_NAME=${SCREEN_NAME:-ovn}
SCREEN_SLEEP=${SCREEN_SLEEP:-1}
@salv-orlando
salv-orlando / gist:22e524979fe7e2d18d2d
Created March 16, 2015 00:21
changes for IPAM patches
diff --git a/neutron/db/db_base_plugin_v2.py b/neutron/db/db_base_plugin_v2.py
index 479b816..4ac2a66 100644
--- a/neutron/db/db_base_plugin_v2.py
+++ b/neutron/db/db_base_plugin_v2.py
@@ -149,15 +149,16 @@ class NeutronDbPluginV2(neutron_plugin_base_v2.NeutronPluginBaseV2,
def _delete_ip_allocation(context, network_id, subnet_id, ip_address):
# Delete the IP address from the IPAllocate table
- LOG.debug("Delete allocated IP %(ip_address)s "
+ LOG.warn("Delete allocated IP %(ip_address)s "
@salv-orlando
salv-orlando / keep_booting_stuff.sh
Last active August 29, 2015 13:55
stress processes in metadata
while :
do
echo "BOOTING VMs"
nova boot --flavor 84 --image $1 --nic net-id=$2 --key-name test-key test1
nova boot --flavor 84 --image $1 --nic net-id=$2 --key-name test-key test2
nova boot --flavor 84 --image $1 --nic net-id=$2 --key-name test-key test3
nova boot --flavor 84 --image $1 --nic net-id=$2 --key-name test-key test4
nova boot --flavor 84 --image $1 --nic net-id=$2 --key-name test-key test5
nova boot --flavor 84 --image $1 --nic net-id=$2 --key-name test-key test6
nova boot --flavor 84 --image $1 --nic net-id=$2 --key-name test-key test7
@salv-orlando
salv-orlando / gist:5778055
Created June 13, 2013 22:44
cleanup script
for (( k=0; k<$1; k++ ))
do
for (( j=0; j<$2; j++ ))
do
quantum port-delete port-$k-$j
done
quantum net-delete net-$k
quantum net-list
quantum port-list
done
@salv-orlando
salv-orlando / gist:5778033
Created June 13, 2013 22:41
Simple parallel test - Write, then read
do
# WRITE
(quantum net-create net-$k
quantum subnet-create net-$k 10.0.$k.0/24 --name sub-$k
for (( j=0; j<$2; j++ ))
do
(quantum port-create net-$k --name port-$k-$j)&
done)&
done
# READ
@salv-orlando
salv-orlando / gist:5598359
Created May 17, 2013 10:44
Remove stuff from quantum
for (( k=0; k<$1; k++ ))
do
for (( j=0; j<$2; j++ ))
do
quantum port-delete port-$k-$j
done
quantum net-delete net-$k
quantum net-list
quantum port-list
done
@salv-orlando
salv-orlando / gist:5598358
Created May 17, 2013 10:43
Create stuff on quantum
for (( k=0; k<$1; k++ ))
do
quantum net-create net-$k
quantum subnet-create net-$k 10.0.$k.0/24 --name sub-$k
for (( j=0; j<$2; j++ ))
do
quantum port-create net-$k --name port-$k-$j
done
quantum net-list
quantum port-list