You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

252 lines
5.2 KiB

Use supported version of fedora in CI (#10108) * tests: replace fedora35 with fedora37 Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * tests: replace fedora36 with fedora38 Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * docs: update fedora version in docs Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * molecule: upgrade fedora version Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * tests: upgrade fedora images for vagrant and kubevirt Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * vagrant: workaround to fix private network ip address in fedora Fedora stop supporting syconfig network script so we added a workaround here https://github.com/hashicorp/vagrant/issues/12762#issuecomment-1535957837 to fix it. * netowrkmanager: do not configure dns if using systemd-resolved We should not configure dns if we point to systemd-resolved. Systemd-resolved is using NetworkManager to infer the upstream DNS server so if we set NetworkManager to 127.0.0.53 it will prevent systemd-resolved to get the correct network DNS server. Thus if we are in this case we just don't set this setting. Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * image-builder: update centos7 image Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * gitlab-ci: mark fedora packet jobs as allow failure Fedora networking is still broken on Packet, let's mark it as allow failure for now. Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> --------- Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch>
1 year ago
Use supported version of fedora in CI (#10108) * tests: replace fedora35 with fedora37 Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * tests: replace fedora36 with fedora38 Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * docs: update fedora version in docs Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * molecule: upgrade fedora version Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * tests: upgrade fedora images for vagrant and kubevirt Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * vagrant: workaround to fix private network ip address in fedora Fedora stop supporting syconfig network script so we added a workaround here https://github.com/hashicorp/vagrant/issues/12762#issuecomment-1535957837 to fix it. * netowrkmanager: do not configure dns if using systemd-resolved We should not configure dns if we point to systemd-resolved. Systemd-resolved is using NetworkManager to infer the upstream DNS server so if we set NetworkManager to 127.0.0.53 it will prevent systemd-resolved to get the correct network DNS server. Thus if we are in this case we just don't set this setting. Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * image-builder: update centos7 image Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * gitlab-ci: mark fedora packet jobs as allow failure Fedora networking is still broken on Packet, let's mark it as allow failure for now. Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> --------- Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch>
1 year ago
  1. ---
  2. .packet:
  3. extends: .testcases
  4. variables:
  5. ANSIBLE_TIMEOUT: "120"
  6. CI_PLATFORM: packet
  7. SSH_USER: kubespray
  8. tags:
  9. - ffci
  10. needs:
  11. - pipeline-image
  12. - ci-not-authorized
  13. # CI template for PRs
  14. .packet_pr:
  15. stage: deploy-part1
  16. rules:
  17. - if: $PR_LABELS =~ /.*ci-short.*/
  18. when: manual
  19. allow_failure: true
  20. - if: $CI_COMMIT_BRANCH =~ /^pr-.*$/
  21. when: on_success
  22. - when: manual
  23. allow_failure: true
  24. extends: .packet
  25. ## Uncomment this to have multiple stages
  26. # needs:
  27. # - packet_ubuntu20-calico-all-in-one
  28. .packet_pr_short:
  29. stage: deploy-part1
  30. extends: .packet
  31. rules:
  32. - if: $CI_COMMIT_BRANCH =~ /^pr-.*$/
  33. when: on_success
  34. - when: manual
  35. allow_failure: true
  36. .packet_pr_manual:
  37. extends: .packet_pr
  38. stage: deploy-extended
  39. rules:
  40. - if: $PR_LABELS =~ /.*ci-full.*/
  41. when: on_success
  42. # Else run as manual
  43. - when: manual
  44. allow_failure: true
  45. .packet_pr_extended:
  46. extends: .packet_pr
  47. stage: deploy-extended
  48. rules:
  49. - if: $PR_LABELS =~ /.*(ci-extended|ci-full).*/
  50. when: on_success
  51. - when: manual
  52. allow_failure: true
  53. # CI template for periodic CI jobs
  54. # Enabled when PERIODIC_CI_ENABLED var is set
  55. .packet_periodic:
  56. only:
  57. variables:
  58. - $PERIODIC_CI_ENABLED
  59. allow_failure: true
  60. extends: .packet
  61. packet_cleanup_old:
  62. stage: deploy-part1
  63. extends: .packet_periodic
  64. script:
  65. - cd tests
  66. - make cleanup-packet
  67. after_script: []
  68. # The ubuntu20-calico-all-in-one jobs are meant as early stages to prevent running the full CI if something is horribly broken
  69. packet_ubuntu20-calico-all-in-one:
  70. stage: deploy-part1
  71. extends: .packet_pr_short
  72. variables:
  73. RESET_CHECK: "true"
  74. # ### PR JOBS PART2
  75. packet_ubuntu20-crio:
  76. extends: .packet_pr_manual
  77. packet_ubuntu22-calico-all-in-one:
  78. extends: .packet_pr
  79. packet_ubuntu22-calico-all-in-one-upgrade:
  80. extends: .packet_pr
  81. variables:
  82. UPGRADE_TEST: graceful
  83. packet_ubuntu24-calico-etcd-datastore:
  84. extends: .packet_pr
  85. packet_almalinux8-crio:
  86. extends: .packet_pr
  87. packet_almalinux8-kube-ovn:
  88. extends: .packet_pr
  89. packet_debian11-calico:
  90. extends: .packet_pr
  91. packet_debian11-macvlan:
  92. extends: .packet_pr
  93. packet_debian12-cilium:
  94. extends: .packet_pr
  95. packet_rockylinux8-calico:
  96. extends: .packet_pr
  97. packet_rockylinux9-cilium:
  98. extends: .packet_pr
  99. variables:
  100. RESET_CHECK: "true"
  101. packet_amazon-linux-2-all-in-one:
  102. extends: .packet_pr
  103. packet_opensuse-docker-cilium:
  104. extends: .packet_pr
  105. packet_ubuntu20-cilium-sep:
  106. extends: .packet_pr
  107. ## Extended
  108. packet_debian11-docker:
  109. extends: .packet_pr_extended
  110. packet_debian12-docker:
  111. extends: .packet_pr_extended
  112. packet_debian12-calico:
  113. extends: .packet_pr_extended
  114. packet_almalinux8-calico-remove-node:
  115. extends: .packet_pr_extended
  116. variables:
  117. REMOVE_NODE_CHECK: "true"
  118. REMOVE_NODE_NAME: "instance-3"
  119. packet_rockylinux9-calico:
  120. extends: .packet_pr_extended
  121. packet_almalinux8-calico:
  122. extends: .packet_pr_extended
  123. packet_almalinux8-docker:
  124. extends: .packet_pr_extended
  125. packet_ubuntu20-calico-all-in-one-hardening:
  126. extends: .packet_pr_extended
  127. packet_ubuntu24-calico-all-in-one:
  128. extends: .packet_pr_extended
  129. packet_ubuntu20-calico-etcd-kubeadm:
  130. extends: .packet_pr_extended
  131. packet_ubuntu24-all-in-one-docker:
  132. extends: .packet_pr_extended
  133. packet_ubuntu22-all-in-one-docker:
  134. extends: .packet_pr_extended
  135. # ### MANUAL JOBS
  136. packet_fedora37-crio:
  137. extends: .packet_pr_manual
  138. packet_ubuntu20-flannel-ha:
  139. extends: .packet_pr_manual
  140. packet_ubuntu20-all-in-one-docker:
  141. extends: .packet_pr_manual
  142. packet_ubuntu20-flannel-ha-once:
  143. extends: .packet_pr_manual
  144. packet_fedora37-calico-swap-selinux:
  145. extends: .packet_pr_manual
  146. packet_almalinux8-calico-ha-ebpf:
  147. extends: .packet_pr_manual
  148. packet_almalinux8-calico-nodelocaldns-secondary:
  149. extends: .packet_pr_manual
  150. packet_debian11-custom-cni:
  151. extends: .packet_pr_manual
  152. packet_debian11-kubelet-csr-approver:
  153. extends: .packet_pr_manual
  154. packet_debian12-custom-cni-helm:
  155. extends: .packet_pr_manual
  156. packet_ubuntu20-calico-ha-wireguard:
  157. extends: .packet_pr_manual
  158. # PERIODIC
  159. packet_fedora38-docker-calico:
  160. stage: deploy-extended
  161. extends: .packet_periodic
  162. variables:
  163. RESET_CHECK: "true"
  164. packet_fedora37-calico-selinux:
  165. stage: deploy-extended
  166. extends: .packet_periodic
  167. packet_ubuntu20-calico-etcd-kubeadm-upgrade-ha:
  168. stage: deploy-extended
  169. extends: .packet_periodic
  170. variables:
  171. UPGRADE_TEST: basic
  172. packet_debian11-calico-upgrade-once:
  173. stage: deploy-extended
  174. extends: .packet_periodic
  175. variables:
  176. UPGRADE_TEST: graceful
  177. packet_ubuntu20-calico-ha-recover:
  178. stage: deploy-extended
  179. extends: .packet_periodic
  180. variables:
  181. RECOVER_CONTROL_PLANE_TEST: "true"
  182. RECOVER_CONTROL_PLANE_TEST_GROUPS: "etcd[2:]:kube_control_plane[1:]"
  183. packet_ubuntu20-calico-ha-recover-noquorum:
  184. stage: deploy-extended
  185. extends: .packet_periodic
  186. variables:
  187. RECOVER_CONTROL_PLANE_TEST: "true"
  188. RECOVER_CONTROL_PLANE_TEST_GROUPS: "etcd[1:]:kube_control_plane[1:]"
  189. packet_debian11-calico-upgrade:
  190. stage: deploy-extended
  191. extends: .packet_periodic
  192. variables:
  193. UPGRADE_TEST: graceful
  194. packet_debian12-cilium-svc-proxy:
  195. stage: deploy-extended
  196. extends: .packet_periodic