Skip to content

Commit af51cc3

Browse files
committed
Fixes one more test
Signed-off-by: Mohamed L. Karaoui <moharaka@gmail.com>
1 parent 6376d17 commit af51cc3

File tree

5 files changed

+68
-25
lines changed

5 files changed

+68
-25
lines changed

.github/workflows/cri_tests.yml

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,35 @@ jobs:
4040
sudo apt update
4141
sudo apt install rsync -y
4242
43-
- name: Build setup scripts
44-
run: pushd scripts && go build -o setup_tool && popd
43+
- name: Ensure /etc/cni/net.d exists
44+
run: sudo mkdir -p /etc/cni/net.d
45+
46+
- name: Install containerd and iptables
47+
run: |
48+
sudo apt-get update
49+
sudo apt-get install -y containerd iptables
50+
51+
- name: Install Docker
52+
run: |
53+
sudo apt-get update
54+
sudo apt-get install -y docker.io
55+
56+
- name: Start Docker Daemon
57+
run: |
58+
sudo dockerd > /tmp/dockerd.log 2>&1 &
59+
sleep 5 # wait for dockerd to be ready
60+
61+
- name: Start Minikube
62+
uses: medyagh/setup-minikube@latest
63+
with:
64+
driver: docker
65+
wait: all
66+
start-args: '--force'
67+
68+
- name: Check cluster status
69+
run: kubectl get nodes
70+
- name: Build setup scripts
71+
run: pushd scripts && go build -o setup_tool && popd
4572

4673
- name: Setup vHive CRI test environment
4774
run: ./scripts/github_runner/setup_cri_test_env.sh ${{ inputs.sandbox }}

.github/workflows/integration_tests.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,16 @@ jobs:
8181

8282
- name: Check cluster status
8383
run: kubectl get nodes
84+
85+
- name: Collect Docker and iptables logs for debug
86+
if: failure()
87+
run: |
88+
tail -50 /tmp/dockerd.log || true
89+
sudo iptables -t nat -L -v -n
90+
91+
- name: Ensure kubeconfig set
92+
run: |
93+
echo "KUBECONFIG=$HOME/.kube/config" >> $GITHUB_ENV
8494
8595
- name: Build setup scripts
8696
run: pushd scripts && go build -o setup_tool && popd

.github/workflows/unit_tests.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,34 @@ jobs:
147147
- name: Cleanup runner disk space
148148
run: ./scripts/github_runner/gh-actions-disk-cleanup.sh
149149

150+
- name: Ensure /etc/cni/net.d exists
151+
run: sudo mkdir -p /etc/cni/net.d
152+
153+
- name: Install containerd and iptables
154+
run: |
155+
sudo apt-get update
156+
sudo apt-get install -y containerd iptables
157+
158+
- name: Install Docker
159+
run: |
160+
sudo apt-get update
161+
sudo apt-get install -y docker.io
162+
163+
- name: Start Docker Daemon
164+
run: |
165+
sudo dockerd > /tmp/dockerd.log 2>&1 &
166+
sleep 5 # wait for dockerd to be ready
167+
168+
- name: Start Minikube
169+
uses: medyagh/setup-minikube@latest
170+
with:
171+
driver: docker
172+
wait: all
173+
start-args: '--force'
174+
175+
- name: Check cluster status
176+
run: kubectl get nodes
177+
150178
- name: Build setup scripts
151179
run: pushd scripts && go build -o setup_tool && popd
152180

scripts/github_runner/setup_cri_test_env.sh

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -35,36 +35,18 @@ fi
3535
SANDBOX=$1
3636
VHIVE_ROOT="$(git rev-parse --show-toplevel)"
3737

38-
echo "=== Setting-Up node ==="
39-
# Set up the node with proper firecracker-containerd installation
40-
$VHIVE_ROOT/scripts/setup_tool -vhive-repo-dir $VHIVE_ROOT setup_node $SANDBOX
41-
4238
echo "=== Setting-Up onenode-vhive ==="
4339
$VHIVE_ROOT/scripts/setup_tool -vhive-repo-dir $VHIVE_ROOT start_onenode_vhive_cluster $SANDBOX
4440
# $VHIVE_ROOT/scripts/cloudlab/start_onenode_vhive_cluster.sh "$SANDBOX"
4541
sleep 30s
4642

4743
echo "=== Setting-Up zipkin ==="
4844
# KUBECONFIG=/etc/kubernetes/admin.conf sudo $VHIVE_ROOT/scripts/setup_zipkin.sh
49-
#$VHIVE_ROOT/scripts/setup_tool -vhive-repo-dir $VHIVE_ROOT setup_zipkin
45+
$VHIVE_ROOT/scripts/setup_tool -vhive-repo-dir $VHIVE_ROOT setup_zipkin
5046

5147
# FIXME (gh-709)
5248
#source etc/profile && go run $VHIVE_ROOT/examples/registry/populate_registry.go -imageFile $VHIVE_ROOT/examples/registry/images.txt
5349

54-
echo "=== Kubernetes Status ==="
55-
sudo KUBECONFIG=/etc/kubernetes/admin.conf kubectl get nodes -o wide
56-
sudo KUBECONFIG=/etc/kubernetes/admin.conf kubectl get pods --all-namespaces
57-
echo "=== Knative Components ==="
58-
sudo KUBECONFIG=/etc/kubernetes/admin.conf kubectl get pods -n knative-serving
59-
sudo KUBECONFIG=/etc/kubernetes/admin.conf kubectl get ksvc --all-namespaces
60-
61-
sudo kubectl get deployment -n knative-serving autoscaler
62-
sudo kubectl get svc -n knative-serving autoscaler
63-
sudo kubectl get pods -n kube-system -l k8s-app=kube-dns
64-
65-
66-
67-
6850
echo "=== Activator Status ===" && sudo KUBECONFIG=/etc/kubernetes/admin.conf kubectl describe pod -n knative-serving -l app=activator
6951
echo "=== Activator Logs ===" && sudo KUBECONFIG=/etc/kubernetes/admin.conf kubectl logs -n knative-serving -l app=activator
7052

scripts/setup_firecracker_containerd.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,3 @@ if [ 64 -eq ${#CONTAINERID} ]; then
6161
fi
6262

6363
sudo cp $CONFIGS/firecracker-runtime.json /etc/containerd/
64-
65-
# Create directory and symlink for CRI socket
66-
sudo mkdir -p /etc/vhive-cri
67-
sudo ln -sf /run/firecracker-containerd/containerd.sock /etc/vhive-cri/vhive-cri.sock

0 commit comments

Comments
 (0)