Skip to content

Instantly share code, notes, and snippets.

View serngawy's full-sized avatar
🏠
Working from home

Mohamed ElSerngawy serngawy

🏠
Working from home
  • Red Hat
  • Montreal, Canada
View GitHub Profile
@serngawy
serngawy / capa-controller-manager-dep.yaml
Last active January 30, 2024 17:00
capa-controller-manager Deployment
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
cluster.x-k8s.io/provider: infrastructure-aws
clusterctl.cluster.x-k8s.io: ""
control-plane: capa-controller-manager
name: capa-controller-manager
namespace: capa-system
spec:
[[local|localrc]]
enable_plugin kuryr-kubernetes https://git.openstack.org/openstack/kuryr-kubernetes
# If you do not want stacking to clone new versions of the enabled services,
# like for example when you did local modifications and need to ./unstack.sh
# and ./stack.sh again, uncomment the following
RECLONE="NO"
debug=True
2016-08-30 16:51:43,829 | WARN | p1112048510-1036 | WriteCandidateTx | 180 - org.opendaylight.controller.sal-netconf-connector - 1.2.4.AYA | RemoteDevice{netconf88841981112112}: Error merge data to (candidate)/(urn:avaya:params:xml:ns:yang:ona100?revision=2016-02-04)system, data: ImmutableContainerNode{nodeIdentifier=(urn:avaya:params:xml:ns:yang:ona100?revision=2016-02-04)system, value=[ImmutableContainerNode{nodeIdentifier=(urn:avaya:params:xml:ns:yang:ona100?revision=2016-02-04)configuration, value=[], attributes={}}], attributes={}}, canceling
NetconfDocumentedException{message=RemoteDevice{netconf88841981112112}: edit candidate - merge operation failed., errorType=application, errorTag=operation_failed, errorSeverity=error, errorInfo={}}
at org.opendaylight.controller.sal.connect.netconf.sal.tx.AbstractWriteTx$2.apply(AbstractWriteTx.java:193)
at org.opendaylight.controller.sal.connect.netconf.sal.tx.AbstractWriteTx$2.apply(AbstractWriteTx.java:190)
at com.google.common.util.concurren
Aug 02, 2016 10:51:58 AM org.apache.karaf.main.Main launch
INFO: Installing and starting initial bundles
Aug 02, 2016 10:51:59 AM org.apache.karaf.main.Main launch
INFO: All initial bundles installed and set to start
Aug 02, 2016 10:51:59 AM org.apache.karaf.main.lock.SimpleFileLock lock
INFO: Trying to lock /home/vagrant/deploy/1470135069.12/odl/lock
Aug 02, 2016 10:51:59 AM org.apache.karaf.main.lock.SimpleFileLock lock
INFO: Lock acquired
Aug 02, 2016 10:51:59 AM org.apache.karaf.main.Main$KarafLockCallback lockAquired
INFO: Lock acquired. Setting startlevel to 100
==Without any network==
sudo ovs-ofctl -O OpenFlow13 dump-flows br-int
OFPST_FLOW reply (OF1.3) (xid=0x2):
cookie=0x0, duration=2871.555s, table=0, n_packets=0, n_bytes=0, dl_type=0x88cc actions=CONTROLLER:65535
cookie=0x0, duration=2871.555s, table=0, n_packets=1, n_bytes=90, priority=0 actions=goto_table:20
cookie=0x0, duration=2871.555s, table=20, n_packets=122, n_bytes=13263, priority=0 actions=goto_table:30
cookie=0x0, duration=2871.555s, table=30, n_packets=122, n_bytes=13263, priority=0 actions=goto_table:40
cookie=0x0, duration=2871.555s, table=40, n_packets=59, n_bytes=6726, priority=0 actions=goto_table:50
cookie=0x0, duration=2871.555s, table=50, n_packets=122, n_bytes=13263, priority=0 actions=goto_table:60
cookie=0x0, duration=2871.555s, table=60, n_packets=122, n_bytes=13263, priority=0 actions=goto_table:70
2016-01-12 13:54:13,863 | INFO | ult-dispatcher-4 | OvsdbConnectionManager | 159 - org.opendaylight.ovsdb.southbound-impl - 1.2.1.SNAPSHOT | OVSDB Connection from /192.168.1.106:6640
2016-01-12 13:54:14,080 | INFO | ult-dispatcher-4 | OvsdbConnectionManager | 159 - org.opendaylight.ovsdb.southbound-impl - 1.2.1.SNAPSHOT | OVSDB entity
Entity{type='ovsdb', id=/(urn:TBD:params:xml:ns:yang:network-topology?revision=2013-10-21)network-topology/topology/topology[{(urn:TBD:params:xml:ns:yang:network-topology?revision=2013-10-21)topology-id=ovsdb:1}]/node/node[{(urn:TBD:params:xml:ns:yang:network-topology?revision=2013-10-21)node-id=ovsdb://192.168.1.106:6640}]} is registered for ownership.
2016-01-12 13:54:14,083 | INFO | lt-dispatcher-15 | OvsdbConnectionManager | 159 - org.opendaylight.ovsdb.southbound-impl - 1.2.1.SNAPSHOT | handleOwnershipChanged: *this* southbound plugin instance is an OWNER of the device ConnectionInfo [Remote-address=192.168.1.106, Remote-port=6640,
[[local|localrc]]
LOGFILE=stack.sh.log
SCREEN_LOGDIR=/opt/stack/data/log
LOG_COLOR=False
RECLONE=False
disable_service swift
disable_service cinder
disable_service n-net
enable_service q-svc
@serngawy
serngawy / Vagrantfile
Last active October 30, 2015 15:47
mininet vagrant file
# -*- mode: ruby -*-
# vi: set ft=ruby :
$init = <<SCRIPT
aptitude update
aptitude install -y build-essential fakeroot debhelper autoconf automake libssl-dev graphviz \
python-all python-qt4 python-twisted-conch libtool git tmux vim python-pip python-paramiko \
python-sphinx
pip install alabaster
SCRIPT
@serngawy
serngawy / local.conf
Last active September 25, 2015 12:15
local.conf for opendaylight and openstack
[[local|localrc]]
LOGFILE=stack.sh.log
SCREEN_LOGDIR=/opt/stack/data/log
LOG_COLOR=False
RECLONE=yes
disable_service n-net
enable_service q-svc
enable_service q-agt
enable_service q-dhcp
#!/usr/bin/env bash
source openrc admin admin
keystone tenant-create --name=tenant1 --enabled=true 2> /dev/null
keystone user-create --name=user1 --pass=user1 --email=user1@example.com 2> /dev/null
keystone user-role-add --user=user1 --role=_member_ --tenant=tenant1 2> /dev/null
keystone tenant-create --name=tenant2 --enabled=true 2> /dev/null
keystone user-create --name=user2 --pass=user2 --email=user2@example.com 2> /dev/null