Skip to content

Commit eebed4e

Browse files
Remove Cumulus (#246)
1 parent c79f947 commit eebed4e

28 files changed

+7
-493
lines changed

.github/workflows/integration.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ jobs:
9393
strategy:
9494
matrix:
9595
flavors:
96-
- name: cumulus
9796
- name: sonic
9897
- name: gardener
9998

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
**/*.pyc
66
clab-mini-lab
77
.mini-lab.clab.yml
8-
.mini-lab.cumulus.yml
98
.mini-lab.sonic.yml
109
ansible-common
1110
metal-hammer*

Makefile

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -27,22 +27,15 @@ MACHINE_OS=debian-12.0
2727
MAX_RETRIES := 30
2828

2929
# Machine flavors
30-
ifeq ($(MINI_LAB_FLAVOR),cumulus)
31-
MACHINE_OS=ubuntu-24.4
32-
LAB_TOPOLOGY=mini-lab.cumulus.yaml
33-
VRF=vrf20
34-
else ifeq ($(MINI_LAB_FLAVOR),sonic)
30+
ifeq ($(MINI_LAB_FLAVOR),sonic)
3531
LAB_TOPOLOGY=mini-lab.sonic.yaml
36-
VRF=Vrf20
3732
else ifeq ($(MINI_LAB_FLAVOR),capms)
3833
LAB_TOPOLOGY=mini-lab.capms.yaml
39-
VRF=Vrf20
4034
else ifeq ($(MINI_LAB_FLAVOR),gardener)
4135
GARDENER_ENABLED=true
4236
# usually gardener restricts the maximum version for k8s:
4337
K8S_VERSION=1.32.5
4438
LAB_TOPOLOGY=mini-lab.sonic.yaml
45-
VRF=Vrf20
4639
else
4740
$(error Unknown flavor $(MINI_LAB_FLAVOR))
4841
endif
@@ -116,9 +109,7 @@ partition: partition-bake
116109
.PHONY: partition-bake
117110
partition-bake: external_network
118111
docker pull $(MINI_LAB_VM_IMAGE)
119-
ifneq ($(MINI_LAB_FLAVOR),cumulus)
120112
docker pull $(MINI_LAB_SONIC_IMAGE)
121-
endif
122113
@if ! sudo $(CONTAINERLAB) --topo $(LAB_TOPOLOGY) inspect | grep -i leaf01 > /dev/null; then \
123114
sudo --preserve-env $(CONTAINERLAB) deploy --topo $(LAB_TOPOLOGY) --reconfigure && \
124115
./scripts/deactivate_offloading.sh; fi
@@ -157,7 +148,6 @@ cleanup-control-plane:
157148
.PHONY: cleanup-partition
158149
cleanup-partition:
159150
mkdir -p clab-mini-lab
160-
sudo --preserve-env $(CONTAINERLAB) destroy --topo mini-lab.cumulus.yaml
161151
sudo --preserve-env $(CONTAINERLAB) destroy --topo mini-lab.sonic.yaml
162152
sudo --preserve-env $(CONTAINERLAB) destroy --topo mini-lab.capms.yaml
163153
docker network rm --force mini_lab_ext
@@ -316,14 +306,14 @@ password-machine0%:
316306
.PHONY: ssh-firewall
317307
ssh-firewall:
318308
$(eval fw = $(shell ssh -F files/ssh/config leaf01 "vtysh -c 'show bgp neighbors fw json' | \
319-
python3 -c 'import sys, json; data = json.load(sys.stdin); key = next(iter(data)); print(data[key][\"bgpNeighborAddr\"] + \"%\" + key)'" \
309+
jq -r 'to_entries[0] | .value.bgpNeighborAddr + \"%\" + .key'" \
320310
))
321311
ssh -F files/ssh/config $(fw) $(COMMAND)
322312

323313
.PHONY: ssh-machine
324314
ssh-machine:
325-
$(eval machine = $(shell ssh -F files/ssh/config leaf01 "vtysh -c 'show bgp vrf $(VRF) neighbors test json' | \
326-
python3 -c 'import sys, json; data = json.load(sys.stdin); key = next(iter(data)); print(data[key][\"bgpNeighborAddr\"] + \"%\" + key)'" \
315+
$(eval machine = $(shell ssh -F files/ssh/config leaf01 "vtysh -c 'show bgp vrf Vrf20 neighbors test json' | \
316+
jq -r 'to_entries[0] | .value.bgpNeighborAddr + \"%\" + .key'" \
327317
))
328318
ssh -F files/ssh/config $(machine) $(COMMAND)
329319

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ make power-<on,reset,off>-<machine name>
190190

191191
There are two versions, or flavors, of the mini-lab environment which differ in regards to the NOS running on the leaves:
192192

193-
- `cumulus`: runs 2 Cumulus switches.
194193
- `sonic`: runs 2 SONiC switches
195194
- `capms`: runs the SONiC flavor but with three instead of two machines (this is used for [cluster-provider-metal-stack](https://github.com/metal-stack/cluster-api-provider-metal-stack) in order to have dedicated hosts for control plane / worker / firewall)
196195
- `gardener`: installs the [Gardener](https://gardener.cloud) in the mini-lab

apt-transport-https.tar.gz

-16.8 MB
Binary file not shown.

deploy_partition.yaml

Lines changed: 2 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
- name: Configure SONiC switches
3-
hosts: leaves:&sonic
2+
- name: Configure leaves
3+
hosts: leaves
44
any_errors_fatal: true
55
gather_facts: false
66
pre_tasks:
@@ -16,43 +16,6 @@
1616
- name: sonic
1717
tags: sonic
1818

19-
- name: Configure Cumulus switches
20-
hosts: leaves:&cumulus
21-
any_errors_fatal: true
22-
pre_tasks:
23-
# the following task is not required as long as we do not install something from the cumulus repositories, for which all the keys are expired now
24-
# the one from here has also expired on 9th Apr 2024: https://docs.nvidia.com/networking-ethernet-software/knowledge-base/Installing-and-Upgrading/Upgrading/Update-Expired-GPG-Keys/#package-upgrade-from-cumulus-linux-37x-to-3716
25-
# - name: update cumulus repo key
26-
# apt_key:
27-
# url: http://repo3.cumulusnetworks.com/public-key/repo3-2023-key
28-
# validate_certs: false
29-
# state: present
30-
- name: unpack jessie fixes
31-
command: tar xf /root/jessie-apt-transport-fix.tar.gz
32-
- name: install apt-transport
33-
shell: dpkg -i /root/https-deps/*.deb && apt-get install -fy
34-
- name: use own repo mirrors (old ones are 404)
35-
copy:
36-
dest: /etc/apt/sources.list
37-
content: |
38-
deb https://cumulus-3.apt.metal-stack.io/cumulus CumulusLinux-3 main
39-
deb-src https://cumulus-3.apt.metal-stack.io/cumulus CumulusLinux-3 main
40-
41-
deb https://cumulus-3.apt.metal-stack.io/cumulus-updates CumulusLinux-3-updates main
42-
deb-src https://cumulus-3.apt.metal-stack.io/cumulus-updates CumulusLinux-3-updates main
43-
44-
deb https://cumulus-3.apt.metal-stack.io/cumulus-security-updates CumulusLinux-3-security-updates main
45-
deb-src https://cumulus-3.apt.metal-stack.io/cumulus-security-updates CumulusLinux-3-security-updates main
46-
- name: set resolv.conf
47-
shell: rm /etc/resolv.conf && echo 'nameserver 8.8.8.8' > /etc/resolv.conf
48-
- name: use own repo key
49-
shell: curl -fsSL https://cumulus-3.apt.metal-stack.io/cumulus-3-repo.gpg | apt-key add -
50-
roles:
51-
- name: cumulus
52-
tags: cumulus
53-
- name: metal-roles/partition/roles/docker-on-cumulus
54-
tags: docker-on-cumulus
55-
5619
- name: Deploy dhcp server and pixiecore on leaf01
5720
hosts: leaf01
5821
roles:

files/ssh/config

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,4 @@ Host *
1010
PubkeyAcceptedKeyTypes +ssh-rsa
1111

1212
Host fe80::*
13-
# bash could be replaced with ncat, but it is not preinstalled on Cumulus
14-
ProxyCommand ssh -q -F files/ssh/config leaf01 'sudo ip vrf exec default bash -c "exec 3<>/dev/tcp/%h/%p; cat<&0 >&3 & cat<&3 >&1"'
13+
ProxyCommand ssh -q -F files/ssh/config leaf01 'bash -c "exec 3<>/dev/tcp/%h/%p; cat<&0 >&3 & cat<&3 >&1"'

inventories/group_vars/cumulus/main.yaml

Lines changed: 0 additions & 16 deletions
This file was deleted.

mini-lab.capms.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,11 @@ topology:
2828
leaf01:
2929
group: leaves
3030
image: ${MINI_LAB_SONIC_IMAGE}
31-
labels:
32-
ansible-group: sonic
3331
binds:
3432
- files/ssh/id_rsa.pub:/authorized_keys
3533
leaf02:
3634
group: leaves
3735
image: ${MINI_LAB_SONIC_IMAGE}
38-
labels:
39-
ansible-group: sonic
4036
binds:
4137
- files/ssh/id_rsa.pub:/authorized_keys
4238
machine01:

0 commit comments

Comments
 (0)