Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dependency cycle error when using calico-tigera as cni_provider #699

Open
FunJp opened this issue Feb 7, 2025 · 0 comments
Open

dependency cycle error when using calico-tigera as cni_provider #699

FunJp opened this issue Feb 7, 2025 · 0 comments
Labels

Comments

@FunJp
Copy link

FunJp commented Feb 7, 2025

Describe the Bug

When deploying a new cluster using version 8.1.0 of this module and with multiple control-plane nodes using "calico-tigera" as a CNI provider, I get the following error message from puppet agent
Error: Found 1 dependency cycle: (Exec[Install cni network provider] => Exec[Install cni network provider])\nTry the '--graph' option and opening the resulting '.dot' file in OmniGraffle or GraphViz Error: Failed to apply catalog: One or more resource dependency cycles detected in graph

It seems to be coming from this line reference the same exec : https://github.com/puppetlabs/puppetlabs-kubernetes/blob/v8.1.0/manifests/kube_addons.pp#L108

Expected Behavior

Calico deployment going OK

Steps to Reproduce

Steps to reproduce the behavior:

  1. Run the docker image to get base config
  2. Tweak the config with the values listed below
  3. Deploy to puppetserver
  4. Run puppet agent on fresh control-plane VMs
  5. Error dependency cycle

Environment

  • Puppet module version 8.1.0
  • Puppet server 8.7.0
  • Puppet agent 8.10.0
  • Ubuntu 22.04.5 LTS
  • Kubernetes 1.32.1
  • Containerd 1.7.25

Additional Context

Here's the relevant content of my Ubuntu.yaml file

kubernetes::kubernetes_key_source: https://pkgs.k8s.io/core:/stable:/v1.32/deb/Release.key
kubernetes::kubernetes_key_id: DE15B14486CD377B9E876E1A234654DA9A296436
kubernetes::kubernetes_apt_release: "/"
kubernetes::kubernetes_apt_location: https://pkgs.k8s.io/core:/stable:/v1.32/deb/
kubernetes::kubernetes_apt_repos: 
kubernetes::kubernetes_version: 1.32.1
kubernetes::kubernetes_package_version: 1.32.1-1.1
kubernetes::container_runtime: cri_containerd
kubernetes::containerd_install_method: package
kubernetes::containerd_version: 1.7.25-1
kubernetes::service_cidr: 10.10.108.0/22
kubernetes::cni_pod_cidr: 10.10.128.0/20
kubernetes::cni_network_preinstall: https://raw.githubusercontent.com/projectcalico/calico/v3.29.1/manifests/tigera-operator.yaml
kubernetes::cni_network_provider: https://raw.githubusercontent.com/projectcalico/calico/v3.29.1/manifests/custom-resources.yaml
kubernetes::cni_provider: calico-tigera
kubernetes::etcd_version: 3.5.17
kubernetes::etcd_compaction_method: "periodic"
kubernetes::etcd_initial_cluster: infra-k8scontroller-01=https://10.10.8.100:2380,infra-k8scontroller-02=https://10.10.8.101:2380,infra-k8scontroller-03=https://10.10.8.102:2380
kubernetes::etcd_peers:
- 10.10.8.100
- 10.10.8.101
- 10.10.8.102
kubernetes::etcd_ip: "%{networking.ip}"
kubernetes::kube_api_advertise_address: "%{networking.ip}"
kubernetes::api_server_count: 3
kubernetes::install_dashboard: true
kubernetes::controller_address: 10.10.8.100:6443
@FunJp FunJp added the bug label Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant