Failure to dump node logs of the workload clusters

Summary

The logs of the nodes of a workload cluster are not collected and available in the artifact of the deploy-workload-cluster job.

related references

Details

Job deploy-workload-cluster https://gitlab.com/sylva-projects/sylva-core/-/jobs/9174020278

Dumping machines logs
00:02
# Start collecting logs on nodes for workload cluster
No bootstrap cluster detected
> In namespace 'rke2-capm3-virt'
> Cluster= cluster.cluster.x-k8s.io/wc-1676942274-rke2-capm3-virt in namespace rke2-capm3-virt
> Machine = machine.cluster.x-k8s.io/wc-1676942274-rke2-capm3-virt-control-plane-5ccqx
>> machine_ip=192.168.100.71
>> Machine IP = 192.168.100.71
error: stat bootstrap-cluster-kubeconfig: no such file or directory
error: stat bootstrap-cluster-kubeconfig: no such file or directory
.gitlab/ci/scripts/dump_machine_logs.sh: line 136: bootstrap_cluster_ip: unbound variable

There's no bootstrap cluster but the function get_download_ip in .gitlab/ci/scripts/dump_machine_logs.sh tries to use it.

Assignee Loading
Time tracking Loading