Skip to content

Instantly share code, notes, and snippets.

View ionosphere80's full-sized avatar

Matt Kassawara ionosphere80

View GitHub Profile
/etc/network/interfaces
# Label msk-rpcaio1-mgmt
auto eth2
iface eth2 inet manual
up ip link set $IFACE up
down ip link set $IFACE down
auto br-mgmt
iface br-mgmt inet static
@ionosphere80
ionosphere80 / gist:50b9d179bf281bebef95
Last active August 29, 2015 14:06
OpenStack Juno configuration changes
Global:
Replace "auth_*" keys with "identity_uri" key under [keystone_authtoken] section.
Nova:
Move "glance_*" keys from [DEFAULT] to [glance] section without "glance_" prefix.
Move "neutron_*" keys from [DEFAULT] to [neutron] section without "neutron_" prefix (includes "service_neutron_metadata_proxy").
For more information, see http://docs.openstack.org/trunk/config-reference/content/
@ionosphere80
ionosphere80 / httpd.conf
Created October 10, 2014 12:52
Apache configuration on Fedora 20
#
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
@ionosphere80
ionosphere80 / openstack-dashboard.conf
Created October 10, 2014 12:55
Apache configuration for openstack-dashboard on Fedora
WSGIDaemonProcess dashboard
WSGIProcessGroup dashboard
WSGISocketPrefix run/wsgi
WSGIScriptAlias /dashboard /usr/share/openstack-dashboard/openstack_dashboard/ws
gi/django.wsgi
Alias /static /usr/share/openstack-dashboard/static
<Directory /usr/share/openstack-dashboard/openstack_dashboard/wsgi>
Options All
@ionosphere80
ionosphere80 / openstack-dashboard.conf
Created October 10, 2014 13:02
Apache configuration for openstack-dashboard on Ubuntu
WSGIScriptAlias /horizon /usr/share/openstack-dashboard/openstack_dashboard/wsgi
/django.wsgi
WSGIDaemonProcess horizon user=horizon group=horizon processes=3 threads=10
WSGIProcessGroup horizon
Alias /static /usr/share/openstack-dashboard/openstack_dashboard/static/
<Directory /usr/share/openstack-dashboard/openstack_dashboard/wsgi>
Order allow,deny
Allow from all
</Directory>
@ionosphere80
ionosphere80 / gist:b78bedfc5e8300b8113e
Last active January 18, 2016 02:15
MTU experiments - environment configuration
OpenStack bits:
# . admin-openrc.sh
# neutron net-create public --shared --router:external --provider:physical_network public --provider:network_type flat
Created a new network:
+---------------------------+--------------------------------------+
| Field | Value |
+---------------------------+--------------------------------------+
| admin_state_up | True |
@ionosphere80
ionosphere80 / gist:b44358b43af13de74f1f
Created January 18, 2016 02:24
MTU experiments - capture of typical ping
Neutron public network router interface (gateway):
20:08:05.126329 7e:27:12:8e:ab:89 > fa:16:3e:1b:0d:d3, ethertype IPv4 (0x0800), length 98: (tos 0x0, ttl 64, id 51810, offset 0, flags [DF], proto ICMP (1), length 84)
10.4.31.1 > 10.4.31.102: ICMP echo request, id 2948, seq 1, length 64
20:08:05.127928 fa:16:3e:1b:0d:d3 > 7e:27:12:8e:ab:89, ethertype IPv4 (0x0800), length 98: (tos 0x0, ttl 63, id 9661, offset 0, flags [none], proto ICMP (1), length 84)
10.4.31.102 > 10.4.31.1: ICMP echo reply, id 2948, seq 1, length 64
Neutron private network router interface, namespace end of veth pair:
20:08:05.126365 fa:16:3e:1d:d1:a3 > fa:16:3e:bd:bf:3f, ethertype IPv4 (0x0800), length 98: (tos 0x0, ttl 63, id 51810, offset 0, flags [DF], proto ICMP (1), length 84)
@ionosphere80
ionosphere80 / gist:8ccd736bf3dda05a01a0
Created January 18, 2016 02:26
MTU experiments - SSH hanging
# ssh cirros@10.4.31.102
OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to 10.4.31.102 [10.4.31.102] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/id_rsa type -1
debug1: identity file /root/.ssh/id_rsa-cert type -1
debug1: identity file /root/.ssh/id_dsa type -1
@ionosphere80
ionosphere80 / gist:9eb0e2c0b3e780de9afc
Created January 18, 2016 02:28
MTU experiments - capture of SSH hanging
Neutron public network router interface (gateway):
20:11:55.545914 7e:27:12:8e:ab:89 > fa:16:3e:1b:0d:d3, ethertype IPv4 (0x0800), length 66: (tos 0x0, ttl 64, id 54057, offset 0, flags [DF], proto TCP (6), length 52)
10.4.31.1.44847 > 10.4.31.102.22: Flags [.], cksum 0xf98f (correct), ack 443, win 229, options [nop,nop,TS val 1509307390 ecr 336181], length 0
20:11:55.546716 7e:27:12:8e:ab:89 > fa:16:3e:1b:0d:d3, ethertype IPv4 (0x0800), length 1464: (tos 0x0, ttl 64, id 54058, offset 0, flags [DF], proto TCP (6), length 1450)
10.4.31.1.44847 > 10.4.31.102.22: Flags [.], cksum 0x3e6b (correct), seq 44:1442, ack 443, win 229, options [nop,nop,TS val 1509307390 ecr 336181], length 1398
20:11:55.546720 7e:27:12:8e:ab:89 > fa:16:3e:1b:0d:d3, ethertype IPv4 (0x0800), length 636: (tos 0x0, ttl 64, id 54059, offset 0, flags [DF], proto TCP (6), length 622)
10.4.31.1.44847 > 10.4.31.102.22: Flags [P.], cksum 0x5060 (correct), seq 1442:2012, ack 443, win 229, options [nop,nop,TS val 1509307390 ecr 336181]
@ionosphere80
ionosphere80 / gist:89cc8e21060e8988e46c
Created January 18, 2016 02:31
MTU experiments - capture of ping with 1372 payload and DF=1
# ping -c 1 -s 1372 -M do 10.4.31.102
PING 10.4.31.102 (10.4.31.102) 1372(1400) bytes of data.
1380 bytes from 10.4.31.102: icmp_seq=1 ttl=63 time=4.44 ms
--- 10.4.31.102 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 4.441/4.441/4.441/0.000 ms
Neutron public network router interface (gateway):