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.

347 lines
6.7 KiB

6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months 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
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
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
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. - packet
  10. except: [triggers]
  11. # CI template for PRs
  12. .packet_pr:
  13. only: [/^pr-.*$/]
  14. extends: .packet
  15. # CI template for periodic CI jobs
  16. # Enabled when PERIODIC_CI_ENABLED var is set
  17. .packet_periodic:
  18. only:
  19. variables:
  20. - $PERIODIC_CI_ENABLED
  21. allow_failure: true
  22. extends: .packet
  23. packet_cleanup_old:
  24. stage: deploy-part1
  25. extends: .packet_periodic
  26. script:
  27. - cd tests
  28. - make cleanup-packet
  29. after_script: []
  30. # The ubuntu20-calico-all-in-one jobs are meant as early stages to prevent running the full CI if something is horribly broken
  31. packet_ubuntu24-calico-all-in-one:
  32. stage: deploy-part1
  33. extends: .packet_pr
  34. when: on_success
  35. variables:
  36. RESET_CHECK: "true"
  37. # ### PR JOBS PART2
  38. packet_ubuntu20-all-in-one-docker:
  39. stage: deploy-part2
  40. extends: .packet_pr
  41. when: on_success
  42. packet_ubuntu20-calico-all-in-one:
  43. stage: deploy-part1
  44. extends: .packet_pr
  45. when: on_success
  46. packet_ubuntu20-calico-all-in-one-hardening:
  47. stage: deploy-part2
  48. extends: .packet_pr
  49. when: on_success
  50. packet_ubuntu22-all-in-one-docker:
  51. stage: deploy-part2
  52. extends: .packet_pr
  53. when: on_success
  54. packet_ubuntu22-calico-all-in-one:
  55. stage: deploy-part2
  56. extends: .packet_pr
  57. when: on_success
  58. packet_ubuntu24-all-in-one-docker:
  59. stage: deploy-part2
  60. extends: .packet_pr
  61. when: on_success
  62. packet_ubuntu24-calico-etcd-datastore:
  63. stage: deploy-part2
  64. extends: .packet_pr
  65. when: on_success
  66. packet_centos7-flannel-addons-ha:
  67. extends: .packet_pr
  68. stage: deploy-part2
  69. when: on_success
  70. packet_almalinux8-crio:
  71. extends: .packet_pr
  72. stage: deploy-part2
  73. when: on_success
  74. allow_failure: true
  75. packet_ubuntu20-crio:
  76. extends: .packet_pr
  77. stage: deploy-part2
  78. when: manual
  79. packet_fedora37-crio:
  80. extends: .packet_pr
  81. stage: deploy-part2
  82. when: manual
  83. packet_ubuntu20-flannel-ha:
  84. stage: deploy-part2
  85. extends: .packet_pr
  86. when: manual
  87. packet_debian10-cilium-svc-proxy:
  88. stage: deploy-part2
  89. extends: .packet_periodic
  90. when: on_success
  91. packet_debian10-calico:
  92. stage: deploy-part2
  93. extends: .packet_pr
  94. when: on_success
  95. packet_debian10-docker:
  96. stage: deploy-part2
  97. extends: .packet_pr
  98. when: on_success
  99. packet_debian11-calico:
  100. stage: deploy-part2
  101. extends: .packet_pr
  102. when: on_success
  103. packet_debian11-docker:
  104. stage: deploy-part2
  105. extends: .packet_pr
  106. when: on_success
  107. packet_debian12-calico:
  108. stage: deploy-part2
  109. extends: .packet_pr
  110. when: on_success
  111. packet_debian12-docker:
  112. stage: deploy-part2
  113. extends: .packet_pr
  114. when: on_success
  115. packet_debian12-cilium:
  116. stage: deploy-part2
  117. extends: .packet_periodic
  118. when: on_success
  119. packet_centos7-calico-ha-once-localhost:
  120. stage: deploy-part2
  121. extends: .packet_pr
  122. when: on_success
  123. variables:
  124. # This will instruct Docker not to start over TLS.
  125. DOCKER_TLS_CERTDIR: ""
  126. services:
  127. - docker:19.03.9-dind
  128. packet_almalinux8-kube-ovn:
  129. stage: deploy-part2
  130. extends: .packet_pr
  131. when: on_success
  132. packet_almalinux8-calico:
  133. stage: deploy-part2
  134. extends: .packet_pr
  135. when: on_success
  136. packet_rockylinux8-calico:
  137. stage: deploy-part2
  138. extends: .packet_pr
  139. when: on_success
  140. packet_rockylinux9-calico:
  141. stage: deploy-part2
  142. extends: .packet_pr
  143. when: on_success
  144. packet_rockylinux9-cilium:
  145. stage: deploy-part2
  146. extends: .packet_pr
  147. when: on_success
  148. variables:
  149. RESET_CHECK: "true"
  150. packet_almalinux8-docker:
  151. stage: deploy-part2
  152. extends: .packet_pr
  153. when: on_success
  154. packet_amazon-linux-2-all-in-one:
  155. stage: deploy-part2
  156. extends: .packet_pr
  157. when: on_success
  158. packet_fedora38-docker-weave:
  159. stage: deploy-part2
  160. extends: .packet_pr
  161. when: on_success
  162. allow_failure: true
  163. packet_opensuse-docker-cilium:
  164. stage: deploy-part2
  165. extends: .packet_pr
  166. when: on_success
  167. # ### MANUAL JOBS
  168. packet_ubuntu20-docker-weave-sep:
  169. stage: deploy-part2
  170. extends: .packet_pr
  171. when: manual
  172. packet_ubuntu20-cilium-sep:
  173. stage: deploy-special
  174. extends: .packet_pr
  175. when: manual
  176. packet_ubuntu20-flannel-ha-once:
  177. stage: deploy-part2
  178. extends: .packet_pr
  179. when: manual
  180. # Calico HA eBPF
  181. packet_almalinux8-calico-ha-ebpf:
  182. stage: deploy-part2
  183. extends: .packet_pr
  184. when: manual
  185. packet_debian10-macvlan:
  186. stage: deploy-part2
  187. extends: .packet_pr
  188. when: manual
  189. packet_centos7-calico-ha:
  190. stage: deploy-part2
  191. extends: .packet_pr
  192. when: manual
  193. packet_centos7-multus-calico:
  194. stage: deploy-part2
  195. extends: .packet_pr
  196. when: manual
  197. packet_fedora38-docker-calico:
  198. stage: deploy-part2
  199. extends: .packet_periodic
  200. when: on_success
  201. variables:
  202. RESET_CHECK: "true"
  203. packet_fedora37-calico-selinux:
  204. stage: deploy-part2
  205. extends: .packet_periodic
  206. when: on_success
  207. packet_fedora37-calico-swap-selinux:
  208. stage: deploy-part2
  209. extends: .packet_pr
  210. when: manual
  211. packet_almalinux8-calico-nodelocaldns-secondary:
  212. stage: deploy-part2
  213. extends: .packet_pr
  214. when: manual
  215. packet_fedora38-kube-ovn:
  216. stage: deploy-part2
  217. extends: .packet_periodic
  218. when: on_success
  219. packet_debian11-custom-cni:
  220. stage: deploy-part2
  221. extends: .packet_pr
  222. when: manual
  223. packet_debian11-kubelet-csr-approver:
  224. stage: deploy-part2
  225. extends: .packet_pr
  226. when: manual
  227. packet_debian12-custom-cni-helm:
  228. stage: deploy-part2
  229. extends: .packet_pr
  230. when: manual
  231. # ### PR JOBS PART3
  232. # Long jobs (45min+)
  233. packet_centos7-weave-upgrade-ha:
  234. stage: deploy-part3
  235. extends: .packet_periodic
  236. when: on_success
  237. variables:
  238. UPGRADE_TEST: basic
  239. packet_ubuntu20-calico-etcd-kubeadm-upgrade-ha:
  240. stage: deploy-part3
  241. extends: .packet_periodic
  242. when: on_success
  243. variables:
  244. UPGRADE_TEST: basic
  245. # Calico HA Wireguard
  246. packet_ubuntu20-calico-ha-wireguard:
  247. stage: deploy-part2
  248. extends: .packet_pr
  249. when: manual
  250. packet_debian11-calico-upgrade:
  251. stage: deploy-part3
  252. extends: .packet_pr
  253. when: on_success
  254. variables:
  255. UPGRADE_TEST: graceful
  256. packet_almalinux8-calico-remove-node:
  257. stage: deploy-part3
  258. extends: .packet_pr
  259. when: on_success
  260. variables:
  261. REMOVE_NODE_CHECK: "true"
  262. REMOVE_NODE_NAME: "instance-3"
  263. packet_ubuntu20-calico-etcd-kubeadm:
  264. stage: deploy-part3
  265. extends: .packet_pr
  266. when: on_success
  267. packet_debian11-calico-upgrade-once:
  268. stage: deploy-part3
  269. extends: .packet_periodic
  270. when: on_success
  271. variables:
  272. UPGRADE_TEST: graceful
  273. packet_ubuntu20-calico-ha-recover:
  274. stage: deploy-part3
  275. extends: .packet_periodic
  276. when: on_success
  277. variables:
  278. RECOVER_CONTROL_PLANE_TEST: "true"
  279. RECOVER_CONTROL_PLANE_TEST_GROUPS: "etcd[2:]:kube_control_plane[1:]"
  280. packet_ubuntu20-calico-ha-recover-noquorum:
  281. stage: deploy-part3
  282. extends: .packet_periodic
  283. when: on_success
  284. variables:
  285. RECOVER_CONTROL_PLANE_TEST: "true"
  286. RECOVER_CONTROL_PLANE_TEST_GROUPS: "etcd[1:]:kube_control_plane[1:]"