Skip to content

Instantly share code, notes, and snippets.

View kashyapc's full-sized avatar

Kashyap Chamarthy kashyapc

View GitHub Profile
@kashyapc
kashyapc / gist:7452916
Created November 13, 2013 17:25
Oz script stdout
$ sudo ./oz-create-disk-size.bash f19-jeos f19
1
IP forwarding enabled
DEBUG:oz.Guest.FedoraGuest:libvirt bridge name is virbr1
DEBUG:oz.Guest.FedoraGuest:Libvirt type is kvm
DEBUG:oz.Guest.FedoraGuest:Name: f19-jeos, UUID: 2d4265c1-cd9f-448c-9267-b477099b45a0
DEBUG:oz.Guest.FedoraGuest:MAC: 52:54:00:6a:60:72, distro: Fedora
DEBUG:oz.Guest.FedoraGuest:update: 19, arch: x86_64, diskimage: /var/lib/libvirt/images/f19-jeos.dsk
DEBUG:oz.Guest.FedoraGuest:nicmodel: virtio, clockoffset: utc
DEBUG:oz.Guest.FedoraGuest:mousetype: ps2, disk_bus: virtio, disk_dev: vda
@kashyapc
kashyapc / gist:7926517
Created December 12, 2013 11:20
tcpdump analysis
# On Controller node
$ tcpdump -envi eth0 | grep -i gre
$ tcpdump -envi br-int
$ tcpdump -envi br-tun
$ ip netns exec qrouter-d72adddf-4c02-4916-ae6d-16bfdaf59d99 tcpdump -nn -i qr-63ea2815-b5 icmp
$ ip netns exec qrouter-d72adddf-4c02-4916-ae6d-16bfdaf59d99 tcpdump -nn -i qg-e7110dba-a9 icmp
$ tcpdump -envi 192.168.122.163
$ tcpdump -envi br-ex
$ tcpdump -i eth0 -n arp or icmp

Diagnostics

Neutron diagnostics

$ . keystonerc_admin

$ neutron net-list

+--------------------------------------+------+-------------------------------------------------------+

@kashyapc
kashyapc / gist:fd7d52232ca6b73654ac
Last active August 15, 2016 17:09
Neutron-network-creation

Create external network, and its associated subnet:

# Source the admin tenant credentials
$ . keystonerc_admin

$ keystone tenant-list | grep services | awk '{print $2;}'
3e112abc4c4b4214b8efbd627a32f75e

$ neutron net-create --tenant-id 3e112abc4c4b4214b8efbd627a32f75e \
  ext --router:external=True
@kashyapc
kashyapc / ip-info
Created June 11, 2014 08:04
ip-info-controller-compute-nodes
[root@node1 network-scripts(keystone_kashyap)]$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.169.142.1 0.0.0.0 UG 0 0 0 br-ex
169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 ens2
169.254.0.0 0.0.0.0 255.255.0.0 U 1005 0 0 br-ex
192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0
192.169.142.0 0.0.0.0 255.255.255.0 U 0 0 0 br-ex
[root@node1 network-scripts(keystone_kashyap)]$