Skip to content

Commit

Permalink
FIXME: Debugging missing garm target
Browse files Browse the repository at this point in the history
Signed-off-by: Lukáš Doktor <[email protected]>
  • Loading branch information
ldoktor committed Nov 30, 2023
1 parent 3a9c865 commit a67136a
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/az-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
sudo apt-get install -y ansible python-is-python3
- name: Run e2e tests
continue-on-error: true
continue-on-error: false
run: |
cd tests/e2e
export PATH="$PATH:/usr/local/bin"
Expand Down
17 changes: 15 additions & 2 deletions tests/e2e/cluster/up.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,29 @@ configure_flannel() {

main() {
init_kubeadm
echo __INIT__
configure_flannel
echo __FLANNEL__
echo NODES
kubectl get nodes -o wide
echo "HOSTNAME: $(hostname)"
echo "ALL_HOSTNAME: $(hostname -A)"
echo ALL
kubectl get all -A
echo hosts
cat /etc/hosts
check_node_is_ready
echo __CHECK_NODE_IS_READY__

# Untaint the node so that pods can be scheduled on it.
for role in master control-plane; do
kubectl taint nodes "$(hostname)" \
kubectl taint nodes "$(hostname | tr '[:upper:]' '[:lower:]')" \
"node-role.kubernetes.io/$role:NoSchedule-"
done
echo __TAINTED__

kubectl label node "$(hostname)" node.kubernetes.io/worker=
kubectl label node "$(hostname | tr '[:upper:]' '[:lower:]')" node.kubernetes.io/worker=
echo __LABELED__
}

main "$@"
4 changes: 2 additions & 2 deletions tests/e2e/operator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ install_operator() {

# The node should be 'worker' labeled
local label="node.kubernetes.io/worker"
if ! kubectl get node "$(hostname)" -o jsonpath='{.metadata.labels}' \
if ! kubectl get node "$(hostname | tr '[:upper:]' '[:lower:]')" -o jsonpath='{.metadata.labels}' \
| grep -q "$label"; then
kubectl label node "$(hostname)" "$label="
kubectl label node "$(hostname | tr '[:upper:]' '[:lower:]')" "$label="
fi

handle_older_containerd
Expand Down

0 comments on commit a67136a

Please sign in to comment.