Skip to content

Instantly share code, notes, and snippets.

@leblancd
leblancd / gist:6f4ba6c04327766e565201d6c10ff795
Last active June 16, 2016 21:40
Magnum API installation from magnum repo
[root@build-a yum.repos.d]# yum repolist
Loaded plugins: priorities, search-disabled-repos
cisco-rhel-server-7-openstack-8.0-hotfix-rpms | 2.9 kB 00:00:00
mercury-buildnode-rhel7-osp8-rpms | 3.6 kB 00:00:00
mercury-cloudpulse-rhel7-osp8-rpms | 3.6 kB 00:00:00
mercury-common-rhel7-osp8-rpms | 3.6 kB 00:00:00
mercury-magnum-rpms | 2.1 kB 00:00:00
rhel-7-server-extras-rpms
@leblancd
leblancd / gist:c8b26c0faccc673920a2ee5cbe074f13
Created June 16, 2016 22:02
Yum installing magnum conductor
[root@build-a ~]# yum clean all
Loaded plugins: priorities, search-disabled-repos
Cleaning repos: cisco-rhel-server-7-openstack-8.0-hotfix-rpms mercury-buildnode-rhel7-osp8-rpms mercury-cloudpulse-rhel7-osp8-rpms mercury-common-rhel7-osp8-rpms
: mercury-magnum-rpms rhel-7-server-extras-rpms rhel-7-server-openstack-8-optools-rpms rhel-7-server-openstack-8-rpms rhel-7-server-openstack-8-tools-rpms
: rhel-7-server-optional-rpms rhel-7-server-rh-common-rpms rhel-7-server-rpms rhel-ha-for-rhel-7-server-rpms
Cleaning up everything
[root@build-a ~]# yum -y install openstack-magnum-conductor
Loaded plugins: priorities, search-disabled-repos
cisco-rhel-server-7-openstack-8.0-hotfix-rpms | 2.9 kB 00:00:00
mercury-buildnode-rhel7-osp8-rpms | 3.6 kB 00:00:00
@leblancd
leblancd / gist:cd999e31cd8820bed9d648f78709a269
Created June 17, 2016 22:51
Yum install failures from Magnum repo
[root@build-a ~]# yum install openstack-magnum-api
Loaded plugins: priorities, search-disabled-repos
62 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package openstack-magnum-api.noarch 0:2.0.0-2.el7_osp8.cisco will be installed
--> Processing Dependency: openstack-magnum-common = 2.0.0-2.el7_osp8.cisco for package: openstack-magnum-api-2.0.0-2.el7_osp8.cisco.noarch
--> Running transaction check
---> Package openstack-magnum-common.noarch 0:2.0.0-2.el7_osp8.cisco will be installed
--> Processing Dependency: python-magnum = 2.0.0-2.el7_osp8.cisco for package: openstack-magnum-common-2.0.0-2.el7_osp8.cisco.noarch
@leblancd
leblancd / gist:f7087b691851721e6499bb2c01dcd035
Created June 18, 2016 01:02
Yum install errors with magnum API with 6/13 repo
[root@build-a ~]# yum clean all && yum install openstack-magnum-api && yum clean all
Loaded plugins: priorities, search-disabled-repos
Cleaning repos: cisco-rhel-server-7-openstack-8.0-hotfix-rpms mercury-buildnode-rhel7-osp8-rpms mercury-cloudpulse-rhel7-osp8-rpms mercury-common-rhel7-osp8-rpms mercury-magnum-rpms
: rhel-7-server-extras-rpms rhel-7-server-openstack-8-optools-rpms rhel-7-server-openstack-8-rpms rhel-7-server-openstack-8-tools-rpms rhel-7-server-optional-rpms
: rhel-7-server-rh-common-rpms rhel-7-server-rpms rhel-ha-for-rhel-7-server-rpms
Cleaning up everything
Loaded plugins: priorities, search-disabled-repos
cisco-rhel-server-7-openstack-8.0-hotfix-rpms | 2.9 kB 00:00:00
mercury-buildnode-rhel7-osp8-rpms | 3.6 kB 00:00:
@leblancd
leblancd / gist:bdcb90e370aa643db407523a882db342
Last active June 18, 2016 01:13
wget of openstack-magnum-api
[root@build-a ~]# wget https://cloud-pulp.cisco.com/pulp/repos/mercury-magnum-rhel7-osp8-rpms-2016-06-13-130237/openstack-magnum-api-2.0.0-2.el7_osp8.cisco.noarch.rpm
--2016-06-17 21:08:17-- https://cloud-pulp.cisco.com/pulp/repos/mercury-magnum-rhel7-osp8-rpms-2016-06-13-130237/openstack-magnum-api-2.0.0-2.el7_osp8.cisco.noarch.rpm
Resolving cloud-pulp.cisco.com (cloud-pulp.cisco.com)... 10.203.31.170
Connecting to cloud-pulp.cisco.com (cloud-pulp.cisco.com)|10.203.31.170|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 8472 (8.3K) [application/x-rpm]
Saving to: \u2018openstack-magnum-api-2.0.0-2.el7_osp8.cisco.noarch.rpm.1\u2019
100%[==============================================================================================================================================>] 8,472 --.-K/s in 0s
@leblancd
leblancd / gist:bea3536b402ebc8c20302b6457531b2c
Created November 10, 2016 20:51
Problems trying to run Contiv demo on Ubuntu 14.04 using Vagrant 1.4.3 and VirtualBox 4.3.36
Cloning contiv netplugin:
======================================================================
openstack@bxb-ds-58:~$ git clone http://github.com/contiv/netplugin
Cloning into 'netplugin'...
remote: Counting objects: 15341, done.
remote: Compressing objects: 100% (11/11), done.
remote: Total 15341 (delta 1), reused 0 (delta 0), pack-reused 15330
Receiving objects: 100% (15341/15341), 26.60 MiB | 1.51 MiB/s, done.
Resolving deltas: 100% (7508/7508), done.
Checking connectivity... done.
openstack@bxb-ds-60:~/netplugin$ make k8s-cluster
cd vagrant/k8s/ && ./setup_cluster.sh
~/netplugin/vagrant/k8s ~/netplugin/vagrant/k8s
k8s-v1.2.3/kubernetes.tar.gz found, not fetching.
kubernetes/server/kubernetes-server-linux-amd64.tar.gz
kubernetes/
kubernetes/LICENSES
kubernetes/server/
kubernetes/server/bin/
kubernetes/server/bin/linkcheck
@leblancd
leblancd / gist:e550d41cad5a1c0ecb81837dfbc93cc5
Created April 14, 2017 19:22
IPv6 Neighbor Discovery cache resiliency to IPv6 unicast addresses getting recycled
Here is a trace showing that the IPv6 Neighbor Discovery process is resilient to IPv6 unicast addresses being recycled,
because of the use of the "override" flag ("ovr", or "o-bit") in IPv6 Neighbor Advertisements.
In the tshark trace below, a kubernetes pod with IPv6 address 2001:101::2 is trying to ping a pod at 2001:101::3.
However, the previous pod that had been assigned the address 2001:101::3 has just been deleted, and a new pod was brought
up using the same address. After several seconds of ping failure (trying to ping the now-deleted pod), the ping requestor
sends a Neighbor Solicitation for 2001:101::3. The new pod with the this address then responds with a Neighbor Advertisement
with the "ovr" (override) flag set (line 15 in the tshark output) indicating that any Neighbor Discovery cache entries for
this address should be overwritten with the new pods link layer address.
[kube@kube-minion-1 ~]$ sudo tshark -i cbr0
@leblancd
leblancd / gist:43d527ab9d98625ca46c14a014005bd5
Created June 21, 2017 19:29
Dual-Stack CNI bridge plugin configuration
{
"cniVersion": "0.3.0",
"name": "mynet",
"type": "bridge",
"bridge": "cbr0",
"isDefaultGateway": true,
"ipMasq": false,
"ipam": {
"type": "host-local",
"ranges": [
@leblancd
leblancd / gist:d7daa5d665da28990c974daaf8f384b4
Created June 21, 2017 19:52
Script to clone a containernetworking/plugins fork
#!/bin/bash
working_dir=$GOPATH/src/github.com/containernetworking
user=leblancd
repo=plugins
upstream_repo=containernetworking/plugins
mkdir -p $working_dir
cd $working_dir
git clone https://github.com/$user/$repo.git