Hi, Functest K8s deals with API. Then It works whatever you deploy K8s in OpenStack or not. For your information, we deploy K8s on baremetal in our gates.
Here it seems you didn't run the right container (you pulled right one but executed the OpenStack one instead) Your container shouldn't exist (I would remove it if it exists). It's opnfv/functest-kubernetes-healthcheck:kali. sudo docker run -itd --name k8s-hckl1 --privileged --env-file env-file -v /root/config:/root/.kube/config opnfv/functest-kubernetes:kali /bin/bash By the way what's your K8s version under tests ? We maintain 5 active branches and you should pick the right one according to your needs and according to the K8s backward compatibility. Kali matches v1.18. Else you can simply deploy the Xtesting playbook. All the testcases will be properly configured. https://wiki.opnfv.org/pages/viewpage.action?pageId=32015004 Cédric De : opnfv-tech-discuss@lists.opnfv.org [mailto:opnfv-tech-discuss@lists.opnfv.org] De la part de Chandrasekaran Ramachandran Envoyé : lundi 11 mai 2020 17:43 À : opnfv-us...@lists.opnfv.org; opnfv-tech-discuss@lists.opnfv.org Cc : Sangeetha K.R; Anusha N Objet : [opnfv-tech-discuss] Regarding: opnfv/functest-kubernetes-healthcheck:kali Hi Team, We have installed Kubernetes in master node, pulled the docker and run the docker inside the master node to validate opnfv/functest-kubernetes-healthcheck:kali But run_tests are failing. Can you please confirm it supports(Kali or Iruya) standalone Kubernetes or need to have Kubernetes on top of openstack server to validate functest-kubernetes. I used the below steps to run the functest-kubernetes on standalone Kubernetes server: 1. docker pull opnfv/functest-kubernetes-healthcheck:kali 1. sudo docker run -itd --name k8s-hckl1 --privileged --env-file env-file -v /root/config:/root/.kube/config opnfv/functest-kubernetes:kali /bin/bash 1. root@master:~# docker exec -ti k8s-hckl1 /bin/bash 1. Entered into the docker and tried with below test runs. bash-5.0# run_tests -t k8s_smoke 2020-05-11 13:19:08,573 - xtesting.ci.run_tests - INFO - Deployment description: +-------------------------+----------------------------------------------------------+ | ENV VAR | VALUE | +-------------------------+----------------------------------------------------------+ | CI_LOOP | daily | | DEBUG | false | | DEPLOY_SCENARIO | k8s-nosdn-nofeature-noha | | INSTALLER_TYPE | unknown | | BUILD_TAG | | | NODE_NAME | | | TEST_DB_URL | http://testresults.opnfv.org/test/api/v1/results | | TEST_DB_EXT_URL | | | S3_ENDPOINT_URL | | | S3_DST_URL | | | HTTP_DST_URL | | +-------------------------+----------------------------------------------------------+ 2020-05-11 13:19:08,575 - xtesting.ci.run_tests - ERROR - Unknown test case or tier 'k8s_smoke', or not supported by the given scenario 'k8s-no sdn-nofeature-noha'. bash-5.0# bash-5.0# bash-5.0# bash-5.0# bash-5.0# run_tests -t all 2020-05-11 13:20:04,342 - xtesting.ci.run_tests - INFO - Deployment description: +-------------------------+----------------------------------------------------------+ | ENV VAR | VALUE | +-------------------------+----------------------------------------------------------+ | CI_LOOP | daily | | DEBUG | false | | DEPLOY_SCENARIO | k8s-nosdn-nofeature-noha | | INSTALLER_TYPE | unknown | | BUILD_TAG | | | NODE_NAME | | | TEST_DB_URL | http://testresults.opnfv.org/test/api/v1/results | | TEST_DB_EXT_URL | | | S3_ENDPOINT_URL | | | S3_DST_URL | | | HTTP_DST_URL | | +-------------------------+----------------------------------------------------------+ 2020-05-11 13:20:04,345 - xtesting.ci.run_tests - INFO - TESTS TO BE EXECUTED: +---------------------+---------------+-------------------------------------------------+--------------------------------------------------+ | TIERS | ORDER | DESCRIPTION | TESTCASES | +---------------------+---------------+-------------------------------------------------+--------------------------------------------------+ | healthcheck | 0 | First tier to be executed to verify the | connection_check tenantnetwork1 | | | | basic operations in the VIM. | tenantnetwork2 vmready1 vmready2 | | | | | singlevm1 singlevm2 vping_ssh | | | | | vping_userdata cinder_test tempest_smoke | +---------------------+---------------+-------------------------------------------------+--------------------------------------------------+ 2020-05-11 13:20:04,372 - xtesting.ci.run_tests - INFO - Loading test case 'connection_check'... 2020-05-11 13:20:04,685 - xtesting.ci.run_tests - INFO - Running test case 'connection_check'... 2020-05-11 13:20:04,685 - functest.opnfv_tests.openstack.api.connection_check - ERROR - Cannot run connection_check Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/xtesting/ci/run_tests.py", line 171, in run_test kwargs = run_dict['args'] KeyError: 'args' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/functest/opnfv_tests/openstack/api/connection_check.py", line 50, in run assert self.cloud AssertionError 2020-05-11 13:20:04,686 - xtesting.core.testcase - ERROR - Please run test before getting the duration 2020-05-11 13:20:04,686 - xtesting.ci.run_tests - INFO - Test result: +--------------------------+------------------+------------------+----------------+ | TEST CASE | PROJECT | DURATION | RESULT | +--------------------------+------------------+------------------+----------------+ | connection_check | functest | XX:XX | FAIL | +--------------------------+------------------+------------------+----------------+ 2020-05-11 13:20:04,686 - xtesting.core.testcase - ERROR - Please run test before getting the duration 2020-05-11 13:20:04,687 - xtesting.ci.run_tests - ERROR - The test case 'connection_check' failed. 2020-05-11 13:20:04,687 - xtesting.core.testcase - ERROR - Please run test before getting the duration 2020-05-11 13:20:04,687 - xtesting.ci.run_tests - INFO - Xtesting report: +--------------------------+------------------+---------------------+------------------+----------------+ | TEST CASE | PROJECT | TIER | DURATION | RESULT | +--------------------------+------------------+---------------------+------------------+----------------+ | connection_check | functest | healthcheck | XX:XX | FAIL | | tenantnetwork1 | functest | healthcheck | 00:00 | SKIP | | tenantnetwork2 | functest | healthcheck | 00:00 | SKIP | | vmready1 | functest | healthcheck | 00:00 | SKIP | | vmready2 | functest | healthcheck | 00:00 | SKIP | | singlevm1 | functest | healthcheck | 00:00 | SKIP | | singlevm2 | functest | healthcheck | 00:00 | SKIP | | vping_ssh | functest | healthcheck | 00:00 | SKIP | | vping_userdata | functest | healthcheck | 00:00 | SKIP | | cinder_test | functest | healthcheck | 00:00 | SKIP | | tempest_smoke | functest | healthcheck | 00:00 | SKIP | | odl | functest | healthcheck | 00:00 | SKIP | | tempest_horizon | functest | healthcheck | 00:00 | SKIP | +--------------------------+------------------+---------------------+------------------+----------------+ 2020-05-11 13:20:04,690 - xtesting.ci.run_tests - INFO - Execution exit value: Result.EX_ERROR bash-5.0# bash-5.0# bash-5.0# bash-5.0# bash-5.0# run_tests -t connection_check 2020-05-11 13:24:17,102 - xtesting.ci.run_tests - INFO - Deployment description: +-------------------------+----------------------------------------------------------+ | ENV VAR | VALUE | +-------------------------+----------------------------------------------------------+ | CI_LOOP | daily | | DEBUG | false | | DEPLOY_SCENARIO | k8s-nosdn-nofeature-noha | | INSTALLER_TYPE | unknown | | BUILD_TAG | | | NODE_NAME | | | TEST_DB_URL | http://testresults.opnfv.org/test/api/v1/results | | TEST_DB_EXT_URL | | | S3_ENDPOINT_URL | | | S3_DST_URL | | | HTTP_DST_URL | | +-------------------------+----------------------------------------------------------+ 2020-05-11 13:24:17,127 - xtesting.ci.run_tests - INFO - Loading test case 'connection_check'... 2020-05-11 13:24:17,405 - xtesting.ci.run_tests - INFO - Running test case 'connection_check'... 2020-05-11 13:24:17,405 - functest.opnfv_tests.openstack.api.connection_check - ERROR - Cannot run connection_check Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/xtesting/ci/run_tests.py", line 171, in run_test kwargs = run_dict['args'] KeyError: 'args' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/functest/opnfv_tests/openstack/api/connection_check.py", line 50, in run assert self.cloud AssertionError 2020-05-11 13:24:17,406 - xtesting.core.testcase - ERROR - Please run test before getting the duration 2020-05-11 13:24:17,406 - xtesting.ci.run_tests - INFO - Test result: +--------------------------+------------------+------------------+----------------+ | TEST CASE | PROJECT | DURATION | RESULT | +--------------------------+------------------+------------------+----------------+ | connection_check | functest | XX:XX | FAIL | +--------------------------+------------------+------------------+----------------+ 2020-05-11 13:24:17,406 - xtesting.core.testcase - ERROR - Please run test before getting the duration 2020-05-11 13:24:17,407 - xtesting.ci.run_tests - ERROR - The test case 'connection_check' failed. 2020-05-11 13:24:17,407 - xtesting.ci.run_tests - INFO - Execution exit value: Result.EX_ERROR bash-5.0# vi /etc/hosts bash-5.0# bash-5.0# bash-5.0# bash-5.0# run_tests -t connection_check 2020-05-11 13:25:37,449 - xtesting.ci.run_tests - INFO - Deployment description: +-------------------------+----------------------------------------------------------+ | ENV VAR | VALUE | +-------------------------+----------------------------------------------------------+ | CI_LOOP | daily | | DEBUG | false | | DEPLOY_SCENARIO | k8s-nosdn-nofeature-noha | | INSTALLER_TYPE | unknown | | BUILD_TAG | | | NODE_NAME | | | TEST_DB_URL | http://testresults.opnfv.org/test/api/v1/results | | TEST_DB_EXT_URL | | | S3_ENDPOINT_URL | | | S3_DST_URL | | | HTTP_DST_URL | | +-------------------------+----------------------------------------------------------+ 2020-05-11 13:25:37,475 - xtesting.ci.run_tests - INFO - Loading test case 'connection_check'... 2020-05-11 13:25:37,762 - xtesting.ci.run_tests - INFO - Running test case 'connection_check'... 2020-05-11 13:25:37,762 - functest.opnfv_tests.openstack.api.connection_check - ERROR - Cannot run connection_check Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/xtesting/ci/run_tests.py", line 171, in run_test kwargs = run_dict['args'] KeyError: 'args' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/functest/opnfv_tests/openstack/api/connection_check.py", line 50, in run assert self.cloud AssertionError 2020-05-11 13:25:37,763 - xtesting.core.testcase - ERROR - Please run test before getting the duration 2020-05-11 13:25:37,763 - xtesting.ci.run_tests - INFO - Test result: +--------------------------+------------------+------------------+----------------+ | TEST CASE | PROJECT | DURATION | RESULT | +--------------------------+------------------+------------------+----------------+ | connection_check | functest | XX:XX | FAIL | +--------------------------+------------------+------------------+----------------+ 2020-05-11 13:25:37,763 - xtesting.core.testcase - ERROR - Please run test before getting the duration 2020-05-11 13:25:37,764 - xtesting.ci.run_tests - ERROR - The test case 'connection_check' failed. 2020-05-11 13:25:37,764 - xtesting.ci.run_tests - INFO - Execution exit value: Result.EX_ERROR bash-5.0# Thanks and Regards, Chandrasekaran R. ::DISCLAIMER:: ________________________________ The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. E-mail transmission is not guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or may contain viruses in transmission. The e mail and its contents (with or without referred errors) shall therefore not attach any liability on the originator or HCL or its affiliates. Views or opinions, if any, presented in this email are solely those of the author and may not necessarily reflect the views or opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of authorized representative of HCL is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any email and/or attachments, please check them for viruses and other defects. ________________________________ _________________________________________________________________________________________________________________________ Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration, Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci. This message and its attachments may contain confidential or privileged information that may be protected by law; they should not be distributed, used or copied without authorisation. If you have received this email in error, please notify the sender and delete this message and its attachments. As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified. Thank you.
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#24149): https://lists.opnfv.org/g/opnfv-tech-discuss/message/24149 Mute This Topic: https://lists.opnfv.org/mt/74143384/21656 Group Owner: opnfv-tech-discuss+ow...@lists.opnfv.org Unsubscribe: https://lists.opnfv.org/g/opnfv-tech-discuss/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-