test_kubeflow.yml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. # Copyright 2020 Dell Inc. or its subsidiaries. All Rights Reserved.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. ---
  15. # OMNIA_UKP_US_VFKP_TC_016
  16. # Execute kubeflow role in manager nodes with os installed centos 7.9
  17. - name: OMNIA_UKP_US_VFKP_TC_016
  18. hosts: manager
  19. gather_facts: false
  20. vars_files:
  21. - test_vars/test_kubeflow_vars.yml
  22. tasks:
  23. - block:
  24. - name: Call kubeflow role
  25. include_role:
  26. name: ../platforms/roles/kubeflow
  27. tags: TC_016
  28. - name: Waiting for the pods deployment
  29. pause:
  30. minutes: 5
  31. tags: TC_016
  32. - name: Checking installed Kubeflow version
  33. command: kfctl version
  34. register: kfctl_version
  35. changed_when: false
  36. ignore_errors: True
  37. tags: TC_016, VERIFY_016
  38. - name: Checking pods under kubeflow namespace
  39. command: kubectl get pods --namespace kubeflow
  40. register: kubeflow_pods
  41. changed_when: false
  42. ignore_errors: True
  43. tags: TC_016, VERIFY_016
  44. - name: Checking pods under istio-system namespace
  45. command: kubectl get pods --namespace istio-system
  46. register: istio_system_pods
  47. changed_when: false
  48. ignore_errors: True
  49. tags: TC_016, VERIFY_016
  50. - name: Validating Kubeflow Installation
  51. assert:
  52. that:
  53. - "'command not found' not in kfctl_version.stdout"
  54. fail_msg: "{{ kubeflow_install_fail_msg }}"
  55. success_msg: "{{ kubeflow_install_success_msg }}"
  56. tags: TC_016, VERIFY_016
  57. - name: Validating Kubeflow pods deployment
  58. assert:
  59. that:
  60. - "'Running' in kubeflow_pods.stdout or 'ContainerCreating' in kubeflow_pods.stdout"
  61. - "'Running' in istio_system_pods.stdout or 'ContainerCreating' in istio_system_pods.stdout"
  62. fail_msg: "{{ kubeflow_pods_deployment_fail_msg }}"
  63. success_msg: "{{ kubeflow_pods_deployment_success_msg }}"
  64. tags: TC_016, VERIFY_016
  65. # OMNIA_UKP_US_VFKP_TC_017
  66. # Execute kubeflow role in manager nodes with kubeflow already deployed
  67. - name: OMNIA_UKP_US_VFKP_TC_017
  68. hosts: manager
  69. gather_facts: false
  70. vars_files:
  71. - test_vars/test_kubeflow_vars.yml
  72. tasks:
  73. - block:
  74. - name: Call kubeflow role
  75. include_role:
  76. name: ../platforms/roles/kubeflow
  77. tags: TC_017, VERIFY_017
  78. - name: Checking installed Kubeflow version
  79. command: kfctl version
  80. register: kfctl_version
  81. changed_when: false
  82. ignore_errors: True
  83. tags: TC_017, VERIFY_017
  84. - name: Checking pods under kubeflow namespace
  85. command: kubectl get pods --namespace kubeflow
  86. register: kubeflow_pods
  87. changed_when: false
  88. ignore_errors: True
  89. tags: TC_017, VERIFY_017
  90. - name: Checking pods under istio-system namespace
  91. command: kubectl get pods --namespace istio-system
  92. register: istio_system_pods
  93. changed_when: false
  94. ignore_errors: True
  95. tags: TC_017, VERIFY_017
  96. - name: Validating Kubeflow Installation
  97. assert:
  98. that:
  99. - "'command not found' not in kfctl_version.stdout"
  100. fail_msg: "{{ kubeflow_install_fail_msg }}"
  101. success_msg: "{{ kubeflow_install_success_msg }}"
  102. tags: TC_017, VERIFY_017
  103. - name: Validating Kubeflow pods deployment
  104. assert:
  105. that:
  106. - "'Running' in kubeflow_pods.stdout or 'ContainerCreating' in kubeflow_pods.stdout"
  107. - "'Running' in istio_system_pods.stdout or 'ContainerCreating' in istio_system_pods.stdout"
  108. fail_msg: "{{ kubeflow_pods_deployment_fail_msg }}"
  109. success_msg: "{{ kubeflow_pods_deployment_success_msg }}"
  110. tags: TC_017, VERIFY_017