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.

247 lines
5.1 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_ubuntu24-calico-etcd-datastore:
  80. extends: .packet_pr
  81. packet_almalinux8-crio:
  82. extends: .packet_pr
  83. packet_almalinux8-kube-ovn:
  84. extends: .packet_pr
  85. packet_debian11-calico:
  86. extends: .packet_pr
  87. packet_debian11-macvlan:
  88. extends: .packet_pr
  89. packet_debian12-cilium:
  90. extends: .packet_pr
  91. packet_rockylinux8-calico:
  92. extends: .packet_pr
  93. packet_rockylinux9-cilium:
  94. extends: .packet_pr
  95. variables:
  96. RESET_CHECK: "true"
  97. packet_amazon-linux-2-all-in-one:
  98. extends: .packet_pr
  99. packet_opensuse-docker-cilium:
  100. extends: .packet_pr
  101. packet_ubuntu20-cilium-sep:
  102. extends: .packet_pr
  103. ## Extended
  104. packet_debian11-docker:
  105. extends: .packet_pr_extended
  106. packet_debian12-docker:
  107. extends: .packet_pr_extended
  108. packet_debian12-calico:
  109. extends: .packet_pr_extended
  110. packet_almalinux8-calico-remove-node:
  111. extends: .packet_pr_extended
  112. variables:
  113. REMOVE_NODE_CHECK: "true"
  114. REMOVE_NODE_NAME: "instance-3"
  115. packet_rockylinux9-calico:
  116. extends: .packet_pr_extended
  117. packet_almalinux8-calico:
  118. extends: .packet_pr_extended
  119. packet_almalinux8-docker:
  120. extends: .packet_pr_extended
  121. packet_ubuntu20-calico-all-in-one-hardening:
  122. extends: .packet_pr_extended
  123. packet_ubuntu24-calico-all-in-one:
  124. extends: .packet_pr_extended
  125. packet_ubuntu20-calico-etcd-kubeadm:
  126. extends: .packet_pr_extended
  127. packet_ubuntu24-all-in-one-docker:
  128. extends: .packet_pr_extended
  129. packet_ubuntu22-all-in-one-docker:
  130. extends: .packet_pr_extended
  131. # ### MANUAL JOBS
  132. packet_fedora37-crio:
  133. extends: .packet_pr_manual
  134. packet_ubuntu20-flannel-ha:
  135. extends: .packet_pr_manual
  136. packet_ubuntu20-all-in-one-docker:
  137. extends: .packet_pr_manual
  138. packet_ubuntu20-flannel-ha-once:
  139. extends: .packet_pr_manual
  140. packet_fedora37-calico-swap-selinux:
  141. extends: .packet_pr_manual
  142. packet_almalinux8-calico-ha-ebpf:
  143. extends: .packet_pr_manual
  144. packet_almalinux8-calico-nodelocaldns-secondary:
  145. extends: .packet_pr_manual
  146. packet_debian11-custom-cni:
  147. extends: .packet_pr_manual
  148. packet_debian11-kubelet-csr-approver:
  149. extends: .packet_pr_manual
  150. packet_debian12-custom-cni-helm:
  151. extends: .packet_pr_manual
  152. packet_ubuntu20-calico-ha-wireguard:
  153. extends: .packet_pr_manual
  154. # PERIODIC
  155. packet_fedora38-docker-calico:
  156. stage: deploy-extended
  157. extends: .packet_periodic
  158. variables:
  159. RESET_CHECK: "true"
  160. packet_fedora37-calico-selinux:
  161. stage: deploy-extended
  162. extends: .packet_periodic
  163. packet_ubuntu20-calico-etcd-kubeadm-upgrade-ha:
  164. stage: deploy-extended
  165. extends: .packet_periodic
  166. variables:
  167. UPGRADE_TEST: basic
  168. packet_debian11-calico-upgrade-once:
  169. stage: deploy-extended
  170. extends: .packet_periodic
  171. variables:
  172. UPGRADE_TEST: graceful
  173. packet_ubuntu20-calico-ha-recover:
  174. stage: deploy-extended
  175. extends: .packet_periodic
  176. variables:
  177. RECOVER_CONTROL_PLANE_TEST: "true"
  178. RECOVER_CONTROL_PLANE_TEST_GROUPS: "etcd[2:]:kube_control_plane[1:]"
  179. packet_ubuntu20-calico-ha-recover-noquorum:
  180. stage: deploy-extended
  181. extends: .packet_periodic
  182. variables:
  183. RECOVER_CONTROL_PLANE_TEST: "true"
  184. RECOVER_CONTROL_PLANE_TEST_GROUPS: "etcd[1:]:kube_control_plane[1:]"
  185. packet_debian11-calico-upgrade:
  186. stage: deploy-extended
  187. extends: .packet_periodic
  188. variables:
  189. UPGRADE_TEST: graceful
  190. packet_debian12-cilium-svc-proxy:
  191. stage: deploy-extended
  192. extends: .packet_periodic