Skip to content

Instantly share code, notes, and snippets.

View edwarnicke's full-sized avatar

Ed Warnicke edwarnicke

View GitHub Profile
FROM ubuntu:bionic as vppcontainer
ARG DEBIAN_FRONTEND=noninteractive
ARG REPO=release
RUN apt-get update
RUN apt-get -y install curl
RUN curl -s https://packagecloud.io/install/repositories/fdio/${REPO}/script.deb.sh | bash
RUN apt-get update
RUN apt-get -y install vpp vpp-plugins
RUN apt-get -y purge curl
RUN apt-get -y clean
time="2018-10-31T00:20:46Z" level=info msg="Connecting to VPP took 485.156355ms"
time="2018-10-31T00:20:46Z" level=info msg="Starting event monitor"
time="2018-10-31T00:20:46Z" level=info msg="vpp dataplane server: Test Dataplane controller is ready to serve..."
time="2018-10-31T00:20:46Z" level=info msg="Registration routine has been invoked"
time="2018-10-31T00:21:16Z" level=info msg="nsm-vpp-dataplane: connection to dataplane registrar socket /var/lib/networkservicemesh/nsm.dataplane-registrar.io.sock succeeded."
time="2018-10-31T00:21:16Z" level=info msg="nsm-vpp-dataplane: dataplane has successfully been registered, starting NSM's liveness monitor."
time="2018-10-31T00:21:16Z" level=info msg="Update dataplane was called"
time="2018-10-31T00:25:31Z" level=info msg="ConnectRequest was called for namespace local_source:<type:KERNEL_INTERFACE parameters:<key:\"ipv4\" value:\"2.2.2.2\" > parameters:<key:\"ipv4prefixlength\" value:\"24\" > parameters:<key:\"namespace\" value:\"4026532883\" > > local:<type:KERN
dataReq := &rpc.DataRequest{
Interfaces: []*interfaces.Interfaces_Interface{
&interfaces.Interfaces_Interface{
// Name:
// Description:
Type: interfaces.InterfaceType_TAP_INTERFACE,
Enabled: true,
Tap: &interfaces.Interfaces_Interface_Tap{
Version: 2,
// Namespace:
2018-11-13 14:16:51,033 CRIT Supervisor running as root (no user in config file)
2018-11-13 14:16:51,035 INFO supervisord started with pid 2687
2018-11-13 14:16:52,037 INFO spawned: 'vpp_or_agent_not_running' with pid 2745
2018-11-13 14:16:52,038 INFO spawned: 'vpp' with pid 2746
2018-11-13 14:16:52,039 INFO spawned: 'agent' with pid 2747
2018-11-13 14:16:52,057 DEBG 'vpp_or_agent_not_running' stdout output:
READY
2018-11-13 14:16:52,058 DEBG vpp_or_agent_not_running: ACKNOWLEDGED -> READY
2018-11-13 14:16:52,058 INFO success: agent entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
time="2018-11-13T14:16:54Z" level=info msg="Sending DataChange to vppagent: Interfaces:<name:\"SRC-1\" type:TAP_INTERFACE enabled:true tap:<version:2 host_if_name:\"bfldplkjfdg\" namespace:\"/proc/2900/ns/net\" > > Interfaces:<name:\"DST-1\" type:TAP_INTERFACE enabled:true tap:<version:2 host_if_name:\"bfldplkjfe0\" namespace:\"/proc/2189/ns/net\" > > XCons:<receive_interface:\"SRC-1\" transmit_interface:\"DST-1\" > XCons:<receive_interface:\"DST-1\" transmit_interface:\"SRC-1\" > LinuxInterfaces:<name:\"SRC-1\" type:AUTO_TAP enabled:true host_if_name:\"icmp-responder1\" namespace:<type:FILE_REF_NS filepath:\"/proc/2900/ns/net\" > tap:<temp_if_name:\"bfldplkjfdg\" > > LinuxInterfaces:<name:\"DST-1\" type:AUTO_TAP enabled:true host_if_name:\"icmp-responder1\" namespace:<type:FILE_REF_NS filepath:\"/proc/2189/ns/net\" > tap:<temp_if_name:\"bfldplkjfe0\" > > "
rv.Interfaces = append(rv.Interfaces, &interfaces.Interfaces_Interface{
Name: name,
Type: interfaces.InterfaceType_TAP_INTERFACE,
Enabled: true,
Tap: &interfaces.Interfaces_Interface_Tap{
Version: 2,
HostIfName: tmpIface,
Namespace: filepath,
},
})
2019-01-22 09:41:40,635 CRIT Supervisor running as root (no user in config file)
2019-01-22 09:41:40,638 INFO supervisord started with pid 14436
2019-01-22 09:41:41,639 INFO spawned: 'vpp_or_agent_not_running' with pid 14455
2019-01-22 09:41:41,640 INFO spawned: 'vpp' with pid 14456
2019-01-22 09:41:41,642 INFO spawned: 'agent' with pid 14457
2019-01-22 09:41:41,643 INFO spawned: 'vppagent-dataplane' with pid 14458
2019-01-22 09:41:41,649 DEBG 'vppagent-dataplane' stdout output:
time="2019-01-22T09:41:41Z" level=info msg="Using Jaeger host/port: 10.106.95.21:SRC6831"
2019-01-22 09:41:41,649 INFO success: agent entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
INFO[1318] Statistics:
Elapsed total: 21m40.037051768s
Tests time: 18m19.03484637s
Tasks Completed: 123
Remaining: 57m36.196064148s (327).
Running:
TestNSCDiesMultiNode on cluster aws-1 elapsed: 85.490573ms
TestNSCAndICMPLocal on cluster gke-2 elapsed: 19.972737347s
TestVPNLocal on cluster gke-1 elapsed: 16.08522957s
@edwarnicke
edwarnicke / gist:ebb190f3833752965f2f2e778ca7f6bd
Created September 23, 2019 15:43
Notes on fd.io website switchover
Previous fd.io A record was:
A fd.io 23.185.0.1
AAAA fd.io 2620:12a:8000::1
AAAA fd.io 2620:12a:8001::1
CNAME www.fd.io live-lfprojects.pantheonsite.io
Plane of action:
1. Change netlify to fd.io DNS
2. Add CNAME for fd.io and www.fd.io in DNSSimple pointing to fdio.netlify.io
# Install SRIOV Device Plugin:
# https://github.com/intel/sriov-network-device-plugin#deploy-the-device-plugin (ignore anything CNI related on that page...
# its unecessary or counter productive, depending on what the CNI plugin does).
#
# Then deploy a Pod with a 'intel.com/sriov: 1' request
---
apiVersion: v1
kind: Pod
metadata:
name: demo-pod