Suite Preparation Runs the given keyword with the given arguments and ignores possible error. Test Suite Preparation: Setting Prometheus Testsuite Variables Set Testsuite Prometheus Variables to be used in subsequent test cases ${local_prometheus_host} OSM_HOSTNAME Returns the value of an environment variable with the given name. ${PROMETHEUS_HOST} ${local_prometheus_host} Makes a variable available everywhere within the scope of the current suite. ${PROMETHEUS_HOST} 9091 Makes a variable available everywhere within the scope of the current suite. Invalid IF condition: Evaluating expression '172.21.249.226 == 'UNKNOWN'' failed: SyntaxError: invalid syntax (<string>, line 1) Variables in the original expression '${PROMETHEUS_HOST} == 'UNKNOWN'' were resolved before the expression was evaluated. Try using '$PROMETHEUS_HOST == 'UNKNOWN'' syntax to avoid that. See Evaluating Expressions appendix in Robot Framework User Guide for more details. ${PROMETHEUS_PORT} Logs the given message with the given level. ${PROMETHEUS_HOST} Logs the given message with the given level. ${PROMETHEUS_USER} Logs the given message with the given level. ${PROMETHEUS_PASSWORD} Logs the given message with the given level. ${VIM_ACCOUNT_TYPE} != 'openstack' Not applicable for ${VIM_ACCOUNT_TYPE} VIM Conditionally skips rest of the current test, setup, or teardown with PASS status. Execution passed with message: Not applicable for openstack VIM ${rand} 6 [NUMBERS] Generates a string with a desired ``length`` from the given ``chars``. ${VIM_NAME} SEPARATOR=_ ${vim_name_prefix} ${rand} Catenates the given items together and returns the resulted string. ${VIM_NAME} Makes a variable available everywhere within the scope of the current suite. ${CREATED_VIM_ACCOUNT_ID} ${VIM_NAME} ${VIM_USER} ${VIM_PASSWORD} ${VIM_AUTH_URL} ${VIM_TENANT} ${VIM_ACCOUNT_TYPE} Register a VIM account in OSM and return the id. The optional parameters (such as 'config' or 'sdn_controller') are given to this function in name=value format. These parameters will be appended to the 'osm vim-create' command with the next syntax: --param_name=param_value Return the ID of the created VIM Target. Example of execution: ${vim_account_id}= Create VIM Target ${vim_name} ${vim_user} ${vim_password} ${vim_auth_url} ${vim_tenant} ${vim_account_type} config='{...}' ${CREATED_VIM_ACCOUNT_ID} Makes a variable available everywhere within the scope of the current suite. ${VIM_NAME} Check if the VIM account in OSM is enabled. ${stdout} ${VIM_NAME} ${PROMETHEUS_HOST} ${PROMETHEUS_PORT} ${PROMETHEUS_USER} ${PROMETHEUS_PASSWORD} Check in a loop if the metric of osm_vim_status is present in Prometheus for the VIM account in OSM. ${stdout} Logs the given message with the given level. Create a VIM Target only with the mandatory parameters. Checks the status of the VIM in Prometheus after it creation. basic_01 cluster_main daily regression Not applicable for openstack VIM ${VIM_ACCOUNT_TYPE} != 'openstack' Not applicable for ${VIM_ACCOUNT_TYPE} VIM Conditionally skips rest of the current test, setup, or teardown with PASS status. Execution passed with message: Not applicable for openstack VIM ${vim_account_id} ${VIM_NAME} Get from OSM the VIM account id associated to the VIM account name passed as parameter. ${vim_account_id} ${CREATED_VIM_ACCOUNT_ID} Fails if objects are unequal after converting them to strings. ${VIM_NAME} Unregister/delete a VIM account from OSM. Delete the VIM Target created in previous test-case by its name. Checks whether the VIM Target was created or not before perform the deletion. basic_01 cleanup cluster_main daily regression Not applicable for openstack VIM ${rand} 6 [NUMBERS] Generates a string with a desired ``length`` from the given ``chars``. ${rand} = 393627 ${VIM_NAME} SEPARATOR=_ ${vim_name_prefix} ${rand} Catenates the given items together and returns the resulted string. ${VIM_NAME} = basic01_393627 ${VIM_NAME} Makes a variable available everywhere within the scope of the current suite. ${VIM_NAME} = basic01_393627 ${CREATED_VIM_ACCOUNT_ID} ${VIM_NAME} ${VIM_USER} ${VIM_PASSWORD} ${VIM_AUTH_URL} ${VIM_TENANT} ${VIM_ACCOUNT_TYPE} config=${VIM_CONFIG} Register a VIM account in OSM and return the id. The optional parameters (such as 'config' or 'sdn_controller') are given to this function in name=value format. These parameters will be appended to the 'osm vim-create' command with the next syntax: --param_name=param_value Return the ID of the created VIM Target. Example of execution: ${vim_account_id}= Create VIM Target ${vim_name} ${vim_user} ${vim_password} ${vim_auth_url} ${vim_tenant} ${vim_account_type} config='{...}' ${osm_vim_create_command} osm vim-create --name ${vim_name} --user ${vim_user} --password ${vim_password} --auth_url ${vim_auth_url} --tenant ${vim_tenant} --account_type ${vim_account_type} Returns the given values which can then be assigned to a variables. ${osm_vim_create_command} = osm vim-create --name basic01_393627 --user osm_jenkins --password R8NtPgyodpgKjhmJoQBs --auth_url http://172.21.247.1:5000/v3 --tenant osm_jenkins --account_type openstack ${param} @{optional_parameters} config='{project_domain_name: default, user_domain_name: Default, vim_network_name: osm-ext}' ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in optional parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = config='{project_domain_name: default, user_domain_name: Default, vim_network_name: osm-ext}' ${param_name} = config ${param_value} = '{project_domain_name: default, user_domain_name: Default, vim_network_name: osm-ext}' ${match},${param_name},${param_value} Logs the given message with the given level. config='{project_domain_name: default, user_domain_name: Default, vim_network_name: osm-ext}',config,'{project_domain_name: default, user_domain_name: Default, vim_network_name: osm-ext}' ${osm_vim_create_command} ${osm_vim_create_command} --${param_name}=${param_value} Catenates the given items together and returns the resulted string. ${osm_vim_create_command} = osm vim-create --name basic01_393627 --user osm_jenkins --password R8NtPgyodpgKjhmJoQBs --auth_url http://172.21.247.1:5000/v3 --tenant osm_jenkins --account_type openstack --config='{project_domain_n... ${rc} ${stdout} ${osm_vim_create_command} Runs the given command in the system and returns the RC and output. Running command 'osm vim-create --name basic01_393627 --user osm_jenkins --password R8NtPgyodpgKjhmJoQBs --auth_url http://172.21.247.1:5000/v3 --tenant osm_jenkins --account_type openstack --config='{project_domain_name: default, user_domain_name: Default, vim_network_name: osm-ext}' 2>&1'. ${rc} = 0 ${stdout} = 27a79cab-5f27-4bd5-ba60-a7937f9ab96a ${stdout} Logs the given message with the given level. 27a79cab-5f27-4bd5-ba60-a7937f9ab96a ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${CREATED_VIM_ACCOUNT_ID} = 27a79cab-5f27-4bd5-ba60-a7937f9ab96a ${CREATED_VIM_ACCOUNT_ID} Makes a variable available everywhere within the scope of the current suite. ${CREATED_VIM_ACCOUNT_ID} = 27a79cab-5f27-4bd5-ba60-a7937f9ab96a ${VIM_NAME} Check if the VIM account in OSM is enabled. ${VIM_OPSTATE_MAX_WAIT_TIME} ${VIM_OPSTATE_POL_TIME} Check If VIM Target Is Enabled ${vim_name} Runs the specified keyword and retries if it fails. ${vim_name} Check if the VIM account passed as argument is enabled in OSM (meaning that the RO could reach the VIM account). ${rc} ${stdout} osm vim-list | grep " ${vim_name} " | awk '{print $6}' Runs the given command in the system and returns the RC and output. Running command 'osm vim-list | grep " basic01_393627 " | awk '{print $6}' 2>&1'. ${rc} = 0 ${stdout} = ENABLED ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ENABLED msg=VIM Target '${vim_name}' is not enabled values=false Fails if objects are unequal after converting them to strings. ${VIM_NAME} ${PROMETHEUS_HOST} ${PROMETHEUS_PORT} ${PROMETHEUS_USER} ${PROMETHEUS_PASSWORD} Check in a loop if the value of the metric osm_vim_status in Prometheus for the VIM account is 1 (reachable). ${vim_account_id} ${vim_name} Get from OSM the VIM account id associated to the VIM account name passed as parameter. ${rc} ${stdout} osm vim-list | grep " ${vim_name} " | awk '{print $4}' Runs the given command in the system and returns the RC and output. Running command 'osm vim-list | grep " basic01_393627 " | awk '{print $4}' 2>&1'. ${rc} = 0 ${stdout} = 27a79cab-5f27-4bd5-ba60-a7937f9ab96a ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${EMPTY} msg=VIM Target '${vim_name}' not found values=false Fails if objects are equal after converting them to strings. ${stdout} ${vim_account_id} = 27a79cab-5f27-4bd5-ba60-a7937f9ab96a ${VIM_STATUS_MAX_WAIT_TIME} ${VIM_STATUS_POL_TIME} Check If VIM Target Is Available ${vim_account_id} ${prometheus_host} ${prometheus_port} ${prometheus_user} ${prometheus_password} Runs the specified keyword and retries if it fails. ${vim_account_id} ${prometheus_host} ${prometheus_port} ${prometheus_user} ${prometheus_password} Check if the value of the metric osm_vim_status in Prometheus for the VIM account is 1 (reachable). ${metric} ${prometheus_host} ${prometheus_port} ${prometheus_user} ${prometheus_password} osm_vim_status vim_account_id=${vim_account_id} Get the instant value of a metric from Prometheus using multiple filter parameters. The filter parameters are given to this function in key=value format (one argument per key/value pair). Fails if the metric is not found or has multiple values. Examples of execution: ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${param1}=${value1} ${param2}=${value2} ${filter} ${EMPTY} Returns the given values which can then be assigned to a variables. ${filter} = ${param} @{filter_parameters} vim_account_id=27a79cab-5f27-4bd5-ba60-a7937f9ab96a ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in filter parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = vim_account_id=27a79cab-5f27-4bd5-ba60-a7937f9ab96a ${param_name} = vim_account_id ${param_value} = 27a79cab-5f27-4bd5-ba60-a7937f9ab96a ${match},${param_name},${param_value} Logs the given message with the given level. vim_account_id=27a79cab-5f27-4bd5-ba60-a7937f9ab96a,vim_account_id,27a79cab-5f27-4bd5-ba60-a7937f9ab96a ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = vim_account_id="27a79cab-5f27-4bd5-ba60-a7937f9ab96a", ${resp} ${prometheus_ip} ${prometheus_port} ${prometheus_user} ${prometheus_password} query=${metric}{${filter}} Execute a Prometheus Instant Query using HTTP API. Return an inline json with the result of the query. The requested URL is the next: http://${prometheus_ip}:${prometheus_port}/api/v1/query?${querystring} ${auth} ${prometheus_user} ${prometheus_password} Returns a list containing given items. ${auth} = ['""', '""'] ${auth} None Returns the given values which can then be assigned to a variables. prometheus http://${prometheus_ip}:${prometheus_port} timeout=${TIMEOUT} max_retries=${MAX_RETRIES} verify=false auth=${auth} Create Session: create a HTTP session to a server Creating Session using : alias=prometheus, url=http://172.21.249.226:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7ff1ad9ed5a0>, timeout=30, proxies=None, verify=False, debug=0 ${resp} prometheus /api/v1/query?${querystring} timeout=${TIMEOUT} Sends a GET request on a previously created HTTP Session. GET Request : url=http://172.21.249.226:9091/api/v1/query?query=osm_vim_status%7Bvim_account_id=%2227a79cab-5f27-4bd5-ba60-a7937f9ab96a%22,%7D path_url=/api/v1/query?query=osm_vim_status%7Bvim_account_id=%2227a79cab-5f27-4bd5-ba60-a7937f9ab96a%22,%7D headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'Basic IiI6IiI='} body=None GET Response : url=http://172.21.249.226:9091/api/v1/query?query=osm_vim_status%7Bvim_account_id=%2227a79cab-5f27-4bd5-ba60-a7937f9ab96a%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Mon, 19 Feb 2024 02:34:50 GMT', 'Content-Length': '87'} body={"status":"success","data":{"resultType":"vector","result":[]}} ${resp} = <Response [200]> 200 ${resp} Fails if response status code is different than the expected. ${resp.json()} ${resp} = {'status': 'success', 'data': {'resultType': 'vector', 'result': []}} ${result_list} ${resp["data"]["result"]} Converts the given ``item`` to a Python ``list`` type. ${result_list} = [] ${results} ${result_list} Returns and logs the length of the given item as an integer. Length is 0 ${results} = 0 0 ${results} msg=Metric ${metric} not found values=false Fails if objects are equal after converting them to real numbers. Argument types are: <class 'str'> <class 'int'> Metric osm_vim_status not found 1 ${results} msg=Metric ${metric} with multiple values values=false Fails if objects are unequal after converting them to integers. ${result_list[0]["value"][1]} ${metric} 1 msg=VIM Target '${vim_account_id}' is not active values=false Fails if objects are unequal after converting them to integers. ${vim_account_id} ${prometheus_host} ${prometheus_port} ${prometheus_user} ${prometheus_password} Check if the value of the metric osm_vim_status in Prometheus for the VIM account is 1 (reachable). ${metric} ${prometheus_host} ${prometheus_port} ${prometheus_user} ${prometheus_password} osm_vim_status vim_account_id=${vim_account_id} Get the instant value of a metric from Prometheus using multiple filter parameters. The filter parameters are given to this function in key=value format (one argument per key/value pair). Fails if the metric is not found or has multiple values. Examples of execution: ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${param1}=${value1} ${param2}=${value2} ${filter} ${EMPTY} Returns the given values which can then be assigned to a variables. ${filter} = ${param} @{filter_parameters} vim_account_id=27a79cab-5f27-4bd5-ba60-a7937f9ab96a ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in filter parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = vim_account_id=27a79cab-5f27-4bd5-ba60-a7937f9ab96a ${param_name} = vim_account_id ${param_value} = 27a79cab-5f27-4bd5-ba60-a7937f9ab96a ${match},${param_name},${param_value} Logs the given message with the given level. vim_account_id=27a79cab-5f27-4bd5-ba60-a7937f9ab96a,vim_account_id,27a79cab-5f27-4bd5-ba60-a7937f9ab96a ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = vim_account_id="27a79cab-5f27-4bd5-ba60-a7937f9ab96a", ${resp} ${prometheus_ip} ${prometheus_port} ${prometheus_user} ${prometheus_password} query=${metric}{${filter}} Execute a Prometheus Instant Query using HTTP API. Return an inline json with the result of the query. The requested URL is the next: http://${prometheus_ip}:${prometheus_port}/api/v1/query?${querystring} ${auth} ${prometheus_user} ${prometheus_password} Returns a list containing given items. ${auth} = ['""', '""'] ${auth} None Returns the given values which can then be assigned to a variables. prometheus http://${prometheus_ip}:${prometheus_port} timeout=${TIMEOUT} max_retries=${MAX_RETRIES} verify=false auth=${auth} Create Session: create a HTTP session to a server Creating Session using : alias=prometheus, url=http://172.21.249.226:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7ff1ad9ec880>, timeout=30, proxies=None, verify=False, debug=0 ${resp} prometheus /api/v1/query?${querystring} timeout=${TIMEOUT} Sends a GET request on a previously created HTTP Session. GET Request : url=http://172.21.249.226:9091/api/v1/query?query=osm_vim_status%7Bvim_account_id=%2227a79cab-5f27-4bd5-ba60-a7937f9ab96a%22,%7D path_url=/api/v1/query?query=osm_vim_status%7Bvim_account_id=%2227a79cab-5f27-4bd5-ba60-a7937f9ab96a%22,%7D headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'Basic IiI6IiI='} body=None GET Response : url=http://172.21.249.226:9091/api/v1/query?query=osm_vim_status%7Bvim_account_id=%2227a79cab-5f27-4bd5-ba60-a7937f9ab96a%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Mon, 19 Feb 2024 02:35:05 GMT', 'Content-Length': '196'} body={"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"osm_vim_status","job":"airflow_osm_vim_status_27a79cab-5f27-4bd5-ba60-a7937f9ab96a","vim_account_id":"27a79cab-5f27-4bd5-ba60-a7937f9ab96a"},"value":[1708310105.883,"1"]}]}} ${resp} = <Response [200]> 200 ${resp} Fails if response status code is different than the expected. ${resp.json()} ${resp} = {'status': 'success', 'data': {'resultType': 'vector', 'result': [{'metric': {'__name__': 'osm_vim_status', 'job': 'airflow_osm_vim_status_27a79cab-5f27-4bd5-ba60-a7937f9ab96a', 'vim_account_id': '27a... ${result_list} ${resp["data"]["result"]} Converts the given ``item`` to a Python ``list`` type. ${result_list} = [{'metric': {'__name__': 'osm_vim_status', 'job': 'airflow_osm_vim_status_27a79cab-5f27-4bd5-ba60-a7937f9ab96a', 'vim_account_id': '27a79cab-5f27-4bd5-ba60-a7937f9ab96a'}, 'value': [1708310105.883, '1... ${results} ${result_list} Returns and logs the length of the given item as an integer. Length is 1 ${results} = 1 0 ${results} msg=Metric ${metric} not found values=false Fails if objects are equal after converting them to real numbers. Argument types are: <class 'str'> <class 'int'> 1 ${results} msg=Metric ${metric} with multiple values values=false Fails if objects are unequal after converting them to integers. Argument types are: <class 'str'> <class 'int'> ${result_list[0]["value"][1]} ${metric} = 1 ${metric} 1 msg=VIM Target '${vim_account_id}' is not active values=false Fails if objects are unequal after converting them to integers. Create a VIM Target using the extra parameter 'config'. Checks the status of the VIM in Prometheus after it creation. basic_01 cluster_main daily regression ${vim_account_id} ${VIM_NAME} Get from OSM the VIM account id associated to the VIM account name passed as parameter. ${rc} ${stdout} osm vim-list | grep " ${vim_name} " | awk '{print $4}' Runs the given command in the system and returns the RC and output. Running command 'osm vim-list | grep " basic01_393627 " | awk '{print $4}' 2>&1'. ${rc} = 0 ${stdout} = 27a79cab-5f27-4bd5-ba60-a7937f9ab96a ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${EMPTY} msg=VIM Target '${vim_name}' not found values=false Fails if objects are equal after converting them to strings. ${stdout} ${vim_account_id} = 27a79cab-5f27-4bd5-ba60-a7937f9ab96a ${vim_account_id} ${CREATED_VIM_ACCOUNT_ID} Fails if objects are unequal after converting them to strings. ${vim_account_id} Unregister/delete a VIM account from OSM. ${rc} ${stdout} Run And Return Rc And Output osm vim-delete ${vim_name} Runs the keyword and continues execution even if a failure occurs. osm vim-delete ${vim_name} Runs the given command in the system and returns the RC and output. Running command 'osm vim-delete 27a79cab-5f27-4bd5-ba60-a7937f9ab96a 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${rc},${stdout} Logs the given message with the given level. 0,Deletion in progress ${VIM_DELETE_MAX_WAIT_TIME} ${VIM_DELETE_POL_TIME} Check For VIM Target ${vim_name} Runs the specified keyword and retries if it fails. ${vim_name} Check if a VIM account has been registered in OSM. ${rc} ${stdout} osm vim-list | awk '{print $2}' | grep ${vim_name} Runs the given command in the system and returns the RC and output. Running command 'osm vim-list | awk '{print $2}' | grep 27a79cab-5f27-4bd5-ba60-a7937f9ab96a 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vim_name} Fails if objects are equal after converting them to strings. Delete the VIM Target created in previous test-case by its ID. Checks whether the VIM Target was created or not before perform the deletion. basic_01 cleanup cluster_main daily regression [BASIC-01] CRUD operations on VIM targets. All tests will be performed over an Openstack VIM, and the credentials will be loaded from clouds.yaml file. '%{PACKAGES_FOLDER}/${VNFD_PKG}' Onboards ("creates") a NF Package into OSM. - Parameters: - vnfd_pkg: Name (and location) of the NF Package - overrides (optional): String with options to override the EPA and/or interface properties of the Package. This is very useful to allow to deploy e.g. non-EPA packages in EPA VIMs (or vice-versa). Valid strings are the same as in the command. E.g.: - `--override-epa`: adds EPA attributes to all VDUs. - `--override-nonepa`: removes all EPA attributes from all VDUs. - `--override-paravirt`: converts all interfaces to `PARAVIRT`. This one can be combined with the others above (e.g. '--override-nonepa --override-paravirt'). - Relevant environment variables: - OVERRIDES: If the environment variable "OVERRIDES" exists, it prevails over the value in the argument. This is often more convenient to enforce the same behaviour for every test run in a given VIM. ${overrides} OVERRIDES default=${overrides} Returns the value of an environment variable with the given name. ${overrides} = ${rc} ${stdout} osm vnfpkg-create ${overrides} ${vnfd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-create '/robot-systest/osm-packages/ubuntu_cloudinit_vnf' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/ubuntu_cloudinit_vnf Validation OK List of charms in the descriptor: set() Adding File: ubuntu_cloudinit_vnf Package created: /robot-systest/osm-packages... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/ubuntu_cloudinit_vnf Validation OK List of charms in the descriptor: set() Adding File: ubuntu_cloudinit_vnf Package created: /robot-systest/osm-packages/ubuntu_cloudinit_vnf.tar.gz Uploading package /robot-systest/osm-packages/ubuntu_cloudinit_vnf.tar.gz 43f7d14b-cd9c-4a5f-98f9-38129396c125 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 7 lines ${lines} = 7 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 6 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = 43f7d14b-cd9c-4a5f-98f9-38129396c125 ${id} Upload VNF package for the testsuite. azure basic_05 cluster_main daily regression '%{PACKAGES_FOLDER}/${NSD_PKG}' Upload a NS package to OSM and return the id. ${rc} ${stdout} osm nspkg-create ${nsd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-create '/robot-systest/osm-packages/ubuntu_cloudinit_ns' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/ubuntu_cloudinit_ns Validation OK List of charms in the descriptor: set() Adding File: ubuntu_cloudinit_ns Package created: /robot-systest/osm-packages/u... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/ubuntu_cloudinit_ns Validation OK List of charms in the descriptor: set() Adding File: ubuntu_cloudinit_ns Package created: /robot-systest/osm-packages/ubuntu_cloudinit_ns.tar.gz 238c4013-df40-4983-b419-a476a6a34ed2 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 6 lines ${lines} = 6 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 5 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = 238c4013-df40-4983-b419-a476a6a34ed2 ${id} Upload NS package for the testsuite. azure basic_05 cluster_main daily regression ${id} ${NSD_NAME} %{VIM_TARGET} ${NS_NAME} ${NS_CONFIG} ${EMPTY} Launch the instantation of a NS and verify in a loop that the NS instance is successfully created in a given time, and return the NS instance id. ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_launch_max_wait_time} = 300.0 ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_launch_max_wait_time} = 300.0 ${ns_launch_max_wait_time} Logs the given message with the given level. 300.0 ${config_attr} '${ns_config}'!='${EMPTY}' --config '${ns_config}' ${EMPTY} Sets variable based on the given condition. ${config_attr} = --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext} ], additionalParamsForVnf: [ { member-vnf-index: "vnf", additionalParams: { password: "newpassword" } } ] }' ${sshkeys_attr} '${publickey}'!='${EMPTY}' --ssh_keys ${publickey} ${EMPTY} Sets variable based on the given condition. ${sshkeys_attr} = ${config_file_attr} '${config_file}'!='${EMPTY}' --config_file '${config_file}' ${EMPTY} Sets variable based on the given condition. ${config_file_attr} = ${ns_id} ${ns_name} ${nsd} ${vim_name} ${config_attr} ${sshkeys_attr} ${config_file_attr} Launch the instantation of a NS, and return the NS instance id. ${rc} ${stdout} osm ns-create --ns_name ${ns_name} --nsd_name ${nsd} --vim_account ${vim_name} ${ns_extra_args} Runs the given command in the system and returns the RC and output. Running command 'osm ns-create --ns_name basic_05_instantiation_params_cloud_init --nsd_name ubuntu_cloudinit-ns --vim_account osm --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext} ], additionalParamsForVnf: [ { member-vnf-index: "vnf", additionalParams: { password: "newpassword" } } ] }' 2>&1'. ${rc} = 0 ${stdout} = 76005c25-1867-4fab-9f00-6ca3b0891e8f ${stdout} Logs the given message with the given level. 76005c25-1867-4fab-9f00-6ca3b0891e8f ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 76005c25-1867-4fab-9f00-6ca3b0891e8f ${ns_id} Logs the given message with the given level. 76005c25-1867-4fab-9f00-6ca3b0891e8f ${ns_launch_max_wait_time} ${NS_LAUNCH_POL_TIME} Check For NS Instance To Configured ${ns_name} Runs the specified keyword and retries if it fails. ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------+--------+---------------------------------------------------------------------------------------------------------------------------+... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------+--------+---------------------------------------------------------------------------------------------------------------------------+-------------+----------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------+--------+---------------------------------------------------------------------------------------------------------------------------+-------------+----------------------+ | d532361c-7ab1-4f1d-a936-18309cbc1f26 | basic_18-vnf2-dataVM-0 | ACTIVE | basic_18-datanet1=192.168.10.147; basic_18-datanet2=192.168.20.98; basic_18-datanet3=192.168.30.4; osm-ext=172.21.248.207 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | a121c044-9e94-4638-b842-97f67dfb7764 | basic_18-vnf1-dataVM-0 | ACTIVE | basic_18-datanet2=192.168.20.84; basic_18-datanet3=192.168.30.86; osm-ext=172.21.249.241 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------+--------+---------------------------------------------------------------------------------------------------------------------------+-------------+----------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_05_instantiation_params_cloud_init" 2>&1'. ${rc} = 0 ${stdout} = +------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instanc... ${rc},${stdout} Logs the given message with the given level. 0,+------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_05_instantiation_params_cloud_init | 76005c25-1867-4fab-9f00-6ca3b0891e8f | 2024-02-19T02:35:15 | BUILDING | INSTANTIATING (318e7e04-f2c4-4994-ba39-90dd659bc331) | N/A | +------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_05_instantiation_params_cloud_init | 76005c25-1867-4fab-9f00-6ca3b0891e8f | 2024-02-19T02:35:15 | BUILDING | INSTANTIATING (318e7e04-f2c4-4994-ba39-90dd659bc331) | N/A | +------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-----------------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-----------------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-----------------------------------+ | 67a86455-2861-4822-a88a-6d944b375125 | k8s_05-k8s_proxy-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 4ebad1b7-842b-4dd4-915c-c4440628a936 | k8s_05-k8s_proxy-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | c0cd71de-6624-455c-96a3-0aa0162c4753 | basic_05_instant-vnf-ubuntu_cloudinit-vnf-VM-0 | ACTIVE | osm-ext=172.21.248.104 | ubuntu18.04 | ubuntu_cloudinit-vnf-VM-vnf-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-----------------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_05_instantiation_params_cloud_init" 2>&1'. ${rc} = 0 ${stdout} = +------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instanc... ${rc},${stdout} Logs the given message with the given level. 0,+------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_05_instantiation_params_cloud_init | 76005c25-1867-4fab-9f00-6ca3b0891e8f | 2024-02-19T02:35:15 | BUILDING | INSTANTIATING (318e7e04-f2c4-4994-ba39-90dd659bc331) | N/A | +------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_05_instantiation_params_cloud_init | 76005c25-1867-4fab-9f00-6ca3b0891e8f | 2024-02-19T02:35:15 | BUILDING | INSTANTIATING (318e7e04-f2c4-4994-ba39-90dd659bc331) | N/A | +------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------------+--------+----------------------------------------------------------+-------------+-----------------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------------+--------+----------------------------------------------------------+-------------+-----------------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------------+--------+----------------------------------------------------------+-------------+-----------------------------------+ | 512aedee-74d6-4243-a221-ac39768d297a | basic_19-vnf-dataVM-0 | ACTIVE | basic_19-internal=192.168.200.207 | ubuntu20.04 | simple_requires-1-1-flv | | 329ccdba-350a-46bf-af89-9f0b1cb58ede | basic_19-vnf-mgmtVM-0 | ACTIVE | basic_19-internal=192.168.200.123; osm-ext=172.21.249.80 | ubuntu20.04 | simple_requires-1-1-flv | | 67a86455-2861-4822-a88a-6d944b375125 | k8s_05-k8s_proxy-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 4ebad1b7-842b-4dd4-915c-c4440628a936 | k8s_05-k8s_proxy-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | c0cd71de-6624-455c-96a3-0aa0162c4753 | basic_05_instant-vnf-ubuntu_cloudinit-vnf-VM-0 | ACTIVE | osm-ext=172.21.248.104 | ubuntu18.04 | ubuntu_cloudinit-vnf-VM-vnf-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------------+--------+----------------------------------------------------------+-------------+-----------------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_05_instantiation_params_cloud_init" 2>&1'. ${rc} = 0 ${stdout} = +------------------------------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id... ${rc},${stdout} Logs the given message with the given level. 0,+------------------------------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------------------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | basic_05_instantiation_params_cloud_init | 76005c25-1867-4fab-9f00-6ca3b0891e8f | 2024-02-19T02:35:15 | READY | IDLE (None) | N/A | +------------------------------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. ${ns_name} Check if a given NS instance has not failed in the instantiation (the status should not be BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------------+--------+----------------------------------------------------------+-------------+-----------------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------------+--------+----------------------------------------------------------+-------------+-----------------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------------+--------+----------------------------------------------------------+-------------+-----------------------------------+ | 512aedee-74d6-4243-a221-ac39768d297a | basic_19-vnf-dataVM-0 | ACTIVE | basic_19-internal=192.168.200.207 | ubuntu20.04 | simple_requires-1-1-flv | | 329ccdba-350a-46bf-af89-9f0b1cb58ede | basic_19-vnf-mgmtVM-0 | ACTIVE | basic_19-internal=192.168.200.123; osm-ext=172.21.249.80 | ubuntu20.04 | simple_requires-1-1-flv | | 67a86455-2861-4822-a88a-6d944b375125 | k8s_05-k8s_proxy-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 4ebad1b7-842b-4dd4-915c-c4440628a936 | k8s_05-k8s_proxy-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | c0cd71de-6624-455c-96a3-0aa0162c4753 | basic_05_instant-vnf-ubuntu_cloudinit-vnf-VM-0 | ACTIVE | osm-ext=172.21.248.104 | ubuntu18.04 | ubuntu_cloudinit-vnf-VM-vnf-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------------+--------+----------------------------------------------------------+-------------+-----------------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_05_instantiation_params_cloud_init" 2>&1'. ${rc} = 0 ${stdout} = +------------------------------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id... ${rc},${stdout} Logs the given message with the given level. 0,+------------------------------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------------------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | basic_05_instantiation_params_cloud_init | 76005c25-1867-4fab-9f00-6ca3b0891e8f | 2024-02-19T02:35:15 | READY | IDLE (None) | N/A | +------------------------------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} BROKEN Fails if ``container`` contains ``item`` one or more times. ${ns_id} ${id} = 76005c25-1867-4fab-9f00-6ca3b0891e8f ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 76005c25-1867-4fab-9f00-6ca3b0891e8f Instantiates the NS using the instantiation parameter 'additionalParamsForVnf' to change the password of the default user. azure basic_05 cluster_main daily regression ${ip_addr} ${NS_ID} ${VNF_MEMBER_INDEX} Get the mgmt IP address of a member VNF in a NS instance, and return it. ${ns_id} Verifies that the given item is not empty. Length is 36 ${vnf_member_index} Verifies that the given item is not empty. Length is 3 ${rc} ${stdout} osm vnf-list --filter member-vnf-index-ref=${vnf_member_index} | grep ${ns_id} | awk '{print $14}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm vnf-list --filter member-vnf-index-ref=vnf | grep 76005c25-1867-4fab-9f00-6ca3b0891e8f | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.248.104 ${stdout} Logs the given message with the given level. 172.21.248.104 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ip_addr} = 172.21.248.104 ${ip_addr} Logs the given message with the given level. 172.21.248.104 ${VNF_IP_ADDR} ${ip_addr} Makes a variable available everywhere within the scope of the current suite. ${VNF_IP_ADDR} = 172.21.248.104 Retrieve VNF mgmt IP address from OSM. azure basic_05 cluster_main daily regression ${VNF_IP_ADDR} msg=IP address of the management VNF is not available Fails unless the given variable exists within the current scope. 30s Waiting ssh daemon to be up Pauses the test executed for the given time. Slept 30 seconds Waiting ssh daemon to be up ${VNF_IP_ADDR} ${USERNAME} ${NEW_PASSWORD} ${EMPTY} Test the SSH connection to the host with the user and credentials passed as arguments. ${host} Opens a new SSH connection to the given ``host`` and ``port``. ${username} ${password} Logs into the SSH server with the given ``username`` and ``password``. Logging into '172.21.248.104:22' as 'ubuntu'. Read output: Welcome to Ubuntu 18.04.6 LTS (GNU/Linux 4.15.0-180-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Mon Feb 19 02:37:00 UTC 2024 System load: 0.36 Processes: 96 Usage of /: 11.5% of 9.52GB Users logged in: 0 Memory usage: 6% IP address for ens3: 172.21.248.104 Swap usage: 0% 0 updates can be applied immediately. The programs included with the Ubuntu system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. ubuntu@basic-05-instant-vnf-ubuntu-cloudinit-vnf-vm-0:~$ ${username} ${privatekey} Logs into the SSH server using key-based authentication. hostname Executes ``command`` on the remote machine and returns its outputs. Executing command 'hostname'. Command exited with return code 0. Closes all open connections. Test SSH access with the new password configured via cloud-init. azure basic_05 cluster_main daily regression ${NS_NAME} Delete a NS instance. ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} Logs the given message with the given level. 240.0 ${rc} ${stdout} osm ns-delete ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-delete basic_05_instantiation_params_cloud_init 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${stdout} Logs the given message with the given level. Deletion in progress ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${ns_delete_max_wait_time} ${NS_DELETE_POL_TIME} Check For NS Instance To Be Deleted ${ns} Runs the specified keyword and retries if it fails. ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------------+--------+----------------------------------------------------------+-------------+-----------------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------------+--------+----------------------------------------------------------+-------------+-----------------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------------+--------+----------------------------------------------------------+-------------+-----------------------------------+ | 512aedee-74d6-4243-a221-ac39768d297a | basic_19-vnf-dataVM-0 | ACTIVE | basic_19-internal=192.168.200.207 | ubuntu20.04 | simple_requires-1-1-flv | | 329ccdba-350a-46bf-af89-9f0b1cb58ede | basic_19-vnf-mgmtVM-0 | ACTIVE | basic_19-internal=192.168.200.123; osm-ext=172.21.249.80 | ubuntu20.04 | simple_requires-1-1-flv | | 67a86455-2861-4822-a88a-6d944b375125 | k8s_05-k8s_proxy-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 4ebad1b7-842b-4dd4-915c-c4440628a936 | k8s_05-k8s_proxy-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | c0cd71de-6624-455c-96a3-0aa0162c4753 | basic_05_instant-vnf-ubuntu_cloudinit-vnf-VM-0 | ACTIVE | osm-ext=172.21.248.104 | ubuntu18.04 | ubuntu_cloudinit-vnf-VM-vnf-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------------+--------+----------------------------------------------------------+-------------+-----------------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep basic_05_instantiation_params_cloud_init 2>&1'. ${rc} = 0 ${stdout} = basic_05_instantiation_params_cloud_init ${rc},${stdout} Logs the given message with the given level. 0,basic_05_instantiation_params_cloud_init ${stdout} ${ns} Fails if objects are equal after converting them to strings. basic_05_instantiation_params_cloud_init == basic_05_instantiation_params_cloud_init ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------+--------+----------------------------------------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------+--------+----------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------+--------+----------------------------------------------------------+-------------+-------------------------+ | 512aedee-74d6-4243-a221-ac39768d297a | basic_19-vnf-dataVM-0 | ACTIVE | basic_19-internal=192.168.200.207 | ubuntu20.04 | simple_requires-1-1-flv | | 329ccdba-350a-46bf-af89-9f0b1cb58ede | basic_19-vnf-mgmtVM-0 | ACTIVE | basic_19-internal=192.168.200.123; osm-ext=172.21.249.80 | ubuntu20.04 | simple_requires-1-1-flv | | 67a86455-2861-4822-a88a-6d944b375125 | k8s_05-k8s_proxy-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 4ebad1b7-842b-4dd4-915c-c4440628a936 | k8s_05-k8s_proxy-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------+--------+----------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep basic_05_instantiation_params_cloud_init 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${ns} Fails if objects are equal after converting them to strings. Delete NS instance. azure basic_05 cleanup cluster_main daily regression ${NSD_NAME} Delete a NS package from OSM. ${rc} ${stdout} Run And Return Rc And Output osm nspkg-delete ${nsd_id} Runs the keyword and continues execution even if a failure occurs. osm nspkg-delete ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-delete ubuntu_cloudinit-ns 2>&1'. ${rc} = 0 ${stdout} = Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Logs the given message with the given level. Deleted ${NSD_DELETE_MAX_WAIT_TIME} ${NSD_DELETE_POL_TIME} Check For NSD ${nsd_id} Runs the specified keyword and retries if it fails. ${nsd_id} Check that a NS package exists in OSM. ${rc} ${stdout} osm nspkg-list | awk '{print $2}' | grep ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-list | awk '{print $2}' | grep ubuntu_cloudinit-ns 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. Delete NS package from OSM. azure basic_05 cleanup cluster_main daily regression ${VNFD_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete ubuntu_cloudinit-vnf 2>&1'. ${rc} = 0 ${stdout} = Deleted ${stdout} Logs the given message with the given level. Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep ubuntu_cloudinit-vnf 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. Delete VNF package from OSM. azure basic_05 cleanup cluster_main daily regression Suite Cleanup Runs the given keyword with the given arguments and ignores possible error. Test Suite Cleanup: Deleting descriptors and NS instance Delete NS ${NS_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete NSD ${NSD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete VNFD ${VNFD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. [BASIC-05] Instantiation parameters in cloud-init. Suite Preparation Runs the given keyword with the given arguments and ignores possible error. Test Suite Preparation: Setting Prometheus Testsuite Variables Set Testsuite Prometheus Variables to be used in subsequent test cases ${local_prometheus_host} OSM_HOSTNAME Returns the value of an environment variable with the given name. ${PROMETHEUS_HOST} ${local_prometheus_host} Makes a variable available everywhere within the scope of the current suite. ${PROMETHEUS_HOST} 9091 Makes a variable available everywhere within the scope of the current suite. Invalid IF condition: Evaluating expression '172.21.249.226 == 'UNKNOWN'' failed: SyntaxError: invalid syntax (<string>, line 1) Variables in the original expression '${PROMETHEUS_HOST} == 'UNKNOWN'' were resolved before the expression was evaluated. Try using '$PROMETHEUS_HOST == 'UNKNOWN'' syntax to avoid that. See Evaluating Expressions appendix in Robot Framework User Guide for more details. ${PROMETHEUS_PORT} Logs the given message with the given level. ${PROMETHEUS_HOST} Logs the given message with the given level. ${PROMETHEUS_USER} Logs the given message with the given level. ${PROMETHEUS_PASSWORD} Logs the given message with the given level. ${created_vim_account_id} ${VIM_NAME} ${VIM_USER} ${VIM_PASSWORD} ${VIM_AUTH_URL} ${VIM_TENANT} ${VIM_ACCOUNT_TYPE} config=${VIM_CONFIG} Register a VIM account in OSM and return the id. The optional parameters (such as 'config' or 'sdn_controller') are given to this function in name=value format. These parameters will be appended to the 'osm vim-create' command with the next syntax: --param_name=param_value Return the ID of the created VIM Target. Example of execution: ${vim_account_id}= Create VIM Target ${vim_name} ${vim_user} ${vim_password} ${vim_auth_url} ${vim_tenant} ${vim_account_type} config='{...}' ${osm_vim_create_command} osm vim-create --name ${vim_name} --user ${vim_user} --password ${vim_password} --auth_url ${vim_auth_url} --tenant ${vim_tenant} --account_type ${vim_account_type} Returns the given values which can then be assigned to a variables. ${osm_vim_create_command} = osm vim-create --name basic_08_vim_test --user osm_jenkins --password R8NtPgyodpgKjhmJoQBs --auth_url http://172.21.247.1:5000/v3 --tenant osm_jenkins --account_type openstack ${param} @{optional_parameters} config='{disable_network_port_security: true, management_network_name: osm-ext, project_domain_name: default, user_domain_name: Default, vim_network_name: osm-ext}' ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in optional parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = config='{disable_network_port_security: true, management_network_name: osm-ext, project_domain_name: default, user_domain_name: Default, vim_network_name: osm-ext}' ${param_name} = config ${param_value} = '{disable_network_port_security: true, management_network_name: osm-ext, project_domain_name: default, user_domain_name: Default, vim_network_name: osm-ext}' ${match},${param_name},${param_value} Logs the given message with the given level. config='{disable_network_port_security: true, management_network_name: osm-ext, project_domain_name: default, user_domain_name: Default, vim_network_name: osm-ext}',config,'{disable_network_port_security: true, management_network_name: osm-ext, project_domain_name: default, user_domain_name: Default, vim_network_name: osm-ext}' ${osm_vim_create_command} ${osm_vim_create_command} --${param_name}=${param_value} Catenates the given items together and returns the resulted string. ${osm_vim_create_command} = osm vim-create --name basic_08_vim_test --user osm_jenkins --password R8NtPgyodpgKjhmJoQBs --auth_url http://172.21.247.1:5000/v3 --tenant osm_jenkins --account_type openstack --config='{disable_netwo... ${rc} ${stdout} ${osm_vim_create_command} Runs the given command in the system and returns the RC and output. Running command 'osm vim-create --name basic_08_vim_test --user osm_jenkins --password R8NtPgyodpgKjhmJoQBs --auth_url http://172.21.247.1:5000/v3 --tenant osm_jenkins --account_type openstack --config='{disable_network_port_security: true, management_network_name: osm-ext, project_domain_name: default, user_domain_name: Default, vim_network_name: osm-ext}' 2>&1'. ${rc} = 0 ${stdout} = 4d3b7ea5-74ea-4928-8a9c-75300741691b ${stdout} Logs the given message with the given level. 4d3b7ea5-74ea-4928-8a9c-75300741691b ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${created_vim_account_id} = 4d3b7ea5-74ea-4928-8a9c-75300741691b ${created_vim_account_id} Logs the given message with the given level. 4d3b7ea5-74ea-4928-8a9c-75300741691b ${VIM_NAME} ${PROMETHEUS_HOST} ${PROMETHEUS_PORT} ${PROMETHEUS_USER} ${PROMETHEUS_PASSWORD} Check in a loop if the value of the metric osm_vim_status in Prometheus for the VIM account is 1 (reachable). ${vim_account_id} ${vim_name} Get from OSM the VIM account id associated to the VIM account name passed as parameter. ${rc} ${stdout} osm vim-list | grep " ${vim_name} " | awk '{print $4}' Runs the given command in the system and returns the RC and output. Running command 'osm vim-list | grep " basic_08_vim_test " | awk '{print $4}' 2>&1'. ${rc} = 0 ${stdout} = 4d3b7ea5-74ea-4928-8a9c-75300741691b ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${EMPTY} msg=VIM Target '${vim_name}' not found values=false Fails if objects are equal after converting them to strings. ${stdout} ${vim_account_id} = 4d3b7ea5-74ea-4928-8a9c-75300741691b ${VIM_STATUS_MAX_WAIT_TIME} ${VIM_STATUS_POL_TIME} Check If VIM Target Is Available ${vim_account_id} ${prometheus_host} ${prometheus_port} ${prometheus_user} ${prometheus_password} Runs the specified keyword and retries if it fails. ${vim_account_id} ${prometheus_host} ${prometheus_port} ${prometheus_user} ${prometheus_password} Check if the value of the metric osm_vim_status in Prometheus for the VIM account is 1 (reachable). ${metric} ${prometheus_host} ${prometheus_port} ${prometheus_user} ${prometheus_password} osm_vim_status vim_account_id=${vim_account_id} Get the instant value of a metric from Prometheus using multiple filter parameters. The filter parameters are given to this function in key=value format (one argument per key/value pair). Fails if the metric is not found or has multiple values. Examples of execution: ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${param1}=${value1} ${param2}=${value2} ${filter} ${EMPTY} Returns the given values which can then be assigned to a variables. ${filter} = ${param} @{filter_parameters} vim_account_id=4d3b7ea5-74ea-4928-8a9c-75300741691b ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in filter parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = vim_account_id=4d3b7ea5-74ea-4928-8a9c-75300741691b ${param_name} = vim_account_id ${param_value} = 4d3b7ea5-74ea-4928-8a9c-75300741691b ${match},${param_name},${param_value} Logs the given message with the given level. vim_account_id=4d3b7ea5-74ea-4928-8a9c-75300741691b,vim_account_id,4d3b7ea5-74ea-4928-8a9c-75300741691b ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = vim_account_id="4d3b7ea5-74ea-4928-8a9c-75300741691b", ${resp} ${prometheus_ip} ${prometheus_port} ${prometheus_user} ${prometheus_password} query=${metric}{${filter}} Execute a Prometheus Instant Query using HTTP API. Return an inline json with the result of the query. The requested URL is the next: http://${prometheus_ip}:${prometheus_port}/api/v1/query?${querystring} ${auth} ${prometheus_user} ${prometheus_password} Returns a list containing given items. ${auth} = ['""', '""'] ${auth} None Returns the given values which can then be assigned to a variables. prometheus http://${prometheus_ip}:${prometheus_port} timeout=${TIMEOUT} max_retries=${MAX_RETRIES} verify=false auth=${auth} Create Session: create a HTTP session to a server Creating Session using : alias=prometheus, url=http://172.21.249.226:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7ff1acb795a0>, timeout=30, proxies=None, verify=False, debug=0 ${resp} prometheus /api/v1/query?${querystring} timeout=${TIMEOUT} Sends a GET request on a previously created HTTP Session. GET Request : url=http://172.21.249.226:9091/api/v1/query?query=osm_vim_status%7Bvim_account_id=%224d3b7ea5-74ea-4928-8a9c-75300741691b%22,%7D path_url=/api/v1/query?query=osm_vim_status%7Bvim_account_id=%224d3b7ea5-74ea-4928-8a9c-75300741691b%22,%7D headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'Basic IiI6IiI='} body=None GET Response : url=http://172.21.249.226:9091/api/v1/query?query=osm_vim_status%7Bvim_account_id=%224d3b7ea5-74ea-4928-8a9c-75300741691b%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Mon, 19 Feb 2024 02:37:35 GMT', 'Content-Length': '87'} body={"status":"success","data":{"resultType":"vector","result":[]}} ${resp} = <Response [200]> 200 ${resp} Fails if response status code is different than the expected. ${resp.json()} ${resp} = {'status': 'success', 'data': {'resultType': 'vector', 'result': []}} ${result_list} ${resp["data"]["result"]} Converts the given ``item`` to a Python ``list`` type. ${result_list} = [] ${results} ${result_list} Returns and logs the length of the given item as an integer. Length is 0 ${results} = 0 0 ${results} msg=Metric ${metric} not found values=false Fails if objects are equal after converting them to real numbers. Argument types are: <class 'str'> <class 'int'> Metric osm_vim_status not found 1 ${results} msg=Metric ${metric} with multiple values values=false Fails if objects are unequal after converting them to integers. ${result_list[0]["value"][1]} ${metric} 1 msg=VIM Target '${vim_account_id}' is not active values=false Fails if objects are unequal after converting them to integers. ${vim_account_id} ${prometheus_host} ${prometheus_port} ${prometheus_user} ${prometheus_password} Check if the value of the metric osm_vim_status in Prometheus for the VIM account is 1 (reachable). ${metric} ${prometheus_host} ${prometheus_port} ${prometheus_user} ${prometheus_password} osm_vim_status vim_account_id=${vim_account_id} Get the instant value of a metric from Prometheus using multiple filter parameters. The filter parameters are given to this function in key=value format (one argument per key/value pair). Fails if the metric is not found or has multiple values. Examples of execution: ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${param1}=${value1} ${param2}=${value2} ${filter} ${EMPTY} Returns the given values which can then be assigned to a variables. ${filter} = ${param} @{filter_parameters} vim_account_id=4d3b7ea5-74ea-4928-8a9c-75300741691b ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in filter parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = vim_account_id=4d3b7ea5-74ea-4928-8a9c-75300741691b ${param_name} = vim_account_id ${param_value} = 4d3b7ea5-74ea-4928-8a9c-75300741691b ${match},${param_name},${param_value} Logs the given message with the given level. vim_account_id=4d3b7ea5-74ea-4928-8a9c-75300741691b,vim_account_id,4d3b7ea5-74ea-4928-8a9c-75300741691b ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = vim_account_id="4d3b7ea5-74ea-4928-8a9c-75300741691b", ${resp} ${prometheus_ip} ${prometheus_port} ${prometheus_user} ${prometheus_password} query=${metric}{${filter}} Execute a Prometheus Instant Query using HTTP API. Return an inline json with the result of the query. The requested URL is the next: http://${prometheus_ip}:${prometheus_port}/api/v1/query?${querystring} ${auth} ${prometheus_user} ${prometheus_password} Returns a list containing given items. ${auth} = ['""', '""'] ${auth} None Returns the given values which can then be assigned to a variables. prometheus http://${prometheus_ip}:${prometheus_port} timeout=${TIMEOUT} max_retries=${MAX_RETRIES} verify=false auth=${auth} Create Session: create a HTTP session to a server Creating Session using : alias=prometheus, url=http://172.21.249.226:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7ff1acb7a500>, timeout=30, proxies=None, verify=False, debug=0 ${resp} prometheus /api/v1/query?${querystring} timeout=${TIMEOUT} Sends a GET request on a previously created HTTP Session. GET Request : url=http://172.21.249.226:9091/api/v1/query?query=osm_vim_status%7Bvim_account_id=%224d3b7ea5-74ea-4928-8a9c-75300741691b%22,%7D path_url=/api/v1/query?query=osm_vim_status%7Bvim_account_id=%224d3b7ea5-74ea-4928-8a9c-75300741691b%22,%7D headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'Basic IiI6IiI='} body=None GET Response : url=http://172.21.249.226:9091/api/v1/query?query=osm_vim_status%7Bvim_account_id=%224d3b7ea5-74ea-4928-8a9c-75300741691b%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Mon, 19 Feb 2024 02:37:50 GMT', 'Content-Length': '87'} body={"status":"success","data":{"resultType":"vector","result":[]}} ${resp} = <Response [200]> 200 ${resp} Fails if response status code is different than the expected. ${resp.json()} ${resp} = {'status': 'success', 'data': {'resultType': 'vector', 'result': []}} ${result_list} ${resp["data"]["result"]} Converts the given ``item`` to a Python ``list`` type. ${result_list} = [] ${results} ${result_list} Returns and logs the length of the given item as an integer. Length is 0 ${results} = 0 0 ${results} msg=Metric ${metric} not found values=false Fails if objects are equal after converting them to real numbers. Argument types are: <class 'str'> <class 'int'> Metric osm_vim_status not found 1 ${results} msg=Metric ${metric} with multiple values values=false Fails if objects are unequal after converting them to integers. ${result_list[0]["value"][1]} ${metric} 1 msg=VIM Target '${vim_account_id}' is not active values=false Fails if objects are unequal after converting them to integers. ${vim_account_id} ${prometheus_host} ${prometheus_port} ${prometheus_user} ${prometheus_password} Check if the value of the metric osm_vim_status in Prometheus for the VIM account is 1 (reachable). ${metric} ${prometheus_host} ${prometheus_port} ${prometheus_user} ${prometheus_password} osm_vim_status vim_account_id=${vim_account_id} Get the instant value of a metric from Prometheus using multiple filter parameters. The filter parameters are given to this function in key=value format (one argument per key/value pair). Fails if the metric is not found or has multiple values. Examples of execution: ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${param1}=${value1} ${param2}=${value2} ${filter} ${EMPTY} Returns the given values which can then be assigned to a variables. ${filter} = ${param} @{filter_parameters} vim_account_id=4d3b7ea5-74ea-4928-8a9c-75300741691b ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in filter parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = vim_account_id=4d3b7ea5-74ea-4928-8a9c-75300741691b ${param_name} = vim_account_id ${param_value} = 4d3b7ea5-74ea-4928-8a9c-75300741691b ${match},${param_name},${param_value} Logs the given message with the given level. vim_account_id=4d3b7ea5-74ea-4928-8a9c-75300741691b,vim_account_id,4d3b7ea5-74ea-4928-8a9c-75300741691b ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = vim_account_id="4d3b7ea5-74ea-4928-8a9c-75300741691b", ${resp} ${prometheus_ip} ${prometheus_port} ${prometheus_user} ${prometheus_password} query=${metric}{${filter}} Execute a Prometheus Instant Query using HTTP API. Return an inline json with the result of the query. The requested URL is the next: http://${prometheus_ip}:${prometheus_port}/api/v1/query?${querystring} ${auth} ${prometheus_user} ${prometheus_password} Returns a list containing given items. ${auth} = ['""', '""'] ${auth} None Returns the given values which can then be assigned to a variables. prometheus http://${prometheus_ip}:${prometheus_port} timeout=${TIMEOUT} max_retries=${MAX_RETRIES} verify=false auth=${auth} Create Session: create a HTTP session to a server Creating Session using : alias=prometheus, url=http://172.21.249.226:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7ff1acb7b7c0>, timeout=30, proxies=None, verify=False, debug=0 ${resp} prometheus /api/v1/query?${querystring} timeout=${TIMEOUT} Sends a GET request on a previously created HTTP Session. GET Request : url=http://172.21.249.226:9091/api/v1/query?query=osm_vim_status%7Bvim_account_id=%224d3b7ea5-74ea-4928-8a9c-75300741691b%22,%7D path_url=/api/v1/query?query=osm_vim_status%7Bvim_account_id=%224d3b7ea5-74ea-4928-8a9c-75300741691b%22,%7D headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'Basic IiI6IiI='} body=None GET Response : url=http://172.21.249.226:9091/api/v1/query?query=osm_vim_status%7Bvim_account_id=%224d3b7ea5-74ea-4928-8a9c-75300741691b%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Mon, 19 Feb 2024 02:38:05 GMT', 'Content-Length': '87'} body={"status":"success","data":{"resultType":"vector","result":[]}} ${resp} = <Response [200]> 200 ${resp} Fails if response status code is different than the expected. ${resp.json()} ${resp} = {'status': 'success', 'data': {'resultType': 'vector', 'result': []}} ${result_list} ${resp["data"]["result"]} Converts the given ``item`` to a Python ``list`` type. ${result_list} = [] ${results} ${result_list} Returns and logs the length of the given item as an integer. Length is 0 ${results} = 0 0 ${results} msg=Metric ${metric} not found values=false Fails if objects are equal after converting them to real numbers. Argument types are: <class 'str'> <class 'int'> Metric osm_vim_status not found 1 ${results} msg=Metric ${metric} with multiple values values=false Fails if objects are unequal after converting them to integers. ${result_list[0]["value"][1]} ${metric} 1 msg=VIM Target '${vim_account_id}' is not active values=false Fails if objects are unequal after converting them to integers. ${vim_account_id} ${prometheus_host} ${prometheus_port} ${prometheus_user} ${prometheus_password} Check if the value of the metric osm_vim_status in Prometheus for the VIM account is 1 (reachable). ${metric} ${prometheus_host} ${prometheus_port} ${prometheus_user} ${prometheus_password} osm_vim_status vim_account_id=${vim_account_id} Get the instant value of a metric from Prometheus using multiple filter parameters. The filter parameters are given to this function in key=value format (one argument per key/value pair). Fails if the metric is not found or has multiple values. Examples of execution: ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${param1}=${value1} ${param2}=${value2} ${filter} ${EMPTY} Returns the given values which can then be assigned to a variables. ${filter} = ${param} @{filter_parameters} vim_account_id=4d3b7ea5-74ea-4928-8a9c-75300741691b ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in filter parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = vim_account_id=4d3b7ea5-74ea-4928-8a9c-75300741691b ${param_name} = vim_account_id ${param_value} = 4d3b7ea5-74ea-4928-8a9c-75300741691b ${match},${param_name},${param_value} Logs the given message with the given level. vim_account_id=4d3b7ea5-74ea-4928-8a9c-75300741691b,vim_account_id,4d3b7ea5-74ea-4928-8a9c-75300741691b ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = vim_account_id="4d3b7ea5-74ea-4928-8a9c-75300741691b", ${resp} ${prometheus_ip} ${prometheus_port} ${prometheus_user} ${prometheus_password} query=${metric}{${filter}} Execute a Prometheus Instant Query using HTTP API. Return an inline json with the result of the query. The requested URL is the next: http://${prometheus_ip}:${prometheus_port}/api/v1/query?${querystring} ${auth} ${prometheus_user} ${prometheus_password} Returns a list containing given items. ${auth} = ['""', '""'] ${auth} None Returns the given values which can then be assigned to a variables. prometheus http://${prometheus_ip}:${prometheus_port} timeout=${TIMEOUT} max_retries=${MAX_RETRIES} verify=false auth=${auth} Create Session: create a HTTP session to a server Creating Session using : alias=prometheus, url=http://172.21.249.226:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7ff1acb78190>, timeout=30, proxies=None, verify=False, debug=0 ${resp} prometheus /api/v1/query?${querystring} timeout=${TIMEOUT} Sends a GET request on a previously created HTTP Session. GET Request : url=http://172.21.249.226:9091/api/v1/query?query=osm_vim_status%7Bvim_account_id=%224d3b7ea5-74ea-4928-8a9c-75300741691b%22,%7D path_url=/api/v1/query?query=osm_vim_status%7Bvim_account_id=%224d3b7ea5-74ea-4928-8a9c-75300741691b%22,%7D headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'Basic IiI6IiI='} body=None GET Response : url=http://172.21.249.226:9091/api/v1/query?query=osm_vim_status%7Bvim_account_id=%224d3b7ea5-74ea-4928-8a9c-75300741691b%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Mon, 19 Feb 2024 02:38:20 GMT', 'Content-Length': '87'} body={"status":"success","data":{"resultType":"vector","result":[]}} ${resp} = <Response [200]> 200 ${resp} Fails if response status code is different than the expected. ${resp.json()} ${resp} = {'status': 'success', 'data': {'resultType': 'vector', 'result': []}} ${result_list} ${resp["data"]["result"]} Converts the given ``item`` to a Python ``list`` type. ${result_list} = [] ${results} ${result_list} Returns and logs the length of the given item as an integer. Length is 0 ${results} = 0 0 ${results} msg=Metric ${metric} not found values=false Fails if objects are equal after converting them to real numbers. Argument types are: <class 'str'> <class 'int'> Metric osm_vim_status not found 1 ${results} msg=Metric ${metric} with multiple values values=false Fails if objects are unequal after converting them to integers. ${result_list[0]["value"][1]} ${metric} 1 msg=VIM Target '${vim_account_id}' is not active values=false Fails if objects are unequal after converting them to integers. ${vim_account_id} ${prometheus_host} ${prometheus_port} ${prometheus_user} ${prometheus_password} Check if the value of the metric osm_vim_status in Prometheus for the VIM account is 1 (reachable). ${metric} ${prometheus_host} ${prometheus_port} ${prometheus_user} ${prometheus_password} osm_vim_status vim_account_id=${vim_account_id} Get the instant value of a metric from Prometheus using multiple filter parameters. The filter parameters are given to this function in key=value format (one argument per key/value pair). Fails if the metric is not found or has multiple values. Examples of execution: ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${param1}=${value1} ${param2}=${value2} ${filter} ${EMPTY} Returns the given values which can then be assigned to a variables. ${filter} = ${param} @{filter_parameters} vim_account_id=4d3b7ea5-74ea-4928-8a9c-75300741691b ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in filter parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = vim_account_id=4d3b7ea5-74ea-4928-8a9c-75300741691b ${param_name} = vim_account_id ${param_value} = 4d3b7ea5-74ea-4928-8a9c-75300741691b ${match},${param_name},${param_value} Logs the given message with the given level. vim_account_id=4d3b7ea5-74ea-4928-8a9c-75300741691b,vim_account_id,4d3b7ea5-74ea-4928-8a9c-75300741691b ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = vim_account_id="4d3b7ea5-74ea-4928-8a9c-75300741691b", ${resp} ${prometheus_ip} ${prometheus_port} ${prometheus_user} ${prometheus_password} query=${metric}{${filter}} Execute a Prometheus Instant Query using HTTP API. Return an inline json with the result of the query. The requested URL is the next: http://${prometheus_ip}:${prometheus_port}/api/v1/query?${querystring} ${auth} ${prometheus_user} ${prometheus_password} Returns a list containing given items. ${auth} = ['""', '""'] ${auth} None Returns the given values which can then be assigned to a variables. prometheus http://${prometheus_ip}:${prometheus_port} timeout=${TIMEOUT} max_retries=${MAX_RETRIES} verify=false auth=${auth} Create Session: create a HTTP session to a server Creating Session using : alias=prometheus, url=http://172.21.249.226:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7ff1acba21d0>, timeout=30, proxies=None, verify=False, debug=0 ${resp} prometheus /api/v1/query?${querystring} timeout=${TIMEOUT} Sends a GET request on a previously created HTTP Session. GET Request : url=http://172.21.249.226:9091/api/v1/query?query=osm_vim_status%7Bvim_account_id=%224d3b7ea5-74ea-4928-8a9c-75300741691b%22,%7D path_url=/api/v1/query?query=osm_vim_status%7Bvim_account_id=%224d3b7ea5-74ea-4928-8a9c-75300741691b%22,%7D headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'Basic IiI6IiI='} body=None GET Response : url=http://172.21.249.226:9091/api/v1/query?query=osm_vim_status%7Bvim_account_id=%224d3b7ea5-74ea-4928-8a9c-75300741691b%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Mon, 19 Feb 2024 02:38:35 GMT', 'Content-Length': '196'} body={"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"osm_vim_status","job":"airflow_osm_vim_status_4d3b7ea5-74ea-4928-8a9c-75300741691b","vim_account_id":"4d3b7ea5-74ea-4928-8a9c-75300741691b"},"value":[1708310315.928,"1"]}]}} ${resp} = <Response [200]> 200 ${resp} Fails if response status code is different than the expected. ${resp.json()} ${resp} = {'status': 'success', 'data': {'resultType': 'vector', 'result': [{'metric': {'__name__': 'osm_vim_status', 'job': 'airflow_osm_vim_status_4d3b7ea5-74ea-4928-8a9c-75300741691b', 'vim_account_id': '4d3... ${result_list} ${resp["data"]["result"]} Converts the given ``item`` to a Python ``list`` type. ${result_list} = [{'metric': {'__name__': 'osm_vim_status', 'job': 'airflow_osm_vim_status_4d3b7ea5-74ea-4928-8a9c-75300741691b', 'vim_account_id': '4d3b7ea5-74ea-4928-8a9c-75300741691b'}, 'value': [1708310315.928, '1... ${results} ${result_list} Returns and logs the length of the given item as an integer. Length is 1 ${results} = 1 0 ${results} msg=Metric ${metric} not found values=false Fails if objects are equal after converting them to real numbers. Argument types are: <class 'str'> <class 'int'> 1 ${results} msg=Metric ${metric} with multiple values values=false Fails if objects are unequal after converting them to integers. Argument types are: <class 'str'> <class 'int'> ${result_list[0]["value"][1]} ${metric} = 1 ${metric} 1 msg=VIM Target '${vim_account_id}' is not active values=false Fails if objects are unequal after converting them to integers. Register an Opentack VIM with port security disabled, so that all ports created from OSM have port security disabled (no firewall). basic_08 cluster_main daily regression '%{PACKAGES_FOLDER}/${VNFD_PKG}' Onboards ("creates") a NF Package into OSM. - Parameters: - vnfd_pkg: Name (and location) of the NF Package - overrides (optional): String with options to override the EPA and/or interface properties of the Package. This is very useful to allow to deploy e.g. non-EPA packages in EPA VIMs (or vice-versa). Valid strings are the same as in the command. E.g.: - `--override-epa`: adds EPA attributes to all VDUs. - `--override-nonepa`: removes all EPA attributes from all VDUs. - `--override-paravirt`: converts all interfaces to `PARAVIRT`. This one can be combined with the others above (e.g. '--override-nonepa --override-paravirt'). - Relevant environment variables: - OVERRIDES: If the environment variable "OVERRIDES" exists, it prevails over the value in the argument. This is often more convenient to enforce the same behaviour for every test run in a given VIM. ${overrides} OVERRIDES default=${overrides} Returns the value of an environment variable with the given name. ${overrides} = ${rc} ${stdout} osm vnfpkg-create ${overrides} ${vnfd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-create '/robot-systest/osm-packages/hackfest_multivdu_vnf' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/hackfest_multivdu_vnf Validation OK List of charms in the descriptor: set() Adding File: hackfest_multivdu_vnf Package created: /robot-systest/osm-packag... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/hackfest_multivdu_vnf Validation OK List of charms in the descriptor: set() Adding File: hackfest_multivdu_vnf Package created: /robot-systest/osm-packages/hackfest_multivdu_vnf.tar.gz Uploading package /robot-systest/osm-packages/hackfest_multivdu_vnf.tar.gz 811cf67f-2778-4754-92a5-f4a9ddb4ef45 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 7 lines ${lines} = 7 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 6 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = 811cf67f-2778-4754-92a5-f4a9ddb4ef45 ${id} Upload VNF package for the testsuite. basic_08 cluster_main daily regression '%{PACKAGES_FOLDER}/${NSD_PKG}' Upload a NS package to OSM and return the id. ${rc} ${stdout} osm nspkg-create ${nsd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-create '/robot-systest/osm-packages/hackfest_multivdu_ns' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/hackfest_multivdu_ns Validation OK List of charms in the descriptor: set() Adding File: hackfest_multivdu_ns Package created: /robot-systest/osm-packages... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/hackfest_multivdu_ns Validation OK List of charms in the descriptor: set() Adding File: hackfest_multivdu_ns Package created: /robot-systest/osm-packages/hackfest_multivdu_ns.tar.gz 7fe76912-626f-4ddc-9dc1-9373259fd683 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 6 lines ${lines} = 6 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 5 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = 7fe76912-626f-4ddc-9dc1-9373259fd683 ${id} Upload NS package for the testsuite. basic_08 cluster_main daily regression ${id} ${NSD_NAME} ${VIM_NAME} ${NS_NAME} ${NS_CONFIG} ${PUBLICKEY} Launch the instantation of a NS and verify in a loop that the NS instance is successfully created in a given time, and return the NS instance id. ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_launch_max_wait_time} = 300.0 ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_launch_max_wait_time} = 300.0 ${ns_launch_max_wait_time} Logs the given message with the given level. 300.0 ${config_attr} '${ns_config}'!='${EMPTY}' --config '${ns_config}' ${EMPTY} Sets variable based on the given condition. ${config_attr} = --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext} ] }' ${sshkeys_attr} '${publickey}'!='${EMPTY}' --ssh_keys ${publickey} ${EMPTY} Sets variable based on the given condition. ${sshkeys_attr} = --ssh_keys /root/.ssh/id_rsa.pub ${config_file_attr} '${config_file}'!='${EMPTY}' --config_file '${config_file}' ${EMPTY} Sets variable based on the given condition. ${config_file_attr} = ${ns_id} ${ns_name} ${nsd} ${vim_name} ${config_attr} ${sshkeys_attr} ${config_file_attr} Launch the instantation of a NS, and return the NS instance id. ${rc} ${stdout} osm ns-create --ns_name ${ns_name} --nsd_name ${nsd} --vim_account ${vim_name} ${ns_extra_args} Runs the given command in the system and returns the RC and output. Running command 'osm ns-create --ns_name basic_08_disable_port_security_network_level_test --nsd_name hackfest_multivdu-ns --vim_account basic_08_vim_test --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext} ] }' --ssh_keys /root/.ssh/id_rsa.pub 2>&1'. ${rc} = 0 ${stdout} = de0adcc3-f127-4a49-a706-8808f3a659c1 ${stdout} Logs the given message with the given level. de0adcc3-f127-4a49-a706-8808f3a659c1 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = de0adcc3-f127-4a49-a706-8808f3a659c1 ${ns_id} Logs the given message with the given level. de0adcc3-f127-4a49-a706-8808f3a659c1 ${ns_launch_max_wait_time} ${NS_LAUNCH_POL_TIME} Check For NS Instance To Configured ${ns_name} Runs the specified keyword and retries if it fails. ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ | c5d0155f-11d9-45f4-b2c8-401335012f00 | basic_20_manual_-vnf-mgmtVM-1 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 935257a2-09c4-49a7-9834-58728c0f528d | basic_20_manual_-vnf-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 67a86455-2861-4822-a88a-6d944b375125 | k8s_05-k8s_proxy-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 4ebad1b7-842b-4dd4-915c-c4440628a936 | k8s_05-k8s_proxy-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_08_disable_port_security_network_level_test" 2>&1'. ${rc} = 0 ${stdout} = +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | n... ${rc},${stdout} Logs the given message with the given level. 0,+---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_08_disable_port_security_network_level_test | de0adcc3-f127-4a49-a706-8808f3a659c1 | 2024-02-19T02:38:41 | BUILDING | INSTANTIATING (6838c2c0-1174-4419-9f7d-1d9af41e11fc) | N/A | +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_08_disable_port_security_network_level_test | de0adcc3-f127-4a49-a706-8808f3a659c1 | 2024-02-19T02:38:41 | BUILDING | INSTANTIATING (6838c2c0-1174-4419-9f7d-1d9af41e11fc) | N/A | +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ | 3c68dce5-055b-4051-8144-5bc310891ebc | basic_08_disable-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | dd3e61cf-30f9-4494-84db-05dacf0e1ba2 | basic_08_disable-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 285e2beb-0329-4624-8821-1dfc8b6bbf0b | basic_08_disable-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 86b0a54e-59d7-48b7-922f-567e2f7c323c | basic_08_disable-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | c5d0155f-11d9-45f4-b2c8-401335012f00 | basic_20_manual_-vnf-mgmtVM-1 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 935257a2-09c4-49a7-9834-58728c0f528d | basic_20_manual_-vnf-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 67a86455-2861-4822-a88a-6d944b375125 | k8s_05-k8s_proxy-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 4ebad1b7-842b-4dd4-915c-c4440628a936 | k8s_05-k8s_proxy-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_08_disable_port_security_network_level_test" 2>&1'. ${rc} = 0 ${stdout} = +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | n... ${rc},${stdout} Logs the given message with the given level. 0,+---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_08_disable_port_security_network_level_test | de0adcc3-f127-4a49-a706-8808f3a659c1 | 2024-02-19T02:38:41 | BUILDING | INSTANTIATING (6838c2c0-1174-4419-9f7d-1d9af41e11fc) | N/A | +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_08_disable_port_security_network_level_test | de0adcc3-f127-4a49-a706-8808f3a659c1 | 2024-02-19T02:38:41 | BUILDING | INSTANTIATING (6838c2c0-1174-4419-9f7d-1d9af41e11fc) | N/A | +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ | 3c68dce5-055b-4051-8144-5bc310891ebc | basic_08_disable-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | dd3e61cf-30f9-4494-84db-05dacf0e1ba2 | basic_08_disable-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 285e2beb-0329-4624-8821-1dfc8b6bbf0b | basic_08_disable-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 86b0a54e-59d7-48b7-922f-567e2f7c323c | basic_08_disable-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | c5d0155f-11d9-45f4-b2c8-401335012f00 | basic_20_manual_-vnf-mgmtVM-1 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 935257a2-09c4-49a7-9834-58728c0f528d | basic_20_manual_-vnf-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 67a86455-2861-4822-a88a-6d944b375125 | k8s_05-k8s_proxy-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 4ebad1b7-842b-4dd4-915c-c4440628a936 | k8s_05-k8s_proxy-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_08_disable_port_security_network_level_test" 2>&1'. ${rc} = 0 ${stdout} = +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | n... ${rc},${stdout} Logs the given message with the given level. 0,+---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_08_disable_port_security_network_level_test | de0adcc3-f127-4a49-a706-8808f3a659c1 | 2024-02-19T02:38:41 | BUILDING | INSTANTIATING (6838c2c0-1174-4419-9f7d-1d9af41e11fc) | N/A | +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_08_disable_port_security_network_level_test | de0adcc3-f127-4a49-a706-8808f3a659c1 | 2024-02-19T02:38:41 | BUILDING | INSTANTIATING (6838c2c0-1174-4419-9f7d-1d9af41e11fc) | N/A | +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ | 3c68dce5-055b-4051-8144-5bc310891ebc | basic_08_disable-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | dd3e61cf-30f9-4494-84db-05dacf0e1ba2 | basic_08_disable-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 285e2beb-0329-4624-8821-1dfc8b6bbf0b | basic_08_disable-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 86b0a54e-59d7-48b7-922f-567e2f7c323c | basic_08_disable-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | c5d0155f-11d9-45f4-b2c8-401335012f00 | basic_20_manual_-vnf-mgmtVM-1 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 935257a2-09c4-49a7-9834-58728c0f528d | basic_20_manual_-vnf-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 67a86455-2861-4822-a88a-6d944b375125 | k8s_05-k8s_proxy-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 4ebad1b7-842b-4dd4-915c-c4440628a936 | k8s_05-k8s_proxy-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_08_disable_port_security_network_level_test" 2>&1'. ${rc} = 0 ${stdout} = +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | n... ${rc},${stdout} Logs the given message with the given level. 0,+---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_08_disable_port_security_network_level_test | de0adcc3-f127-4a49-a706-8808f3a659c1 | 2024-02-19T02:38:41 | BUILDING | INSTANTIATING (6838c2c0-1174-4419-9f7d-1d9af41e11fc) | N/A | +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_08_disable_port_security_network_level_test | de0adcc3-f127-4a49-a706-8808f3a659c1 | 2024-02-19T02:38:41 | BUILDING | INSTANTIATING (6838c2c0-1174-4419-9f7d-1d9af41e11fc) | N/A | +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ | 3c68dce5-055b-4051-8144-5bc310891ebc | basic_08_disable-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | dd3e61cf-30f9-4494-84db-05dacf0e1ba2 | basic_08_disable-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 285e2beb-0329-4624-8821-1dfc8b6bbf0b | basic_08_disable-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 86b0a54e-59d7-48b7-922f-567e2f7c323c | basic_08_disable-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | c5d0155f-11d9-45f4-b2c8-401335012f00 | basic_20_manual_-vnf-mgmtVM-1 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 935257a2-09c4-49a7-9834-58728c0f528d | basic_20_manual_-vnf-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 67a86455-2861-4822-a88a-6d944b375125 | k8s_05-k8s_proxy-vnf2-mgmtVM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 4ebad1b7-842b-4dd4-915c-c4440628a936 | k8s_05-k8s_proxy-vnf1-mgmtVM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_08_disable_port_security_network_level_test" 2>&1'. ${rc} = 0 ${stdout} = +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | n... ${rc},${stdout} Logs the given message with the given level. 0,+---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_08_disable_port_security_network_level_test | de0adcc3-f127-4a49-a706-8808f3a659c1 | 2024-02-19T02:38:41 | BUILDING | INSTANTIATING (6838c2c0-1174-4419-9f7d-1d9af41e11fc) | N/A | +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_08_disable_port_security_network_level_test | de0adcc3-f127-4a49-a706-8808f3a659c1 | 2024-02-19T02:38:41 | BUILDING | INSTANTIATING (6838c2c0-1174-4419-9f7d-1d9af41e11fc) | N/A | +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ | 3c68dce5-055b-4051-8144-5bc310891ebc | basic_08_disable-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | dd3e61cf-30f9-4494-84db-05dacf0e1ba2 | basic_08_disable-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 285e2beb-0329-4624-8821-1dfc8b6bbf0b | basic_08_disable-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 86b0a54e-59d7-48b7-922f-567e2f7c323c | basic_08_disable-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | c5d0155f-11d9-45f4-b2c8-401335012f00 | basic_20_manual_-vnf-mgmtVM-1 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 935257a2-09c4-49a7-9834-58728c0f528d | basic_20_manual_-vnf-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 67a86455-2861-4822-a88a-6d944b375125 | k8s_05-k8s_proxy-vnf2-mgmtVM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 4ebad1b7-842b-4dd4-915c-c4440628a936 | k8s_05-k8s_proxy-vnf1-mgmtVM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_08_disable_port_security_network_level_test" 2>&1'. ${rc} = 0 ${stdout} = +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | n... ${rc},${stdout} Logs the given message with the given level. 0,+---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_08_disable_port_security_network_level_test | de0adcc3-f127-4a49-a706-8808f3a659c1 | 2024-02-19T02:38:41 | BUILDING | INSTANTIATING (6838c2c0-1174-4419-9f7d-1d9af41e11fc) | N/A | +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_08_disable_port_security_network_level_test | de0adcc3-f127-4a49-a706-8808f3a659c1 | 2024-02-19T02:38:41 | BUILDING | INSTANTIATING (6838c2c0-1174-4419-9f7d-1d9af41e11fc) | N/A | +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ | 3c68dce5-055b-4051-8144-5bc310891ebc | basic_08_disable-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | dd3e61cf-30f9-4494-84db-05dacf0e1ba2 | basic_08_disable-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 285e2beb-0329-4624-8821-1dfc8b6bbf0b | basic_08_disable-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 86b0a54e-59d7-48b7-922f-567e2f7c323c | basic_08_disable-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | c5d0155f-11d9-45f4-b2c8-401335012f00 | basic_20_manual_-vnf-mgmtVM-1 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 935257a2-09c4-49a7-9834-58728c0f528d | basic_20_manual_-vnf-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_08_disable_port_security_network_level_test" 2>&1'. ${rc} = 0 ${stdout} = +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | n... ${rc},${stdout} Logs the given message with the given level. 0,+---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_08_disable_port_security_network_level_test | de0adcc3-f127-4a49-a706-8808f3a659c1 | 2024-02-19T02:38:41 | BUILDING | INSTANTIATING (6838c2c0-1174-4419-9f7d-1d9af41e11fc) | N/A | +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_08_disable_port_security_network_level_test | de0adcc3-f127-4a49-a706-8808f3a659c1 | 2024-02-19T02:38:41 | BUILDING | INSTANTIATING (6838c2c0-1174-4419-9f7d-1d9af41e11fc) | N/A | +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ | 3c68dce5-055b-4051-8144-5bc310891ebc | basic_08_disable-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | dd3e61cf-30f9-4494-84db-05dacf0e1ba2 | basic_08_disable-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 285e2beb-0329-4624-8821-1dfc8b6bbf0b | basic_08_disable-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 86b0a54e-59d7-48b7-922f-567e2f7c323c | basic_08_disable-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | c5d0155f-11d9-45f4-b2c8-401335012f00 | basic_20_manual_-vnf-mgmtVM-1 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 935257a2-09c4-49a7-9834-58728c0f528d | basic_20_manual_-vnf-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_08_disable_port_security_network_level_test" 2>&1'. ${rc} = 0 ${stdout} = +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | n... ${rc},${stdout} Logs the given message with the given level. 0,+---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_08_disable_port_security_network_level_test | de0adcc3-f127-4a49-a706-8808f3a659c1 | 2024-02-19T02:38:41 | BUILDING | INSTANTIATING (6838c2c0-1174-4419-9f7d-1d9af41e11fc) | N/A | +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_08_disable_port_security_network_level_test | de0adcc3-f127-4a49-a706-8808f3a659c1 | 2024-02-19T02:38:41 | BUILDING | INSTANTIATING (6838c2c0-1174-4419-9f7d-1d9af41e11fc) | N/A | +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ | 3c68dce5-055b-4051-8144-5bc310891ebc | basic_08_disable-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | dd3e61cf-30f9-4494-84db-05dacf0e1ba2 | basic_08_disable-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 285e2beb-0329-4624-8821-1dfc8b6bbf0b | basic_08_disable-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 86b0a54e-59d7-48b7-922f-567e2f7c323c | basic_08_disable-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | c5d0155f-11d9-45f4-b2c8-401335012f00 | basic_20_manual_-vnf-mgmtVM-1 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 935257a2-09c4-49a7-9834-58728c0f528d | basic_20_manual_-vnf-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_08_disable_port_security_network_level_test" 2>&1'. ${rc} = 0 ${stdout} = +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | n... ${rc},${stdout} Logs the given message with the given level. 0,+---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_08_disable_port_security_network_level_test | de0adcc3-f127-4a49-a706-8808f3a659c1 | 2024-02-19T02:38:41 | BUILDING | INSTANTIATING (6838c2c0-1174-4419-9f7d-1d9af41e11fc) | N/A | +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_08_disable_port_security_network_level_test | de0adcc3-f127-4a49-a706-8808f3a659c1 | 2024-02-19T02:38:41 | BUILDING | INSTANTIATING (6838c2c0-1174-4419-9f7d-1d9af41e11fc) | N/A | +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ | 3c68dce5-055b-4051-8144-5bc310891ebc | basic_08_disable-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | dd3e61cf-30f9-4494-84db-05dacf0e1ba2 | basic_08_disable-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 285e2beb-0329-4624-8821-1dfc8b6bbf0b | basic_08_disable-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 86b0a54e-59d7-48b7-922f-567e2f7c323c | basic_08_disable-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_08_disable_port_security_network_level_test" 2>&1'. ${rc} = 0 ${stdout} = +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | n... ${rc},${stdout} Logs the given message with the given level. 0,+---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_08_disable_port_security_network_level_test | de0adcc3-f127-4a49-a706-8808f3a659c1 | 2024-02-19T02:38:41 | BUILDING | INSTANTIATING (6838c2c0-1174-4419-9f7d-1d9af41e11fc) | N/A | +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_08_disable_port_security_network_level_test | de0adcc3-f127-4a49-a706-8808f3a659c1 | 2024-02-19T02:38:41 | BUILDING | INSTANTIATING (6838c2c0-1174-4419-9f7d-1d9af41e11fc) | N/A | +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' Keyword 'Check For NS Instance To Configured' failed after retrying for 5 minutes. The last error was: '+---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_08_disable_port_security_network_level_test | de0adcc3-f127-4a49-a706-8808f3a659c1 | 2024-02-19T02:38:41 | BUILDING | INSTANTIATING (6838c2c0-1174-4419-9f7d-1d9af41e11fc) | N/A | +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has not failed in the instantiation (the status should not be BROKEN). ${ns_id} ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. Instantiate NS for the testsuite. basic_08 cluster_main daily regression Keyword 'Check For NS Instance To Configured' failed after retrying for 5 minutes. The last error was: '+---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_08_disable_port_security_network_level_test | de0adcc3-f127-4a49-a706-8808f3a659c1 | 2024-02-19T02:38:41 | BUILDING | INSTANTIATING (6838c2c0-1174-4419-9f7d-1d9af41e11fc) | N/A | +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${rc} ${disabled_ports} osm ns-show ${NS_NAME} --literal | grep -c '${PORT_DISABLED_MSG}' Runs the given command in the system and returns the RC and output. Running command 'osm ns-show basic_08_disable_port_security_network_level_test --literal | grep -c 'port_security_enabled: false' 2>&1'. ${rc} = 0 ${disabled_ports} = 1 ${rc},${disabled_ports} Logs the given message with the given level. 0,1 msg=Found '${disabled_ports}' matches for '${PORT_DISABLED_MSG}' Fails the test with the given message and optionally alters its tags. Check that there are ports/interfaces in the VDU of the VNF of the NS whose port security was disabled. basic_08 cluster_main daily regression ${NS_NAME} Delete a NS instance. ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} Logs the given message with the given level. 240.0 ${rc} ${stdout} osm ns-delete ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-delete basic_08_disable_port_security_network_level_test 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${stdout} Logs the given message with the given level. Deletion in progress ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${ns_delete_max_wait_time} ${NS_DELETE_POL_TIME} Check For NS Instance To Be Deleted ${ns} Runs the specified keyword and retries if it fails. ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ | 3c68dce5-055b-4051-8144-5bc310891ebc | basic_08_disable-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | dd3e61cf-30f9-4494-84db-05dacf0e1ba2 | basic_08_disable-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 285e2beb-0329-4624-8821-1dfc8b6bbf0b | basic_08_disable-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 86b0a54e-59d7-48b7-922f-567e2f7c323c | basic_08_disable-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep basic_08_disable_port_security_network_level_test 2>&1'. ${rc} = 0 ${stdout} = basic_08_disable_port_security_network_level_test ${rc},${stdout} Logs the given message with the given level. 0,basic_08_disable_port_security_network_level_test ${stdout} ${ns} Fails if objects are equal after converting them to strings. basic_08_disable_port_security_network_level_test == basic_08_disable_port_security_network_level_test ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-------------------------+ | a0373a78-f108-4a57-a57c-53e13e27f748 | basic_21-vnf-several-volu-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.81 | ubuntu20.04 | several_volumes-VM-flv | | 3a6612c3-a8ac-4264-b5f7-7e270e9691ea | k8s_06-nopasswd_-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | ab14a4c0-7f43-4cba-93e5-9884af4278c6 | k8s_06-nopasswd_-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 3c68dce5-055b-4051-8144-5bc310891ebc | basic_08_disable-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | dd3e61cf-30f9-4494-84db-05dacf0e1ba2 | basic_08_disable-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 285e2beb-0329-4624-8821-1dfc8b6bbf0b | basic_08_disable-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 86b0a54e-59d7-48b7-922f-567e2f7c323c | basic_08_disable-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep basic_08_disable_port_security_network_level_test 2>&1'. ${rc} = 0 ${stdout} = basic_08_disable_port_security_network_level_test ${rc},${stdout} Logs the given message with the given level. 0,basic_08_disable_port_security_network_level_test ${stdout} ${ns} Fails if objects are equal after converting them to strings. basic_08_disable_port_security_network_level_test == basic_08_disable_port_security_network_level_test ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-------------------------+ | a0373a78-f108-4a57-a57c-53e13e27f748 | basic_21-vnf-several-volu-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.81 | ubuntu20.04 | several_volumes-VM-flv | | 3a6612c3-a8ac-4264-b5f7-7e270e9691ea | k8s_06-nopasswd_-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | ab14a4c0-7f43-4cba-93e5-9884af4278c6 | k8s_06-nopasswd_-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 3c68dce5-055b-4051-8144-5bc310891ebc | basic_08_disable-vnf2-dataVM-0 | ERROR | | ubuntu20.04 | simple_requires-1-1-flv | | dd3e61cf-30f9-4494-84db-05dacf0e1ba2 | basic_08_disable-vnf2-mgmtVM-0 | ERROR | | ubuntu20.04 | simple_requires-1-1-flv | | 285e2beb-0329-4624-8821-1dfc8b6bbf0b | basic_08_disable-vnf1-dataVM-0 | ERROR | | ubuntu20.04 | simple_requires-1-1-flv | | 86b0a54e-59d7-48b7-922f-567e2f7c323c | basic_08_disable-vnf1-mgmtVM-0 | ERROR | | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep basic_08_disable_port_security_network_level_test 2>&1'. ${rc} = 0 ${stdout} = basic_08_disable_port_security_network_level_test ${rc},${stdout} Logs the given message with the given level. 0,basic_08_disable_port_security_network_level_test ${stdout} ${ns} Fails if objects are equal after converting them to strings. basic_08_disable_port_security_network_level_test == basic_08_disable_port_security_network_level_test ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-------------------------+ | a0373a78-f108-4a57-a57c-53e13e27f748 | basic_21-vnf-several-volu-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.81 | ubuntu20.04 | several_volumes-VM-flv | | 3a6612c3-a8ac-4264-b5f7-7e270e9691ea | k8s_06-nopasswd_-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | ab14a4c0-7f43-4cba-93e5-9884af4278c6 | k8s_06-nopasswd_-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 3c68dce5-055b-4051-8144-5bc310891ebc | basic_08_disable-vnf2-dataVM-0 | ERROR | | ubuntu20.04 | simple_requires-1-1-flv | | dd3e61cf-30f9-4494-84db-05dacf0e1ba2 | basic_08_disable-vnf2-mgmtVM-0 | ERROR | | ubuntu20.04 | simple_requires-1-1-flv | | 285e2beb-0329-4624-8821-1dfc8b6bbf0b | basic_08_disable-vnf1-dataVM-0 | ERROR | | ubuntu20.04 | simple_requires-1-1-flv | | 86b0a54e-59d7-48b7-922f-567e2f7c323c | basic_08_disable-vnf1-mgmtVM-0 | ERROR | | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep basic_08_disable_port_security_network_level_test 2>&1'. ${rc} = 0 ${stdout} = basic_08_disable_port_security_network_level_test ${rc},${stdout} Logs the given message with the given level. 0,basic_08_disable_port_security_network_level_test ${stdout} ${ns} Fails if objects are equal after converting them to strings. basic_08_disable_port_security_network_level_test == basic_08_disable_port_security_network_level_test ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-------------------------+ | a0373a78-f108-4a57-a57c-53e13e27f748 | basic_21-vnf-several-volu-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.81 | ubuntu20.04 | several_volumes-VM-flv | | 3a6612c3-a8ac-4264-b5f7-7e270e9691ea | k8s_06-nopasswd_-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | ab14a4c0-7f43-4cba-93e5-9884af4278c6 | k8s_06-nopasswd_-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 3c68dce5-055b-4051-8144-5bc310891ebc | basic_08_disable-vnf2-dataVM-0 | ERROR | | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep basic_08_disable_port_security_network_level_test 2>&1'. ${rc} = 0 ${stdout} = basic_08_disable_port_security_network_level_test ${rc},${stdout} Logs the given message with the given level. 0,basic_08_disable_port_security_network_level_test ${stdout} ${ns} Fails if objects are equal after converting them to strings. basic_08_disable_port_security_network_level_test == basic_08_disable_port_security_network_level_test ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-------------------------+ | a0373a78-f108-4a57-a57c-53e13e27f748 | basic_21-vnf-several-volu-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.81 | ubuntu20.04 | several_volumes-VM-flv | | 3a6612c3-a8ac-4264-b5f7-7e270e9691ea | k8s_06-nopasswd_-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | ab14a4c0-7f43-4cba-93e5-9884af4278c6 | k8s_06-nopasswd_-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep basic_08_disable_port_security_network_level_test 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${ns} Fails if objects are equal after converting them to strings. Delete NS instance. basic_08 cleanup cluster_main daily regression ${NSD_NAME} Delete a NS package from OSM. ${rc} ${stdout} Run And Return Rc And Output osm nspkg-delete ${nsd_id} Runs the keyword and continues execution even if a failure occurs. osm nspkg-delete ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-delete hackfest_multivdu-ns 2>&1'. ${rc} = 0 ${stdout} = Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Logs the given message with the given level. Deleted ${NSD_DELETE_MAX_WAIT_TIME} ${NSD_DELETE_POL_TIME} Check For NSD ${nsd_id} Runs the specified keyword and retries if it fails. ${nsd_id} Check that a NS package exists in OSM. ${rc} ${stdout} osm nspkg-list | awk '{print $2}' | grep ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-list | awk '{print $2}' | grep hackfest_multivdu-ns 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. Delete NS package from OSM. basic_08 cleanup cluster_main daily regression ${VNFD_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete hackfest_multivdu-vnf 2>&1'. ${rc} = 0 ${stdout} = Deleted ${stdout} Logs the given message with the given level. Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep hackfest_multivdu-vnf 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. Delete VNF package from OSM. basic_08 cleanup cluster_main daily regression ${VIM_NAME} Unregister/delete a VIM account from OSM. ${rc} ${stdout} Run And Return Rc And Output osm vim-delete ${vim_name} Runs the keyword and continues execution even if a failure occurs. osm vim-delete ${vim_name} Runs the given command in the system and returns the RC and output. Running command 'osm vim-delete basic_08_vim_test 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${rc},${stdout} Logs the given message with the given level. 0,Deletion in progress ${VIM_DELETE_MAX_WAIT_TIME} ${VIM_DELETE_POL_TIME} Check For VIM Target ${vim_name} Runs the specified keyword and retries if it fails. ${vim_name} Check if a VIM account has been registered in OSM. ${rc} ${stdout} osm vim-list | awk '{print $2}' | grep ${vim_name} Runs the given command in the system and returns the RC and output. Running command 'osm vim-list | awk '{print $2}' | grep basic_08_vim_test 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vim_name} Fails if objects are equal after converting them to strings. Delete VIM from OSM. basic_08 cleanup cluster_main daily regression Suite Cleanup Runs the given keyword with the given arguments and ignores possible error. Test Suite Cleanup: Deleting descriptors and NS instance Delete NS ${NS_NAME} Runs the given keyword with the given arguments, if one or more tests failed. ${NS_NAME} Delete a NS instance. ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} Logs the given message with the given level. 240.0 ${rc} ${stdout} osm ns-delete ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-delete basic_08_disable_port_security_network_level_test 2>&1'. ${rc} = 1 ${stdout} = ERROR: ns 'basic_08_disable_port_security_network_level_test' not found ${stdout} Logs the given message with the given level. ERROR: ns 'basic_08_disable_port_security_network_level_test' not found ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${ns_delete_max_wait_time} ${NS_DELETE_POL_TIME} Check For NS Instance To Be Deleted ${ns} Runs the specified keyword and retries if it fails. ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-------------------------+ | a0373a78-f108-4a57-a57c-53e13e27f748 | basic_21-vnf-several-volu-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.81 | ubuntu20.04 | several_volumes-VM-flv | | 3a6612c3-a8ac-4264-b5f7-7e270e9691ea | k8s_06-nopasswd_-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | ab14a4c0-7f43-4cba-93e5-9884af4278c6 | k8s_06-nopasswd_-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep basic_08_disable_port_security_network_level_test 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${ns} Fails if objects are equal after converting them to strings. Delete NSD ${NSD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. ${NSD_NAME} Delete a NS package from OSM. ${rc} ${stdout} Run And Return Rc And Output osm nspkg-delete ${nsd_id} Runs the keyword and continues execution even if a failure occurs. osm nspkg-delete ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-delete hackfest_multivdu-ns 2>&1'. ${rc} = 1 ${stdout} = ERROR: nsd hackfest_multivdu-ns not found ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${stdout} Logs the given message with the given level. ERROR: nsd hackfest_multivdu-ns not found ${NSD_DELETE_MAX_WAIT_TIME} ${NSD_DELETE_POL_TIME} Check For NSD ${nsd_id} Runs the specified keyword and retries if it fails. ${nsd_id} Check that a NS package exists in OSM. ${rc} ${stdout} osm nspkg-list | awk '{print $2}' | grep ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-list | awk '{print $2}' | grep hackfest_multivdu-ns 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. Delete VNFD ${VNFD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. ${VNFD_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete hackfest_multivdu-vnf 2>&1'. ${rc} = 1 ${stdout} = ERROR: vnfd hackfest_multivdu-vnf not found ${stdout} Logs the given message with the given level. ERROR: vnfd hackfest_multivdu-vnf not found ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep hackfest_multivdu-vnf 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. Delete VIM Target ${VIM_NAME} Runs the given keyword with the given arguments, if one or more tests failed. ${VIM_NAME} Unregister/delete a VIM account from OSM. ${rc} ${stdout} Run And Return Rc And Output osm vim-delete ${vim_name} Runs the keyword and continues execution even if a failure occurs. osm vim-delete ${vim_name} Runs the given command in the system and returns the RC and output. Running command 'osm vim-delete basic_08_vim_test 2>&1'. ${rc} = 1 ${stdout} = ERROR: vim basic_08_vim_test not found ${rc},${stdout} Logs the given message with the given level. 1,ERROR: vim basic_08_vim_test not found ${VIM_DELETE_MAX_WAIT_TIME} ${VIM_DELETE_POL_TIME} Check For VIM Target ${vim_name} Runs the specified keyword and retries if it fails. ${vim_name} Check if a VIM account has been registered in OSM. ${rc} ${stdout} osm vim-list | awk '{print $2}' | grep ${vim_name} Runs the given command in the system and returns the RC and output. Running command 'osm vim-list | awk '{print $2}' | grep basic_08_vim_test 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vim_name} Fails if objects are equal after converting them to strings. [BASIC-08] Disable port security at network level. '%{PACKAGES_FOLDER}/${VNFD_PKG}' Onboards ("creates") a NF Package into OSM. - Parameters: - vnfd_pkg: Name (and location) of the NF Package - overrides (optional): String with options to override the EPA and/or interface properties of the Package. This is very useful to allow to deploy e.g. non-EPA packages in EPA VIMs (or vice-versa). Valid strings are the same as in the command. E.g.: - `--override-epa`: adds EPA attributes to all VDUs. - `--override-nonepa`: removes all EPA attributes from all VDUs. - `--override-paravirt`: converts all interfaces to `PARAVIRT`. This one can be combined with the others above (e.g. '--override-nonepa --override-paravirt'). - Relevant environment variables: - OVERRIDES: If the environment variable "OVERRIDES" exists, it prevails over the value in the argument. This is often more convenient to enforce the same behaviour for every test run in a given VIM. ${overrides} OVERRIDES default=${overrides} Returns the value of an environment variable with the given name. ${overrides} = ${rc} ${stdout} osm vnfpkg-create ${overrides} ${vnfd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-create '/robot-systest/osm-packages/hackfest_basic_metrics_vnf' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/hackfest_basic_metrics_vnf Validation OK List of charms in the descriptor: set() Adding File: hackfest_basic_metrics_vnf Package created: /robot-systest/... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/hackfest_basic_metrics_vnf Validation OK List of charms in the descriptor: set() Adding File: hackfest_basic_metrics_vnf Package created: /robot-systest/osm-packages/hackfest_basic_metrics_vnf.tar.gz Uploading package /robot-systest/osm-packages/hackfest_basic_metrics_vnf.tar.gz db323d30-8d76-40f6-8ce0-0eef04dd333e ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 7 lines ${lines} = 7 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 6 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = db323d30-8d76-40f6-8ce0-0eef04dd333e ${id} Upload VNF package for the testsuite. azure basic_09 cluster_main daily prepare regression '%{PACKAGES_FOLDER}/${NSD_PKG}' Upload a NS package to OSM and return the id. ${rc} ${stdout} osm nspkg-create ${nsd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-create '/robot-systest/osm-packages/hackfest_basic_metrics_ns' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/hackfest_basic_metrics_ns Validation OK List of charms in the descriptor: set() Adding File: hackfest_basic_metrics_ns Package created: /robot-systest/os... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/hackfest_basic_metrics_ns Validation OK List of charms in the descriptor: set() Adding File: hackfest_basic_metrics_ns Package created: /robot-systest/osm-packages/hackfest_basic_metrics_ns.tar.gz 66a65802-147c-4380-9718-7c7997451ac1 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 6 lines ${lines} = 6 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 5 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = 66a65802-147c-4380-9718-7c7997451ac1 ${id} Upload NS package for the testsuite. azure basic_09 cluster_main daily prepare regression ${id} ${NSD_NAME} %{VIM_TARGET} ${NS_NAME} ${NS_CONFIG} ${PUBLICKEY} Launch the instantation of a NS and verify in a loop that the NS instance is successfully created in a given time, and return the NS instance id. ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_launch_max_wait_time} = 300.0 ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_launch_max_wait_time} = 300.0 ${ns_launch_max_wait_time} Logs the given message with the given level. 300.0 ${config_attr} '${ns_config}'!='${EMPTY}' --config '${ns_config}' ${EMPTY} Sets variable based on the given condition. ${config_attr} = --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext} ] }' ${sshkeys_attr} '${publickey}'!='${EMPTY}' --ssh_keys ${publickey} ${EMPTY} Sets variable based on the given condition. ${sshkeys_attr} = --ssh_keys /root/.ssh/id_rsa.pub ${config_file_attr} '${config_file}'!='${EMPTY}' --config_file '${config_file}' ${EMPTY} Sets variable based on the given condition. ${config_file_attr} = ${ns_id} ${ns_name} ${nsd} ${vim_name} ${config_attr} ${sshkeys_attr} ${config_file_attr} Launch the instantation of a NS, and return the NS instance id. ${rc} ${stdout} osm ns-create --ns_name ${ns_name} --nsd_name ${nsd} --vim_account ${vim_name} ${ns_extra_args} Runs the given command in the system and returns the RC and output. Running command 'osm ns-create --ns_name basic_09_manual_scaling_test --nsd_name hackfest_basic-ns-metrics --vim_account osm --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext} ] }' --ssh_keys /root/.ssh/id_rsa.pub 2>&1'. ${rc} = 0 ${stdout} = 93c55303-ee59-4c76-b6cf-a7ff5e5cfdee ${stdout} Logs the given message with the given level. 93c55303-ee59-4c76-b6cf-a7ff5e5cfdee ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 93c55303-ee59-4c76-b6cf-a7ff5e5cfdee ${ns_id} Logs the given message with the given level. 93c55303-ee59-4c76-b6cf-a7ff5e5cfdee ${ns_launch_max_wait_time} ${NS_LAUNCH_POL_TIME} Check For NS Instance To Configured ${ns_name} Runs the specified keyword and retries if it fails. ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ | 3a6612c3-a8ac-4264-b5f7-7e270e9691ea | k8s_06-nopasswd_-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | ab14a4c0-7f43-4cba-93e5-9884af4278c6 | k8s_06-nopasswd_-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_09_manual_scaling_test" 2>&1'. ${rc} = 0 ${stdout} = +------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_09_manual_scaling_test | 93c55303-ee59-4c76-b6cf-a7ff5e5cfdee | 2024-02-19T02:45:50 | BUILDING | INSTANTIATING (ba7e2a75-e10d-4b55-a97f-28a794e7da48) | N/A | +------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_09_manual_scaling_test | 93c55303-ee59-4c76-b6cf-a7ff5e5cfdee | 2024-02-19T02:45:50 | BUILDING | INSTANTIATING (ba7e2a75-e10d-4b55-a97f-28a794e7da48) | N/A | +------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 8231f9cf-6b64-4386-90af-ccef36cd9b14 | basic_09_manual_-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.201 | ubuntu20.04 | simple_requires-1-1-flv | | 3a6612c3-a8ac-4264-b5f7-7e270e9691ea | k8s_06-nopasswd_-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | ab14a4c0-7f43-4cba-93e5-9884af4278c6 | k8s_06-nopasswd_-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_09_manual_scaling_test" 2>&1'. ${rc} = 0 ${stdout} = +------------------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | basic_09_manual_scaling_test | 93c55303-ee59-4c76-b6cf-a7ff5e5cfdee | 2024-02-19T02:45:50 | READY | IDLE (None) | N/A | +------------------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. ${ns_name} Check if a given NS instance has not failed in the instantiation (the status should not be BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 8231f9cf-6b64-4386-90af-ccef36cd9b14 | basic_09_manual_-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.201 | ubuntu20.04 | simple_requires-1-1-flv | | 3a6612c3-a8ac-4264-b5f7-7e270e9691ea | k8s_06-nopasswd_-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | ab14a4c0-7f43-4cba-93e5-9884af4278c6 | k8s_06-nopasswd_-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_09_manual_scaling_test" 2>&1'. ${rc} = 0 ${stdout} = +------------------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | basic_09_manual_scaling_test | 93c55303-ee59-4c76-b6cf-a7ff5e5cfdee | 2024-02-19T02:45:50 | READY | IDLE (None) | N/A | +------------------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} BROKEN Fails if ``container`` contains ``item`` one or more times. ${ns_id} ${id} = 93c55303-ee59-4c76-b6cf-a7ff5e5cfdee ${id} Logs the given message with the given level. 93c55303-ee59-4c76-b6cf-a7ff5e5cfdee Instantiate NS for the testsuite. azure basic_09 cluster_main daily prepare regression ${id} ${NS_NAME} Get the NS instance ID from a NS instance name passed as argument, and return it. ${ns_name} Verifies that the given item is not empty. Length is 28 ${rc} ${stdout} osm ns-list | grep ${ns_name} | awk '{print $4}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | grep basic_09_manual_scaling_test | awk '{print $4}' 2>&1'. ${rc} = 0 ${stdout} = 93c55303-ee59-4c76-b6cf-a7ff5e5cfdee ${stdout} Logs the given message with the given level. 93c55303-ee59-4c76-b6cf-a7ff5e5cfdee ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Verifies that the given item is not empty. Length is 36 ${stdout} ${id} = 93c55303-ee59-4c76-b6cf-a7ff5e5cfdee ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 93c55303-ee59-4c76-b6cf-a7ff5e5cfdee Retrieve NS instance id to be used later on. azure basic_09 cluster_main daily regression verify ${NS_ID} msg=Network service instance is not available Fails unless the given variable exists within the current scope. @{vnfr_list} ${NS_ID} Return a list with the IDs of the VNF records of a NS instance. ${ns_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm vnf-list --ns ${ns_id} | grep ${ns_id} | awk '{print $2}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm vnf-list --ns 93c55303-ee59-4c76-b6cf-a7ff5e5cfdee | grep 93c55303-ee59-4c76-b6cf-a7ff5e5cfdee | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = f9cf70cc-a02c-4b88-b34c-c05084c2b8ab ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> @{vdur} ${stdout} Splits the ``string`` using ``separator`` as a delimiter string. @{vdur} = [ f9cf70cc-a02c-4b88-b34c-c05084c2b8ab ] @{vdur} @{vnfr_list} = [ f9cf70cc-a02c-4b88-b34c-c05084c2b8ab ] ${vnfr_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: f9cf70cc-a02c-4b88-b34c-c05084c2b8ab ${VNF_ID} ${vnfr_list}[0] Makes a variable available everywhere within the scope of the current suite. ${VNF_ID} = f9cf70cc-a02c-4b88-b34c-c05084c2b8ab Retrieve VNF instance id to be used later on. azure basic_09 cluster_main daily regression verify @{vdur_list} ${VNF_ID} Return a list with the names of the VDU records of a VNF instance. ${vnf_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm vnf-show ${vnf_id} --literal | yq -r .vdur[].name Runs the given command in the system and returns the RC and output. Running command 'osm vnf-show f9cf70cc-a02c-4b88-b34c-c05084c2b8ab --literal | yq -r .vdur[].name 2>&1'. ${rc} = 0 ${stdout} = basic_09_manual_-vnf-hackfest_basic_metrics-VM-0 ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> @{vdur} ${stdout} Splits the ``string`` using ``separator`` as a delimiter string. @{vdur} = [ basic_09_manual_-vnf-hackfest_basic_metrics-VM-0 ] @{vdur} @{vdur_list} = [ basic_09_manual_-vnf-hackfest_basic_metrics-VM-0 ] ${vdur_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: basic_09_manual_-vnf-hackfest_basic_metrics-VM-0 ${vdurs} ${vdur_list} Returns and logs the length of the given item as an integer. Length is 1 ${vdurs} = 1 ${INITIAL_VDUR_COUNT} ${vdurs} Makes a variable available everywhere within the scope of the current suite. ${INITIAL_VDUR_COUNT} = 1 Check the number of VDUs instances before the manual scaling. azure basic_09 cluster_main daily regression verify ${NS_ID} msg=Network service instance is not available Fails unless the given variable exists within the current scope. ${ns_op_id} ${NS_NAME} ${VNF_MEMBER_INDEX} ${SCALING_GROUP} SCALE_OUT Execute a manual VNF Scale action. The parameter 'scale_type' must be SCALE_IN or SCALE_OUT. Return the ID of the operation associated to the executed scale action. ${vnf_scale_max_wait_time} ${vnf_scale_max_wait_time} result_format=number Converts between supported `time formats`. ${vnf_scale_max_wait_time} = 120.0 ${vnf_scale_max_wait_time} ${vnf_scale_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${vnf_scale_max_wait_time} = 120.0 ${scale_type} SCALE_IN SCALE_OUT msg=Unknown scale type: ${scale_type} values=False Fails if ``container`` does not contain any of the ``*items``. ${osm_vnf_scale_command} osm vnf-scale --scaling-group ${scaling_group} Returns the given values which can then be assigned to a variables. ${osm_vnf_scale_command} = osm vnf-scale --scaling-group vdu_autoscale ${osm_vnf_scale_command} ${osm_vnf_scale_command} --scale-in Catenates the given items together and returns the resulted string. ${osm_vnf_scale_command} ${osm_vnf_scale_command} --scale-out Catenates the given items together and returns the resulted string. ${osm_vnf_scale_command} = osm vnf-scale --scaling-group vdu_autoscale --scale-out ${osm_vnf_scale_command} ${osm_vnf_scale_command} ${ns_name} ${vnf_member_index} Catenates the given items together and returns the resulted string. ${osm_vnf_scale_command} = osm vnf-scale --scaling-group vdu_autoscale --scale-out basic_09_manual_scaling_test vnf ${rc} ${stdout} ${osm_vnf_scale_command} Runs the given command in the system and returns the RC and output. Running command 'osm vnf-scale --scaling-group vdu_autoscale --scale-out basic_09_manual_scaling_test vnf 2>&1'. ${rc} = 0 ${stdout} = 264d28e3-1b61-4e7c-b1a8-35d174fc7f32 ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${vnf_scale_max_wait_time} ${VNF_SCALE_POL_TIME} Check For NS Operation Ended ${stdout} Runs the specified keyword and retries if it fails. ${stdout} Check wheter the status of the desired operation is "FAILED" or "COMPLETED". ${ns_operation_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm ns-op-show ${ns_operation_id} --literal | yq -r .operationState Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-show 264d28e3-1b61-4e7c-b1a8-35d174fc7f32 --literal | yq -r .operationState 2>&1'. ${rc} = 0 ${stdout} = PROCESSING ${stdout} Logs the given message with the given level. PROCESSING ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} FAILED COMPLETED msg=Timeout waiting for ns-action with id ${ns_operation_id} values=False Fails if ``container`` does not contain any of the ``*items``. Timeout waiting for ns-action with id 264d28e3-1b61-4e7c-b1a8-35d174fc7f32 ${stdout} Check wheter the status of the desired operation is "FAILED" or "COMPLETED". ${ns_operation_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm ns-op-show ${ns_operation_id} --literal | yq -r .operationState Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-show 264d28e3-1b61-4e7c-b1a8-35d174fc7f32 --literal | yq -r .operationState 2>&1'. ${rc} = 0 ${stdout} = PROCESSING ${stdout} Logs the given message with the given level. PROCESSING ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} FAILED COMPLETED msg=Timeout waiting for ns-action with id ${ns_operation_id} values=False Fails if ``container`` does not contain any of the ``*items``. Timeout waiting for ns-action with id 264d28e3-1b61-4e7c-b1a8-35d174fc7f32 ${stdout} Check wheter the status of the desired operation is "FAILED" or "COMPLETED". ${ns_operation_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm ns-op-show ${ns_operation_id} --literal | yq -r .operationState Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-show 264d28e3-1b61-4e7c-b1a8-35d174fc7f32 --literal | yq -r .operationState 2>&1'. ${rc} = 0 ${stdout} = COMPLETED ${stdout} Logs the given message with the given level. COMPLETED ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} FAILED COMPLETED msg=Timeout waiting for ns-action with id ${ns_operation_id} values=False Fails if ``container`` does not contain any of the ``*items``. ${stdout} Check wheter the status of the desired operation is "COMPLETED" or not. ${ns_operation_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm ns-op-show ${ns_operation_id} --literal | yq -r .operationState Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-show 264d28e3-1b61-4e7c-b1a8-35d174fc7f32 --literal | yq -r .operationState 2>&1'. ${rc} = 0 ${stdout} = COMPLETED ${stdout} Logs the given message with the given level. COMPLETED ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} COMPLETED msg=The ns-action with id ${ns_operation_id} was not completed values=False Fails if ``container`` does not contain ``item`` one or more times. ${stdout} ${ns_op_id} = 264d28e3-1b61-4e7c-b1a8-35d174fc7f32 ${ns_op_id} Logs the given message with the given level. 264d28e3-1b61-4e7c-b1a8-35d174fc7f32 Perform a manual scale-out operation of the VNF. azure basic_09 cluster_main daily regression verify ${NS_ID} msg=Network service instance is not available Fails unless the given variable exists within the current scope. @{vdur_list} ${VNF_ID} Return a list with the names of the VDU records of a VNF instance. ${vnf_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm vnf-show ${vnf_id} --literal | yq -r .vdur[].name Runs the given command in the system and returns the RC and output. Running command 'osm vnf-show f9cf70cc-a02c-4b88-b34c-c05084c2b8ab --literal | yq -r .vdur[].name 2>&1'. ${rc} = 0 ${stdout} = basic_09_manual_-vnf-hackfest_basic_metrics-VM-0 basic_09_manual_-vnf-hackfest_basic_metrics-VM-1 ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> @{vdur} ${stdout} Splits the ``string`` using ``separator`` as a delimiter string. @{vdur} = [ basic_09_manual_-vnf-hackfest_basic_metrics-VM-0 | basic_09_manual_-vnf-hackfest_basic_metrics-VM-1 ] @{vdur} @{vdur_list} = [ basic_09_manual_-vnf-hackfest_basic_metrics-VM-0 | basic_09_manual_-vnf-hackfest_basic_metrics-VM-1 ] ${vdur_list} Logs the length and contents of the ``list`` using given ``level``. List length is 2 and it contains following items: 0: basic_09_manual_-vnf-hackfest_basic_metrics-VM-0 1: basic_09_manual_-vnf-hackfest_basic_metrics-VM-1 ${vdurs} ${vdur_list} Returns and logs the length of the given item as an integer. Length is 2 ${vdurs} = 2 msg=There is no new VDU records in the VNF after Scale Out Fails the test with the given message and optionally alters its tags. Check whether there is one more VDU after scaling out. azure basic_09 cluster_main daily regression verify ${NS_ID} msg=Network service instance is not available Fails unless the given variable exists within the current scope. ${ns_op_id} ${NS_NAME} ${VNF_MEMBER_INDEX} ${SCALING_GROUP} SCALE_IN Execute a manual VNF Scale action. The parameter 'scale_type' must be SCALE_IN or SCALE_OUT. Return the ID of the operation associated to the executed scale action. ${vnf_scale_max_wait_time} ${vnf_scale_max_wait_time} result_format=number Converts between supported `time formats`. ${vnf_scale_max_wait_time} = 120.0 ${vnf_scale_max_wait_time} ${vnf_scale_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${vnf_scale_max_wait_time} = 120.0 ${scale_type} SCALE_IN SCALE_OUT msg=Unknown scale type: ${scale_type} values=False Fails if ``container`` does not contain any of the ``*items``. ${osm_vnf_scale_command} osm vnf-scale --scaling-group ${scaling_group} Returns the given values which can then be assigned to a variables. ${osm_vnf_scale_command} = osm vnf-scale --scaling-group vdu_autoscale ${osm_vnf_scale_command} ${osm_vnf_scale_command} --scale-in Catenates the given items together and returns the resulted string. ${osm_vnf_scale_command} = osm vnf-scale --scaling-group vdu_autoscale --scale-in ${osm_vnf_scale_command} ${osm_vnf_scale_command} --scale-out Catenates the given items together and returns the resulted string. ${osm_vnf_scale_command} ${osm_vnf_scale_command} ${ns_name} ${vnf_member_index} Catenates the given items together and returns the resulted string. ${osm_vnf_scale_command} = osm vnf-scale --scaling-group vdu_autoscale --scale-in basic_09_manual_scaling_test vnf ${rc} ${stdout} ${osm_vnf_scale_command} Runs the given command in the system and returns the RC and output. Running command 'osm vnf-scale --scaling-group vdu_autoscale --scale-in basic_09_manual_scaling_test vnf 2>&1'. ${rc} = 0 ${stdout} = 12e0e1fd-ff6c-46da-8a56-f3c7d501c3e3 ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${vnf_scale_max_wait_time} ${VNF_SCALE_POL_TIME} Check For NS Operation Ended ${stdout} Runs the specified keyword and retries if it fails. ${stdout} Check wheter the status of the desired operation is "FAILED" or "COMPLETED". ${ns_operation_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm ns-op-show ${ns_operation_id} --literal | yq -r .operationState Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-show 12e0e1fd-ff6c-46da-8a56-f3c7d501c3e3 --literal | yq -r .operationState 2>&1'. ${rc} = 0 ${stdout} = PROCESSING ${stdout} Logs the given message with the given level. PROCESSING ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} FAILED COMPLETED msg=Timeout waiting for ns-action with id ${ns_operation_id} values=False Fails if ``container`` does not contain any of the ``*items``. Timeout waiting for ns-action with id 12e0e1fd-ff6c-46da-8a56-f3c7d501c3e3 ${stdout} Check wheter the status of the desired operation is "FAILED" or "COMPLETED". ${ns_operation_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm ns-op-show ${ns_operation_id} --literal | yq -r .operationState Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-show 12e0e1fd-ff6c-46da-8a56-f3c7d501c3e3 --literal | yq -r .operationState 2>&1'. ${rc} = 0 ${stdout} = COMPLETED ${stdout} Logs the given message with the given level. COMPLETED ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} FAILED COMPLETED msg=Timeout waiting for ns-action with id ${ns_operation_id} values=False Fails if ``container`` does not contain any of the ``*items``. ${stdout} Check wheter the status of the desired operation is "COMPLETED" or not. ${ns_operation_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm ns-op-show ${ns_operation_id} --literal | yq -r .operationState Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-show 12e0e1fd-ff6c-46da-8a56-f3c7d501c3e3 --literal | yq -r .operationState 2>&1'. ${rc} = 0 ${stdout} = COMPLETED ${stdout} Logs the given message with the given level. COMPLETED ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} COMPLETED msg=The ns-action with id ${ns_operation_id} was not completed values=False Fails if ``container`` does not contain ``item`` one or more times. ${stdout} ${ns_op_id} = 12e0e1fd-ff6c-46da-8a56-f3c7d501c3e3 ${ns_op_id} Logs the given message with the given level. 12e0e1fd-ff6c-46da-8a56-f3c7d501c3e3 Perform a manual scale-in operation of the VNF. azure basic_09 cluster_main daily regression verify ${NS_ID} msg=Network service instance is not available Fails unless the given variable exists within the current scope. @{vdur_list} ${VNF_ID} Return a list with the names of the VDU records of a VNF instance. ${vnf_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm vnf-show ${vnf_id} --literal | yq -r .vdur[].name Runs the given command in the system and returns the RC and output. Running command 'osm vnf-show f9cf70cc-a02c-4b88-b34c-c05084c2b8ab --literal | yq -r .vdur[].name 2>&1'. ${rc} = 0 ${stdout} = basic_09_manual_-vnf-hackfest_basic_metrics-VM-0 ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> @{vdur} ${stdout} Splits the ``string`` using ``separator`` as a delimiter string. @{vdur} = [ basic_09_manual_-vnf-hackfest_basic_metrics-VM-0 ] @{vdur} @{vdur_list} = [ basic_09_manual_-vnf-hackfest_basic_metrics-VM-0 ] ${vdur_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: basic_09_manual_-vnf-hackfest_basic_metrics-VM-0 ${vdurs} ${vdur_list} Returns and logs the length of the given item as an integer. Length is 1 ${vdurs} = 1 msg=There is the same number of VDU records in the VNF after Scale In Fails the test with the given message and optionally alters its tags. Check whether there is one less VDU after scaling in. azure basic_09 cluster_main daily regression verify ${NS_NAME} Delete a NS instance. ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} Logs the given message with the given level. 240.0 ${rc} ${stdout} osm ns-delete ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-delete basic_09_manual_scaling_test 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${stdout} Logs the given message with the given level. Deletion in progress ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${ns_delete_max_wait_time} ${NS_DELETE_POL_TIME} Check For NS Instance To Be Deleted ${ns} Runs the specified keyword and retries if it fails. ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 7516c4ff-315f-40ad-8ad5-4074c01b7f69 | basic_22-3-simple_provides-0 | ACTIVE | osm-ext=172.21.249.217 | ubuntu18.04 | simple_requires-1-1-flv | | 58817d45-2ecb-49d3-bcc0-9025d405ac0a | basic_22-3-simple_requires-0 | ACTIVE | osm-ext=172.21.249.227 | ubuntu18.04 | simple_requires-1-1-flv | | e6bb91d9-3522-4ef4-b891-e4cc62324388 | basic_22-2-simple_provides-0 | ACTIVE | osm-ext=172.21.248.253 | ubuntu18.04 | simple_requires-1-1-flv | | e01e8224-e9a1-4106-9f71-f6b805061910 | basic_22-2-simple_requires-0 | ACTIVE | osm-ext=172.21.249.211 | ubuntu18.04 | simple_requires-1-1-flv | | 72f53d7d-2cf6-48be-8f6c-95d6403fa5cf | basic_22-1-simple_provides-0 | ACTIVE | osm-ext=172.21.249.43 | ubuntu18.04 | simple_requires-1-1-flv | | b2e18480-a30a-4911-b641-6725aeec0e27 | basic_22-1-simple_requires_kdu-0 | ACTIVE | osm-ext=172.21.249.81 | ubuntu18.04 | simple_requires-1-1-flv | | 749686e6-754b-421f-8b0f-6284162fee79 | basic_22-1-simple_requires-0 | ACTIVE | osm-ext=172.21.249.59 | ubuntu18.04 | simple_requires-1-1-flv | | 8231f9cf-6b64-4386-90af-ccef36cd9b14 | basic_09_manual_-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.201 | ubuntu20.04 | simple_requires-1-1-flv | | 3a6612c3-a8ac-4264-b5f7-7e270e9691ea | k8s_06-nopasswd_-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | ab14a4c0-7f43-4cba-93e5-9884af4278c6 | k8s_06-nopasswd_-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep basic_09_manual_scaling_test 2>&1'. ${rc} = 0 ${stdout} = basic_09_manual_scaling_test ${rc},${stdout} Logs the given message with the given level. 0,basic_09_manual_scaling_test ${stdout} ${ns} Fails if objects are equal after converting them to strings. basic_09_manual_scaling_test == basic_09_manual_scaling_test ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+----------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+----------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+----------------------------------+--------+------------------------+-------------+-------------------------+ | 7516c4ff-315f-40ad-8ad5-4074c01b7f69 | basic_22-3-simple_provides-0 | ACTIVE | osm-ext=172.21.249.217 | ubuntu18.04 | simple_requires-1-1-flv | | 58817d45-2ecb-49d3-bcc0-9025d405ac0a | basic_22-3-simple_requires-0 | ACTIVE | osm-ext=172.21.249.227 | ubuntu18.04 | simple_requires-1-1-flv | | e6bb91d9-3522-4ef4-b891-e4cc62324388 | basic_22-2-simple_provides-0 | ACTIVE | osm-ext=172.21.248.253 | ubuntu18.04 | simple_requires-1-1-flv | | e01e8224-e9a1-4106-9f71-f6b805061910 | basic_22-2-simple_requires-0 | ACTIVE | osm-ext=172.21.249.211 | ubuntu18.04 | simple_requires-1-1-flv | | 72f53d7d-2cf6-48be-8f6c-95d6403fa5cf | basic_22-1-simple_provides-0 | ACTIVE | osm-ext=172.21.249.43 | ubuntu18.04 | simple_requires-1-1-flv | | b2e18480-a30a-4911-b641-6725aeec0e27 | basic_22-1-simple_requires_kdu-0 | ACTIVE | osm-ext=172.21.249.81 | ubuntu18.04 | simple_requires-1-1-flv | | 749686e6-754b-421f-8b0f-6284162fee79 | basic_22-1-simple_requires-0 | ACTIVE | osm-ext=172.21.249.59 | ubuntu18.04 | simple_requires-1-1-flv | | 3a6612c3-a8ac-4264-b5f7-7e270e9691ea | k8s_06-nopasswd_-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | ab14a4c0-7f43-4cba-93e5-9884af4278c6 | k8s_06-nopasswd_-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+----------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep basic_09_manual_scaling_test 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${ns} Fails if objects are equal after converting them to strings. Delete NS instance. azure basic_09 cleanup cluster_main daily regression ${NSD_NAME} Delete a NS package from OSM. ${rc} ${stdout} Run And Return Rc And Output osm nspkg-delete ${nsd_id} Runs the keyword and continues execution even if a failure occurs. osm nspkg-delete ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-delete hackfest_basic-ns-metrics 2>&1'. ${rc} = 0 ${stdout} = Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Logs the given message with the given level. Deleted ${NSD_DELETE_MAX_WAIT_TIME} ${NSD_DELETE_POL_TIME} Check For NSD ${nsd_id} Runs the specified keyword and retries if it fails. ${nsd_id} Check that a NS package exists in OSM. ${rc} ${stdout} osm nspkg-list | awk '{print $2}' | grep ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-list | awk '{print $2}' | grep hackfest_basic-ns-metrics 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. Delete NS package from OSM. azure basic_09 cleanup cluster_main daily regression ${VNFD_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete hackfest_basic_metrics-vnf 2>&1'. ${rc} = 0 ${stdout} = Deleted ${stdout} Logs the given message with the given level. Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep hackfest_basic_metrics-vnf 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. Delete VNF package from OSM. azure basic_09 cleanup cluster_main daily regression Suite Cleanup Runs the given keyword with the given arguments and ignores possible error. Test Suite Cleanup: Deleting descriptors and NS instance Delete NS ${NS_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete NSD ${NSD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete VNFD ${VNFD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. [BASIC-09] Manual VNF/VDU Scaling. ${USERNAME} ${USER_PASSWORD} Create a user in OSM with the name and password passed as arguments, and return the user id. ${user_name} Verifies that the given item is not empty. Length is 18 ${user_password} Verifies that the given item is not empty. Length is 18 ${rc} ${stdout} osm user-create ${user_name} --password ${user_password} Runs the given command in the system and returns the RC and output. Running command 'osm user-create basic_15_test_user --password Basic_15_user_pass 2>&1'. ${rc} = 0 ${stdout} = 1c4e2380-d746-4129-8519-ceb399f3913d ${stdout} Logs the given message with the given level. 1c4e2380-d746-4129-8519-ceb399f3913d ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${USERNAME} Check if a user exists in OSM. ${user_name} Verifies that the given item is not empty. Length is 18 ${rc} ${stdout} osm user-list | awk 'NR>3 {print $2}' | grep "${user_name}" Runs the given command in the system and returns the RC and output. Running command 'osm user-list | awk 'NR>3 {print $2}' | grep "basic_15_test_user"'. ${rc} = 0 ${stdout} = basic_15_test_user ${stdout} Logs the given message with the given level. basic_15_test_user ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> Create a user in OSM. azure basic_15 cluster_main daily regression ${USERNAME} ${USER_PROJECT} ${USER_ROLE} Update the role of a user in a project in OSM. ${user_name} Verifies that the given item is not empty. Length is 18 ${project_name} Verifies that the given item is not empty. Length is 5 ${role_name} Verifies that the given item is not empty. Length is 12 ${rc} ${stdout} osm user-update --add-project-role '${project_name},${role_name}' ${user_name} Runs the given command in the system and returns the RC and output. Running command 'osm user-update --add-project-role 'admin,project_user' basic_15_test_user 2>&1'. ${rc} = 0 ${stdout} = Updated ${stdout} Logs the given message with the given level. Updated ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${USERNAME} ${USER_PROJECT} Check in OSM if a user exists in a project passed as argument. ${user_name} Verifies that the given item is not empty. Length is 18 ${project_name} Verifies that the given item is not empty. Length is 5 ${rc} ${stdout} osm user-show ${user_name} | grep "project_name" | grep "${project_name}" Runs the given command in the system and returns the RC and output. Running command 'osm user-show basic_15_test_user | grep "project_name" | grep "admin" 2>&1'. ${rc} = 0 ${stdout} = | | "project_name": "admin", | ${stdout} Logs the given message with the given level. | | "project_name": "admin", | ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${USERNAME} ${USER_ROLE} ${USER_PROJECT} Check if a user has a role in a specific project in OSM. ${user_name} Verifies that the given item is not empty. Length is 18 ${role_name} Verifies that the given item is not empty. Length is 12 ${project_name} Verifies that the given item is not empty. Length is 5 ${rc} ${stdout} osm user-show ${user_name} | grep -B1 "role_name" | grep -B1 "${role_name}" | grep "project_name" | grep "${project_name}" Runs the given command in the system and returns the RC and output. Running command 'osm user-show basic_15_test_user | grep -B1 "role_name" | grep -B1 "project_user" | grep "project_name" | grep "admin" 2>&1'. ${rc} = 0 ${stdout} = | | "project_name": "admin", | ${stdout} Logs the given message with the given level. | | "project_name": "admin", | ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> Assign a user to a project with a role azure basic_15 cluster_main daily regression ${USERNAME} ${USER_PASSWORD} ${USER_NEW_PASSWORD} Update the password of a user in OSM. ${user_name} Verifies that the given item is not empty. Length is 18 ${user_password} Verifies that the given item is not empty. Length is 18 ${user_new_password} Verifies that the given item is not empty. Length is 17 ${rc} ${stdout} osm user-update ${user_name} --current-password ${user_password} --new-password ${user_new_password} Runs the given command in the system and returns the RC and output. Running command 'osm user-update basic_15_test_user --current-password Basic_15_user_pass --new-password Basic_15_new_pass 2>&1'. ${rc} = 0 ${stdout} = Updated ${stdout} Logs the given message with the given level. Updated ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${rc} ${stdout} OSM_USER=${USERNAME} OSM_PROJECT=${USER_PROJECT} OSM_PASSWORD=${USER_NEW_PASSWORD} osm ns-list Runs the given command in the system and returns the RC and output. Running command 'OSM_USER=basic_15_test_user OSM_PROJECT=admin OSM_PASSWORD=Basic_15_new_pass osm ns-list 2>&1'. ${rc} = 0 ${stdout} = +------------------+----+------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+----+------+--------... ${rc} Logs the given message with the given level. 0 ${stdout} Logs the given message with the given level. +------------------+----+------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+----+------+----------+-------------------+---------------+ +------------------+----+------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> Update the password of the user. azure basic_15 cluster_main daily regression ${PROJECT_NAME} Create a project in OSM with the name passed as argument, and return the project id. ${project_name} Verifies that the given item is not empty. Length is 21 ${rc} ${stdout} osm project-create ${project_name} Runs the given command in the system and returns the RC and output. Running command 'osm project-create basic_15_test_project 2>&1'. ${rc} = 0 ${stdout} = 53578386-b62a-4e4d-a1c6-1194499317bf ${stdout} Logs the given message with the given level. 53578386-b62a-4e4d-a1c6-1194499317bf ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${PROJECT_NAME} ${NEW_PROJECT_NAME} Update in OSM the name of a project with the new name passed as argument. ${project_name} Verifies that the given item is not empty. Length is 21 ${new_name} Verifies that the given item is not empty. Length is 21 ${rc} ${stdout} osm project-update ${project_name} --name ${new_name} Runs the given command in the system and returns the RC and output. Running command 'osm project-update basic_15_test_project --name basic_15_project_test 2>&1'. ${rc} = 0 ${stdout} = Updated ${stdout} Logs the given message with the given level. Updated ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> Create a project and update its name. azure basic_15 cluster_main daily regression ${ROLE_NAME} Create a role in OSM with the name passed as argument, and return the role id. ${role_name} Verifies that the given item is not empty. Length is 9 ${rc} ${stdout} osm role-create ${role_name} Runs the given command in the system and returns the RC and output. Running command 'osm role-create test_role 2>&1'. ${rc} = 0 ${stdout} = fa418c00-4317-43d2-93a3-0fa38f92ef51 ${stdout} Logs the given message with the given level. fa418c00-4317-43d2-93a3-0fa38f92ef51 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ROLE_NAME} Check if a role exists in OSM. ${role_name} Verifies that the given item is not empty. Length is 9 ${rc} ${stdout} osm role-list | awk 'NR>3 {print $2}' | grep "${role_name}" Runs the given command in the system and returns the RC and output. Running command 'osm role-list | awk 'NR>3 {print $2}' | grep "test_role"'. ${rc} = 0 ${stdout} = test_role ${stdout} Logs the given message with the given level. test_role ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> Create a role and check that exists in OSM. azure basic_15 cluster_main daily regression ${ROLE_NAME} add='vims: true' Update a role in OSM. The extra parameters (like '--add') are given to this function in name=value format. These parameters will be appended to the 'osm role-update' command with the next syntax: --param_name=param_value Example of execution: Update Role ${role_name} add='vims: true' ${osm_update_command} osm role-update ${role_name} Returns the given values which can then be assigned to a variables. ${osm_update_command} = osm role-update test_role ${param} @{optional_parameters} add='vims: true' ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in optional parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = add='vims: true' ${param_name} = add ${param_value} = 'vims: true' ${match},${param_name},${param_value} Logs the given message with the given level. add='vims: true',add,'vims: true' ${osm_update_command} ${osm_update_command} --${param_name}=${param_value} Catenates the given items together and returns the resulted string. ${osm_update_command} = osm role-update test_role --add='vims: true' ${rc} ${stdout} ${osm_update_command} Runs the given command in the system and returns the RC and output. Running command 'osm role-update test_role --add='vims: true' 2>&1'. ${rc} = 0 ${stdout} = Updated ${stdout} Logs the given message with the given level. Updated ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${ROLE_NAME} Check if a role exists in OSM. ${role_name} Verifies that the given item is not empty. Length is 9 ${rc} ${stdout} osm role-list | awk 'NR>3 {print $2}' | grep "${role_name}" Runs the given command in the system and returns the RC and output. Running command 'osm role-list | awk 'NR>3 {print $2}' | grep "test_role"'. ${rc} = 0 ${stdout} = test_role ${stdout} Logs the given message with the given level. test_role ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> Update a role with a capability. azure basic_15 cluster_main daily regression ${USERNAME} Delete from OSM the user passed as argument. ${rc} ${stdout} osm user-delete ${user_name} Runs the given command in the system and returns the RC and output. Running command 'osm user-delete basic_15_test_user 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${stdout} Logs the given message with the given level. Deletion in progress ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${NEW_PROJECT_NAME} Delete from OSM the project passed as argument. ${rc} ${stdout} osm project-delete ${project_name} Runs the given command in the system and returns the RC and output. Running command 'osm project-delete basic_15_project_test 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${stdout} Logs the given message with the given level. Deletion in progress ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${ROLE_NAME} Delete from OSM the role passed as argument. ${rc} ${stdout} osm role-delete ${role_name} Runs the given command in the system and returns the RC and output. Running command 'osm role-delete test_role 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${stdout} Logs the given message with the given level. Deletion in progress ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> Delete user, project and role. azure basic_15 cleanup cluster_main daily regression Suite Cleanup Runs the given keyword with the given arguments and ignores possible error. Test Suite Cleanup: Deleting users, roles and projects. Run Keyword And Ignore Error Delete User ${USERNAME} Runs the given keyword with the given arguments, if one or more tests failed. Run Keyword And Ignore Error Delete Role ${ROLE_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Run Keyword And Ignore Error Delete Project ${PROJECT_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Run Keyword And Ignore Error Delete Project ${NEW_PROJECT_NAME} Runs the given keyword with the given arguments, if one or more tests failed. [BASIC-15] RBAC Configurations. '%{PACKAGES_FOLDER}/${VNFD_PKG}' df.0.instantiation-level.0.vdu-level.0.number-of-instances=${INIT_INSTANCES};df.0.vdu-profile.0.min-number-of-instances=${MIN_INSTANCES};df.0.vdu-profile.0.max-number-of-instances=${MAX_INSTANCES};df.0.scaling-aspect.0.aspect-delta-details.deltas.0.vdu-delta.0.number-of-instances=${DELTA_INSTANCES} Onboards ("creates") a NF Package into OSM. - Parameters: - vnfd_pkg: Name (and location) of the NF Package - override_fields: String with options to override fields in descriptor, format: "key1.key2...=value[;key3...=value;...]" - overrides (optional): String with options to override the EPA and/or interface properties of the Package. This is very useful to allow to deploy e.g. non-EPA packages in EPA VIMs (or vice-versa). Valid strings are the same as in the command. E.g.: - `--override-epa`: adds EPA attributes to all VDUs. - `--override-nonepa`: removes all EPA attributes from all VDUs. - `--override-paravirt`: converts all interfaces to `PARAVIRT`. This one can be combined with the others above (e.g. '--override-nonepa --override-paravirt'). - Relevant environment variables: - OVERRIDES: If the environment variable "OVERRIDES" exists, it prevails over the value in the argument. This is often more convenient to enforce the same behaviour for every test run in a given VIM. ${overrides} OVERRIDES default=${overrides} Returns the value of an environment variable with the given name. ${overrides} = ${rc} ${stdout} osm vnfpkg-create ${overrides} ${vnfd_pkg} --override '${override_fields}' Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-create '/robot-systest/osm-packages/hackfest_basic_metrics_vnf' --override 'df.0.instantiation-level.0.vdu-level.0.number-of-instances=3;df.0.vdu-profile.0.min-number-of-instances=3;df.0.vdu-profile.0.max-number-of-instances=5;df.0.scaling-aspect.0.aspect-delta-details.deltas.0.vdu-delta.0.number-of-instances=2' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/hackfest_basic_metrics_vnf Validation OK List of charms in the descriptor: set() Adding File: hackfest_basic_metrics_vnf Package created: /robot-systest/... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/hackfest_basic_metrics_vnf Validation OK List of charms in the descriptor: set() Adding File: hackfest_basic_metrics_vnf Package created: /robot-systest/osm-packages/hackfest_basic_metrics_vnf.tar.gz Uploading package /robot-systest/osm-packages/hackfest_basic_metrics_vnf.tar.gz 083f2c75-daf9-4061-853c-0140d63e6ad8 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 7 lines ${lines} = 7 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 6 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = 083f2c75-daf9-4061-853c-0140d63e6ad8 ${id} Upload VNF package for the testsuite. azure basic_16 cluster_main daily regression '%{PACKAGES_FOLDER}/${NSD_PKG}' Upload a NS package to OSM and return the id. ${rc} ${stdout} osm nspkg-create ${nsd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-create '/robot-systest/osm-packages/hackfest_basic_metrics_ns' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/hackfest_basic_metrics_ns Validation OK List of charms in the descriptor: set() Adding File: hackfest_basic_metrics_ns Package created: /robot-systest/os... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/hackfest_basic_metrics_ns Validation OK List of charms in the descriptor: set() Adding File: hackfest_basic_metrics_ns Package created: /robot-systest/osm-packages/hackfest_basic_metrics_ns.tar.gz 2e83a6ec-d335-4670-9239-e91391ccb879 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 6 lines ${lines} = 6 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 5 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = 2e83a6ec-d335-4670-9239-e91391ccb879 ${id} Upload NS package for the testsuite. azure basic_16 cluster_main daily regression ${id} ${NSD_NAME} %{VIM_TARGET} ${NS_NAME} ${NS_CONFIG} ${PUBLICKEY} Launch the instantation of a NS and verify in a loop that the NS instance is successfully created in a given time, and return the NS instance id. ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_launch_max_wait_time} = 300.0 ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_launch_max_wait_time} = 300.0 ${ns_launch_max_wait_time} Logs the given message with the given level. 300.0 ${config_attr} '${ns_config}'!='${EMPTY}' --config '${ns_config}' ${EMPTY} Sets variable based on the given condition. ${config_attr} = --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext} ] }' ${sshkeys_attr} '${publickey}'!='${EMPTY}' --ssh_keys ${publickey} ${EMPTY} Sets variable based on the given condition. ${sshkeys_attr} = --ssh_keys /root/.ssh/id_rsa.pub ${config_file_attr} '${config_file}'!='${EMPTY}' --config_file '${config_file}' ${EMPTY} Sets variable based on the given condition. ${config_file_attr} = ${ns_id} ${ns_name} ${nsd} ${vim_name} ${config_attr} ${sshkeys_attr} ${config_file_attr} Launch the instantation of a NS, and return the NS instance id. ${rc} ${stdout} osm ns-create --ns_name ${ns_name} --nsd_name ${nsd} --vim_account ${vim_name} ${ns_extra_args} Runs the given command in the system and returns the RC and output. Running command 'osm ns-create --ns_name basic_16 --nsd_name hackfest_basic-ns-metrics --vim_account osm --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext} ] }' --ssh_keys /root/.ssh/id_rsa.pub 2>&1'. ${rc} = 0 ${stdout} = 299f8edd-411a-4a86-ad09-233ac38b3956 ${stdout} Logs the given message with the given level. 299f8edd-411a-4a86-ad09-233ac38b3956 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 299f8edd-411a-4a86-ad09-233ac38b3956 ${ns_id} Logs the given message with the given level. 299f8edd-411a-4a86-ad09-233ac38b3956 ${ns_launch_max_wait_time} ${NS_LAUNCH_POL_TIME} Check For NS Instance To Configured ${ns_name} Runs the specified keyword and retries if it fails. ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+----------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+----------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+----------------------------------+--------+------------------------+-------------+-------------------------+ | 7516c4ff-315f-40ad-8ad5-4074c01b7f69 | basic_22-3-simple_provides-0 | ACTIVE | osm-ext=172.21.249.217 | ubuntu18.04 | simple_requires-1-1-flv | | 58817d45-2ecb-49d3-bcc0-9025d405ac0a | basic_22-3-simple_requires-0 | ACTIVE | osm-ext=172.21.249.227 | ubuntu18.04 | simple_requires-1-1-flv | | e6bb91d9-3522-4ef4-b891-e4cc62324388 | basic_22-2-simple_provides-0 | ACTIVE | osm-ext=172.21.248.253 | ubuntu18.04 | simple_requires-1-1-flv | | e01e8224-e9a1-4106-9f71-f6b805061910 | basic_22-2-simple_requires-0 | ACTIVE | osm-ext=172.21.249.211 | ubuntu18.04 | simple_requires-1-1-flv | | 72f53d7d-2cf6-48be-8f6c-95d6403fa5cf | basic_22-1-simple_provides-0 | ACTIVE | osm-ext=172.21.249.43 | ubuntu18.04 | simple_requires-1-1-flv | | b2e18480-a30a-4911-b641-6725aeec0e27 | basic_22-1-simple_requires_kdu-0 | ACTIVE | osm-ext=172.21.249.81 | ubuntu18.04 | simple_requires-1-1-flv | | 749686e6-754b-421f-8b0f-6284162fee79 | basic_22-1-simple_requires-0 | ACTIVE | osm-ext=172.21.249.59 | ubuntu18.04 | simple_requires-1-1-flv | | 3a6612c3-a8ac-4264-b5f7-7e270e9691ea | k8s_06-nopasswd_-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | ab14a4c0-7f43-4cba-93e5-9884af4278c6 | k8s_06-nopasswd_-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+----------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_16" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_16 | 299f8edd-411a-4a86-ad09-233ac38b3956 | 2024-02-19T02:48:33 | BUILDING | INSTANTIATING (fed29334-78bd-4813-8dfe-5278f12d2ed7) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_16 | 299f8edd-411a-4a86-ad09-233ac38b3956 | 2024-02-19T02:48:33 | BUILDING | INSTANTIATING (fed29334-78bd-4813-8dfe-5278f12d2ed7) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | N... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ | 1d8b7fc9-4e06-4774-8409-6a605eac6106 | basic_16-vnf-hackfest_basic_metrics-VM-2 | ACTIVE | osm-ext=172.21.249.119 | ubuntu20.04 | simple_requires-1-1-flv | | 0b83f885-098e-473e-8bb5-21a91f22c43f | basic_16-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.249.230 | ubuntu20.04 | simple_requires-1-1-flv | | 67cff577-65e8-4b5d-88d0-6e8b92bc10a5 | basic_16-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.213 | ubuntu20.04 | simple_requires-1-1-flv | | 7516c4ff-315f-40ad-8ad5-4074c01b7f69 | basic_22-3-simple_provides-0 | ACTIVE | osm-ext=172.21.249.217 | ubuntu18.04 | simple_requires-1-1-flv | | 58817d45-2ecb-49d3-bcc0-9025d405ac0a | basic_22-3-simple_requires-0 | ACTIVE | osm-ext=172.21.249.227 | ubuntu18.04 | simple_requires-1-1-flv | | e6bb91d9-3522-4ef4-b891-e4cc62324388 | basic_22-2-simple_provides-0 | ACTIVE | osm-ext=172.21.248.253 | ubuntu18.04 | simple_requires-1-1-flv | | e01e8224-e9a1-4106-9f71-f6b805061910 | basic_22-2-simple_requires-0 | ACTIVE | osm-ext=172.21.249.211 | ubuntu18.04 | simple_requires-1-1-flv | | 72f53d7d-2cf6-48be-8f6c-95d6403fa5cf | basic_22-1-simple_provides-0 | ACTIVE | osm-ext=172.21.249.43 | ubuntu18.04 | simple_requires-1-1-flv | | b2e18480-a30a-4911-b641-6725aeec0e27 | basic_22-1-simple_requires_kdu-0 | ACTIVE | osm-ext=172.21.249.81 | ubuntu18.04 | simple_requires-1-1-flv | | 749686e6-754b-421f-8b0f-6284162fee79 | basic_22-1-simple_requires-0 | ACTIVE | osm-ext=172.21.249.59 | ubuntu18.04 | simple_requires-1-1-flv | | 3a6612c3-a8ac-4264-b5f7-7e270e9691ea | k8s_06-nopasswd_-vnf2-mgmtVM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | ab14a4c0-7f43-4cba-93e5-9884af4278c6 | k8s_06-nopasswd_-vnf1-mgmtVM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_16" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_16 | 299f8edd-411a-4a86-ad09-233ac38b3956 | 2024-02-19T02:48:33 | BUILDING | INSTANTIATING (fed29334-78bd-4813-8dfe-5278f12d2ed7) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_16 | 299f8edd-411a-4a86-ad09-233ac38b3956 | 2024-02-19T02:48:33 | BUILDING | INSTANTIATING (fed29334-78bd-4813-8dfe-5278f12d2ed7) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | N... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ | 1d8b7fc9-4e06-4774-8409-6a605eac6106 | basic_16-vnf-hackfest_basic_metrics-VM-2 | ACTIVE | osm-ext=172.21.249.119 | ubuntu20.04 | simple_requires-1-1-flv | | 0b83f885-098e-473e-8bb5-21a91f22c43f | basic_16-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.249.230 | ubuntu20.04 | simple_requires-1-1-flv | | 67cff577-65e8-4b5d-88d0-6e8b92bc10a5 | basic_16-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.213 | ubuntu20.04 | simple_requires-1-1-flv | | 7516c4ff-315f-40ad-8ad5-4074c01b7f69 | basic_22-3-simple_provides-0 | ACTIVE | osm-ext=172.21.249.217 | ubuntu18.04 | simple_requires-1-1-flv | | 58817d45-2ecb-49d3-bcc0-9025d405ac0a | basic_22-3-simple_requires-0 | ACTIVE | osm-ext=172.21.249.227 | ubuntu18.04 | simple_requires-1-1-flv | | e6bb91d9-3522-4ef4-b891-e4cc62324388 | basic_22-2-simple_provides-0 | ACTIVE | osm-ext=172.21.248.253 | ubuntu18.04 | simple_requires-1-1-flv | | e01e8224-e9a1-4106-9f71-f6b805061910 | basic_22-2-simple_requires-0 | ACTIVE | osm-ext=172.21.249.211 | ubuntu18.04 | simple_requires-1-1-flv | | 72f53d7d-2cf6-48be-8f6c-95d6403fa5cf | basic_22-1-simple_provides-0 | ACTIVE | osm-ext=172.21.249.43 | ubuntu18.04 | simple_requires-1-1-flv | | b2e18480-a30a-4911-b641-6725aeec0e27 | basic_22-1-simple_requires_kdu-0 | ACTIVE | osm-ext=172.21.249.81 | ubuntu18.04 | simple_requires-1-1-flv | | 749686e6-754b-421f-8b0f-6284162fee79 | basic_22-1-simple_requires-0 | ACTIVE | osm-ext=172.21.249.59 | ubuntu18.04 | simple_requires-1-1-flv | | 3a6612c3-a8ac-4264-b5f7-7e270e9691ea | k8s_06-nopasswd_-vnf2-mgmtVM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | ab14a4c0-7f43-4cba-93e5-9884af4278c6 | k8s_06-nopasswd_-vnf1-mgmtVM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_16" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | basic_16 | 299f8edd-411a-4a86-ad09-233ac38b3956 | 2024-02-19T02:48:33 | READY | IDLE (None) | N/A | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. ${ns_name} Check if a given NS instance has not failed in the instantiation (the status should not be BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | N... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ | 1d8b7fc9-4e06-4774-8409-6a605eac6106 | basic_16-vnf-hackfest_basic_metrics-VM-2 | ACTIVE | osm-ext=172.21.249.119 | ubuntu20.04 | simple_requires-1-1-flv | | 0b83f885-098e-473e-8bb5-21a91f22c43f | basic_16-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.249.230 | ubuntu20.04 | simple_requires-1-1-flv | | 67cff577-65e8-4b5d-88d0-6e8b92bc10a5 | basic_16-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.213 | ubuntu20.04 | simple_requires-1-1-flv | | 7516c4ff-315f-40ad-8ad5-4074c01b7f69 | basic_22-3-simple_provides-0 | ACTIVE | osm-ext=172.21.249.217 | ubuntu18.04 | simple_requires-1-1-flv | | 58817d45-2ecb-49d3-bcc0-9025d405ac0a | basic_22-3-simple_requires-0 | ACTIVE | osm-ext=172.21.249.227 | ubuntu18.04 | simple_requires-1-1-flv | | e6bb91d9-3522-4ef4-b891-e4cc62324388 | basic_22-2-simple_provides-0 | ACTIVE | osm-ext=172.21.248.253 | ubuntu18.04 | simple_requires-1-1-flv | | e01e8224-e9a1-4106-9f71-f6b805061910 | basic_22-2-simple_requires-0 | ACTIVE | osm-ext=172.21.249.211 | ubuntu18.04 | simple_requires-1-1-flv | | 72f53d7d-2cf6-48be-8f6c-95d6403fa5cf | basic_22-1-simple_provides-0 | ACTIVE | osm-ext=172.21.249.43 | ubuntu18.04 | simple_requires-1-1-flv | | b2e18480-a30a-4911-b641-6725aeec0e27 | basic_22-1-simple_requires_kdu-0 | ACTIVE | osm-ext=172.21.249.81 | ubuntu18.04 | simple_requires-1-1-flv | | 749686e6-754b-421f-8b0f-6284162fee79 | basic_22-1-simple_requires-0 | ACTIVE | osm-ext=172.21.249.59 | ubuntu18.04 | simple_requires-1-1-flv | | 3a6612c3-a8ac-4264-b5f7-7e270e9691ea | k8s_06-nopasswd_-vnf2-mgmtVM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | ab14a4c0-7f43-4cba-93e5-9884af4278c6 | k8s_06-nopasswd_-vnf1-mgmtVM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_16" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | basic_16 | 299f8edd-411a-4a86-ad09-233ac38b3956 | 2024-02-19T02:48:33 | READY | IDLE (None) | N/A | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} BROKEN Fails if ``container`` contains ``item`` one or more times. ${ns_id} ${id} = 299f8edd-411a-4a86-ad09-233ac38b3956 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 299f8edd-411a-4a86-ad09-233ac38b3956 Instantiate NS for the testsuite. azure basic_16 cluster_main daily regression ${NS_ID} msg=Network service instance is not available Fails unless the given variable exists within the current scope. @{vnfr_list} ${NS_ID} Return a list with the IDs of the VNF records of a NS instance. ${ns_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm vnf-list --ns ${ns_id} | grep ${ns_id} | awk '{print $2}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm vnf-list --ns 299f8edd-411a-4a86-ad09-233ac38b3956 | grep 299f8edd-411a-4a86-ad09-233ac38b3956 | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = 01588b3e-ce7f-4312-9504-18fede484d79 ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> @{vdur} ${stdout} Splits the ``string`` using ``separator`` as a delimiter string. @{vdur} = [ 01588b3e-ce7f-4312-9504-18fede484d79 ] @{vdur} @{vnfr_list} = [ 01588b3e-ce7f-4312-9504-18fede484d79 ] ${vnfr_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: 01588b3e-ce7f-4312-9504-18fede484d79 ${VNF_ID} ${vnfr_list}[0] Makes a variable available everywhere within the scope of the current suite. ${VNF_ID} = 01588b3e-ce7f-4312-9504-18fede484d79 Retrieve VNF instance id to be used later on. azure basic_16 cluster_main daily regression @{vdur_list} ${VNF_ID} Return a list with the names of the VDU records of a VNF instance. ${vnf_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm vnf-show ${vnf_id} --literal | yq -r .vdur[].name Runs the given command in the system and returns the RC and output. Running command 'osm vnf-show 01588b3e-ce7f-4312-9504-18fede484d79 --literal | yq -r .vdur[].name 2>&1'. ${rc} = 0 ${stdout} = basic_16-vnf-hackfest_basic_metrics-VM-0 basic_16-vnf-hackfest_basic_metrics-VM-1 basic_16-vnf-hackfest_basic_metrics-VM-2 ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> @{vdur} ${stdout} Splits the ``string`` using ``separator`` as a delimiter string. @{vdur} = [ basic_16-vnf-hackfest_basic_metrics-VM-0 | basic_16-vnf-hackfest_basic_metrics-VM-1 | basic_16-vnf-hackfest_basic_metrics-VM-2 ] @{vdur} @{vdur_list} = [ basic_16-vnf-hackfest_basic_metrics-VM-0 | basic_16-vnf-hackfest_basic_metrics-VM-1 | basic_16-vnf-hackfest_basic_metrics-VM-2 ] ${vdur_list} Logs the length and contents of the ``list`` using given ``level``. List length is 3 and it contains following items: 0: basic_16-vnf-hackfest_basic_metrics-VM-0 1: basic_16-vnf-hackfest_basic_metrics-VM-1 2: basic_16-vnf-hackfest_basic_metrics-VM-2 ${vdurs} ${vdur_list} Returns and logs the length of the given item as an integer. Length is 3 ${vdurs} = 3 ${INITIAL_VDUR_COUNT} ${vdurs} Makes a variable available everywhere within the scope of the current suite. ${INITIAL_VDUR_COUNT} = 3 msg=Instantiated VDUs (${INITIAL_VDUR_COUNT}) don't match specified number in descriptor (${INIT_INSTANCES}) Fails the test with the given message and optionally alters its tags. Check the number of VDUs instances before the manual scaling. azure basic_16 cluster_main daily regression ${NS_ID} msg=Network service instance is not available Fails unless the given variable exists within the current scope. ${ns_op_id} ${NS_NAME} ${VNF_MEMBER_INDEX} ${SCALING_GROUP} SCALE_OUT Execute a manual VNF Scale action. The parameter 'scale_type' must be SCALE_IN or SCALE_OUT. Return the ID of the operation associated to the executed scale action. ${vnf_scale_max_wait_time} ${vnf_scale_max_wait_time} result_format=number Converts between supported `time formats`. ${vnf_scale_max_wait_time} = 120.0 ${vnf_scale_max_wait_time} ${vnf_scale_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${vnf_scale_max_wait_time} = 120.0 ${scale_type} SCALE_IN SCALE_OUT msg=Unknown scale type: ${scale_type} values=False Fails if ``container`` does not contain any of the ``*items``. ${osm_vnf_scale_command} osm vnf-scale --scaling-group ${scaling_group} Returns the given values which can then be assigned to a variables. ${osm_vnf_scale_command} = osm vnf-scale --scaling-group vdu_autoscale ${osm_vnf_scale_command} ${osm_vnf_scale_command} --scale-in Catenates the given items together and returns the resulted string. ${osm_vnf_scale_command} ${osm_vnf_scale_command} --scale-out Catenates the given items together and returns the resulted string. ${osm_vnf_scale_command} = osm vnf-scale --scaling-group vdu_autoscale --scale-out ${osm_vnf_scale_command} ${osm_vnf_scale_command} ${ns_name} ${vnf_member_index} Catenates the given items together and returns the resulted string. ${osm_vnf_scale_command} = osm vnf-scale --scaling-group vdu_autoscale --scale-out basic_16 vnf ${rc} ${stdout} ${osm_vnf_scale_command} Runs the given command in the system and returns the RC and output. Running command 'osm vnf-scale --scaling-group vdu_autoscale --scale-out basic_16 vnf 2>&1'. ${rc} = 0 ${stdout} = 4abeb499-fe16-4d37-a079-6fafb6115e47 ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${vnf_scale_max_wait_time} ${VNF_SCALE_POL_TIME} Check For NS Operation Ended ${stdout} Runs the specified keyword and retries if it fails. ${stdout} Check wheter the status of the desired operation is "FAILED" or "COMPLETED". ${ns_operation_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm ns-op-show ${ns_operation_id} --literal | yq -r .operationState Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-show 4abeb499-fe16-4d37-a079-6fafb6115e47 --literal | yq -r .operationState 2>&1'. ${rc} = 0 ${stdout} = PROCESSING ${stdout} Logs the given message with the given level. PROCESSING ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} FAILED COMPLETED msg=Timeout waiting for ns-action with id ${ns_operation_id} values=False Fails if ``container`` does not contain any of the ``*items``. Timeout waiting for ns-action with id 4abeb499-fe16-4d37-a079-6fafb6115e47 ${stdout} Check wheter the status of the desired operation is "FAILED" or "COMPLETED". ${ns_operation_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm ns-op-show ${ns_operation_id} --literal | yq -r .operationState Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-show 4abeb499-fe16-4d37-a079-6fafb6115e47 --literal | yq -r .operationState 2>&1'. ${rc} = 0 ${stdout} = PROCESSING ${stdout} Logs the given message with the given level. PROCESSING ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} FAILED COMPLETED msg=Timeout waiting for ns-action with id ${ns_operation_id} values=False Fails if ``container`` does not contain any of the ``*items``. Timeout waiting for ns-action with id 4abeb499-fe16-4d37-a079-6fafb6115e47 ${stdout} Check wheter the status of the desired operation is "FAILED" or "COMPLETED". ${ns_operation_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm ns-op-show ${ns_operation_id} --literal | yq -r .operationState Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-show 4abeb499-fe16-4d37-a079-6fafb6115e47 --literal | yq -r .operationState 2>&1'. ${rc} = 0 ${stdout} = COMPLETED ${stdout} Logs the given message with the given level. COMPLETED ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} FAILED COMPLETED msg=Timeout waiting for ns-action with id ${ns_operation_id} values=False Fails if ``container`` does not contain any of the ``*items``. ${stdout} Check wheter the status of the desired operation is "COMPLETED" or not. ${ns_operation_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm ns-op-show ${ns_operation_id} --literal | yq -r .operationState Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-show 4abeb499-fe16-4d37-a079-6fafb6115e47 --literal | yq -r .operationState 2>&1'. ${rc} = 0 ${stdout} = COMPLETED ${stdout} Logs the given message with the given level. COMPLETED ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} COMPLETED msg=The ns-action with id ${ns_operation_id} was not completed values=False Fails if ``container`` does not contain ``item`` one or more times. ${stdout} ${ns_op_id} = 4abeb499-fe16-4d37-a079-6fafb6115e47 ${ns_op_id} Logs the given message with the given level. 4abeb499-fe16-4d37-a079-6fafb6115e47 Perform a manual scale-out operation of the VNF. azure basic_16 cluster_main daily regression ${NS_ID} msg=Network service instance is not available Fails unless the given variable exists within the current scope. @{vdur_list} ${VNF_ID} Return a list with the names of the VDU records of a VNF instance. ${vnf_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm vnf-show ${vnf_id} --literal | yq -r .vdur[].name Runs the given command in the system and returns the RC and output. Running command 'osm vnf-show 01588b3e-ce7f-4312-9504-18fede484d79 --literal | yq -r .vdur[].name 2>&1'. ${rc} = 0 ${stdout} = basic_16-vnf-hackfest_basic_metrics-VM-0 basic_16-vnf-hackfest_basic_metrics-VM-1 basic_16-vnf-hackfest_basic_metrics-VM-2 basic_16-vnf-hackfest_basic_metrics-VM-3 basic_16-vnf-hackfest_basic_metrics-... ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> @{vdur} ${stdout} Splits the ``string`` using ``separator`` as a delimiter string. @{vdur} = [ basic_16-vnf-hackfest_basic_metrics-VM-0 | basic_16-vnf-hackfest_basic_metrics-VM-1 | basic_16-vnf-hackfest_basic_metrics-VM-2 | basic_16-vnf-hackfest_basic_metrics-VM-3 | basic_16-vnf-hackfest_basi... @{vdur} @{vdur_list} = [ basic_16-vnf-hackfest_basic_metrics-VM-0 | basic_16-vnf-hackfest_basic_metrics-VM-1 | basic_16-vnf-hackfest_basic_metrics-VM-2 | basic_16-vnf-hackfest_basic_metrics-VM-3 | basic_16-vnf-hackfest_basi... ${vdur_list} Logs the length and contents of the ``list`` using given ``level``. List length is 5 and it contains following items: 0: basic_16-vnf-hackfest_basic_metrics-VM-0 1: basic_16-vnf-hackfest_basic_metrics-VM-1 2: basic_16-vnf-hackfest_basic_metrics-VM-2 3: basic_16-vnf-hackfest_basic_metrics-VM-3 4: basic_16-vnf-hackfest_basic_metrics-VM-4 ${vdurs} ${vdur_list} Returns and logs the length of the given item as an integer. Length is 5 ${vdurs} = 5 msg=VDU instances in the VNF (${vdurs}) don't match after Scale Out (${INITIAL_VDUR_COUNT} + ${DELTA_INSTANCES}) Fails the test with the given message and optionally alters its tags. Check whether there is one extra VDU after scaling out. azure basic_16 cluster_main daily regression ${NS_ID} msg=Network service instance is not available Fails unless the given variable exists within the current scope. ${ns_op_id} ${NS_NAME} ${VNF_MEMBER_INDEX} ${SCALING_GROUP} SCALE_IN Execute a manual VNF Scale action. The parameter 'scale_type' must be SCALE_IN or SCALE_OUT. Return the ID of the operation associated to the executed scale action. ${vnf_scale_max_wait_time} ${vnf_scale_max_wait_time} result_format=number Converts between supported `time formats`. ${vnf_scale_max_wait_time} = 120.0 ${vnf_scale_max_wait_time} ${vnf_scale_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${vnf_scale_max_wait_time} = 120.0 ${scale_type} SCALE_IN SCALE_OUT msg=Unknown scale type: ${scale_type} values=False Fails if ``container`` does not contain any of the ``*items``. ${osm_vnf_scale_command} osm vnf-scale --scaling-group ${scaling_group} Returns the given values which can then be assigned to a variables. ${osm_vnf_scale_command} = osm vnf-scale --scaling-group vdu_autoscale ${osm_vnf_scale_command} ${osm_vnf_scale_command} --scale-in Catenates the given items together and returns the resulted string. ${osm_vnf_scale_command} = osm vnf-scale --scaling-group vdu_autoscale --scale-in ${osm_vnf_scale_command} ${osm_vnf_scale_command} --scale-out Catenates the given items together and returns the resulted string. ${osm_vnf_scale_command} ${osm_vnf_scale_command} ${ns_name} ${vnf_member_index} Catenates the given items together and returns the resulted string. ${osm_vnf_scale_command} = osm vnf-scale --scaling-group vdu_autoscale --scale-in basic_16 vnf ${rc} ${stdout} ${osm_vnf_scale_command} Runs the given command in the system and returns the RC and output. Running command 'osm vnf-scale --scaling-group vdu_autoscale --scale-in basic_16 vnf 2>&1'. ${rc} = 0 ${stdout} = d0a2dec8-5cb0-4ce3-aa5d-dfd6aa3ada6c ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${vnf_scale_max_wait_time} ${VNF_SCALE_POL_TIME} Check For NS Operation Ended ${stdout} Runs the specified keyword and retries if it fails. ${stdout} Check wheter the status of the desired operation is "FAILED" or "COMPLETED". ${ns_operation_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm ns-op-show ${ns_operation_id} --literal | yq -r .operationState Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-show d0a2dec8-5cb0-4ce3-aa5d-dfd6aa3ada6c --literal | yq -r .operationState 2>&1'. ${rc} = 0 ${stdout} = PROCESSING ${stdout} Logs the given message with the given level. PROCESSING ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} FAILED COMPLETED msg=Timeout waiting for ns-action with id ${ns_operation_id} values=False Fails if ``container`` does not contain any of the ``*items``. Timeout waiting for ns-action with id d0a2dec8-5cb0-4ce3-aa5d-dfd6aa3ada6c ${stdout} Check wheter the status of the desired operation is "FAILED" or "COMPLETED". ${ns_operation_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm ns-op-show ${ns_operation_id} --literal | yq -r .operationState Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-show d0a2dec8-5cb0-4ce3-aa5d-dfd6aa3ada6c --literal | yq -r .operationState 2>&1'. ${rc} = 0 ${stdout} = COMPLETED ${stdout} Logs the given message with the given level. COMPLETED ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} FAILED COMPLETED msg=Timeout waiting for ns-action with id ${ns_operation_id} values=False Fails if ``container`` does not contain any of the ``*items``. ${stdout} Check wheter the status of the desired operation is "COMPLETED" or not. ${ns_operation_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm ns-op-show ${ns_operation_id} --literal | yq -r .operationState Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-show d0a2dec8-5cb0-4ce3-aa5d-dfd6aa3ada6c --literal | yq -r .operationState 2>&1'. ${rc} = 0 ${stdout} = COMPLETED ${stdout} Logs the given message with the given level. COMPLETED ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} COMPLETED msg=The ns-action with id ${ns_operation_id} was not completed values=False Fails if ``container`` does not contain ``item`` one or more times. ${stdout} ${ns_op_id} = d0a2dec8-5cb0-4ce3-aa5d-dfd6aa3ada6c ${ns_op_id} Logs the given message with the given level. d0a2dec8-5cb0-4ce3-aa5d-dfd6aa3ada6c Perform a manual scale-in operation of the VNF. azure basic_16 cluster_main daily regression ${NS_ID} msg=Network service instance is not available Fails unless the given variable exists within the current scope. @{vdur_list} ${VNF_ID} Return a list with the names of the VDU records of a VNF instance. ${vnf_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm vnf-show ${vnf_id} --literal | yq -r .vdur[].name Runs the given command in the system and returns the RC and output. Running command 'osm vnf-show 01588b3e-ce7f-4312-9504-18fede484d79 --literal | yq -r .vdur[].name 2>&1'. ${rc} = 0 ${stdout} = basic_16-vnf-hackfest_basic_metrics-VM-0 basic_16-vnf-hackfest_basic_metrics-VM-1 basic_16-vnf-hackfest_basic_metrics-VM-2 ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> @{vdur} ${stdout} Splits the ``string`` using ``separator`` as a delimiter string. @{vdur} = [ basic_16-vnf-hackfest_basic_metrics-VM-0 | basic_16-vnf-hackfest_basic_metrics-VM-1 | basic_16-vnf-hackfest_basic_metrics-VM-2 ] @{vdur} @{vdur_list} = [ basic_16-vnf-hackfest_basic_metrics-VM-0 | basic_16-vnf-hackfest_basic_metrics-VM-1 | basic_16-vnf-hackfest_basic_metrics-VM-2 ] ${vdur_list} Logs the length and contents of the ``list`` using given ``level``. List length is 3 and it contains following items: 0: basic_16-vnf-hackfest_basic_metrics-VM-0 1: basic_16-vnf-hackfest_basic_metrics-VM-1 2: basic_16-vnf-hackfest_basic_metrics-VM-2 ${vdurs} ${vdur_list} Returns and logs the length of the given item as an integer. Length is 3 ${vdurs} = 3 msg=There is the same number of VDU records in the VNF after Scale In Fails the test with the given message and optionally alters its tags. Check whether there is one less VDU after scaling in. azure basic_16 cluster_main daily regression ${NS_NAME} Delete a NS instance. ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} Logs the given message with the given level. 240.0 ${rc} ${stdout} osm ns-delete ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-delete basic_16 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${stdout} Logs the given message with the given level. Deletion in progress ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${ns_delete_max_wait_time} ${NS_DELETE_POL_TIME} Check For NS Instance To Be Deleted ${ns} Runs the specified keyword and retries if it fails. ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | N... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ | 1d8b7fc9-4e06-4774-8409-6a605eac6106 | basic_16-vnf-hackfest_basic_metrics-VM-2 | ACTIVE | osm-ext=172.21.249.119 | ubuntu20.04 | simple_requires-1-1-flv | | 0b83f885-098e-473e-8bb5-21a91f22c43f | basic_16-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.249.230 | ubuntu20.04 | simple_requires-1-1-flv | | 67cff577-65e8-4b5d-88d0-6e8b92bc10a5 | basic_16-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.213 | ubuntu20.04 | simple_requires-1-1-flv | | 7516c4ff-315f-40ad-8ad5-4074c01b7f69 | basic_22-3-simple_provides-0 | ACTIVE | osm-ext=172.21.249.217 | ubuntu18.04 | simple_requires-1-1-flv | | 58817d45-2ecb-49d3-bcc0-9025d405ac0a | basic_22-3-simple_requires-0 | ACTIVE | osm-ext=172.21.249.227 | ubuntu18.04 | simple_requires-1-1-flv | | e6bb91d9-3522-4ef4-b891-e4cc62324388 | basic_22-2-simple_provides-0 | ACTIVE | osm-ext=172.21.248.253 | ubuntu18.04 | simple_requires-1-1-flv | | e01e8224-e9a1-4106-9f71-f6b805061910 | basic_22-2-simple_requires-0 | ACTIVE | osm-ext=172.21.249.211 | ubuntu18.04 | simple_requires-1-1-flv | | 72f53d7d-2cf6-48be-8f6c-95d6403fa5cf | basic_22-1-simple_provides-0 | ACTIVE | osm-ext=172.21.249.43 | ubuntu18.04 | simple_requires-1-1-flv | | b2e18480-a30a-4911-b641-6725aeec0e27 | basic_22-1-simple_requires_kdu-0 | ACTIVE | osm-ext=172.21.249.81 | ubuntu18.04 | simple_requires-1-1-flv | | 749686e6-754b-421f-8b0f-6284162fee79 | basic_22-1-simple_requires-0 | ACTIVE | osm-ext=172.21.249.59 | ubuntu18.04 | simple_requires-1-1-flv | | 3a6612c3-a8ac-4264-b5f7-7e270e9691ea | k8s_06-nopasswd_-vnf2-mgmtVM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | ab14a4c0-7f43-4cba-93e5-9884af4278c6 | k8s_06-nopasswd_-vnf1-mgmtVM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep basic_16 2>&1'. ${rc} = 0 ${stdout} = basic_16 ${rc},${stdout} Logs the given message with the given level. 0,basic_16 ${stdout} ${ns} Fails if objects are equal after converting them to strings. basic_16 == basic_16 ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+----------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+----------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+----------------------------------+--------+------------------------+-------------+-------------------------+ | 7516c4ff-315f-40ad-8ad5-4074c01b7f69 | basic_22-3-simple_provides-0 | ACTIVE | osm-ext=172.21.249.217 | ubuntu18.04 | simple_requires-1-1-flv | | 58817d45-2ecb-49d3-bcc0-9025d405ac0a | basic_22-3-simple_requires-0 | ACTIVE | osm-ext=172.21.249.227 | ubuntu18.04 | simple_requires-1-1-flv | | e6bb91d9-3522-4ef4-b891-e4cc62324388 | basic_22-2-simple_provides-0 | ACTIVE | osm-ext=172.21.248.253 | ubuntu18.04 | simple_requires-1-1-flv | | e01e8224-e9a1-4106-9f71-f6b805061910 | basic_22-2-simple_requires-0 | ACTIVE | osm-ext=172.21.249.211 | ubuntu18.04 | simple_requires-1-1-flv | | 72f53d7d-2cf6-48be-8f6c-95d6403fa5cf | basic_22-1-simple_provides-0 | ACTIVE | osm-ext=172.21.249.43 | ubuntu18.04 | simple_requires-1-1-flv | | b2e18480-a30a-4911-b641-6725aeec0e27 | basic_22-1-simple_requires_kdu-0 | ACTIVE | osm-ext=172.21.249.81 | ubuntu18.04 | simple_requires-1-1-flv | | 749686e6-754b-421f-8b0f-6284162fee79 | basic_22-1-simple_requires-0 | ACTIVE | osm-ext=172.21.249.59 | ubuntu18.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+----------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep basic_16 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${ns} Fails if objects are equal after converting them to strings. Delete NS intance. azure basic_16 cleanup cluster_main daily regression ${NSD_NAME} Delete a NS package from OSM. ${rc} ${stdout} Run And Return Rc And Output osm nspkg-delete ${nsd_id} Runs the keyword and continues execution even if a failure occurs. osm nspkg-delete ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-delete hackfest_basic-ns-metrics 2>&1'. ${rc} = 0 ${stdout} = Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Logs the given message with the given level. Deleted ${NSD_DELETE_MAX_WAIT_TIME} ${NSD_DELETE_POL_TIME} Check For NSD ${nsd_id} Runs the specified keyword and retries if it fails. ${nsd_id} Check that a NS package exists in OSM. ${rc} ${stdout} osm nspkg-list | awk '{print $2}' | grep ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-list | awk '{print $2}' | grep hackfest_basic-ns-metrics 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. Delete NS package from OSM. azure basic_16 cleanup cluster_main daily regression ${VNFD_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete hackfest_basic_metrics-vnf 2>&1'. ${rc} = 0 ${stdout} = Deleted ${stdout} Logs the given message with the given level. Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep hackfest_basic_metrics-vnf 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. Delete VNF package from OSM. azure basic_16 cleanup cluster_main daily regression Suite Cleanup Runs the given keyword with the given arguments and ignores possible error. Test Suite Cleanup: Deleting descriptors and NS instance Delete NS ${NS_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete NSD ${NSD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete VNFD ${VNFD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. [BASIC-16] Advanced onboarding with override and complex scaling (3 initial instances, scaled by two). '%{PACKAGES_FOLDER}/${VNFD_PKG}' Onboards ("creates") a NF Package into OSM. - Parameters: - vnfd_pkg: Name (and location) of the NF Package - overrides (optional): String with options to override the EPA and/or interface properties of the Package. This is very useful to allow to deploy e.g. non-EPA packages in EPA VIMs (or vice-versa). Valid strings are the same as in the command. E.g.: - `--override-epa`: adds EPA attributes to all VDUs. - `--override-nonepa`: removes all EPA attributes from all VDUs. - `--override-paravirt`: converts all interfaces to `PARAVIRT`. This one can be combined with the others above (e.g. '--override-nonepa --override-paravirt'). - Relevant environment variables: - OVERRIDES: If the environment variable "OVERRIDES" exists, it prevails over the value in the argument. This is often more convenient to enforce the same behaviour for every test run in a given VIM. ${overrides} OVERRIDES default=${overrides} Returns the value of an environment variable with the given name. ${overrides} = ${rc} ${stdout} osm vnfpkg-create ${overrides} ${vnfd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-create '/robot-systest/osm-packages/hackfest_basic_vnf' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/hackfest_basic_vnf Validation OK List of charms in the descriptor: set() Adding File: hackfest_basic_vnf Package created: /robot-systest/osm-packages/hac... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/hackfest_basic_vnf Validation OK List of charms in the descriptor: set() Adding File: hackfest_basic_vnf Package created: /robot-systest/osm-packages/hackfest_basic_vnf.tar.gz Uploading package /robot-systest/osm-packages/hackfest_basic_vnf.tar.gz c926a530-48dc-4f55-b1b5-2a11ee7a2b32 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 7 lines ${lines} = 7 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 6 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = c926a530-48dc-4f55-b1b5-2a11ee7a2b32 ${id} Upload VNF package for the testsuite. azure basic_17 cluster_main daily regression '%{PACKAGES_FOLDER}/${NSD_PKG}' Upload a NS package to OSM and return the id. ${rc} ${stdout} osm nspkg-create ${nsd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-create '/robot-systest/osm-packages/hackfest_basic_ns' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/hackfest_basic_ns Validation OK List of charms in the descriptor: set() Adding File: hackfest_basic_ns Package created: /robot-systest/osm-packages/hackf... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/hackfest_basic_ns Validation OK List of charms in the descriptor: set() Adding File: hackfest_basic_ns Package created: /robot-systest/osm-packages/hackfest_basic_ns.tar.gz 0d1848dc-896d-4618-a4fb-37765aabcbcf ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 6 lines ${lines} = 6 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 5 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = 0d1848dc-896d-4618-a4fb-37765aabcbcf ${id} Upload NS package for the testsuite. azure basic_17 cluster_main daily regression ${VNFD_NAME} Deletes a NF Package that cannot be deleted and asserts the failure ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete hackfest_basic-vnf 2>&1'. ${rc} = 1 ${stdout} = ERROR: Error 409: { "code": "CONFLICT", "status": 409, "detail": "There is at least one NS package referencing this descriptor" } ${stdout} Logs the given message with the given level. ERROR: Error 409: { "code": "CONFLICT", "status": 409, "detail": "There is at least one NS package referencing this descriptor" } ${rc} ${FAILURE_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} 409 msg=Expected Conflict values=False Fails if ``container`` does not contain ``item`` one or more times. ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} True Runs the specified keyword and retries if it fails. ${vnfd_id} True Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep hackfest_basic-vnf 2>&1'. ${rc} = 0 ${stdout} = hackfest_basic-vnf ${rc},${stdout} Logs the given message with the given level. 0,hackfest_basic-vnf ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. Assert that the VNF package cannot be deleted without deleting the corresponding NS package using it. azure basic_17 cluster_main daily regression ${NSD_NAME} Delete a NS package from OSM. ${rc} ${stdout} Run And Return Rc And Output osm nspkg-delete ${nsd_id} Runs the keyword and continues execution even if a failure occurs. osm nspkg-delete ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-delete hackfest_basic-ns 2>&1'. ${rc} = 0 ${stdout} = Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Logs the given message with the given level. Deleted ${NSD_DELETE_MAX_WAIT_TIME} ${NSD_DELETE_POL_TIME} Check For NSD ${nsd_id} Runs the specified keyword and retries if it fails. ${nsd_id} Check that a NS package exists in OSM. ${rc} ${stdout} osm nspkg-list | awk '{print $2}' | grep ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-list | awk '{print $2}' | grep hackfest_basic-ns 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. Delete NS package from OSM. azure basic_17 cleanup cluster_main daily regression ${VNFD_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete hackfest_basic-vnf 2>&1'. ${rc} = 0 ${stdout} = Deleted ${stdout} Logs the given message with the given level. Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep hackfest_basic-vnf 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. Delete VNF package from OSM. azure basic_17 cleanup cluster_main daily regression Suite Cleanup Runs the given keyword with the given arguments and ignores possible error. Test Suit Cleanup: Deleting NS and VNF packages Delete NSD ${NSD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete VNFD ${VNFD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. [BASIC-17] Delete VNF Package Before NS Package. '%{PACKAGES_FOLDER}/${VNFD_PKG}' Onboards ("creates") a NF Package into OSM. - Parameters: - vnfd_pkg: Name (and location) of the NF Package - overrides (optional): String with options to override the EPA and/or interface properties of the Package. This is very useful to allow to deploy e.g. non-EPA packages in EPA VIMs (or vice-versa). Valid strings are the same as in the command. E.g.: - `--override-epa`: adds EPA attributes to all VDUs. - `--override-nonepa`: removes all EPA attributes from all VDUs. - `--override-paravirt`: converts all interfaces to `PARAVIRT`. This one can be combined with the others above (e.g. '--override-nonepa --override-paravirt'). - Relevant environment variables: - OVERRIDES: If the environment variable "OVERRIDES" exists, it prevails over the value in the argument. This is often more convenient to enforce the same behaviour for every test run in a given VIM. ${overrides} OVERRIDES default=${overrides} Returns the value of an environment variable with the given name. ${overrides} = ${rc} ${stdout} osm vnfpkg-create ${overrides} ${vnfd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-create '/robot-systest/osm-packages/ubuntu_4ifaces_vnf' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/ubuntu_4ifaces_vnf Validation OK List of charms in the descriptor: set() Adding File: ubuntu_4ifaces_vnf Package created: /robot-systest/osm-packages/ubu... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/ubuntu_4ifaces_vnf Validation OK List of charms in the descriptor: set() Adding File: ubuntu_4ifaces_vnf Package created: /robot-systest/osm-packages/ubuntu_4ifaces_vnf.tar.gz Uploading package /robot-systest/osm-packages/ubuntu_4ifaces_vnf.tar.gz 6a1696a7-5420-4d96-ba2b-765c1ce4b218 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 7 lines ${lines} = 7 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 6 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = 6a1696a7-5420-4d96-ba2b-765c1ce4b218 ${id} Upload VNF package for the testsuite. basic_18 cluster_main daily regression '%{PACKAGES_FOLDER}/${NSD_PKG}' Upload a NS package to OSM and return the id. ${rc} ${stdout} osm nspkg-create ${nsd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-create '/robot-systest/osm-packages/ubuntu_4ifaces_ns' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/ubuntu_4ifaces_ns Validation OK List of charms in the descriptor: set() Adding File: ubuntu_4ifaces_ns Package created: /robot-systest/osm-packages/ubunt... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/ubuntu_4ifaces_ns Validation OK List of charms in the descriptor: set() Adding File: ubuntu_4ifaces_ns Package created: /robot-systest/osm-packages/ubuntu_4ifaces_ns.tar.gz e67ec626-7bb4-4676-ac2c-da5ebe5563a6 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 6 lines ${lines} = 6 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 5 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = e67ec626-7bb4-4676-ac2c-da5ebe5563a6 ${id} Upload NS package for the testsuite. basic_18 cluster_main daily regression ${id} ${NSD_NAME} %{VIM_TARGET} ${NS_NAME} ${NS_CONFIG} ${PUBLICKEY} Launch the instantation of a NS and verify in a loop that the NS instance is successfully created in a given time, and return the NS instance id. ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_launch_max_wait_time} = 300.0 ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_launch_max_wait_time} = 300.0 ${ns_launch_max_wait_time} Logs the given message with the given level. 300.0 ${config_attr} '${ns_config}'!='${EMPTY}' --config '${ns_config}' ${EMPTY} Sets variable based on the given condition. ${config_attr} = --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext} ] }' ${sshkeys_attr} '${publickey}'!='${EMPTY}' --ssh_keys ${publickey} ${EMPTY} Sets variable based on the given condition. ${sshkeys_attr} = --ssh_keys /root/.ssh/id_rsa.pub ${config_file_attr} '${config_file}'!='${EMPTY}' --config_file '${config_file}' ${EMPTY} Sets variable based on the given condition. ${config_file_attr} = ${ns_id} ${ns_name} ${nsd} ${vim_name} ${config_attr} ${sshkeys_attr} ${config_file_attr} Launch the instantation of a NS, and return the NS instance id. ${rc} ${stdout} osm ns-create --ns_name ${ns_name} --nsd_name ${nsd} --vim_account ${vim_name} ${ns_extra_args} Runs the given command in the system and returns the RC and output. Running command 'osm ns-create --ns_name basic_18 --nsd_name ubuntu_4ifaces-ns --vim_account osm --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext} ] }' --ssh_keys /root/.ssh/id_rsa.pub 2>&1'. ${rc} = 0 ${stdout} = 076c8910-aa5f-40cc-98bd-4cba59ddea6e ${stdout} Logs the given message with the given level. 076c8910-aa5f-40cc-98bd-4cba59ddea6e ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 076c8910-aa5f-40cc-98bd-4cba59ddea6e ${ns_id} Logs the given message with the given level. 076c8910-aa5f-40cc-98bd-4cba59ddea6e ${ns_launch_max_wait_time} ${NS_LAUNCH_POL_TIME} Check For NS Instance To Configured ${ns_name} Runs the specified keyword and retries if it fails. ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+----------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+----------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+----------------------------------+--------+------------------------+-------------+-------------------------+ | 7516c4ff-315f-40ad-8ad5-4074c01b7f69 | basic_22-3-simple_provides-0 | ACTIVE | osm-ext=172.21.249.217 | ubuntu18.04 | simple_requires-1-1-flv | | 58817d45-2ecb-49d3-bcc0-9025d405ac0a | basic_22-3-simple_requires-0 | ACTIVE | osm-ext=172.21.249.227 | ubuntu18.04 | simple_requires-1-1-flv | | e6bb91d9-3522-4ef4-b891-e4cc62324388 | basic_22-2-simple_provides-0 | ACTIVE | osm-ext=172.21.248.253 | ubuntu18.04 | simple_requires-1-1-flv | | e01e8224-e9a1-4106-9f71-f6b805061910 | basic_22-2-simple_requires-0 | ACTIVE | osm-ext=172.21.249.211 | ubuntu18.04 | simple_requires-1-1-flv | | 72f53d7d-2cf6-48be-8f6c-95d6403fa5cf | basic_22-1-simple_provides-0 | ACTIVE | osm-ext=172.21.249.43 | ubuntu18.04 | simple_requires-1-1-flv | | b2e18480-a30a-4911-b641-6725aeec0e27 | basic_22-1-simple_requires_kdu-0 | ACTIVE | osm-ext=172.21.249.81 | ubuntu18.04 | simple_requires-1-1-flv | | 749686e6-754b-421f-8b0f-6284162fee79 | basic_22-1-simple_requires-0 | ACTIVE | osm-ext=172.21.249.59 | ubuntu18.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+----------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_18" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_18 | 076c8910-aa5f-40cc-98bd-4cba59ddea6e | 2024-02-19T02:51:38 | BUILDING | INSTANTIATING (57390a30-d9db-4398-8fcc-b518c2a3bd70) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_18 | 076c8910-aa5f-40cc-98bd-4cba59ddea6e | 2024-02-19T02:51:38 | BUILDING | INSTANTIATING (57390a30-d9db-4398-8fcc-b518c2a3bd70) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+----------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+----------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+----------------------------------+--------+------------------------+-------------+-------------------------+ | 8f5a53b8-c62d-4732-bc44-ed702d67ad5f | basic_18-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 74976d5a-b47b-4b33-88a4-3d18295d2fb8 | basic_18-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 7516c4ff-315f-40ad-8ad5-4074c01b7f69 | basic_22-3-simple_provides-0 | ACTIVE | osm-ext=172.21.249.217 | ubuntu18.04 | simple_requires-1-1-flv | | 58817d45-2ecb-49d3-bcc0-9025d405ac0a | basic_22-3-simple_requires-0 | ACTIVE | osm-ext=172.21.249.227 | ubuntu18.04 | simple_requires-1-1-flv | | e6bb91d9-3522-4ef4-b891-e4cc62324388 | basic_22-2-simple_provides-0 | ACTIVE | osm-ext=172.21.248.253 | ubuntu18.04 | simple_requires-1-1-flv | | e01e8224-e9a1-4106-9f71-f6b805061910 | basic_22-2-simple_requires-0 | ACTIVE | osm-ext=172.21.249.211 | ubuntu18.04 | simple_requires-1-1-flv | | 72f53d7d-2cf6-48be-8f6c-95d6403fa5cf | basic_22-1-simple_provides-0 | ACTIVE | osm-ext=172.21.249.43 | ubuntu18.04 | simple_requires-1-1-flv | | b2e18480-a30a-4911-b641-6725aeec0e27 | basic_22-1-simple_requires_kdu-0 | ACTIVE | osm-ext=172.21.249.81 | ubuntu18.04 | simple_requires-1-1-flv | | 749686e6-754b-421f-8b0f-6284162fee79 | basic_22-1-simple_requires-0 | ACTIVE | osm-ext=172.21.249.59 | ubuntu18.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+----------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_18" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_18 | 076c8910-aa5f-40cc-98bd-4cba59ddea6e | 2024-02-19T02:51:38 | BUILDING | INSTANTIATING (57390a30-d9db-4398-8fcc-b518c2a3bd70) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_18 | 076c8910-aa5f-40cc-98bd-4cba59ddea6e | 2024-02-19T02:51:38 | BUILDING | INSTANTIATING (57390a30-d9db-4398-8fcc-b518c2a3bd70) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+----------------------------------+--------+--------------------------------------------------------------------------------------------------------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+----------------------------------+--------+------------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+----------------------------------+--------+------------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------+ | 8f5a53b8-c62d-4732-bc44-ed702d67ad5f | basic_18-vnf2-dataVM-0 | ACTIVE | basic_18-datanet1=192.168.10.128; basic_18-datanet2=192.168.20.32; basic_18-datanet3=192.168.30.87; osm-ext=172.21.248.83 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 74976d5a-b47b-4b33-88a4-3d18295d2fb8 | basic_18-vnf1-dataVM-0 | ACTIVE | basic_18-datanet1=192.168.10.238; basic_18-datanet2=192.168.20.211; basic_18-datanet3=192.168.30.139; osm-ext=172.21.249.148 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 7516c4ff-315f-40ad-8ad5-4074c01b7f69 | basic_22-3-simple_provides-0 | ACTIVE | osm-ext=172.21.249.217 | ubuntu18.04 | simple_requires-1-1-flv | | 58817d45-2ecb-49d3-bcc0-9025d405ac0a | basic_22-3-simple_requires-0 | ACTIVE | osm-ext=172.21.249.227 | ubuntu18.04 | simple_requires-1-1-flv | | e6bb91d9-3522-4ef4-b891-e4cc62324388 | basic_22-2-simple_provides-0 | ACTIVE | osm-ext=172.21.248.253 | ubuntu18.04 | simple_requires-1-1-flv | | e01e8224-e9a1-4106-9f71-f6b805061910 | basic_22-2-simple_requires-0 | ACTIVE | osm-ext=172.21.249.211 | ubuntu18.04 | simple_requires-1-1-flv | | 72f53d7d-2cf6-48be-8f6c-95d6403fa5cf | basic_22-1-simple_provides-0 | ACTIVE | osm-ext=172.21.249.43 | ubuntu18.04 | simple_requires-1-1-flv | | b2e18480-a30a-4911-b641-6725aeec0e27 | basic_22-1-simple_requires_kdu-0 | ACTIVE | osm-ext=172.21.249.81 | ubuntu18.04 | simple_requires-1-1-flv | | 749686e6-754b-421f-8b0f-6284162fee79 | basic_22-1-simple_requires-0 | ACTIVE | osm-ext=172.21.249.59 | ubuntu18.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+----------------------------------+--------+------------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_18" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_18 | 076c8910-aa5f-40cc-98bd-4cba59ddea6e | 2024-02-19T02:51:38 | BUILDING | INSTANTIATING (57390a30-d9db-4398-8fcc-b518c2a3bd70) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_18 | 076c8910-aa5f-40cc-98bd-4cba59ddea6e | 2024-02-19T02:51:38 | BUILDING | INSTANTIATING (57390a30-d9db-4398-8fcc-b518c2a3bd70) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------+--------+----------------------------------------------------------------------------------------------------------------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------+--------+------------------------------------------------------------------------------------------------------------------------------+-------------+----------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------+--------+------------------------------------------------------------------------------------------------------------------------------+-------------+----------------------+ | 8f5a53b8-c62d-4732-bc44-ed702d67ad5f | basic_18-vnf2-dataVM-0 | ACTIVE | basic_18-datanet1=192.168.10.128; basic_18-datanet2=192.168.20.32; basic_18-datanet3=192.168.30.87; osm-ext=172.21.248.83 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 74976d5a-b47b-4b33-88a4-3d18295d2fb8 | basic_18-vnf1-dataVM-0 | ACTIVE | basic_18-datanet1=192.168.10.238; basic_18-datanet2=192.168.20.211; basic_18-datanet3=192.168.30.139; osm-ext=172.21.249.148 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------+--------+------------------------------------------------------------------------------------------------------------------------------+-------------+----------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_18" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | basic_18 | 076c8910-aa5f-40cc-98bd-4cba59ddea6e | 2024-02-19T02:51:38 | READY | IDLE (None) | N/A | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. ${ns_name} Check if a given NS instance has not failed in the instantiation (the status should not be BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------+--------+----------------------------------------------------------------------------------------------------------------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------+--------+------------------------------------------------------------------------------------------------------------------------------+-------------+----------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------+--------+------------------------------------------------------------------------------------------------------------------------------+-------------+----------------------+ | 8f5a53b8-c62d-4732-bc44-ed702d67ad5f | basic_18-vnf2-dataVM-0 | ACTIVE | basic_18-datanet1=192.168.10.128; basic_18-datanet2=192.168.20.32; basic_18-datanet3=192.168.30.87; osm-ext=172.21.248.83 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 74976d5a-b47b-4b33-88a4-3d18295d2fb8 | basic_18-vnf1-dataVM-0 | ACTIVE | basic_18-datanet1=192.168.10.238; basic_18-datanet2=192.168.20.211; basic_18-datanet3=192.168.30.139; osm-ext=172.21.249.148 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------+--------+------------------------------------------------------------------------------------------------------------------------------+-------------+----------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_18" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | basic_18 | 076c8910-aa5f-40cc-98bd-4cba59ddea6e | 2024-02-19T02:51:38 | READY | IDLE (None) | N/A | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} BROKEN Fails if ``container`` contains ``item`` one or more times. ${ns_id} ${id} = 076c8910-aa5f-40cc-98bd-4cba59ddea6e ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 076c8910-aa5f-40cc-98bd-4cba59ddea6e Instantiate NS for the testsuite. basic_18 cluster_main daily regression ${NS_ID} msg=Network service instance is not available Fails unless the given variable exists within the current scope. @{vnfr_list} ${NS_ID} Return a list with the IDs of the VNF records of a NS instance. ${ns_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm vnf-list --ns ${ns_id} | grep ${ns_id} | awk '{print $2}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm vnf-list --ns 076c8910-aa5f-40cc-98bd-4cba59ddea6e | grep 076c8910-aa5f-40cc-98bd-4cba59ddea6e | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = 6c1d0127-d818-41db-97c1-2dbfaa53a49a dd9521c4-383f-44b9-adf4-9847ac99ea2f ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> @{vdur} ${stdout} Splits the ``string`` using ``separator`` as a delimiter string. @{vdur} = [ 6c1d0127-d818-41db-97c1-2dbfaa53a49a | dd9521c4-383f-44b9-adf4-9847ac99ea2f ] @{vdur} @{vnfr_list} = [ 6c1d0127-d818-41db-97c1-2dbfaa53a49a | dd9521c4-383f-44b9-adf4-9847ac99ea2f ] ${vnfr_list} Logs the length and contents of the ``list`` using given ``level``. List length is 2 and it contains following items: 0: 6c1d0127-d818-41db-97c1-2dbfaa53a49a 1: dd9521c4-383f-44b9-adf4-9847ac99ea2f ${VNF_ID1} ${vnfr_list}[0] Makes a variable available everywhere within the scope of the current suite. ${VNF_ID1} = 6c1d0127-d818-41db-97c1-2dbfaa53a49a ${VNF_ID2} ${vnfr_list}[1] Makes a variable available everywhere within the scope of the current suite. ${VNF_ID2} = dd9521c4-383f-44b9-adf4-9847ac99ea2f ${ip} ${NS_ID} ${VNF_MEMBER_INDEX_1} Get the mgmt IP address of a member VNF in a NS instance, and return it. ${ns_id} Verifies that the given item is not empty. Length is 36 ${vnf_member_index} Verifies that the given item is not empty. Length is 4 ${rc} ${stdout} osm vnf-list --filter member-vnf-index-ref=${vnf_member_index} | grep ${ns_id} | awk '{print $14}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm vnf-list --filter member-vnf-index-ref=vnf1 | grep 076c8910-aa5f-40cc-98bd-4cba59ddea6e | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.249.148 ${stdout} Logs the given message with the given level. 172.21.249.148 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ip} = 172.21.249.148 ${VNF1_IPMGMT} ${ip} Makes a variable available everywhere within the scope of the current suite. ${VNF1_IPMGMT} = 172.21.249.148 ${VNF1_IPMGMT} Logs the given message with the given level. 172.21.249.148 ${ip} ${NS_ID} ${VNF_MEMBER_INDEX_2} Get the mgmt IP address of a member VNF in a NS instance, and return it. ${ns_id} Verifies that the given item is not empty. Length is 36 ${vnf_member_index} Verifies that the given item is not empty. Length is 4 ${rc} ${stdout} osm vnf-list --filter member-vnf-index-ref=${vnf_member_index} | grep ${ns_id} | awk '{print $14}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm vnf-list --filter member-vnf-index-ref=vnf2 | grep 076c8910-aa5f-40cc-98bd-4cba59ddea6e | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.248.83 ${stdout} Logs the given message with the given level. 172.21.248.83 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ip} = 172.21.248.83 ${VNF2_IPMGMT} ${ip} Makes a variable available everywhere within the scope of the current suite. ${VNF2_IPMGMT} = 172.21.248.83 ${VNF2_IPMGMT} Logs the given message with the given level. 172.21.248.83 Get information from the two VNF of the Ns, specifically the VNF instance id and the mgmt IP address. basic_18 cluster_main daily regression ${VNF_ID1} msg=VNF1 is not available Fails unless the given variable exists within the current scope. ${rc} ${stdout} osm vnf-show ${VNF_ID1} --literal | yq '.vdur[0].interfaces[] | select(.name == "${IFACE1_NAME}")' | yq -r '."ip-address"' Runs the given command in the system and returns the RC and output. Running command 'osm vnf-show 6c1d0127-d818-41db-97c1-2dbfaa53a49a --literal | yq '.vdur[0].interfaces[] | select(.name == "eth1")' | yq -r '."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 192.168.10.238 ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${DATANET1_PREFIX} msg=${stdout} doesn't match subnet's regexp ${DATANET1_PREFIX} Fails if ``string`` does not match ``pattern`` as a regular expression. ${VNF1_IP1} ${stdout} Makes a variable available everywhere within the scope of the current suite. ${VNF1_IP1} = 192.168.10.238 ${rc} ${stdout} osm vnf-show ${VNF_ID1} --literal | yq '.vdur[0].interfaces[] | select(.name == "${IFACE2_NAME}")' | yq -r '."ip-address"' Runs the given command in the system and returns the RC and output. Running command 'osm vnf-show 6c1d0127-d818-41db-97c1-2dbfaa53a49a --literal | yq '.vdur[0].interfaces[] | select(.name == "eth2")' | yq -r '."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 192.168.20.211 ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${DATANET2_PREFIX} msg=${stdout} doesn't match subnet's regexp ${DATANET2_PREFIX} Fails if ``string`` does not match ``pattern`` as a regular expression. ${VNF1_IP2} ${stdout} Makes a variable available everywhere within the scope of the current suite. ${VNF1_IP2} = 192.168.20.211 ${rc} ${stdout} osm vnf-show ${VNF_ID1} --literal | yq '.vdur[0].interfaces[] | select(.name == "${IFACE3_NAME}")' | yq -r '."ip-address"' Runs the given command in the system and returns the RC and output. Running command 'osm vnf-show 6c1d0127-d818-41db-97c1-2dbfaa53a49a --literal | yq '.vdur[0].interfaces[] | select(.name == "eth3")' | yq -r '."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 192.168.30.139 ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${DATANET3_PREFIX} msg=${stdout} doesn't match subnet's regexp ${DATANET3_PREFIX} Fails if ``string`` does not match ``pattern`` as a regular expression. ${VNF1_IP3} ${stdout} Makes a variable available everywhere within the scope of the current suite. ${VNF1_IP3} = 192.168.30.139 Check whether IP addresses of the first VNF in the VNF record meet the expected CIDR. basic_18 cluster_main daily regression ${VNF_ID1} msg=VNF2 is not available Fails unless the given variable exists within the current scope. ${rc} ${stdout} osm vnf-show ${VNF_ID2} --literal | yq '.vdur[0].interfaces[] | select(.name == "${IFACE1_NAME}")' | yq -r '."ip-address"' Runs the given command in the system and returns the RC and output. Running command 'osm vnf-show dd9521c4-383f-44b9-adf4-9847ac99ea2f --literal | yq '.vdur[0].interfaces[] | select(.name == "eth1")' | yq -r '."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 192.168.10.128 ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${DATANET1_PREFIX} msg=${stdout} doesn't match subnet's regexp ${DATANET1_PREFIX} Fails if ``string`` does not match ``pattern`` as a regular expression. ${VNF2_IP1} ${stdout} Makes a variable available everywhere within the scope of the current suite. ${VNF2_IP1} = 192.168.10.128 ${rc} ${stdout} osm vnf-show ${VNF_ID2} --literal | yq '.vdur[0].interfaces[] | select(.name == "${IFACE2_NAME}")' | yq -r '."ip-address"' Runs the given command in the system and returns the RC and output. Running command 'osm vnf-show dd9521c4-383f-44b9-adf4-9847ac99ea2f --literal | yq '.vdur[0].interfaces[] | select(.name == "eth2")' | yq -r '."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 192.168.20.32 ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${DATANET2_PREFIX} msg=${stdout} doesn't match subnet's regexp ${DATANET2_PREFIX} Fails if ``string`` does not match ``pattern`` as a regular expression. ${VNF2_IP2} ${stdout} Makes a variable available everywhere within the scope of the current suite. ${VNF2_IP2} = 192.168.20.32 ${rc} ${stdout} osm vnf-show ${VNF_ID2} --literal | yq '.vdur[0].interfaces[] | select(.name == "${IFACE3_NAME}")' | yq -r '."ip-address"' Runs the given command in the system and returns the RC and output. Running command 'osm vnf-show dd9521c4-383f-44b9-adf4-9847ac99ea2f --literal | yq '.vdur[0].interfaces[] | select(.name == "eth3")' | yq -r '."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 192.168.30.87 ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${DATANET3_PREFIX} msg=${stdout} doesn't match subnet's regexp ${DATANET3_PREFIX} Fails if ``string`` does not match ``pattern`` as a regular expression. ${VNF2_IP3} ${stdout} Makes a variable available everywhere within the scope of the current suite. ${VNF2_IP3} = 192.168.30.87 Check whether IP addresses of the second VNF in the VNF record meet the expected CIDR. basic_18 cluster_main daily regression ${VNF1_IPMGMT} msg=IP address of the data VNF '${VNF_MEMBER_INDEX_1}' is not available Fails unless the given variable exists within the current scope. ${PRIVATEKEY} msg=SSH private key not available Fails unless the given variable exists within the current scope. 10 seconds Wait for SSH daemon to be up Pauses the test executed for the given time. Slept 10 seconds Wait for SSH daemon to be up ${stdout} ${VNF1_IPMGMT} ${USERNAME} ${EMPTY} ${PRIVATEKEY} ip --brief addr show up | grep -v "^lo" | awk '{print $3}' Execute via SSH a command in a remote host and, if the command succeeds, return the output. ${host} Opens a new SSH connection to the given ``host`` and ``port``. ${username} ${password} Logs into the SSH server with the given ``username`` and ``password``. ${username} ${privatekey} Logs into the SSH server using key-based authentication. Logging into '172.21.249.148:22' as 'ubuntu'. Read output: Welcome to Ubuntu 20.04.4 LTS (GNU/Linux 5.4.0-107-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Mon Feb 19 02:53:48 UTC 2024 System load: 0.66 Users logged in: 0 Usage of /: 14.0% of 9.52GB IPv4 address for ens3: 172.21.249.148 Memory usage: 11% IPv4 address for ens4: 192.168.10.238 Swap usage: 0% IPv4 address for ens5: 192.168.20.211 Processes: 109 IPv4 address for ens6: 192.168.30.139 1 update can be applied immediately. To see these additional updates run: apt list --upgradable The list of available updates is more than a week old. To check for new updates run: sudo apt update The programs included with the Ubuntu system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. ubuntu@basic-18-vnf1-datavm-0:~$ ${stdout} ${rc} ${command} return_rc=True return_stdout=True Executes ``command`` on the remote machine and returns its outputs. Executing command 'ip --brief addr show up | grep -v "^lo" | awk '{print $3}''. Command exited with return code 0. ${stdout} = 172.21.249.148/22 192.168.10.238/24 192.168.20.211/24 192.168.30.139/24 ${rc} = 0 ${rc} Logs the given message with the given level. 0 ${stdout} Logs the given message with the given level. 172.21.249.148/22 192.168.10.238/24 192.168.20.211/24 192.168.30.139/24 Closes all open connections. ${rc} 0 Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${stdout} = 172.21.249.148/22 192.168.10.238/24 192.168.20.211/24 192.168.30.139/24 ${stdout} Logs the given message with the given level. 172.21.249.148/22 192.168.10.238/24 192.168.20.211/24 192.168.30.139/24 @{ip} ${stdout} Splits the ``string`` using ``separator`` as a delimiter string. @{ip} = [ 172.21.249.148/22 | 192.168.10.238/24 | 192.168.20.211/24 | 192.168.30.139/24 ] ${ip}[1] ${DATANET1_PREFIX} msg=${ip}[1] doesn't match subnet's regexp ${DATANET1_PREFIX} Fails if ``string`` does not match ``pattern`` as a regular expression. ${ip}[2] ${DATANET2_PREFIX} msg=${ip}[2] doesn't match subnet's regexp ${DATANET2_PREFIX} Fails if ``string`` does not match ``pattern`` as a regular expression. ${ip}[3] ${DATANET3_PREFIX} msg=${ip}[3] doesn't match subnet's regexp ${DATANET3_PREFIX} Fails if ``string`` does not match ``pattern`` as a regular expression. Check whether IP addresses of the first VNF configured inside the VM meet the expected CIDR. basic_18 cluster_main daily regression ${VNF2_IPMGMT} msg=IP address of the data VNF '${VNF_MEMBER_INDEX_2}' is not available Fails unless the given variable exists within the current scope. ${PRIVATEKEY} msg=SSH private key not available Fails unless the given variable exists within the current scope. ${stdout} ${VNF2_IPMGMT} ${USERNAME} ${EMPTY} ${PRIVATEKEY} ip --brief addr show up | grep -v "^lo" | awk '{print $3}' Execute via SSH a command in a remote host and, if the command succeeds, return the output. ${host} Opens a new SSH connection to the given ``host`` and ``port``. ${username} ${password} Logs into the SSH server with the given ``username`` and ``password``. ${username} ${privatekey} Logs into the SSH server using key-based authentication. Logging into '172.21.248.83:22' as 'ubuntu'. Read output: Welcome to Ubuntu 20.04.4 LTS (GNU/Linux 5.4.0-107-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Mon Feb 19 02:53:50 UTC 2024 System load: 0.25 Users logged in: 0 Usage of /: 14.0% of 9.52GB IPv4 address for ens3: 172.21.248.83 Memory usage: 10% IPv4 address for ens4: 192.168.10.128 Swap usage: 0% IPv4 address for ens5: 192.168.20.32 Processes: 109 IPv4 address for ens6: 192.168.30.87 1 update can be applied immediately. To see these additional updates run: apt list --upgradable The list of available updates is more than a week old. To check for new updates run: sudo apt update The programs included with the Ubuntu system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. ubuntu@basic-18-vnf2-datavm-0:~$ ${stdout} ${rc} ${command} return_rc=True return_stdout=True Executes ``command`` on the remote machine and returns its outputs. Executing command 'ip --brief addr show up | grep -v "^lo" | awk '{print $3}''. Command exited with return code 0. ${stdout} = 172.21.248.83/22 192.168.10.128/24 192.168.20.32/24 192.168.30.87/24 ${rc} = 0 ${rc} Logs the given message with the given level. 0 ${stdout} Logs the given message with the given level. 172.21.248.83/22 192.168.10.128/24 192.168.20.32/24 192.168.30.87/24 Closes all open connections. ${rc} 0 Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${stdout} = 172.21.248.83/22 192.168.10.128/24 192.168.20.32/24 192.168.30.87/24 ${stdout} Logs the given message with the given level. 172.21.248.83/22 192.168.10.128/24 192.168.20.32/24 192.168.30.87/24 @{ip} ${stdout} Splits the ``string`` using ``separator`` as a delimiter string. @{ip} = [ 172.21.248.83/22 | 192.168.10.128/24 | 192.168.20.32/24 | 192.168.30.87/24 ] ${ip}[1] ${DATANET1_PREFIX} msg=${ip}[1] doesn't match subnet's regexp ${DATANET1_PREFIX} Fails if ``string`` does not match ``pattern`` as a regular expression. ${ip}[2] ${DATANET2_PREFIX} msg=${ip}[2] doesn't match subnet's regexp ${DATANET2_PREFIX} Fails if ``string`` does not match ``pattern`` as a regular expression. ${ip}[3] ${DATANET3_PREFIX} msg=${ip}[3] doesn't match subnet's regexp ${DATANET3_PREFIX} Fails if ``string`` does not match ``pattern`` as a regular expression. Check whether IP addresses of the second VNF configured inside the VM meet the expected CIDR. basic_18 cluster_main daily regression ${VNF1_IPMGMT} msg=IP address of the data VNF '${VNF_MEMBER_INDEX_1}' is not available Fails unless the given variable exists within the current scope. ${PRIVATEKEY} msg=SSH private key not available Fails unless the given variable exists within the current scope. ${stdout} ${VNF1_IPMGMT} ${USERNAME} ${EMPTY} ${PRIVATEKEY} ip addr ; ping -c 5 ${VNF2_IPMGMT} Execute via SSH a command in a remote host and, if the command succeeds, return the output. ${host} Opens a new SSH connection to the given ``host`` and ``port``. ${username} ${password} Logs into the SSH server with the given ``username`` and ``password``. ${username} ${privatekey} Logs into the SSH server using key-based authentication. Logging into '172.21.249.148:22' as 'ubuntu'. Read output: Welcome to Ubuntu 20.04.4 LTS (GNU/Linux 5.4.0-107-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Mon Feb 19 02:53:53 UTC 2024 System load: 0.6 Users logged in: 0 Usage of /: 14.2% of 9.52GB IPv4 address for ens3: 172.21.249.148 Memory usage: 11% IPv4 address for ens4: 192.168.10.238 Swap usage: 0% IPv4 address for ens5: 192.168.20.211 Processes: 110 IPv4 address for ens6: 192.168.30.139 1 update can be applied immediately. To see these additional updates run: apt list --upgradable The list of available updates is more than a week old. To check for new updates run: sudo apt update New release '22.04.3 LTS' available. Run 'do-release-upgrade' to upgrade to it. Last login: Mon Feb 19 02:53:49 2024 from 172.21.249.4 To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. ubuntu@basic-18-vnf1-datavm-0:~$ ${stdout} ${rc} ${command} return_rc=True return_stdout=True Executes ``command`` on the remote machine and returns its outputs. Executing command 'ip addr ; ping -c 5 172.21.248.83'. Command exited with return code 0. ${stdout} = 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lf... ${rc} = 0 ${rc} Logs the given message with the given level. 0 ${stdout} Logs the given message with the given level. 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: ens3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 link/ether fa:16:3e:fc:91:ae brd ff:ff:ff:ff:ff:ff inet 172.21.249.148/22 brd 172.21.251.255 scope global dynamic ens3 valid_lft 86317sec preferred_lft 86317sec inet6 fe80::f816:3eff:fefc:91ae/64 scope link valid_lft forever preferred_lft forever 3: ens4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc fq_codel state UP group default qlen 1000 link/ether fa:16:3e:ef:e6:a9 brd ff:ff:ff:ff:ff:ff inet 192.168.10.238/24 brd 192.168.10.255 scope global ens4 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:feef:e6a9/64 scope link valid_lft forever preferred_lft forever 4: ens5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc fq_codel state UP group default qlen 1000 link/ether fa:16:3e:e5:ac:78 brd ff:ff:ff:ff:ff:ff inet 192.168.20.211/24 brd 192.168.20.255 scope global ens5 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fee5:ac78/64 scope link valid_lft forever preferred_lft forever 5: ens6: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc fq_codel state UP group default qlen 1000 link/ether fa:16:3e:33:e2:ea brd ff:ff:ff:ff:ff:ff inet 192.168.30.139/24 brd 192.168.30.255 scope global ens6 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe33:e2ea/64 scope link valid_lft forever preferred_lft forever PING 172.21.248.83 (172.21.248.83) 56(84) bytes of data. 64 bytes from 172.21.248.83: icmp_seq=1 ttl=64 time=2.75 ms 64 bytes from 172.21.248.83: icmp_seq=2 ttl=64 time=0.681 ms 64 bytes from 172.21.248.83: icmp_seq=3 ttl=64 time=0.713 ms 64 bytes from 172.21.248.83: icmp_seq=4 ttl=64 time=0.884 ms 64 bytes from 172.21.248.83: icmp_seq=5 ttl=64 time=0.669 ms --- 172.21.248.83 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4033ms rtt min/avg/max/mdev = 0.669/1.138/2.746/0.807 ms Closes all open connections. ${rc} 0 Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${stdout} = 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lf... ${stdout} Logs the given message with the given level. 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: ens3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 link/ether fa:16:3e:fc:91:ae brd ff:ff:ff:ff:ff:ff inet 172.21.249.148/22 brd 172.21.251.255 scope global dynamic ens3 valid_lft 86317sec preferred_lft 86317sec inet6 fe80::f816:3eff:fefc:91ae/64 scope link valid_lft forever preferred_lft forever 3: ens4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc fq_codel state UP group default qlen 1000 link/ether fa:16:3e:ef:e6:a9 brd ff:ff:ff:ff:ff:ff inet 192.168.10.238/24 brd 192.168.10.255 scope global ens4 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:feef:e6a9/64 scope link valid_lft forever preferred_lft forever 4: ens5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc fq_codel state UP group default qlen 1000 link/ether fa:16:3e:e5:ac:78 brd ff:ff:ff:ff:ff:ff inet 192.168.20.211/24 brd 192.168.20.255 scope global ens5 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fee5:ac78/64 scope link valid_lft forever preferred_lft forever 5: ens6: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc fq_codel state UP group default qlen 1000 link/ether fa:16:3e:33:e2:ea brd ff:ff:ff:ff:ff:ff inet 192.168.30.139/24 brd 192.168.30.255 scope global ens6 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe33:e2ea/64 scope link valid_lft forever preferred_lft forever PING 172.21.248.83 (172.21.248.83) 56(84) bytes of data. 64 bytes from 172.21.248.83: icmp_seq=1 ttl=64 time=2.75 ms 64 bytes from 172.21.248.83: icmp_seq=2 ttl=64 time=0.681 ms 64 bytes from 172.21.248.83: icmp_seq=3 ttl=64 time=0.713 ms 64 bytes from 172.21.248.83: icmp_seq=4 ttl=64 time=0.884 ms 64 bytes from 172.21.248.83: icmp_seq=5 ttl=64 time=0.669 ms --- 172.21.248.83 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4033ms rtt min/avg/max/mdev = 0.669/1.138/2.746/0.807 ms ${stdout} ${VNF1_IPMGMT} ${USERNAME} ${EMPTY} ${PRIVATEKEY} ping -c 5 ${VNF2_IP1} Execute via SSH a command in a remote host and, if the command succeeds, return the output. ${host} Opens a new SSH connection to the given ``host`` and ``port``. ${username} ${password} Logs into the SSH server with the given ``username`` and ``password``. ${username} ${privatekey} Logs into the SSH server using key-based authentication. Logging into '172.21.249.148:22' as 'ubuntu'. Read output: Welcome to Ubuntu 20.04.4 LTS (GNU/Linux 5.4.0-107-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Mon Feb 19 02:53:58 UTC 2024 System load: 0.56 Users logged in: 0 Usage of /: 14.2% of 9.52GB IPv4 address for ens3: 172.21.249.148 Memory usage: 11% IPv4 address for ens4: 192.168.10.238 Swap usage: 0% IPv4 address for ens5: 192.168.20.211 Processes: 110 IPv4 address for ens6: 192.168.30.139 1 update can be applied immediately. To see these additional updates run: apt list --upgradable The list of available updates is more than a week old. To check for new updates run: sudo apt update New release '22.04.3 LTS' available. Run 'do-release-upgrade' to upgrade to it. Last login: Mon Feb 19 02:53:53 2024 from 172.21.249.4 To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. ubuntu@basic-18-vnf1-datavm-0:~$ ${stdout} ${rc} ${command} return_rc=True return_stdout=True Executes ``command`` on the remote machine and returns its outputs. Executing command 'ping -c 5 192.168.10.128'. Command exited with return code 0. ${stdout} = PING 192.168.10.128 (192.168.10.128) 56(84) bytes of data. 64 bytes from 192.168.10.128: icmp_seq=1 ttl=64 time=2.41 ms 64 bytes from 192.168.10.128: icmp_seq=2 ttl=64 time=0.758 ms 64 bytes from 192.... ${rc} = 0 ${rc} Logs the given message with the given level. 0 ${stdout} Logs the given message with the given level. PING 192.168.10.128 (192.168.10.128) 56(84) bytes of data. 64 bytes from 192.168.10.128: icmp_seq=1 ttl=64 time=2.41 ms 64 bytes from 192.168.10.128: icmp_seq=2 ttl=64 time=0.758 ms 64 bytes from 192.168.10.128: icmp_seq=3 ttl=64 time=0.748 ms 64 bytes from 192.168.10.128: icmp_seq=4 ttl=64 time=0.740 ms 64 bytes from 192.168.10.128: icmp_seq=5 ttl=64 time=0.775 ms --- 192.168.10.128 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4035ms rtt min/avg/max/mdev = 0.740/1.086/2.413/0.663 ms Closes all open connections. ${rc} 0 Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${stdout} = PING 192.168.10.128 (192.168.10.128) 56(84) bytes of data. 64 bytes from 192.168.10.128: icmp_seq=1 ttl=64 time=2.41 ms 64 bytes from 192.168.10.128: icmp_seq=2 ttl=64 time=0.758 ms 64 bytes from 192.... ${stdout} Logs the given message with the given level. PING 192.168.10.128 (192.168.10.128) 56(84) bytes of data. 64 bytes from 192.168.10.128: icmp_seq=1 ttl=64 time=2.41 ms 64 bytes from 192.168.10.128: icmp_seq=2 ttl=64 time=0.758 ms 64 bytes from 192.168.10.128: icmp_seq=3 ttl=64 time=0.748 ms 64 bytes from 192.168.10.128: icmp_seq=4 ttl=64 time=0.740 ms 64 bytes from 192.168.10.128: icmp_seq=5 ttl=64 time=0.775 ms --- 192.168.10.128 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4035ms rtt min/avg/max/mdev = 0.740/1.086/2.413/0.663 ms ${stdout} ${VNF1_IPMGMT} ${USERNAME} ${EMPTY} ${PRIVATEKEY} ping -c 5 ${VNF2_IP2} Execute via SSH a command in a remote host and, if the command succeeds, return the output. ${host} Opens a new SSH connection to the given ``host`` and ``port``. ${username} ${password} Logs into the SSH server with the given ``username`` and ``password``. ${username} ${privatekey} Logs into the SSH server using key-based authentication. Logging into '172.21.249.148:22' as 'ubuntu'. Read output: Welcome to Ubuntu 20.04.4 LTS (GNU/Linux 5.4.0-107-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Mon Feb 19 02:54:04 UTC 2024 System load: 0.51 Users logged in: 0 Usage of /: 14.2% of 9.52GB IPv4 address for ens3: 172.21.249.148 Memory usage: 11% IPv4 address for ens4: 192.168.10.238 Swap usage: 0% IPv4 address for ens5: 192.168.20.211 Processes: 110 IPv4 address for ens6: 192.168.30.139 1 update can be applied immediately. To see these additional updates run: apt list --upgradable The list of available updates is more than a week old. To check for new updates run: sudo apt update New release '22.04.3 LTS' available. Run 'do-release-upgrade' to upgrade to it. Last login: Mon Feb 19 02:53:59 2024 from 172.21.249.4 To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. ubuntu@basic-18-vnf1-datavm-0:~$ ${stdout} ${rc} ${command} return_rc=True return_stdout=True Executes ``command`` on the remote machine and returns its outputs. Executing command 'ping -c 5 192.168.20.32'. Command exited with return code 0. ${stdout} = PING 192.168.20.32 (192.168.20.32) 56(84) bytes of data. 64 bytes from 192.168.20.32: icmp_seq=1 ttl=64 time=2.35 ms 64 bytes from 192.168.20.32: icmp_seq=2 ttl=64 time=0.820 ms 64 bytes from 192.168.... ${rc} = 0 ${rc} Logs the given message with the given level. 0 ${stdout} Logs the given message with the given level. PING 192.168.20.32 (192.168.20.32) 56(84) bytes of data. 64 bytes from 192.168.20.32: icmp_seq=1 ttl=64 time=2.35 ms 64 bytes from 192.168.20.32: icmp_seq=2 ttl=64 time=0.820 ms 64 bytes from 192.168.20.32: icmp_seq=3 ttl=64 time=0.798 ms 64 bytes from 192.168.20.32: icmp_seq=4 ttl=64 time=0.983 ms 64 bytes from 192.168.20.32: icmp_seq=5 ttl=64 time=0.788 ms --- 192.168.20.32 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4005ms rtt min/avg/max/mdev = 0.788/1.147/2.346/0.603 ms Closes all open connections. ${rc} 0 Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${stdout} = PING 192.168.20.32 (192.168.20.32) 56(84) bytes of data. 64 bytes from 192.168.20.32: icmp_seq=1 ttl=64 time=2.35 ms 64 bytes from 192.168.20.32: icmp_seq=2 ttl=64 time=0.820 ms 64 bytes from 192.168.... ${stdout} Logs the given message with the given level. PING 192.168.20.32 (192.168.20.32) 56(84) bytes of data. 64 bytes from 192.168.20.32: icmp_seq=1 ttl=64 time=2.35 ms 64 bytes from 192.168.20.32: icmp_seq=2 ttl=64 time=0.820 ms 64 bytes from 192.168.20.32: icmp_seq=3 ttl=64 time=0.798 ms 64 bytes from 192.168.20.32: icmp_seq=4 ttl=64 time=0.983 ms 64 bytes from 192.168.20.32: icmp_seq=5 ttl=64 time=0.788 ms --- 192.168.20.32 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4005ms rtt min/avg/max/mdev = 0.788/1.147/2.346/0.603 ms ${stdout} ${VNF1_IPMGMT} ${USERNAME} ${EMPTY} ${PRIVATEKEY} ping -c 5 ${VNF2_IP3} Execute via SSH a command in a remote host and, if the command succeeds, return the output. ${host} Opens a new SSH connection to the given ``host`` and ``port``. ${username} ${password} Logs into the SSH server with the given ``username`` and ``password``. ${username} ${privatekey} Logs into the SSH server using key-based authentication. Logging into '172.21.249.148:22' as 'ubuntu'. Read output: Welcome to Ubuntu 20.04.4 LTS (GNU/Linux 5.4.0-107-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Mon Feb 19 02:54:10 UTC 2024 System load: 0.43 Users logged in: 0 Usage of /: 14.2% of 9.52GB IPv4 address for ens3: 172.21.249.148 Memory usage: 11% IPv4 address for ens4: 192.168.10.238 Swap usage: 0% IPv4 address for ens5: 192.168.20.211 Processes: 110 IPv4 address for ens6: 192.168.30.139 1 update can be applied immediately. To see these additional updates run: apt list --upgradable The list of available updates is more than a week old. To check for new updates run: sudo apt update New release '22.04.3 LTS' available. Run 'do-release-upgrade' to upgrade to it. Last login: Mon Feb 19 02:54:05 2024 from 172.21.249.4 To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. ubuntu@basic-18-vnf1-datavm-0:~$ ${stdout} ${rc} ${command} return_rc=True return_stdout=True Executes ``command`` on the remote machine and returns its outputs. Executing command 'ping -c 5 192.168.30.87'. Command exited with return code 0. ${stdout} = PING 192.168.30.87 (192.168.30.87) 56(84) bytes of data. 64 bytes from 192.168.30.87: icmp_seq=1 ttl=64 time=2.68 ms 64 bytes from 192.168.30.87: icmp_seq=2 ttl=64 time=0.813 ms 64 bytes from 192.168.... ${rc} = 0 ${rc} Logs the given message with the given level. 0 ${stdout} Logs the given message with the given level. PING 192.168.30.87 (192.168.30.87) 56(84) bytes of data. 64 bytes from 192.168.30.87: icmp_seq=1 ttl=64 time=2.68 ms 64 bytes from 192.168.30.87: icmp_seq=2 ttl=64 time=0.813 ms 64 bytes from 192.168.30.87: icmp_seq=3 ttl=64 time=0.812 ms 64 bytes from 192.168.30.87: icmp_seq=4 ttl=64 time=0.656 ms 64 bytes from 192.168.30.87: icmp_seq=5 ttl=64 time=0.927 ms --- 192.168.30.87 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4009ms rtt min/avg/max/mdev = 0.656/1.177/2.679/0.755 ms Closes all open connections. ${rc} 0 Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${stdout} = PING 192.168.30.87 (192.168.30.87) 56(84) bytes of data. 64 bytes from 192.168.30.87: icmp_seq=1 ttl=64 time=2.68 ms 64 bytes from 192.168.30.87: icmp_seq=2 ttl=64 time=0.813 ms 64 bytes from 192.168.... ${stdout} Logs the given message with the given level. PING 192.168.30.87 (192.168.30.87) 56(84) bytes of data. 64 bytes from 192.168.30.87: icmp_seq=1 ttl=64 time=2.68 ms 64 bytes from 192.168.30.87: icmp_seq=2 ttl=64 time=0.813 ms 64 bytes from 192.168.30.87: icmp_seq=3 ttl=64 time=0.812 ms 64 bytes from 192.168.30.87: icmp_seq=4 ttl=64 time=0.656 ms 64 bytes from 192.168.30.87: icmp_seq=5 ttl=64 time=0.927 ms --- 192.168.30.87 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4009ms rtt min/avg/max/mdev = 0.656/1.177/2.679/0.755 ms Check connectivity from the first VNF to the second VNF using ping. basic_18 cluster_main daily regression ${VNF1_IPMGMT} msg=IP address of the data VNF '${VNF_MEMBER_INDEX_2}' is not available Fails unless the given variable exists within the current scope. ${PRIVATEKEY} msg=SSH private key not available Fails unless the given variable exists within the current scope. ${stdout} ${VNF2_IPMGMT} ${USERNAME} ${EMPTY} ${PRIVATEKEY} ip addr ; ping -c 5 ${VNF1_IPMGMT} Execute via SSH a command in a remote host and, if the command succeeds, return the output. ${host} Opens a new SSH connection to the given ``host`` and ``port``. ${username} ${password} Logs into the SSH server with the given ``username`` and ``password``. ${username} ${privatekey} Logs into the SSH server using key-based authentication. Logging into '172.21.248.83:22' as 'ubuntu'. Read output: Welcome to Ubuntu 20.04.4 LTS (GNU/Linux 5.4.0-107-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Mon Feb 19 02:54:16 UTC 2024 System load: 0.16 Users logged in: 0 Usage of /: 14.2% of 9.52GB IPv4 address for ens3: 172.21.248.83 Memory usage: 10% IPv4 address for ens4: 192.168.10.128 Swap usage: 0% IPv4 address for ens5: 192.168.20.32 Processes: 105 IPv4 address for ens6: 192.168.30.87 1 update can be applied immediately. To see these additional updates run: apt list --upgradable The list of available updates is more than a week old. To check for new updates run: sudo apt update New release '22.04.3 LTS' available. Run 'do-release-upgrade' to upgrade to it. Last login: Mon Feb 19 02:53:51 2024 from 172.21.249.4 To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. ubuntu@basic-18-vnf2-datavm-0:~$ ${stdout} ${rc} ${command} return_rc=True return_stdout=True Executes ``command`` on the remote machine and returns its outputs. Executing command 'ip addr ; ping -c 5 172.21.249.148'. Command exited with return code 0. ${stdout} = 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lf... ${rc} = 0 ${rc} Logs the given message with the given level. 0 ${stdout} Logs the given message with the given level. 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: ens3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 link/ether fa:16:3e:db:7f:79 brd ff:ff:ff:ff:ff:ff inet 172.21.248.83/22 brd 172.21.251.255 scope global dynamic ens3 valid_lft 86304sec preferred_lft 86304sec inet6 fe80::f816:3eff:fedb:7f79/64 scope link valid_lft forever preferred_lft forever 3: ens4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc fq_codel state UP group default qlen 1000 link/ether fa:16:3e:a4:2f:78 brd ff:ff:ff:ff:ff:ff inet 192.168.10.128/24 brd 192.168.10.255 scope global ens4 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fea4:2f78/64 scope link valid_lft forever preferred_lft forever 4: ens5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc fq_codel state UP group default qlen 1000 link/ether fa:16:3e:10:71:71 brd ff:ff:ff:ff:ff:ff inet 192.168.20.32/24 brd 192.168.20.255 scope global ens5 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe10:7171/64 scope link valid_lft forever preferred_lft forever 5: ens6: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc fq_codel state UP group default qlen 1000 link/ether fa:16:3e:f9:b1:8a brd ff:ff:ff:ff:ff:ff inet 192.168.30.87/24 brd 192.168.30.255 scope global ens6 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fef9:b18a/64 scope link valid_lft forever preferred_lft forever PING 172.21.249.148 (172.21.249.148) 56(84) bytes of data. 64 bytes from 172.21.249.148: icmp_seq=1 ttl=64 time=1.45 ms 64 bytes from 172.21.249.148: icmp_seq=2 ttl=64 time=0.726 ms 64 bytes from 172.21.249.148: icmp_seq=3 ttl=64 time=0.609 ms 64 bytes from 172.21.249.148: icmp_seq=4 ttl=64 time=0.814 ms 64 bytes from 172.21.249.148: icmp_seq=5 ttl=64 time=0.606 ms --- 172.21.249.148 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4037ms rtt min/avg/max/mdev = 0.606/0.840/1.448/0.313 ms Closes all open connections. ${rc} 0 Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${stdout} = 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lf... ${stdout} Logs the given message with the given level. 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: ens3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 link/ether fa:16:3e:db:7f:79 brd ff:ff:ff:ff:ff:ff inet 172.21.248.83/22 brd 172.21.251.255 scope global dynamic ens3 valid_lft 86304sec preferred_lft 86304sec inet6 fe80::f816:3eff:fedb:7f79/64 scope link valid_lft forever preferred_lft forever 3: ens4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc fq_codel state UP group default qlen 1000 link/ether fa:16:3e:a4:2f:78 brd ff:ff:ff:ff:ff:ff inet 192.168.10.128/24 brd 192.168.10.255 scope global ens4 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fea4:2f78/64 scope link valid_lft forever preferred_lft forever 4: ens5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc fq_codel state UP group default qlen 1000 link/ether fa:16:3e:10:71:71 brd ff:ff:ff:ff:ff:ff inet 192.168.20.32/24 brd 192.168.20.255 scope global ens5 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe10:7171/64 scope link valid_lft forever preferred_lft forever 5: ens6: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc fq_codel state UP group default qlen 1000 link/ether fa:16:3e:f9:b1:8a brd ff:ff:ff:ff:ff:ff inet 192.168.30.87/24 brd 192.168.30.255 scope global ens6 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fef9:b18a/64 scope link valid_lft forever preferred_lft forever PING 172.21.249.148 (172.21.249.148) 56(84) bytes of data. 64 bytes from 172.21.249.148: icmp_seq=1 ttl=64 time=1.45 ms 64 bytes from 172.21.249.148: icmp_seq=2 ttl=64 time=0.726 ms 64 bytes from 172.21.249.148: icmp_seq=3 ttl=64 time=0.609 ms 64 bytes from 172.21.249.148: icmp_seq=4 ttl=64 time=0.814 ms 64 bytes from 172.21.249.148: icmp_seq=5 ttl=64 time=0.606 ms --- 172.21.249.148 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4037ms rtt min/avg/max/mdev = 0.606/0.840/1.448/0.313 ms ${stdout} ${VNF2_IPMGMT} ${USERNAME} ${EMPTY} ${PRIVATEKEY} ip addr ; ping -c 5 ${VNF1_IP1} Execute via SSH a command in a remote host and, if the command succeeds, return the output. ${host} Opens a new SSH connection to the given ``host`` and ``port``. ${username} ${password} Logs into the SSH server with the given ``username`` and ``password``. ${username} ${privatekey} Logs into the SSH server using key-based authentication. Logging into '172.21.248.83:22' as 'ubuntu'. Read output: Welcome to Ubuntu 20.04.4 LTS (GNU/Linux 5.4.0-107-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Mon Feb 19 02:54:22 UTC 2024 System load: 0.15 Users logged in: 0 Usage of /: 14.2% of 9.52GB IPv4 address for ens3: 172.21.248.83 Memory usage: 10% IPv4 address for ens4: 192.168.10.128 Swap usage: 0% IPv4 address for ens5: 192.168.20.32 Processes: 109 IPv4 address for ens6: 192.168.30.87 1 update can be applied immediately. To see these additional updates run: apt list --upgradable The list of available updates is more than a week old. To check for new updates run: sudo apt update New release '22.04.3 LTS' available. Run 'do-release-upgrade' to upgrade to it. Last login: Mon Feb 19 02:54:16 2024 from 172.21.249.4 To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. ubuntu@basic-18-vnf2-datavm-0:~$ ${stdout} ${rc} ${command} return_rc=True return_stdout=True Executes ``command`` on the remote machine and returns its outputs. Executing command 'ip addr ; ping -c 5 192.168.10.238'. Command exited with return code 0. ${stdout} = 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lf... ${rc} = 0 ${rc} Logs the given message with the given level. 0 ${stdout} Logs the given message with the given level. 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: ens3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 link/ether fa:16:3e:db:7f:79 brd ff:ff:ff:ff:ff:ff inet 172.21.248.83/22 brd 172.21.251.255 scope global dynamic ens3 valid_lft 86298sec preferred_lft 86298sec inet6 fe80::f816:3eff:fedb:7f79/64 scope link valid_lft forever preferred_lft forever 3: ens4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc fq_codel state UP group default qlen 1000 link/ether fa:16:3e:a4:2f:78 brd ff:ff:ff:ff:ff:ff inet 192.168.10.128/24 brd 192.168.10.255 scope global ens4 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fea4:2f78/64 scope link valid_lft forever preferred_lft forever 4: ens5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc fq_codel state UP group default qlen 1000 link/ether fa:16:3e:10:71:71 brd ff:ff:ff:ff:ff:ff inet 192.168.20.32/24 brd 192.168.20.255 scope global ens5 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe10:7171/64 scope link valid_lft forever preferred_lft forever 5: ens6: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc fq_codel state UP group default qlen 1000 link/ether fa:16:3e:f9:b1:8a brd ff:ff:ff:ff:ff:ff inet 192.168.30.87/24 brd 192.168.30.255 scope global ens6 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fef9:b18a/64 scope link valid_lft forever preferred_lft forever PING 192.168.10.238 (192.168.10.238) 56(84) bytes of data. 64 bytes from 192.168.10.238: icmp_seq=1 ttl=64 time=1.76 ms 64 bytes from 192.168.10.238: icmp_seq=2 ttl=64 time=0.767 ms 64 bytes from 192.168.10.238: icmp_seq=3 ttl=64 time=0.737 ms 64 bytes from 192.168.10.238: icmp_seq=4 ttl=64 time=0.862 ms 64 bytes from 192.168.10.238: icmp_seq=5 ttl=64 time=0.865 ms --- 192.168.10.238 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4042ms rtt min/avg/max/mdev = 0.737/0.998/1.760/0.384 ms Closes all open connections. ${rc} 0 Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${stdout} = 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lf... ${stdout} Logs the given message with the given level. 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: ens3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 link/ether fa:16:3e:db:7f:79 brd ff:ff:ff:ff:ff:ff inet 172.21.248.83/22 brd 172.21.251.255 scope global dynamic ens3 valid_lft 86298sec preferred_lft 86298sec inet6 fe80::f816:3eff:fedb:7f79/64 scope link valid_lft forever preferred_lft forever 3: ens4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc fq_codel state UP group default qlen 1000 link/ether fa:16:3e:a4:2f:78 brd ff:ff:ff:ff:ff:ff inet 192.168.10.128/24 brd 192.168.10.255 scope global ens4 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fea4:2f78/64 scope link valid_lft forever preferred_lft forever 4: ens5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc fq_codel state UP group default qlen 1000 link/ether fa:16:3e:10:71:71 brd ff:ff:ff:ff:ff:ff inet 192.168.20.32/24 brd 192.168.20.255 scope global ens5 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe10:7171/64 scope link valid_lft forever preferred_lft forever 5: ens6: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc fq_codel state UP group default qlen 1000 link/ether fa:16:3e:f9:b1:8a brd ff:ff:ff:ff:ff:ff inet 192.168.30.87/24 brd 192.168.30.255 scope global ens6 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fef9:b18a/64 scope link valid_lft forever preferred_lft forever PING 192.168.10.238 (192.168.10.238) 56(84) bytes of data. 64 bytes from 192.168.10.238: icmp_seq=1 ttl=64 time=1.76 ms 64 bytes from 192.168.10.238: icmp_seq=2 ttl=64 time=0.767 ms 64 bytes from 192.168.10.238: icmp_seq=3 ttl=64 time=0.737 ms 64 bytes from 192.168.10.238: icmp_seq=4 ttl=64 time=0.862 ms 64 bytes from 192.168.10.238: icmp_seq=5 ttl=64 time=0.865 ms --- 192.168.10.238 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4042ms rtt min/avg/max/mdev = 0.737/0.998/1.760/0.384 ms ${stdout} ${VNF2_IPMGMT} ${USERNAME} ${EMPTY} ${PRIVATEKEY} ip addr ; ping -c 5 ${VNF1_IP2} Execute via SSH a command in a remote host and, if the command succeeds, return the output. ${host} Opens a new SSH connection to the given ``host`` and ``port``. ${username} ${password} Logs into the SSH server with the given ``username`` and ``password``. ${username} ${privatekey} Logs into the SSH server using key-based authentication. Logging into '172.21.248.83:22' as 'ubuntu'. Read output: Welcome to Ubuntu 20.04.4 LTS (GNU/Linux 5.4.0-107-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Mon Feb 19 02:54:27 UTC 2024 System load: 0.14 Users logged in: 0 Usage of /: 14.2% of 9.52GB IPv4 address for ens3: 172.21.248.83 Memory usage: 10% IPv4 address for ens4: 192.168.10.128 Swap usage: 0% IPv4 address for ens5: 192.168.20.32 Processes: 106 IPv4 address for ens6: 192.168.30.87 1 update can be applied immediately. To see these additional updates run: apt list --upgradable The list of available updates is more than a week old. To check for new updates run: sudo apt update New release '22.04.3 LTS' available. Run 'do-release-upgrade' to upgrade to it. Last login: Mon Feb 19 02:54:22 2024 from 172.21.249.4 To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. ubuntu@basic-18-vnf2-datavm-0:~$ ${stdout} ${rc} ${command} return_rc=True return_stdout=True Executes ``command`` on the remote machine and returns its outputs. Executing command 'ip addr ; ping -c 5 192.168.20.211'. Command exited with return code 0. ${stdout} = 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lf... ${rc} = 0 ${rc} Logs the given message with the given level. 0 ${stdout} Logs the given message with the given level. 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: ens3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 link/ether fa:16:3e:db:7f:79 brd ff:ff:ff:ff:ff:ff inet 172.21.248.83/22 brd 172.21.251.255 scope global dynamic ens3 valid_lft 86292sec preferred_lft 86292sec inet6 fe80::f816:3eff:fedb:7f79/64 scope link valid_lft forever preferred_lft forever 3: ens4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc fq_codel state UP group default qlen 1000 link/ether fa:16:3e:a4:2f:78 brd ff:ff:ff:ff:ff:ff inet 192.168.10.128/24 brd 192.168.10.255 scope global ens4 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fea4:2f78/64 scope link valid_lft forever preferred_lft forever 4: ens5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc fq_codel state UP group default qlen 1000 link/ether fa:16:3e:10:71:71 brd ff:ff:ff:ff:ff:ff inet 192.168.20.32/24 brd 192.168.20.255 scope global ens5 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe10:7171/64 scope link valid_lft forever preferred_lft forever 5: ens6: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc fq_codel state UP group default qlen 1000 link/ether fa:16:3e:f9:b1:8a brd ff:ff:ff:ff:ff:ff inet 192.168.30.87/24 brd 192.168.30.255 scope global ens6 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fef9:b18a/64 scope link valid_lft forever preferred_lft forever PING 192.168.20.211 (192.168.20.211) 56(84) bytes of data. 64 bytes from 192.168.20.211: icmp_seq=1 ttl=64 time=1.60 ms 64 bytes from 192.168.20.211: icmp_seq=2 ttl=64 time=0.650 ms 64 bytes from 192.168.20.211: icmp_seq=3 ttl=64 time=0.745 ms 64 bytes from 192.168.20.211: icmp_seq=4 ttl=64 time=0.646 ms 64 bytes from 192.168.20.211: icmp_seq=5 ttl=64 time=0.819 ms --- 192.168.20.211 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4072ms rtt min/avg/max/mdev = 0.646/0.891/1.599/0.359 ms Closes all open connections. ${rc} 0 Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${stdout} = 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lf... ${stdout} Logs the given message with the given level. 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: ens3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 link/ether fa:16:3e:db:7f:79 brd ff:ff:ff:ff:ff:ff inet 172.21.248.83/22 brd 172.21.251.255 scope global dynamic ens3 valid_lft 86292sec preferred_lft 86292sec inet6 fe80::f816:3eff:fedb:7f79/64 scope link valid_lft forever preferred_lft forever 3: ens4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc fq_codel state UP group default qlen 1000 link/ether fa:16:3e:a4:2f:78 brd ff:ff:ff:ff:ff:ff inet 192.168.10.128/24 brd 192.168.10.255 scope global ens4 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fea4:2f78/64 scope link valid_lft forever preferred_lft forever 4: ens5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc fq_codel state UP group default qlen 1000 link/ether fa:16:3e:10:71:71 brd ff:ff:ff:ff:ff:ff inet 192.168.20.32/24 brd 192.168.20.255 scope global ens5 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe10:7171/64 scope link valid_lft forever preferred_lft forever 5: ens6: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc fq_codel state UP group default qlen 1000 link/ether fa:16:3e:f9:b1:8a brd ff:ff:ff:ff:ff:ff inet 192.168.30.87/24 brd 192.168.30.255 scope global ens6 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fef9:b18a/64 scope link valid_lft forever preferred_lft forever PING 192.168.20.211 (192.168.20.211) 56(84) bytes of data. 64 bytes from 192.168.20.211: icmp_seq=1 ttl=64 time=1.60 ms 64 bytes from 192.168.20.211: icmp_seq=2 ttl=64 time=0.650 ms 64 bytes from 192.168.20.211: icmp_seq=3 ttl=64 time=0.745 ms 64 bytes from 192.168.20.211: icmp_seq=4 ttl=64 time=0.646 ms 64 bytes from 192.168.20.211: icmp_seq=5 ttl=64 time=0.819 ms --- 192.168.20.211 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4072ms rtt min/avg/max/mdev = 0.646/0.891/1.599/0.359 ms ${stdout} ${VNF2_IPMGMT} ${USERNAME} ${EMPTY} ${PRIVATEKEY} ip addr ; ping -c 5 ${VNF1_IP3} Execute via SSH a command in a remote host and, if the command succeeds, return the output. ${host} Opens a new SSH connection to the given ``host`` and ``port``. ${username} ${password} Logs into the SSH server with the given ``username`` and ``password``. ${username} ${privatekey} Logs into the SSH server using key-based authentication. Logging into '172.21.248.83:22' as 'ubuntu'. Read output: Welcome to Ubuntu 20.04.4 LTS (GNU/Linux 5.4.0-107-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Mon Feb 19 02:54:33 UTC 2024 System load: 0.13 Users logged in: 0 Usage of /: 14.2% of 9.52GB IPv4 address for ens3: 172.21.248.83 Memory usage: 10% IPv4 address for ens4: 192.168.10.128 Swap usage: 0% IPv4 address for ens5: 192.168.20.32 Processes: 109 IPv4 address for ens6: 192.168.30.87 1 update can be applied immediately. To see these additional updates run: apt list --upgradable The list of available updates is more than a week old. To check for new updates run: sudo apt update New release '22.04.3 LTS' available. Run 'do-release-upgrade' to upgrade to it. Last login: Mon Feb 19 02:54:28 2024 from 172.21.249.4 To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. ubuntu@basic-18-vnf2-datavm-0:~$ ${stdout} ${rc} ${command} return_rc=True return_stdout=True Executes ``command`` on the remote machine and returns its outputs. Executing command 'ip addr ; ping -c 5 192.168.30.139'. Command exited with return code 0. ${stdout} = 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lf... ${rc} = 0 ${rc} Logs the given message with the given level. 0 ${stdout} Logs the given message with the given level. 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: ens3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 link/ether fa:16:3e:db:7f:79 brd ff:ff:ff:ff:ff:ff inet 172.21.248.83/22 brd 172.21.251.255 scope global dynamic ens3 valid_lft 86287sec preferred_lft 86287sec inet6 fe80::f816:3eff:fedb:7f79/64 scope link valid_lft forever preferred_lft forever 3: ens4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc fq_codel state UP group default qlen 1000 link/ether fa:16:3e:a4:2f:78 brd ff:ff:ff:ff:ff:ff inet 192.168.10.128/24 brd 192.168.10.255 scope global ens4 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fea4:2f78/64 scope link valid_lft forever preferred_lft forever 4: ens5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc fq_codel state UP group default qlen 1000 link/ether fa:16:3e:10:71:71 brd ff:ff:ff:ff:ff:ff inet 192.168.20.32/24 brd 192.168.20.255 scope global ens5 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe10:7171/64 scope link valid_lft forever preferred_lft forever 5: ens6: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc fq_codel state UP group default qlen 1000 link/ether fa:16:3e:f9:b1:8a brd ff:ff:ff:ff:ff:ff inet 192.168.30.87/24 brd 192.168.30.255 scope global ens6 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fef9:b18a/64 scope link valid_lft forever preferred_lft forever PING 192.168.30.139 (192.168.30.139) 56(84) bytes of data. 64 bytes from 192.168.30.139: icmp_seq=1 ttl=64 time=1.77 ms 64 bytes from 192.168.30.139: icmp_seq=2 ttl=64 time=0.747 ms 64 bytes from 192.168.30.139: icmp_seq=3 ttl=64 time=0.832 ms 64 bytes from 192.168.30.139: icmp_seq=4 ttl=64 time=0.810 ms 64 bytes from 192.168.30.139: icmp_seq=5 ttl=64 time=0.788 ms --- 192.168.30.139 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4025ms rtt min/avg/max/mdev = 0.747/0.988/1.765/0.389 ms Closes all open connections. ${rc} 0 Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${stdout} = 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lf... ${stdout} Logs the given message with the given level. 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: ens3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 link/ether fa:16:3e:db:7f:79 brd ff:ff:ff:ff:ff:ff inet 172.21.248.83/22 brd 172.21.251.255 scope global dynamic ens3 valid_lft 86287sec preferred_lft 86287sec inet6 fe80::f816:3eff:fedb:7f79/64 scope link valid_lft forever preferred_lft forever 3: ens4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc fq_codel state UP group default qlen 1000 link/ether fa:16:3e:a4:2f:78 brd ff:ff:ff:ff:ff:ff inet 192.168.10.128/24 brd 192.168.10.255 scope global ens4 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fea4:2f78/64 scope link valid_lft forever preferred_lft forever 4: ens5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc fq_codel state UP group default qlen 1000 link/ether fa:16:3e:10:71:71 brd ff:ff:ff:ff:ff:ff inet 192.168.20.32/24 brd 192.168.20.255 scope global ens5 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe10:7171/64 scope link valid_lft forever preferred_lft forever 5: ens6: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc fq_codel state UP group default qlen 1000 link/ether fa:16:3e:f9:b1:8a brd ff:ff:ff:ff:ff:ff inet 192.168.30.87/24 brd 192.168.30.255 scope global ens6 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fef9:b18a/64 scope link valid_lft forever preferred_lft forever PING 192.168.30.139 (192.168.30.139) 56(84) bytes of data. 64 bytes from 192.168.30.139: icmp_seq=1 ttl=64 time=1.77 ms 64 bytes from 192.168.30.139: icmp_seq=2 ttl=64 time=0.747 ms 64 bytes from 192.168.30.139: icmp_seq=3 ttl=64 time=0.832 ms 64 bytes from 192.168.30.139: icmp_seq=4 ttl=64 time=0.810 ms 64 bytes from 192.168.30.139: icmp_seq=5 ttl=64 time=0.788 ms --- 192.168.30.139 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4025ms rtt min/avg/max/mdev = 0.747/0.988/1.765/0.389 ms Check connectivity from the second VNF to the first VNF using ping. basic_18 cluster_main daily regression ${NS_NAME} Delete a NS instance. ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} Logs the given message with the given level. 240.0 ${rc} ${stdout} osm ns-delete ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-delete basic_18 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${stdout} Logs the given message with the given level. Deletion in progress ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${ns_delete_max_wait_time} ${NS_DELETE_POL_TIME} Check For NS Instance To Be Deleted ${ns} Runs the specified keyword and retries if it fails. ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------+--------+----------------------------------------------------------------------------------------------------------------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------+--------+------------------------------------------------------------------------------------------------------------------------------+-------------+----------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------+--------+------------------------------------------------------------------------------------------------------------------------------+-------------+----------------------+ | 8f5a53b8-c62d-4732-bc44-ed702d67ad5f | basic_18-vnf2-dataVM-0 | ACTIVE | basic_18-datanet1=192.168.10.128; basic_18-datanet2=192.168.20.32; basic_18-datanet3=192.168.30.87; osm-ext=172.21.248.83 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 74976d5a-b47b-4b33-88a4-3d18295d2fb8 | basic_18-vnf1-dataVM-0 | ACTIVE | basic_18-datanet1=192.168.10.238; basic_18-datanet2=192.168.20.211; basic_18-datanet3=192.168.30.139; osm-ext=172.21.249.148 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------+--------+------------------------------------------------------------------------------------------------------------------------------+-------------+----------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep basic_18 2>&1'. ${rc} = 0 ${stdout} = basic_18 ${rc},${stdout} Logs the given message with the given level. 0,basic_18 ${stdout} ${ns} Fails if objects are equal after converting them to strings. basic_18 == basic_18 ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | ID | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep basic_18 2>&1'. ${rc} = 0 ${stdout} = basic_18 ${rc},${stdout} Logs the given message with the given level. 0,basic_18 ${stdout} ${ns} Fails if objects are equal after converting them to strings. basic_18 == basic_18 ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | ID | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep basic_18 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${ns} Fails if objects are equal after converting them to strings. Delete NS instance. basic_18 cleanup cluster_main daily regression ${NSD_NAME} Delete a NS package from OSM. ${rc} ${stdout} Run And Return Rc And Output osm nspkg-delete ${nsd_id} Runs the keyword and continues execution even if a failure occurs. osm nspkg-delete ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-delete ubuntu_4ifaces-ns 2>&1'. ${rc} = 0 ${stdout} = Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Logs the given message with the given level. Deleted ${NSD_DELETE_MAX_WAIT_TIME} ${NSD_DELETE_POL_TIME} Check For NSD ${nsd_id} Runs the specified keyword and retries if it fails. ${nsd_id} Check that a NS package exists in OSM. ${rc} ${stdout} osm nspkg-list | awk '{print $2}' | grep ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-list | awk '{print $2}' | grep ubuntu_4ifaces-ns 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. Delete NS package from OSM. basic_18 cleanup cluster_main daily regression ${VNFD_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete ubuntu_4ifaces-vnf 2>&1'. ${rc} = 0 ${stdout} = Deleted ${stdout} Logs the given message with the given level. Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep ubuntu_4ifaces-vnf 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. Delete VNF package from OSM. basic_18 cleanup cluster_main daily regression Suite Cleanup Runs the given keyword with the given arguments and ignores possible error. Test Suite Cleanup: Deleting descriptors and NS instance Delete NS ${NS_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete NSD ${NSD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete VNFD ${VNFD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. [BASIC-18] NS with a VLD with a virtual link profile. '%{PACKAGES_FOLDER}/${VNFD_PKG}' Onboards ("creates") a NF Package into OSM. - Parameters: - vnfd_pkg: Name (and location) of the NF Package - overrides (optional): String with options to override the EPA and/or interface properties of the Package. This is very useful to allow to deploy e.g. non-EPA packages in EPA VIMs (or vice-versa). Valid strings are the same as in the command. E.g.: - `--override-epa`: adds EPA attributes to all VDUs. - `--override-nonepa`: removes all EPA attributes from all VDUs. - `--override-paravirt`: converts all interfaces to `PARAVIRT`. This one can be combined with the others above (e.g. '--override-nonepa --override-paravirt'). - Relevant environment variables: - OVERRIDES: If the environment variable "OVERRIDES" exists, it prevails over the value in the argument. This is often more convenient to enforce the same behaviour for every test run in a given VIM. ${overrides} OVERRIDES default=${overrides} Returns the value of an environment variable with the given name. ${overrides} = ${rc} ${stdout} osm vnfpkg-create ${overrides} ${vnfd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-create '/robot-systest/osm-packages/ipprofile_2vm_vnf' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/ipprofile_2vm_vnf Validation OK List of charms in the descriptor: set() Adding File: ipprofile_2vm_vnf Package created: /robot-systest/osm-packages/ippro... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/ipprofile_2vm_vnf Validation OK List of charms in the descriptor: set() Adding File: ipprofile_2vm_vnf Package created: /robot-systest/osm-packages/ipprofile_2vm_vnf.tar.gz Uploading package /robot-systest/osm-packages/ipprofile_2vm_vnf.tar.gz e6f79377-3be1-4c4a-b92b-8766b77ebc21 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 7 lines ${lines} = 7 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 6 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = e6f79377-3be1-4c4a-b92b-8766b77ebc21 ${id} Upload VNF package for the testsuite. basic_19 cluster_main daily regression '%{PACKAGES_FOLDER}/${NSD_PKG}' Upload a NS package to OSM and return the id. ${rc} ${stdout} osm nspkg-create ${nsd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-create '/robot-systest/osm-packages/ipprofile_2vm_ns' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/ipprofile_2vm_ns Validation OK List of charms in the descriptor: set() Adding File: ipprofile_2vm_ns Package created: /robot-systest/osm-packages/ipprofi... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/ipprofile_2vm_ns Validation OK List of charms in the descriptor: set() Adding File: ipprofile_2vm_ns Package created: /robot-systest/osm-packages/ipprofile_2vm_ns.tar.gz 483e862f-49af-46fe-852b-edf67fd9dce0 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 6 lines ${lines} = 6 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 5 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = 483e862f-49af-46fe-852b-edf67fd9dce0 ${id} Upload NS package for the testsuite. basic_19 cluster_main daily regression ${id} ${NSD_NAME} %{VIM_TARGET} ${NS_NAME} ${NS_CONFIG} ${PUBLICKEY} Launch the instantation of a NS and verify in a loop that the NS instance is successfully created in a given time, and return the NS instance id. ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_launch_max_wait_time} = 300.0 ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_launch_max_wait_time} = 300.0 ${ns_launch_max_wait_time} Logs the given message with the given level. 300.0 ${config_attr} '${ns_config}'!='${EMPTY}' --config '${ns_config}' ${EMPTY} Sets variable based on the given condition. ${config_attr} = --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext} ] }' ${sshkeys_attr} '${publickey}'!='${EMPTY}' --ssh_keys ${publickey} ${EMPTY} Sets variable based on the given condition. ${sshkeys_attr} = --ssh_keys /root/.ssh/id_rsa.pub ${config_file_attr} '${config_file}'!='${EMPTY}' --config_file '${config_file}' ${EMPTY} Sets variable based on the given condition. ${config_file_attr} = ${ns_id} ${ns_name} ${nsd} ${vim_name} ${config_attr} ${sshkeys_attr} ${config_file_attr} Launch the instantation of a NS, and return the NS instance id. ${rc} ${stdout} osm ns-create --ns_name ${ns_name} --nsd_name ${nsd} --vim_account ${vim_name} ${ns_extra_args} Runs the given command in the system and returns the RC and output. Running command 'osm ns-create --ns_name basic_19 --nsd_name ipprofile_2vm-ns --vim_account osm --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext} ] }' --ssh_keys /root/.ssh/id_rsa.pub 2>&1'. ${rc} = 0 ${stdout} = 399f4204-ca8e-4a5f-a8ae-3a6a721b84a0 ${stdout} Logs the given message with the given level. 399f4204-ca8e-4a5f-a8ae-3a6a721b84a0 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 399f4204-ca8e-4a5f-a8ae-3a6a721b84a0 ${ns_id} Logs the given message with the given level. 399f4204-ca8e-4a5f-a8ae-3a6a721b84a0 ${ns_launch_max_wait_time} ${NS_LAUNCH_POL_TIME} Check For NS Instance To Configured ${ns_name} Runs the specified keyword and retries if it fails. ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 73aae4b7-d0ac-4712-87ef-be85837d6941 | basic_24-affinity-basic-1-affinity_basic-VM-2-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | b440168c-3ea1-45e2-8274-869b25c20ed1 | basic_24-affinity-basic-1-affinity_basic-VM-1-0 | ACTIVE | osm-ext=172.21.249.134 | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_19" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_19 | 399f4204-ca8e-4a5f-a8ae-3a6a721b84a0 | 2024-02-19T02:55:30 | BUILDING | INSTANTIATING (143239ae-703c-44c4-8e34-9638c368bed6) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_19 | 399f4204-ca8e-4a5f-a8ae-3a6a721b84a0 | 2024-02-19T02:55:30 | BUILDING | INSTANTIATING (143239ae-703c-44c4-8e34-9638c368bed6) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-------------------------------------------------+--------+----------------------------------------------------------+-------------+-------------------------+ |... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-------------------------------------------------+--------+----------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-------------------------------------------------+--------+----------------------------------------------------------+-------------+-------------------------+ | f1dd4df2-d225-4dd5-84df-6213b143a2bc | basic_19-vnf-dataVM-0 | ACTIVE | basic_19-internal=192.168.200.53 | ubuntu20.04 | simple_requires-1-1-flv | | a086f90a-67d3-4ad3-9e81-7ad2b7f57f82 | basic_19-vnf-mgmtVM-0 | ACTIVE | basic_19-internal=192.168.200.62; osm-ext=172.21.249.119 | ubuntu20.04 | simple_requires-1-1-flv | | 73aae4b7-d0ac-4712-87ef-be85837d6941 | basic_24-affinity-basic-1-affinity_basic-VM-2-0 | ACTIVE | osm-ext=172.21.249.165 | ubuntu20.04 | simple_requires-1-1-flv | | b440168c-3ea1-45e2-8274-869b25c20ed1 | basic_24-affinity-basic-1-affinity_basic-VM-1-0 | ACTIVE | osm-ext=172.21.249.134 | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-------------------------------------------------+--------+----------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_19" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_19 | 399f4204-ca8e-4a5f-a8ae-3a6a721b84a0 | 2024-02-19T02:55:30 | BUILDING | INSTANTIATING (143239ae-703c-44c4-8e34-9638c368bed6) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_19 | 399f4204-ca8e-4a5f-a8ae-3a6a721b84a0 | 2024-02-19T02:55:30 | BUILDING | INSTANTIATING (143239ae-703c-44c4-8e34-9638c368bed6) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-------------------------------------------------+--------+----------------------------------------------------------+-------------+-------------------------+ |... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-------------------------------------------------+--------+----------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-------------------------------------------------+--------+----------------------------------------------------------+-------------+-------------------------+ | f1dd4df2-d225-4dd5-84df-6213b143a2bc | basic_19-vnf-dataVM-0 | ACTIVE | basic_19-internal=192.168.200.53 | ubuntu20.04 | simple_requires-1-1-flv | | a086f90a-67d3-4ad3-9e81-7ad2b7f57f82 | basic_19-vnf-mgmtVM-0 | ACTIVE | basic_19-internal=192.168.200.62; osm-ext=172.21.249.119 | ubuntu20.04 | simple_requires-1-1-flv | | 73aae4b7-d0ac-4712-87ef-be85837d6941 | basic_24-affinity-basic-1-affinity_basic-VM-2-0 | ACTIVE | osm-ext=172.21.249.165 | ubuntu20.04 | simple_requires-1-1-flv | | b440168c-3ea1-45e2-8274-869b25c20ed1 | basic_24-affinity-basic-1-affinity_basic-VM-1-0 | ACTIVE | osm-ext=172.21.249.134 | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-------------------------------------------------+--------+----------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_19" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | basic_19 | 399f4204-ca8e-4a5f-a8ae-3a6a721b84a0 | 2024-02-19T02:55:30 | READY | IDLE (None) | N/A | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. ${ns_name} Check if a given NS instance has not failed in the instantiation (the status should not be BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-------------------------------------------------+--------+----------------------------------------------------------+-------------+-------------------------+ |... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-------------------------------------------------+--------+----------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-------------------------------------------------+--------+----------------------------------------------------------+-------------+-------------------------+ | f1dd4df2-d225-4dd5-84df-6213b143a2bc | basic_19-vnf-dataVM-0 | ACTIVE | basic_19-internal=192.168.200.53 | ubuntu20.04 | simple_requires-1-1-flv | | a086f90a-67d3-4ad3-9e81-7ad2b7f57f82 | basic_19-vnf-mgmtVM-0 | ACTIVE | basic_19-internal=192.168.200.62; osm-ext=172.21.249.119 | ubuntu20.04 | simple_requires-1-1-flv | | 73aae4b7-d0ac-4712-87ef-be85837d6941 | basic_24-affinity-basic-1-affinity_basic-VM-2-0 | ACTIVE | osm-ext=172.21.249.165 | ubuntu20.04 | simple_requires-1-1-flv | | b440168c-3ea1-45e2-8274-869b25c20ed1 | basic_24-affinity-basic-1-affinity_basic-VM-1-0 | ACTIVE | osm-ext=172.21.249.134 | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-------------------------------------------------+--------+----------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_19" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | basic_19 | 399f4204-ca8e-4a5f-a8ae-3a6a721b84a0 | 2024-02-19T02:55:30 | READY | IDLE (None) | N/A | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} BROKEN Fails if ``container`` contains ``item`` one or more times. ${ns_id} ${id} = 399f4204-ca8e-4a5f-a8ae-3a6a721b84a0 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 399f4204-ca8e-4a5f-a8ae-3a6a721b84a0 Instantiate NS for the testsuite. basic_19 cluster_main daily regression ${NS_ID} msg=Network service instance is not available Fails unless the given variable exists within the current scope. @{vnfr_list} ${NS_ID} Return a list with the IDs of the VNF records of a NS instance. ${ns_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm vnf-list --ns ${ns_id} | grep ${ns_id} | awk '{print $2}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm vnf-list --ns 399f4204-ca8e-4a5f-a8ae-3a6a721b84a0 | grep 399f4204-ca8e-4a5f-a8ae-3a6a721b84a0 | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = 30be0d38-5281-40bd-81c8-8ecd3b1e7d61 ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> @{vdur} ${stdout} Splits the ``string`` using ``separator`` as a delimiter string. @{vdur} = [ 30be0d38-5281-40bd-81c8-8ecd3b1e7d61 ] @{vdur} @{vnfr_list} = [ 30be0d38-5281-40bd-81c8-8ecd3b1e7d61 ] ${vnfr_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: 30be0d38-5281-40bd-81c8-8ecd3b1e7d61 ${VNF_ID} ${vnfr_list}[0] Makes a variable available everywhere within the scope of the current suite. ${VNF_ID} = 30be0d38-5281-40bd-81c8-8ecd3b1e7d61 ${ip} ${NS_ID} ${VNF_MEMBER_INDEX_1} Get the mgmt IP address of a member VNF in a NS instance, and return it. ${ns_id} Verifies that the given item is not empty. Length is 36 ${vnf_member_index} Verifies that the given item is not empty. Length is 3 ${rc} ${stdout} osm vnf-list --filter member-vnf-index-ref=${vnf_member_index} | grep ${ns_id} | awk '{print $14}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm vnf-list --filter member-vnf-index-ref=vnf | grep 399f4204-ca8e-4a5f-a8ae-3a6a721b84a0 | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.249.119 ${stdout} Logs the given message with the given level. 172.21.249.119 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ip} = 172.21.249.119 ${VNF_IPMGMT} ${ip} Makes a variable available everywhere within the scope of the current suite. ${VNF_IPMGMT} = 172.21.249.119 ${VNF_IPMGMT} Logs the given message with the given level. 172.21.249.119 Get VNF information, specifically the VNF instance id and the mgmt IP address. basic_19 cluster_main daily regression ${VNF_ID} msg=VNF is not available Fails unless the given variable exists within the current scope. ${rc} ${stdout} osm vnf-show ${VNF_ID} --literal | yq '.vdur[0].interfaces[] | select(."vnf-vld-id" == "internal")' | yq -r '."ip-address"' Runs the given command in the system and returns the RC and output. Running command 'osm vnf-show 30be0d38-5281-40bd-81c8-8ecd3b1e7d61 --literal | yq '.vdur[0].interfaces[] | select(."vnf-vld-id" == "internal")' | yq -r '."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 192.168.200.62 ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${INTERNAL_PREFIX} msg=${stdout} doesn't match subnet's regexp ${INTERNAL_PREFIX} Fails if ``string`` does not match ``pattern`` as a regular expression. ${rc} ${stdout} osm vnf-show ${VNF_ID} --literal | yq '.vdur[1].interfaces[] | select(."vnf-vld-id" == "internal")' | yq -r '."ip-address"' Runs the given command in the system and returns the RC and output. Running command 'osm vnf-show 30be0d38-5281-40bd-81c8-8ecd3b1e7d61 --literal | yq '.vdur[1].interfaces[] | select(."vnf-vld-id" == "internal")' | yq -r '."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 192.168.200.53 ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${INTERNAL_PREFIX} msg=${stdout} doesn't match subnet's regexp ${INTERNAL_PREFIX} Fails if ``string`` does not match ``pattern`` as a regular expression. Check whether IP addresses are syntactically valid. basic_19 cluster_main daily regression ${NS_NAME} Delete a NS instance. ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} Logs the given message with the given level. 240.0 ${rc} ${stdout} osm ns-delete ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-delete basic_19 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${stdout} Logs the given message with the given level. Deletion in progress ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${ns_delete_max_wait_time} ${NS_DELETE_POL_TIME} Check For NS Instance To Be Deleted ${ns} Runs the specified keyword and retries if it fails. ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------+--------+----------------------------------------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------+--------+----------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------+--------+----------------------------------------------------------+-------------+-------------------------+ | f1dd4df2-d225-4dd5-84df-6213b143a2bc | basic_19-vnf-dataVM-0 | ACTIVE | basic_19-internal=192.168.200.53 | ubuntu20.04 | simple_requires-1-1-flv | | a086f90a-67d3-4ad3-9e81-7ad2b7f57f82 | basic_19-vnf-mgmtVM-0 | ACTIVE | basic_19-internal=192.168.200.62; osm-ext=172.21.249.119 | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------+--------+----------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep basic_19 2>&1'. ${rc} = 0 ${stdout} = basic_19 ${rc},${stdout} Logs the given message with the given level. 0,basic_19 ${stdout} ${ns} Fails if objects are equal after converting them to strings. basic_19 == basic_19 ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | ID | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep basic_19 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${ns} Fails if objects are equal after converting them to strings. Delete NS instance. basic_19 cleanup cluster_main daily regression ${NSD_NAME} Delete a NS package from OSM. ${rc} ${stdout} Run And Return Rc And Output osm nspkg-delete ${nsd_id} Runs the keyword and continues execution even if a failure occurs. osm nspkg-delete ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-delete ipprofile_2vm-ns 2>&1'. ${rc} = 0 ${stdout} = Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Logs the given message with the given level. Deleted ${NSD_DELETE_MAX_WAIT_TIME} ${NSD_DELETE_POL_TIME} Check For NSD ${nsd_id} Runs the specified keyword and retries if it fails. ${nsd_id} Check that a NS package exists in OSM. ${rc} ${stdout} osm nspkg-list | awk '{print $2}' | grep ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-list | awk '{print $2}' | grep ipprofile_2vm-ns 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. Delete NS package from OSM. basic_19 cleanup cluster_main daily regression ${VNFD_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete ipprofile_2vm-vnf 2>&1'. ${rc} = 0 ${stdout} = Deleted ${stdout} Logs the given message with the given level. Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep ipprofile_2vm-vnf 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. Delete VNF package from OSM. basic_19 cleanup cluster_main daily regression Suite Cleanup Runs the given keyword with the given arguments and ignores possible error. Test Suite Cleanup: Deleting descriptors and NS instance Delete NS ${NS_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete NSD ${NSD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete VNFD ${VNFD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. [BASIC-19] NS with a single VNF and two VDU linked by a VLD with ip-profile. '%{PACKAGES_FOLDER}/${VNFD_PKG}' Onboards ("creates") a NF Package into OSM. - Parameters: - vnfd_pkg: Name (and location) of the NF Package - overrides (optional): String with options to override the EPA and/or interface properties of the Package. This is very useful to allow to deploy e.g. non-EPA packages in EPA VIMs (or vice-versa). Valid strings are the same as in the command. E.g.: - `--override-epa`: adds EPA attributes to all VDUs. - `--override-nonepa`: removes all EPA attributes from all VDUs. - `--override-paravirt`: converts all interfaces to `PARAVIRT`. This one can be combined with the others above (e.g. '--override-nonepa --override-paravirt'). - Relevant environment variables: - OVERRIDES: If the environment variable "OVERRIDES" exists, it prevails over the value in the argument. This is often more convenient to enforce the same behaviour for every test run in a given VIM. ${overrides} OVERRIDES default=${overrides} Returns the value of an environment variable with the given name. ${overrides} = ${rc} ${stdout} osm vnfpkg-create ${overrides} ${vnfd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-create '/robot-systest/osm-packages/several_volumes_vnf' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/several_volumes_vnf Validation OK List of charms in the descriptor: set() Adding File: several_volumes_vnf Package created: /robot-systest/osm-packages/s... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/several_volumes_vnf Validation OK List of charms in the descriptor: set() Adding File: several_volumes_vnf Package created: /robot-systest/osm-packages/several_volumes_vnf.tar.gz Uploading package /robot-systest/osm-packages/several_volumes_vnf.tar.gz ed25bb6b-8751-4789-92d3-5a99d08c1dda ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 7 lines ${lines} = 7 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 6 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = ed25bb6b-8751-4789-92d3-5a99d08c1dda ${id} Upload VNF package for the testsuite. basic_21 cluster_main daily prepare regression '%{PACKAGES_FOLDER}/${NSD_PKG}' Upload a NS package to OSM and return the id. ${rc} ${stdout} osm nspkg-create ${nsd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-create '/robot-systest/osm-packages/several_volumes_ns' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/several_volumes_ns Validation OK List of charms in the descriptor: set() Adding File: several_volumes_ns Package created: /robot-systest/osm-packages/sev... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/several_volumes_ns Validation OK List of charms in the descriptor: set() Adding File: several_volumes_ns Package created: /robot-systest/osm-packages/several_volumes_ns.tar.gz bf86d503-b549-49c3-8ed9-9dbf975e14e0 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 6 lines ${lines} = 6 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 5 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = bf86d503-b549-49c3-8ed9-9dbf975e14e0 ${id} Upload NS package for the testsuite. basic_21 cluster_main daily prepare regression ${id} ${NSD_NAME} %{VIM_TARGET} ${NS_NAME} ${NS_CONFIG} ${PUBLICKEY} Launch the instantation of a NS and verify in a loop that the NS instance is successfully created in a given time, and return the NS instance id. ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_launch_max_wait_time} = 300.0 ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_launch_max_wait_time} = 300.0 ${ns_launch_max_wait_time} Logs the given message with the given level. 300.0 ${config_attr} '${ns_config}'!='${EMPTY}' --config '${ns_config}' ${EMPTY} Sets variable based on the given condition. ${config_attr} = --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext} ] }' ${sshkeys_attr} '${publickey}'!='${EMPTY}' --ssh_keys ${publickey} ${EMPTY} Sets variable based on the given condition. ${sshkeys_attr} = --ssh_keys /root/.ssh/id_rsa.pub ${config_file_attr} '${config_file}'!='${EMPTY}' --config_file '${config_file}' ${EMPTY} Sets variable based on the given condition. ${config_file_attr} = ${ns_id} ${ns_name} ${nsd} ${vim_name} ${config_attr} ${sshkeys_attr} ${config_file_attr} Launch the instantation of a NS, and return the NS instance id. ${rc} ${stdout} osm ns-create --ns_name ${ns_name} --nsd_name ${nsd} --vim_account ${vim_name} ${ns_extra_args} Runs the given command in the system and returns the RC and output. Running command 'osm ns-create --ns_name basic_21 --nsd_name several_volumes-ns --vim_account osm --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext} ] }' --ssh_keys /root/.ssh/id_rsa.pub 2>&1'. ${rc} = 0 ${stdout} = cf595362-7dcb-4006-b00a-b9fd7296d584 ${stdout} Logs the given message with the given level. cf595362-7dcb-4006-b00a-b9fd7296d584 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = cf595362-7dcb-4006-b00a-b9fd7296d584 ${ns_id} Logs the given message with the given level. cf595362-7dcb-4006-b00a-b9fd7296d584 ${ns_launch_max_wait_time} ${NS_LAUNCH_POL_TIME} Check For NS Instance To Configured ${ns_name} Runs the specified keyword and retries if it fails. ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | ID | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_21" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_21 | cf595362-7dcb-4006-b00a-b9fd7296d584 | 2024-02-19T02:57:25 | BUILDING | INSTANTIATING (cef4ec7d-a467-4bf7-8244-ac88e2e1eea4) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_21 | cf595362-7dcb-4006-b00a-b9fd7296d584 | 2024-02-19T02:57:25 | BUILDING | INSTANTIATING (cef4ec7d-a467-4bf7-8244-ac88e2e1eea4) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-------------------------+ | f58ada13-f9b5-4302-85ee-8c2b4da38d26 | basic_21-vnf-several-volu-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.244 | ubuntu20.04 | several_volumes-VM-flv | | bc8df79b-6bd0-480e-b728-41889fd5466e | basic_25_charm_u-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 06e1ae30-71b7-4593-8922-7a79a1c787ad | basic_25_charm_u-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_21" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_21 | cf595362-7dcb-4006-b00a-b9fd7296d584 | 2024-02-19T02:57:25 | BUILDING | INSTANTIATING (cef4ec7d-a467-4bf7-8244-ac88e2e1eea4) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_21 | cf595362-7dcb-4006-b00a-b9fd7296d584 | 2024-02-19T02:57:25 | BUILDING | INSTANTIATING (cef4ec7d-a467-4bf7-8244-ac88e2e1eea4) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-------------------------+ | f58ada13-f9b5-4302-85ee-8c2b4da38d26 | basic_21-vnf-several-volu-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.244 | ubuntu20.04 | several_volumes-VM-flv | | bc8df79b-6bd0-480e-b728-41889fd5466e | basic_25_charm_u-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 06e1ae30-71b7-4593-8922-7a79a1c787ad | basic_25_charm_u-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_21" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | basic_21 | cf595362-7dcb-4006-b00a-b9fd7296d584 | 2024-02-19T02:57:25 | READY | IDLE (None) | N/A | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. ${ns_name} Check if a given NS instance has not failed in the instantiation (the status should not be BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-------------------------+ | f58ada13-f9b5-4302-85ee-8c2b4da38d26 | basic_21-vnf-several-volu-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.244 | ubuntu20.04 | several_volumes-VM-flv | | bc8df79b-6bd0-480e-b728-41889fd5466e | basic_25_charm_u-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 06e1ae30-71b7-4593-8922-7a79a1c787ad | basic_25_charm_u-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_21" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | basic_21 | cf595362-7dcb-4006-b00a-b9fd7296d584 | 2024-02-19T02:57:25 | READY | IDLE (None) | N/A | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} BROKEN Fails if ``container`` contains ``item`` one or more times. ${ns_id} ${id} = cf595362-7dcb-4006-b00a-b9fd7296d584 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = cf595362-7dcb-4006-b00a-b9fd7296d584 Instantiate NS for the testsuite. basic_21 cluster_main daily prepare regression ${variables} Returns a dictionary containing all variables in the current scope. ${variables} = {'${/}': '/', '${:}': ':', '${\\n}': '\n', '${DEBUG_FILE}': 'NONE', '${EXECDIR}': '/robot-systest', '${FAILURE_RETURN_CODE}': '1', '${False}': False, '${LOG_FILE}': '/robot-systest/reports/log.html', ... ${id} ${NS_NAME} Get the NS instance ID from a NS instance name passed as argument, and return it. ${ns_name} Verifies that the given item is not empty. Length is 8 ${rc} ${stdout} osm ns-list | grep ${ns_name} | awk '{print $4}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | grep basic_21 | awk '{print $4}' 2>&1'. ${rc} = 0 ${stdout} = cf595362-7dcb-4006-b00a-b9fd7296d584 ${stdout} Logs the given message with the given level. cf595362-7dcb-4006-b00a-b9fd7296d584 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Verifies that the given item is not empty. Length is 36 ${stdout} ${id} = cf595362-7dcb-4006-b00a-b9fd7296d584 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = cf595362-7dcb-4006-b00a-b9fd7296d584 Get NS identifier and stores as suite variable to be used later on. basic_21 cleanup cluster_main daily regression verify ${rc} ${stdout} osm vnfpkg-show ${VNFD_NAME} --literal | yq '.vdu[0]."virtual-storage-desc" | length' Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-show several_volumes-vnf --literal | yq '.vdu[0]."virtual-storage-desc" | length' 2>&1'. ${rc} = 0 ${stdout} = 3 ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${num_virtual_storage} ${stdout} Converts the given item to an integer number. ${num_virtual_storage} = 3 ${VNF_NUM_VOLUMES} ${num_virtual_storage} Makes a variable available everywhere within the scope of the current suite. ${VNF_NUM_VOLUMES} = 3 ${VNF_NUM_VOLUMES} Logs the given message with the given level. 3 Get from VNF descriptor the expected number of volumes in the VNF. basic_21 cluster_main daily regression verify ${NS_ID} msg=NS is not available Fails unless the given variable exists within the current scope. ${ip_addr} ${NS_ID} ${VNF_MEMBER_INDEX} Get the mgmt IP address of a member VNF in a NS instance, and return it. ${ns_id} Verifies that the given item is not empty. Length is 36 ${vnf_member_index} Verifies that the given item is not empty. Length is 19 ${rc} ${stdout} osm vnf-list --filter member-vnf-index-ref=${vnf_member_index} | grep ${ns_id} | awk '{print $14}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm vnf-list --filter member-vnf-index-ref=vnf-several-volumes | grep cf595362-7dcb-4006-b00a-b9fd7296d584 | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.248.244 ${stdout} Logs the given message with the given level. 172.21.248.244 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ip_addr} = 172.21.248.244 ${ip_addr} Logs the given message with the given level. 172.21.248.244 ${VNF_IP_ADDR} ${ip_addr} Makes a variable available everywhere within the scope of the current suite. ${VNF_IP_ADDR} = 172.21.248.244 Get the mgmt IP address of the VNF. basic_21 cluster_main daily regression verify ${VNF_IP_ADDR} msg=VNF is not available Fails unless the given variable exists within the current scope. 30 seconds Wait for SSH daemon to be up Pauses the test executed for the given time. Slept 30 seconds Wait for SSH daemon to be up ${stdout} ${VNF_IP_ADDR} ${USERNAME} ${PASSWORD} ${PRIVATEKEY} sudo lsblk -l Execute via SSH a command in a remote host and, if the command succeeds, return the output. ${host} Opens a new SSH connection to the given ``host`` and ``port``. ${username} ${password} Logs into the SSH server with the given ``username`` and ``password``. ${username} ${privatekey} Logs into the SSH server using key-based authentication. Logging into '172.21.248.244:22' as 'ubuntu'. Read output: Welcome to Ubuntu 20.04.4 LTS (GNU/Linux 5.4.0-107-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Mon Feb 19 02:59:13 UTC 2024 System load: 0.48 Processes: 105 Usage of /: 14.0% of 9.52GB Users logged in: 0 Memory usage: 21% IPv4 address for ens3: 172.21.248.244 Swap usage: 0% 1 update can be applied immediately. To see these additional updates run: apt list --upgradable The list of available updates is more than a week old. To check for new updates run: sudo apt update The programs included with the Ubuntu system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. ubuntu@basic-21-vnf-several-volu-several-volumes-vm-0:~$ ${stdout} ${rc} ${command} return_rc=True return_stdout=True Executes ``command`` on the remote machine and returns its outputs. Executing command 'sudo lsblk -l'. Command exited with return code 0. ${stdout} = NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT loop0 7:0 0 61.9M 1 loop /snap/core20/1405 loop1 7:1 0 67.8M 1 loop /snap/lxd/22753 loop2 7:2 0 43.6M 1 loop /snap/snapd/15177 vda 252:0 ... ${rc} = 0 ${rc} Logs the given message with the given level. 0 ${stdout} Logs the given message with the given level. NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT loop0 7:0 0 61.9M 1 loop /snap/core20/1405 loop1 7:1 0 67.8M 1 loop /snap/lxd/22753 loop2 7:2 0 43.6M 1 loop /snap/snapd/15177 vda 252:0 0 10G 0 disk vda1 252:1 0 9.9G 0 part / vda14 252:14 0 4M 0 part vda15 252:15 0 106M 0 part /boot/efi vdb 252:16 0 2G 0 disk /mnt vdc 252:32 0 1G 0 disk Closes all open connections. ${rc} 0 Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${stdout} = NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT loop0 7:0 0 61.9M 1 loop /snap/core20/1405 loop1 7:1 0 67.8M 1 loop /snap/lxd/22753 loop2 7:2 0 43.6M 1 loop /snap/snapd/15177 vda 252:0 ... ${stdout} Logs the given message with the given level. NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT loop0 7:0 0 61.9M 1 loop /snap/core20/1405 loop1 7:1 0 67.8M 1 loop /snap/lxd/22753 loop2 7:2 0 43.6M 1 loop /snap/snapd/15177 vda 252:0 0 10G 0 disk vda1 252:1 0 9.9G 0 part / vda14 252:14 0 4M 0 part vda15 252:15 0 106M 0 part /boot/efi vdb 252:16 0 2G 0 disk /mnt vdc 252:32 0 1G 0 disk ${lines} ${stdout} disk Returns lines of the given ``string`` that contain the ``pattern``. 3 out of 10 lines matched ${lines} = vda 252:0 0 10G 0 disk vdb 252:16 0 2G 0 disk /mnt vdc 252:32 0 1G 0 disk ${num_lines} ${lines} Returns and logs the number of lines in the given string. 3 lines ${num_lines} = 3 msg=Number of disks (${num_lines}) is less than specified in VDU (${VNF_NUM_VOLUMES}) Fails the test with the given message and optionally alters its tags. Check that the number of volumes is the expected one. basic_21 cluster_main daily regression verify ${NS_NAME} Delete a NS instance. ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} Logs the given message with the given level. 240.0 ${rc} ${stdout} osm ns-delete ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-delete basic_21 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${stdout} Logs the given message with the given level. Deletion in progress ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${ns_delete_max_wait_time} ${NS_DELETE_POL_TIME} Check For NS Instance To Be Deleted ${ns} Runs the specified keyword and retries if it fails. ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-------------------------+ | f58ada13-f9b5-4302-85ee-8c2b4da38d26 | basic_21-vnf-several-volu-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.244 | ubuntu20.04 | several_volumes-VM-flv | | bc8df79b-6bd0-480e-b728-41889fd5466e | basic_25_charm_u-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 06e1ae30-71b7-4593-8922-7a79a1c787ad | basic_25_charm_u-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep basic_21 2>&1'. ${rc} = 0 ${stdout} = basic_21 ${rc},${stdout} Logs the given message with the given level. 0,basic_21 ${stdout} ${ns} Fails if objects are equal after converting them to strings. basic_21 == basic_21 ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ | bc8df79b-6bd0-480e-b728-41889fd5466e | basic_25_charm_u-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 06e1ae30-71b7-4593-8922-7a79a1c787ad | basic_25_charm_u-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep basic_21 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${ns} Fails if objects are equal after converting them to strings. Delete NS instance. basic_21 cleanup cluster_main daily regression ${NSD_NAME} Delete a NS package from OSM. ${rc} ${stdout} Run And Return Rc And Output osm nspkg-delete ${nsd_id} Runs the keyword and continues execution even if a failure occurs. osm nspkg-delete ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-delete several_volumes-ns 2>&1'. ${rc} = 0 ${stdout} = Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Logs the given message with the given level. Deleted ${NSD_DELETE_MAX_WAIT_TIME} ${NSD_DELETE_POL_TIME} Check For NSD ${nsd_id} Runs the specified keyword and retries if it fails. ${nsd_id} Check that a NS package exists in OSM. ${rc} ${stdout} osm nspkg-list | awk '{print $2}' | grep ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-list | awk '{print $2}' | grep several_volumes-ns 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. Delete NS package from OSM. basic_21 cleanup cluster_main daily regression ${VNFD_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete several_volumes-vnf 2>&1'. ${rc} = 0 ${stdout} = Deleted ${stdout} Logs the given message with the given level. Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep several_volumes-vnf 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. Delete VNF package from OSM. basic_21 cleanup cluster_main daily regression Suite Cleanup Runs the given keyword with the given arguments and ignores possible error. Test Suit Cleanup: Deleting Descriptor, instance and vim Delete NS ${NS_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete NSD ${NSD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete VNFD ${VNFD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. [BASIC-21] NS with only one VDU and several volumes '%{PACKAGES_FOLDER}/${VNFD_PKG}' Onboards ("creates") a NF Package into OSM. - Parameters: - vnfd_pkg: Name (and location) of the NF Package - overrides (optional): String with options to override the EPA and/or interface properties of the Package. This is very useful to allow to deploy e.g. non-EPA packages in EPA VIMs (or vice-versa). Valid strings are the same as in the command. E.g.: - `--override-epa`: adds EPA attributes to all VDUs. - `--override-nonepa`: removes all EPA attributes from all VDUs. - `--override-paravirt`: converts all interfaces to `PARAVIRT`. This one can be combined with the others above (e.g. '--override-nonepa --override-paravirt'). - Relevant environment variables: - OVERRIDES: If the environment variable "OVERRIDES" exists, it prevails over the value in the argument. This is often more convenient to enforce the same behaviour for every test run in a given VIM. ${overrides} OVERRIDES default=${overrides} Returns the value of an environment variable with the given name. ${overrides} = ${rc} ${stdout} osm vnfpkg-create ${overrides} ${vnfd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-create '/robot-systest/osm-packages/sol004_hackfest_basic_vnf' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/sol004_hackfest_basic_vnf Validation OK List of charms in the descriptor: set() SOL004 Package created: /robot-systest/sol004_hackfest_basic_vnf.zip Uplo... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/sol004_hackfest_basic_vnf Validation OK List of charms in the descriptor: set() SOL004 Package created: /robot-systest/sol004_hackfest_basic_vnf.zip Uploading package /robot-systest/sol004_hackfest_basic_vnf.zip 706ffe27-ff6e-4267-8eb3-235ca621fc83 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 7 lines ${lines} = 7 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 6 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = 706ffe27-ff6e-4267-8eb3-235ca621fc83 ${id} Upload VNF package for the testsuite. azure basic_23 cluster_main daily regression '%{PACKAGES_FOLDER}/${NSD_PKG}' Upload a NS package to OSM and return the id. ${rc} ${stdout} osm nspkg-create ${nsd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-create '/robot-systest/osm-packages/sol007_hackfest_basic_ns' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/sol007_hackfest_basic_ns Validation OK List of charms in the descriptor: set() SOL007 Package created: /robot-systest/sol007_hackfest_basic_ns.zip f9abef... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/sol007_hackfest_basic_ns Validation OK List of charms in the descriptor: set() SOL007 Package created: /robot-systest/sol007_hackfest_basic_ns.zip f9abef73-98a4-49a9-a489-54e6808c1c62 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 6 lines ${lines} = 6 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 5 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = f9abef73-98a4-49a9-a489-54e6808c1c62 ${id} Upload NS package for the testsuite. azure basic_23 cluster_main daily regression ${VNFD_NAME} Deletes a NF Package that cannot be deleted and asserts the failure ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete sol004_hackfest_basic-vnf 2>&1'. ${rc} = 1 ${stdout} = ERROR: Error 409: { "code": "CONFLICT", "status": 409, "detail": "There is at least one NS package referencing this descriptor" } ${stdout} Logs the given message with the given level. ERROR: Error 409: { "code": "CONFLICT", "status": 409, "detail": "There is at least one NS package referencing this descriptor" } ${rc} ${FAILURE_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} 409 msg=Expected Conflict values=False Fails if ``container`` does not contain ``item`` one or more times. ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} True Runs the specified keyword and retries if it fails. ${vnfd_id} True Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep sol004_hackfest_basic-vnf 2>&1'. ${rc} = 0 ${stdout} = sol004_hackfest_basic-vnf ${rc},${stdout} Logs the given message with the given level. 0,sol004_hackfest_basic-vnf ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. Assert that the VNF package cannot be deleted before the NS package is deleted. azure basic_23 cluster_main daily regression ${NSD_NAME} Delete a NS package from OSM. ${rc} ${stdout} Run And Return Rc And Output osm nspkg-delete ${nsd_id} Runs the keyword and continues execution even if a failure occurs. osm nspkg-delete ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-delete sol007_hackfest_basic-ns 2>&1'. ${rc} = 0 ${stdout} = Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Logs the given message with the given level. Deleted ${NSD_DELETE_MAX_WAIT_TIME} ${NSD_DELETE_POL_TIME} Check For NSD ${nsd_id} Runs the specified keyword and retries if it fails. ${nsd_id} Check that a NS package exists in OSM. ${rc} ${stdout} osm nspkg-list | awk '{print $2}' | grep ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-list | awk '{print $2}' | grep sol007_hackfest_basic-ns 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. Delete NS package. azure basic_23 cleanup cluster_main daily regression ${VNFD_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete sol004_hackfest_basic-vnf 2>&1'. ${rc} = 0 ${stdout} = Deleted ${stdout} Logs the given message with the given level. Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep sol004_hackfest_basic-vnf 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. Delete VNF package. azure basic_23 cleanup cluster_main daily regression Suite Cleanup Runs the given keyword with the given arguments and ignores possible error. Test Suit Cleanup: Deleting NS and VNF packages Delete NSD ${NSD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete VNFD ${VNFD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. [BASIC-23] Creation and deletion of SOL004 and SOL007 packages. '%{PACKAGES_FOLDER}/${VNFD_PKG}' Onboards ("creates") a NF Package into OSM. - Parameters: - vnfd_pkg: Name (and location) of the NF Package - overrides (optional): String with options to override the EPA and/or interface properties of the Package. This is very useful to allow to deploy e.g. non-EPA packages in EPA VIMs (or vice-versa). Valid strings are the same as in the command. E.g.: - `--override-epa`: adds EPA attributes to all VDUs. - `--override-nonepa`: removes all EPA attributes from all VDUs. - `--override-paravirt`: converts all interfaces to `PARAVIRT`. This one can be combined with the others above (e.g. '--override-nonepa --override-paravirt'). - Relevant environment variables: - OVERRIDES: If the environment variable "OVERRIDES" exists, it prevails over the value in the argument. This is often more convenient to enforce the same behaviour for every test run in a given VIM. ${overrides} OVERRIDES default=${overrides} Returns the value of an environment variable with the given name. ${overrides} = ${rc} ${stdout} osm vnfpkg-create ${overrides} ${vnfd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-create '/robot-systest/osm-packages/affinity_basic_vnf' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/affinity_basic_vnf Validation OK List of charms in the descriptor: set() Adding File: affinity_basic_vnf Package created: /robot-systest/osm-packages/aff... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/affinity_basic_vnf Validation OK List of charms in the descriptor: set() Adding File: affinity_basic_vnf Package created: /robot-systest/osm-packages/affinity_basic_vnf.tar.gz Uploading package /robot-systest/osm-packages/affinity_basic_vnf.tar.gz 6742f461-6971-477a-b157-669328068cd6 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 7 lines ${lines} = 7 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 6 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = 6742f461-6971-477a-b157-669328068cd6 ${id} Upload VNF package for the testsuite. basic_24 cluster_main daily regression '%{PACKAGES_FOLDER}/${NSD_PKG}' Upload a NS package to OSM and return the id. ${rc} ${stdout} osm nspkg-create ${nsd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-create '/robot-systest/osm-packages/affinity_basic_ns' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/affinity_basic_ns Validation OK List of charms in the descriptor: set() Adding File: affinity_basic_ns Package created: /robot-systest/osm-packages/affin... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/affinity_basic_ns Validation OK List of charms in the descriptor: set() Adding File: affinity_basic_ns Package created: /robot-systest/osm-packages/affinity_basic_ns.tar.gz d4ad5463-0663-4cda-943d-f82f8873291a ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 6 lines ${lines} = 6 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 5 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = d4ad5463-0663-4cda-943d-f82f8873291a ${id} Upload NS package for the testsuite. basic_24 cluster_main daily regression ${id} ${NSD_NAME} %{VIM_TARGET} ${NS_NAME} ${NS_CONFIG} ${PUBLICKEY} Launch the instantation of a NS and verify in a loop that the NS instance is successfully created in a given time, and return the NS instance id. ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_launch_max_wait_time} = 300.0 ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_launch_max_wait_time} = 300.0 ${ns_launch_max_wait_time} Logs the given message with the given level. 300.0 ${config_attr} '${ns_config}'!='${EMPTY}' --config '${ns_config}' ${EMPTY} Sets variable based on the given condition. ${config_attr} = --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext} ] }' ${sshkeys_attr} '${publickey}'!='${EMPTY}' --ssh_keys ${publickey} ${EMPTY} Sets variable based on the given condition. ${sshkeys_attr} = --ssh_keys /root/.ssh/id_rsa.pub ${config_file_attr} '${config_file}'!='${EMPTY}' --config_file '${config_file}' ${EMPTY} Sets variable based on the given condition. ${config_file_attr} = ${ns_id} ${ns_name} ${nsd} ${vim_name} ${config_attr} ${sshkeys_attr} ${config_file_attr} Launch the instantation of a NS, and return the NS instance id. ${rc} ${stdout} osm ns-create --ns_name ${ns_name} --nsd_name ${nsd} --vim_account ${vim_name} ${ns_extra_args} Runs the given command in the system and returns the RC and output. Running command 'osm ns-create --ns_name basic_24 --nsd_name affinity_basic-ns --vim_account osm --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext} ] }' --ssh_keys /root/.ssh/id_rsa.pub 2>&1'. ${rc} = 0 ${stdout} = 3ea2b8fe-b818-4efb-a52c-634d43e0f604 ${stdout} Logs the given message with the given level. 3ea2b8fe-b818-4efb-a52c-634d43e0f604 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 3ea2b8fe-b818-4efb-a52c-634d43e0f604 ${ns_id} Logs the given message with the given level. 3ea2b8fe-b818-4efb-a52c-634d43e0f604 ${ns_launch_max_wait_time} ${NS_LAUNCH_POL_TIME} Check For NS Instance To Configured ${ns_name} Runs the specified keyword and retries if it fails. ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ | bc8df79b-6bd0-480e-b728-41889fd5466e | basic_25_charm_u-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 06e1ae30-71b7-4593-8922-7a79a1c787ad | basic_25_charm_u-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_24" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_24 | 3ea2b8fe-b818-4efb-a52c-634d43e0f604 | 2024-02-19T03:00:02 | BUILDING | INSTANTIATING (112a4397-c854-4b48-8ffe-bc499ff5b391) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_24 | 3ea2b8fe-b818-4efb-a52c-634d43e0f604 | 2024-02-19T03:00:02 | BUILDING | INSTANTIATING (112a4397-c854-4b48-8ffe-bc499ff5b391) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 905e2fc6-f946-4cf1-a862-7af810c3baec | basic_24-affinity-basic-1-affinity_basic-VM-2-0 | ACTIVE | osm-ext=172.21.248.54 | ubuntu20.04 | simple_requires-1-1-flv | | 75dcaca1-f6d7-4bfc-8499-cfe809a7b70e | basic_24-affinity-basic-1-affinity_basic-VM-1-0 | ACTIVE | osm-ext=172.21.249.92 | ubuntu20.04 | simple_requires-1-1-flv | | bc8df79b-6bd0-480e-b728-41889fd5466e | basic_25_charm_u-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 06e1ae30-71b7-4593-8922-7a79a1c787ad | basic_25_charm_u-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_24" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_24 | 3ea2b8fe-b818-4efb-a52c-634d43e0f604 | 2024-02-19T03:00:02 | BUILDING | INSTANTIATING (112a4397-c854-4b48-8ffe-bc499ff5b391) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_24 | 3ea2b8fe-b818-4efb-a52c-634d43e0f604 | 2024-02-19T03:00:02 | BUILDING | INSTANTIATING (112a4397-c854-4b48-8ffe-bc499ff5b391) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 905e2fc6-f946-4cf1-a862-7af810c3baec | basic_24-affinity-basic-1-affinity_basic-VM-2-0 | ACTIVE | osm-ext=172.21.248.54 | ubuntu20.04 | simple_requires-1-1-flv | | 75dcaca1-f6d7-4bfc-8499-cfe809a7b70e | basic_24-affinity-basic-1-affinity_basic-VM-1-0 | ACTIVE | osm-ext=172.21.249.92 | ubuntu20.04 | simple_requires-1-1-flv | | bc8df79b-6bd0-480e-b728-41889fd5466e | basic_25_charm_u-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 06e1ae30-71b7-4593-8922-7a79a1c787ad | basic_25_charm_u-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_24" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | basic_24 | 3ea2b8fe-b818-4efb-a52c-634d43e0f604 | 2024-02-19T03:00:02 | READY | IDLE (None) | N/A | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. ${ns_name} Check if a given NS instance has not failed in the instantiation (the status should not be BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 905e2fc6-f946-4cf1-a862-7af810c3baec | basic_24-affinity-basic-1-affinity_basic-VM-2-0 | ACTIVE | osm-ext=172.21.248.54 | ubuntu20.04 | simple_requires-1-1-flv | | 75dcaca1-f6d7-4bfc-8499-cfe809a7b70e | basic_24-affinity-basic-1-affinity_basic-VM-1-0 | ACTIVE | osm-ext=172.21.249.92 | ubuntu20.04 | simple_requires-1-1-flv | | bc8df79b-6bd0-480e-b728-41889fd5466e | basic_25_charm_u-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 06e1ae30-71b7-4593-8922-7a79a1c787ad | basic_25_charm_u-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_24" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | basic_24 | 3ea2b8fe-b818-4efb-a52c-634d43e0f604 | 2024-02-19T03:00:02 | READY | IDLE (None) | N/A | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} BROKEN Fails if ``container`` contains ``item`` one or more times. ${ns_id} ${id} = 3ea2b8fe-b818-4efb-a52c-634d43e0f604 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 3ea2b8fe-b818-4efb-a52c-634d43e0f604 Instantiate NS for the testsuite. basic_24 cluster_main daily regression ${NS_ID} msg=NS is not available Fails unless the given variable exists within the current scope. ${vnf_id} ${NS_ID} ${VNF_MEMBER_INDEX} Get the VNF instance ID of a member VNF in a NS instance, and return it. ${ns_id} Verifies that the given item is not empty. Length is 36 ${vnf_member_index} Verifies that the given item is not empty. Length is 16 ${rc} ${stdout} osm vnf-list --filter member-vnf-index-ref=${vnf_member_index} | grep ${ns_id} | awk '{print $2}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm vnf-list --filter member-vnf-index-ref=affinity-basic-1 | grep 3ea2b8fe-b818-4efb-a52c-634d43e0f604 | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = 8264654c-f5f4-4f45-9351-d75cc4d82173 ${stdout} Logs the given message with the given level. 8264654c-f5f4-4f45-9351-d75cc4d82173 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${vnf_id} = 8264654c-f5f4-4f45-9351-d75cc4d82173 @{vdur_id_list} ${vnf_id} Return a list of the VDU instance ids of a VNF instance ${vnf_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm vnf-show ${vnf_id} --literal | yq '.vdur[].id' Runs the given command in the system and returns the RC and output. Running command 'osm vnf-show 8264654c-f5f4-4f45-9351-d75cc4d82173 --literal | yq '.vdur[].id' 2>&1'. ${rc} = 0 ${stdout} = "a3f4aae8-3b75-462f-9dd6-32225ffb0688" "de23419f-c082-4613-845a-e2650c168a73" ${stdout} Logs the given message with the given level. "a3f4aae8-3b75-462f-9dd6-32225ffb0688" "de23419f-c082-4613-845a-e2650c168a73" ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> @{vdur_ids} ${stdout} Splits the ``string`` using ``separator`` as a delimiter string. @{vdur_ids} = [ "a3f4aae8-3b75-462f-9dd6-32225ffb0688" | "de23419f-c082-4613-845a-e2650c168a73" ] @{vdur_ids} @{vdur_id_list} = [ "a3f4aae8-3b75-462f-9dd6-32225ffb0688" | "de23419f-c082-4613-845a-e2650c168a73" ] ${vdur_id} @{vdur_id_list} "a3f4aae8-3b75-462f-9dd6-32225ffb0688" ${server_group_name} ${NS_NAME} ${vnf_id} ${vdur_id} Return the affinity group name for a NF ${rc} ${affinity_group_id} osm vnf-show ${vnf_id} --literal | yq '.vdur[] | select(.id == "'${vdur_id}'")' | yq -r '."affinity-or-anti-affinity-group-id"[0]' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm vnf-show 8264654c-f5f4-4f45-9351-d75cc4d82173 --literal | yq '.vdur[] | select(.id == "'"a3f4aae8-3b75-462f-9dd6-32225ffb0688"'")' | yq -r '."affinity-or-anti-affinity-group-id"[0]' 2>&1'. ${rc} = 0 ${affinity_group_id} = 0 ${affinity_group_id} Logs the given message with the given level. 0 ${rc} ${SUCCESS_RETURN_CODE} msg=${affinity_group_id} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${rc} ${affinity_group_name} osm ns-show ${ns_name} --literal | yq '."affinity-or-anti-affinity-group"[] | select(.id == "'${affinity_group_id}'")' | yq -r '.name' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm ns-show basic_24 --literal | yq '."affinity-or-anti-affinity-group"[] | select(.id == "'0'")' | yq -r '.name' 2>&1'. ${rc} = 0 ${affinity_group_name} = basic_24-affinity-basic-1-affinity-group-1 ${affinity_group_name} Logs the given message with the given level. basic_24-affinity-basic-1-affinity-group-1 ${rc} ${SUCCESS_RETURN_CODE} msg=${affinity_group_name} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${affinity_group_name} ${server_group_name} = basic_24-affinity-basic-1-affinity-group-1 ${vm_vim_id} ${vnf_id} ${vdur_id} Return the VIM VM ID for a VDU ${vnf_id} Verifies that the given item is not empty. Length is 36 ${rc} ${vm_vim_id} osm vnf-show ${vnf_id} --literal | yq '.vdur[] | select(.id == "'${vdur_id}'")' | yq -r '."vim-id"' Runs the given command in the system and returns the RC and output. Running command 'osm vnf-show 8264654c-f5f4-4f45-9351-d75cc4d82173 --literal | yq '.vdur[] | select(.id == "'"a3f4aae8-3b75-462f-9dd6-32225ffb0688"'")' | yq -r '."vim-id"' 2>&1'. ${rc} = 0 ${vm_vim_id} = 75dcaca1-f6d7-4bfc-8499-cfe809a7b70e ${vm_vim_id} Logs the given message with the given level. 75dcaca1-f6d7-4bfc-8499-cfe809a7b70e ${rc} ${SUCCESS_RETURN_CODE} msg=${vm_vim_id} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${vm_vim_id} ${vm_vim_id} = 75dcaca1-f6d7-4bfc-8499-cfe809a7b70e ${vm_vim_id} ${server_group_name} Check if a given server is included in an Openstack server group ${server_group_name} Verifies that the given item is not empty. Length is 42 ${server_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} openstack server group show ${server_group_name} -c members -f value Runs the given command in the system and returns the RC and output. Running command 'openstack server group show basic_24-affinity-basic-1-affinity-group-1 -c members -f value 2>&1'. ${rc} = 0 ${stdout} = ['905e2fc6-f946-4cf1-a862-7af810c3baec', '75dcaca1-f6d7-4bfc-8499-cfe809a7b70e'] ${stdout} Logs the given message with the given level. ['905e2fc6-f946-4cf1-a862-7af810c3baec', '75dcaca1-f6d7-4bfc-8499-cfe809a7b70e'] ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${server_id} Fails if ``container`` does not contain ``item`` one or more times. "de23419f-c082-4613-845a-e2650c168a73" ${server_group_name} ${NS_NAME} ${vnf_id} ${vdur_id} Return the affinity group name for a NF ${rc} ${affinity_group_id} osm vnf-show ${vnf_id} --literal | yq '.vdur[] | select(.id == "'${vdur_id}'")' | yq -r '."affinity-or-anti-affinity-group-id"[0]' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm vnf-show 8264654c-f5f4-4f45-9351-d75cc4d82173 --literal | yq '.vdur[] | select(.id == "'"de23419f-c082-4613-845a-e2650c168a73"'")' | yq -r '."affinity-or-anti-affinity-group-id"[0]' 2>&1'. ${rc} = 0 ${affinity_group_id} = 0 ${affinity_group_id} Logs the given message with the given level. 0 ${rc} ${SUCCESS_RETURN_CODE} msg=${affinity_group_id} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${rc} ${affinity_group_name} osm ns-show ${ns_name} --literal | yq '."affinity-or-anti-affinity-group"[] | select(.id == "'${affinity_group_id}'")' | yq -r '.name' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm ns-show basic_24 --literal | yq '."affinity-or-anti-affinity-group"[] | select(.id == "'0'")' | yq -r '.name' 2>&1'. ${rc} = 0 ${affinity_group_name} = basic_24-affinity-basic-1-affinity-group-1 ${affinity_group_name} Logs the given message with the given level. basic_24-affinity-basic-1-affinity-group-1 ${rc} ${SUCCESS_RETURN_CODE} msg=${affinity_group_name} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${affinity_group_name} ${server_group_name} = basic_24-affinity-basic-1-affinity-group-1 ${vm_vim_id} ${vnf_id} ${vdur_id} Return the VIM VM ID for a VDU ${vnf_id} Verifies that the given item is not empty. Length is 36 ${rc} ${vm_vim_id} osm vnf-show ${vnf_id} --literal | yq '.vdur[] | select(.id == "'${vdur_id}'")' | yq -r '."vim-id"' Runs the given command in the system and returns the RC and output. Running command 'osm vnf-show 8264654c-f5f4-4f45-9351-d75cc4d82173 --literal | yq '.vdur[] | select(.id == "'"de23419f-c082-4613-845a-e2650c168a73"'")' | yq -r '."vim-id"' 2>&1'. ${rc} = 0 ${vm_vim_id} = 905e2fc6-f946-4cf1-a862-7af810c3baec ${vm_vim_id} Logs the given message with the given level. 905e2fc6-f946-4cf1-a862-7af810c3baec ${rc} ${SUCCESS_RETURN_CODE} msg=${vm_vim_id} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${vm_vim_id} ${vm_vim_id} = 905e2fc6-f946-4cf1-a862-7af810c3baec ${vm_vim_id} ${server_group_name} Check if a given server is included in an Openstack server group ${server_group_name} Verifies that the given item is not empty. Length is 42 ${server_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} openstack server group show ${server_group_name} -c members -f value Runs the given command in the system and returns the RC and output. Running command 'openstack server group show basic_24-affinity-basic-1-affinity-group-1 -c members -f value 2>&1'. ${rc} = 0 ${stdout} = ['905e2fc6-f946-4cf1-a862-7af810c3baec', '75dcaca1-f6d7-4bfc-8499-cfe809a7b70e'] ${stdout} Logs the given message with the given level. ['905e2fc6-f946-4cf1-a862-7af810c3baec', '75dcaca1-f6d7-4bfc-8499-cfe809a7b70e'] ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${server_id} Fails if ``container`` does not contain ``item`` one or more times. Check that all VDUs of the VNF belong to the expected affinity group. basic_24 cluster_main daily regression ${NS_NAME} Delete a NS instance. ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} Logs the given message with the given level. 240.0 ${rc} ${stdout} osm ns-delete ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-delete basic_24 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${stdout} Logs the given message with the given level. Deletion in progress ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${ns_delete_max_wait_time} ${NS_DELETE_POL_TIME} Check For NS Instance To Be Deleted ${ns} Runs the specified keyword and retries if it fails. ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 905e2fc6-f946-4cf1-a862-7af810c3baec | basic_24-affinity-basic-1-affinity_basic-VM-2-0 | ACTIVE | osm-ext=172.21.248.54 | ubuntu20.04 | simple_requires-1-1-flv | | 75dcaca1-f6d7-4bfc-8499-cfe809a7b70e | basic_24-affinity-basic-1-affinity_basic-VM-1-0 | ACTIVE | osm-ext=172.21.249.92 | ubuntu20.04 | simple_requires-1-1-flv | | bc8df79b-6bd0-480e-b728-41889fd5466e | basic_25_charm_u-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 06e1ae30-71b7-4593-8922-7a79a1c787ad | basic_25_charm_u-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep basic_24 2>&1'. ${rc} = 0 ${stdout} = basic_24 ${rc},${stdout} Logs the given message with the given level. 0,basic_24 ${stdout} ${ns} Fails if objects are equal after converting them to strings. basic_24 == basic_24 ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ | bc8df79b-6bd0-480e-b728-41889fd5466e | basic_25_charm_u-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 06e1ae30-71b7-4593-8922-7a79a1c787ad | basic_25_charm_u-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep basic_24 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${ns} Fails if objects are equal after converting them to strings. Delete NS instance. basic_24 cleanup cluster_main daily regression ${NSD_NAME} Delete a NS package from OSM. ${rc} ${stdout} Run And Return Rc And Output osm nspkg-delete ${nsd_id} Runs the keyword and continues execution even if a failure occurs. osm nspkg-delete ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-delete affinity_basic-ns 2>&1'. ${rc} = 0 ${stdout} = Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Logs the given message with the given level. Deleted ${NSD_DELETE_MAX_WAIT_TIME} ${NSD_DELETE_POL_TIME} Check For NSD ${nsd_id} Runs the specified keyword and retries if it fails. ${nsd_id} Check that a NS package exists in OSM. ${rc} ${stdout} osm nspkg-list | awk '{print $2}' | grep ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-list | awk '{print $2}' | grep affinity_basic-ns 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. Delete NS package from OSM. basic_24 cleanup cluster_main daily regression ${VNFD_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete affinity_basic-vnf 2>&1'. ${rc} = 0 ${stdout} = Deleted ${stdout} Logs the given message with the given level. Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep affinity_basic-vnf 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. Delete VNF package from OSM. basic_24 cleanup cluster_main daily regression Suite Cleanup Runs the given keyword with the given arguments and ignores possible error. Test Suit Cleanup: Deleting Descriptor, instance and vim Delete NS ${NS_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete NSD ${NSD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete VNFD ${VNFD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. [BASIC-24] VNF with two VDUs belonging to an Openstack server group ${id} '%{PACKAGES_FOLDER}/${VNFD_PKG}' Onboards ("creates") a NF Package into OSM. - Parameters: - vnfd_pkg: Name (and location) of the NF Package - overrides (optional): String with options to override the EPA and/or interface properties of the Package. This is very useful to allow to deploy e.g. non-EPA packages in EPA VIMs (or vice-versa). Valid strings are the same as in the command. E.g.: - `--override-epa`: adds EPA attributes to all VDUs. - `--override-nonepa`: removes all EPA attributes from all VDUs. - `--override-paravirt`: converts all interfaces to `PARAVIRT`. This one can be combined with the others above (e.g. '--override-nonepa --override-paravirt'). - Relevant environment variables: - OVERRIDES: If the environment variable "OVERRIDES" exists, it prevails over the value in the argument. This is often more convenient to enforce the same behaviour for every test run in a given VIM. ${overrides} OVERRIDES default=${overrides} Returns the value of an environment variable with the given name. ${overrides} = ${rc} ${stdout} osm vnfpkg-create ${overrides} ${vnfd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-create '/robot-systest/osm-packages/simple_ee_vnf' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/simple_ee_vnf Validation OK List of charms in the descriptor: set() Adding File: simple_ee_vnf Package created: /robot-systest/osm-packages/simple_ee_vnf... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/simple_ee_vnf Validation OK List of charms in the descriptor: set() Adding File: simple_ee_vnf Package created: /robot-systest/osm-packages/simple_ee_vnf.tar.gz Uploading package /robot-systest/osm-packages/simple_ee_vnf.tar.gz a182f313-1d88-4cec-863e-a86d6e83f4c2 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 7 lines ${lines} = 7 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 6 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = a182f313-1d88-4cec-863e-a86d6e83f4c2 ${id} ${id} = a182f313-1d88-4cec-863e-a86d6e83f4c2 ${VNFD_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${VNFD_ID} = a182f313-1d88-4cec-863e-a86d6e83f4c2 Upload VNF package for the testsuite. basic_27 cluster_ee_config daily regression '%{PACKAGES_FOLDER}/${NSD_PKG}' Upload a NS package to OSM and return the id. ${rc} ${stdout} osm nspkg-create ${nsd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-create '/robot-systest/osm-packages/simple_ee_ns' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/simple_ee_ns Validation OK List of charms in the descriptor: set() Adding File: simple_ee_ns Package created: /robot-systest/osm-packages/simple_ee_ns.ta... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/simple_ee_ns Validation OK List of charms in the descriptor: set() Adding File: simple_ee_ns Package created: /robot-systest/osm-packages/simple_ee_ns.tar.gz f85e099a-44f8-4006-82db-231a95a4c743 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 6 lines ${lines} = 6 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 5 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = f85e099a-44f8-4006-82db-231a95a4c743 ${id} Upload NS package for the testsuite. basic_27 cluster_ee_config daily regression ${id} ${NSD_NAME} %{VIM_TARGET} ${NS_NAME} ${NS_CONFIG} ${PUBLICKEY} ${NS_TIMEOUT} Launch the instantation of a NS and verify in a loop that the NS instance is successfully created in a given time, and return the NS instance id. ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_launch_max_wait_time} = 900.0 ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_launch_max_wait_time} = 900.0 ${ns_launch_max_wait_time} Logs the given message with the given level. 900.0 ${config_attr} '${ns_config}'!='${EMPTY}' --config '${ns_config}' ${EMPTY} Sets variable based on the given condition. ${config_attr} = --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext} ] }' ${sshkeys_attr} '${publickey}'!='${EMPTY}' --ssh_keys ${publickey} ${EMPTY} Sets variable based on the given condition. ${sshkeys_attr} = --ssh_keys /root/.ssh/id_rsa.pub ${config_file_attr} '${config_file}'!='${EMPTY}' --config_file '${config_file}' ${EMPTY} Sets variable based on the given condition. ${config_file_attr} = ${ns_id} ${ns_name} ${nsd} ${vim_name} ${config_attr} ${sshkeys_attr} ${config_file_attr} Launch the instantation of a NS, and return the NS instance id. ${rc} ${stdout} osm ns-create --ns_name ${ns_name} --nsd_name ${nsd} --vim_account ${vim_name} ${ns_extra_args} Runs the given command in the system and returns the RC and output. Running command 'osm ns-create --ns_name basic_27_helm_ee_update_test --nsd_name simple_ee-ns --vim_account osm --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext} ] }' --ssh_keys /root/.ssh/id_rsa.pub 2>&1'. ${rc} = 0 ${stdout} = 0c75f305-0fb9-4b96-b2f1-3dcb6e526634 ${stdout} Logs the given message with the given level. 0c75f305-0fb9-4b96-b2f1-3dcb6e526634 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 0c75f305-0fb9-4b96-b2f1-3dcb6e526634 ${ns_id} Logs the given message with the given level. 0c75f305-0fb9-4b96-b2f1-3dcb6e526634 ${ns_launch_max_wait_time} ${NS_LAUNCH_POL_TIME} Check For NS Instance To Configured ${ns_name} Runs the specified keyword and retries if it fails. ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ | bc8df79b-6bd0-480e-b728-41889fd5466e | basic_25_charm_u-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 06e1ae30-71b7-4593-8922-7a79a1c787ad | basic_25_charm_u-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_27_helm_ee_update_test" 2>&1'. ${rc} = 0 ${stdout} = +------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_27_helm_ee_update_test | 0c75f305-0fb9-4b96-b2f1-3dcb6e526634 | 2024-02-19T03:02:02 | BUILDING | INSTANTIATING (e795f16e-9e65-4442-ba65-56fbccf0f137) | N/A | +------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_27_helm_ee_update_test | 0c75f305-0fb9-4b96-b2f1-3dcb6e526634 | 2024-02-19T03:02:02 | BUILDING | INSTANTIATING (e795f16e-9e65-4442-ba65-56fbccf0f137) | N/A | +------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+----------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+----------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+----------------------------------+--------+------------------------+-------------+-------------------------+ | cadfc52e-f6e5-4cb3-b264-dd4875bf8911 | basic_27_helm_ee-simple-mgmtVM-0 | ACTIVE | osm-ext=172.21.249.213 | ubuntu18.04 | mgmtVM-simple-1-flv-51 | | bc8df79b-6bd0-480e-b728-41889fd5466e | basic_25_charm_u-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 06e1ae30-71b7-4593-8922-7a79a1c787ad | basic_25_charm_u-vnf1-mgmtVM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+----------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_27_helm_ee_update_test" 2>&1'. ${rc} = 0 ${stdout} = +------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_27_helm_ee_update_test | 0c75f305-0fb9-4b96-b2f1-3dcb6e526634 | 2024-02-19T03:02:02 | BUILDING | INSTANTIATING (e795f16e-9e65-4442-ba65-56fbccf0f137) | N/A | +------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_27_helm_ee_update_test | 0c75f305-0fb9-4b96-b2f1-3dcb6e526634 | 2024-02-19T03:02:02 | BUILDING | INSTANTIATING (e795f16e-9e65-4442-ba65-56fbccf0f137) | N/A | +------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+----------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+----------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+----------------------------------+--------+------------------------+-------------+-------------------------+ | cadfc52e-f6e5-4cb3-b264-dd4875bf8911 | basic_27_helm_ee-simple-mgmtVM-0 | ACTIVE | osm-ext=172.21.249.213 | ubuntu18.04 | mgmtVM-simple-1-flv-51 | | bc8df79b-6bd0-480e-b728-41889fd5466e | basic_25_charm_u-vnf2-mgmtVM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 06e1ae30-71b7-4593-8922-7a79a1c787ad | basic_25_charm_u-vnf1-mgmtVM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+----------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_27_helm_ee_update_test" 2>&1'. ${rc} = 0 ${stdout} = +------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_27_helm_ee_update_test | 0c75f305-0fb9-4b96-b2f1-3dcb6e526634 | 2024-02-19T03:02:02 | BUILDING | INSTANTIATING (e795f16e-9e65-4442-ba65-56fbccf0f137) | N/A | +------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_27_helm_ee_update_test | 0c75f305-0fb9-4b96-b2f1-3dcb6e526634 | 2024-02-19T03:02:02 | BUILDING | INSTANTIATING (e795f16e-9e65-4442-ba65-56fbccf0f137) | N/A | +------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+----------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+----------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+----------------------------------+--------+------------------------+-------------+-------------------------+ | 9d0d6d40-11b2-4596-a71b-a866decaf5ba | k8s_10-k8s_proxy-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | ebc351de-791d-49d7-a5c0-8e8e598d5253 | k8s_10-k8s_proxy-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | cadfc52e-f6e5-4cb3-b264-dd4875bf8911 | basic_27_helm_ee-simple-mgmtVM-0 | ACTIVE | osm-ext=172.21.249.213 | ubuntu18.04 | mgmtVM-simple-1-flv-51 | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+----------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_27_helm_ee_update_test" 2>&1'. ${rc} = 0 ${stdout} = +------------------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | basic_27_helm_ee_update_test | 0c75f305-0fb9-4b96-b2f1-3dcb6e526634 | 2024-02-19T03:02:02 | READY | IDLE (None) | N/A | +------------------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. ${ns_name} Check if a given NS instance has not failed in the instantiation (the status should not be BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+----------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+----------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+----------------------------------+--------+------------------------+-------------+-------------------------+ | 9d0d6d40-11b2-4596-a71b-a866decaf5ba | k8s_10-k8s_proxy-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | ebc351de-791d-49d7-a5c0-8e8e598d5253 | k8s_10-k8s_proxy-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | cadfc52e-f6e5-4cb3-b264-dd4875bf8911 | basic_27_helm_ee-simple-mgmtVM-0 | ACTIVE | osm-ext=172.21.249.213 | ubuntu18.04 | mgmtVM-simple-1-flv-51 | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+----------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_27_helm_ee_update_test" 2>&1'. ${rc} = 0 ${stdout} = +------------------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | basic_27_helm_ee_update_test | 0c75f305-0fb9-4b96-b2f1-3dcb6e526634 | 2024-02-19T03:02:02 | READY | IDLE (None) | N/A | +------------------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} BROKEN Fails if ``container`` contains ``item`` one or more times. ${ns_id} ${id} = 0c75f305-0fb9-4b96-b2f1-3dcb6e526634 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 0c75f305-0fb9-4b96-b2f1-3dcb6e526634 Instantiate NS for the testsuite. basic_27 cluster_ee_config daily regression ${NS_ID} msg=NS is not available Fails unless the given variable exists within the current scope. ${id} ${NS_ID} ${VNF_MEMBER_INDEX} Get the VNF instance ID of a member VNF in a NS instance, and return it. ${ns_id} Verifies that the given item is not empty. Length is 36 ${vnf_member_index} Verifies that the given item is not empty. Length is 6 ${rc} ${stdout} osm vnf-list --filter member-vnf-index-ref=${vnf_member_index} | grep ${ns_id} | awk '{print $2}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm vnf-list --filter member-vnf-index-ref=simple | grep 0c75f305-0fb9-4b96-b2f1-3dcb6e526634 | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = f02e3dd7-c689-4888-b18c-9310474ee8f3 ${stdout} Logs the given message with the given level. f02e3dd7-c689-4888-b18c-9310474ee8f3 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = f02e3dd7-c689-4888-b18c-9310474ee8f3 ${id} Logs the given message with the given level. f02e3dd7-c689-4888-b18c-9310474ee8f3 ${VNF_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${VNF_ID} = f02e3dd7-c689-4888-b18c-9310474ee8f3 ${NS_UPDATE_CONFIG} '{changeVnfPackageData: [{vnfInstanceId: "${VNF_ID}", vnfdId: "${VNFD_ID}"}]}' Makes a variable available everywhere within the scope of the current suite. ${NS_UPDATE_CONFIG} = '{changeVnfPackageData: [{vnfInstanceId: "f02e3dd7-c689-4888-b18c-9310474ee8f3", vnfdId: "a182f313-1d88-4cec-863e-a86d6e83f4c2"}]}' Prepare NS update config dictionary to update the NS. basic_27 cluster_ee_config daily regression ${ip_addr} ${NS_ID} ${VNF_MEMBER_INDEX} Get the mgmt IP address of a member VNF in a NS instance, and return it. ${ns_id} Verifies that the given item is not empty. Length is 36 ${vnf_member_index} Verifies that the given item is not empty. Length is 6 ${rc} ${stdout} osm vnf-list --filter member-vnf-index-ref=${vnf_member_index} | grep ${ns_id} | awk '{print $14}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm vnf-list --filter member-vnf-index-ref=simple | grep 0c75f305-0fb9-4b96-b2f1-3dcb6e526634 | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.249.213 ${stdout} Logs the given message with the given level. 172.21.249.213 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ip_addr} = 172.21.249.213 ${ip_addr} Logs the given message with the given level. 172.21.249.213 ${VNF_IP_ADDR} ${ip_addr} Makes a variable available everywhere within the scope of the current suite. ${VNF_IP_ADDR} = 172.21.249.213 Get VNF mgmt IP address from the NS. basic_27 cluster_ee_config daily regression ${VNF_IP_ADDR} msg=IP address of the management VNF '${VNF_MEMBER_INDEX}' is not available Fails unless the given variable exists within the current scope. 30s Waiting ssh daemon to be up Pauses the test executed for the given time. Slept 30 seconds Waiting ssh daemon to be up ${VNF_IP_ADDR} ${USERNAME} ${PASSWORD} ${PRIVATEKEY} Test the SSH connection to the host with the user and credentials passed as arguments. ${host} Opens a new SSH connection to the given ``host`` and ``port``. ${username} ${password} Logs into the SSH server with the given ``username`` and ``password``. ${username} ${privatekey} Logs into the SSH server using key-based authentication. Logging into '172.21.249.213:22' as 'ubuntu'. Read output: Welcome to Ubuntu 18.04.6 LTS (GNU/Linux 4.15.0-180-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Mon Feb 19 03:04:21 UTC 2024 System load: 0.31 Processes: 86 Usage of /: 5.9% of 19.21GB Users logged in: 0 Memory usage: 12% IP address for ens3: 172.21.249.213 Swap usage: 0% 0 updates can be applied immediately. New release '20.04.6 LTS' available. Run 'do-release-upgrade' to upgrade to it. To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. ubuntu@basic-27-helm-ee-simple-mgmtvm-0:~$ hostname Executes ``command`` on the remote machine and returns its outputs. Executing command 'hostname'. Command exited with return code 0. Closes all open connections. Test SSH access to the VNF mgmt IP address. basic_27 cluster_ee_config daily regression ${VNF_IP_ADDR} ${USERNAME} ${PASSWORD} ${PRIVATEKEY} ${DAY_1_FILE_NAME} Check via SSH if a file exists in in the remote host, using the user and credentials passed as arguments. ${host} Opens a new SSH connection to the given ``host`` and ``port``. ${username} ${password} Logs into the SSH server with the given ``username`` and ``password``. ${username} ${privatekey} Logs into the SSH server using key-based authentication. Logging into '172.21.249.213:22' as 'ubuntu'. Read output: Welcome to Ubuntu 18.04.6 LTS (GNU/Linux 4.15.0-180-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Mon Feb 19 03:04:23 UTC 2024 System load: 0.31 Processes: 86 Usage of /: 5.9% of 19.21GB Users logged in: 0 Memory usage: 12% IP address for ens3: 172.21.249.213 Swap usage: 0% 0 updates can be applied immediately. New release '20.04.6 LTS' available. Run 'do-release-upgrade' to upgrade to it. Last login: Mon Feb 19 03:04:22 2024 from 172.21.249.4 To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. ubuntu@basic-27-helm-ee-simple-mgmtvm-0:~$ ${rc} ls ${file} >& /dev/null return_stdout=False return_rc=True Executes ``command`` on the remote machine and returns its outputs. Executing command 'ls /home/ubuntu/first-touch >& /dev/null'. Command exited with return code 0. ${rc} = 0 Closes all open connections. ${rc} 0 Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> The VNF has a Day 1 operation that creates a file named /home/ubuntu/first-touch. This test checks whether that files have been created or not. basic_27 cluster_ee_config daily regression ${NS_ID} msg=Network service instance is not available Fails unless the given variable exists within the current scope. ${ns_op_id_1} ${NS_NAME} ${ACTION_NAME} ${VNF_MEMBER_INDEX} file-path=${DAY_2_FILE_NAME} Execute an action over the desired NS. Parameters are given to this function in key=value format (one argument per key/value pair). Return the ID of the operation associated to the executed action. Examples of execution: ${ns_op_id}= Execute NS Action ${ns_name} ${ns_action} ${vnf_member_index} ${ns_op_id}= Execute NS Action ${ns_name} ${ns_action} ${vnf_member_index} ${param1}=${value1} ${param2}=${value2} ${params} ${EMPTY} Returns the given values which can then be assigned to a variables. ${params} = ${param} @{action_params} file-path=/home/ubuntu/mytouch1 ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = file-path=/home/ubuntu/mytouch1 ${param_name} = file-path ${param_value} = /home/ubuntu/mytouch1 ${match},${param_name},${param_value} Logs the given message with the given level. file-path=/home/ubuntu/mytouch1,file-path,/home/ubuntu/mytouch1 ${params} SEPARATOR= ${params} "${param_name}":"${param_value}", Catenates the given items together and returns the resulted string. ${params} = "file-path":"/home/ubuntu/mytouch1", ${osm_ns_action_command} osm ns-action --action_name ${ns_action} --vnf_name ${vnf_member_index} Returns the given values which can then be assigned to a variables. ${osm_ns_action_command} = osm ns-action --action_name touch --vnf_name simple ${osm_ns_action_command} ${osm_ns_action_command} --params '{${params}}' Catenates the given items together and returns the resulted string. ${osm_ns_action_command} = osm ns-action --action_name touch --vnf_name simple --params '{"file-path":"/home/ubuntu/mytouch1",}' ${osm_ns_action_command} ${osm_ns_action_command} Returns the given values which can then be assigned to a variables. ${osm_ns_action_command} ${osm_ns_action_command} ${ns_name} Catenates the given items together and returns the resulted string. ${osm_ns_action_command} = osm ns-action --action_name touch --vnf_name simple --params '{"file-path":"/home/ubuntu/mytouch1",}' basic_27_helm_ee_update_test ${rc} ${stdout} ${osm_ns_action_command} Runs the given command in the system and returns the RC and output. Running command 'osm ns-action --action_name touch --vnf_name simple --params '{"file-path":"/home/ubuntu/mytouch1",}' basic_27_helm_ee_update_test 2>&1'. ${rc} = 0 ${stdout} = 26e281f9-1704-4069-9825-0275e11d780d ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${NS_ACTION_MAX_WAIT_TIME} ${NS_ACTION_POL_TIME} Check For NS Operation Ended ${stdout} Runs the specified keyword and retries if it fails. ${stdout} Check wheter the status of the desired operation is "FAILED" or "COMPLETED". ${ns_operation_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm ns-op-show ${ns_operation_id} --literal | yq -r .operationState Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-show 26e281f9-1704-4069-9825-0275e11d780d --literal | yq -r .operationState 2>&1'. ${rc} = 0 ${stdout} = COMPLETED ${stdout} Logs the given message with the given level. COMPLETED ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} FAILED COMPLETED msg=Timeout waiting for ns-action with id ${ns_operation_id} values=False Fails if ``container`` does not contain any of the ``*items``. ${stdout} Check wheter the status of the desired operation is "COMPLETED" or not. ${ns_operation_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm ns-op-show ${ns_operation_id} --literal | yq -r .operationState Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-show 26e281f9-1704-4069-9825-0275e11d780d --literal | yq -r .operationState 2>&1'. ${rc} = 0 ${stdout} = COMPLETED ${stdout} Logs the given message with the given level. COMPLETED ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} COMPLETED msg=The ns-action with id ${ns_operation_id} was not completed values=False Fails if ``container`` does not contain ``item`` one or more times. ${stdout} ${ns_op_id_1} = 26e281f9-1704-4069-9825-0275e11d780d ${ns_op_id_1} Logs the given message with the given level. 26e281f9-1704-4069-9825-0275e11d780d Performs one Day 2 operation on the VNF that creates a new file. basic_27 cluster_ee_config daily regression ${VNF_IP_ADDR} ${USERNAME} ${PASSWORD} ${PRIVATEKEY} ${DAY_2_FILE_NAME} Check via SSH if a file exists in in the remote host, using the user and credentials passed as arguments. ${host} Opens a new SSH connection to the given ``host`` and ``port``. ${username} ${password} Logs into the SSH server with the given ``username`` and ``password``. ${username} ${privatekey} Logs into the SSH server using key-based authentication. Logging into '172.21.249.213:22' as 'ubuntu'. Read output: Welcome to Ubuntu 18.04.6 LTS (GNU/Linux 4.15.0-180-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Mon Feb 19 03:04:29 UTC 2024 System load: 0.28 Processes: 86 Usage of /: 5.9% of 19.21GB Users logged in: 0 Memory usage: 12% IP address for ens3: 172.21.249.213 Swap usage: 0% 0 updates can be applied immediately. New release '20.04.6 LTS' available. Run 'do-release-upgrade' to upgrade to it. Last login: Mon Feb 19 03:04:23 2024 from 172.21.249.4 To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. ubuntu@basic-27-helm-ee-simple-mgmtvm-0:~$ ${rc} ls ${file} >& /dev/null return_stdout=False return_rc=True Executes ``command`` on the remote machine and returns its outputs. Executing command 'ls /home/ubuntu/mytouch1 >& /dev/null'. Command exited with return code 0. ${rc} = 0 Closes all open connections. ${rc} 0 Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> Check whether the file created in the previous test via Day 2 operations exist or not. basic_27 cluster_ee_config daily regression '%{PACKAGES_FOLDER}/${UPDATED_VNFD_PKG}' ${VNFD_NAME} Onboard ("Update") a NF Package into OSM. - Parameters: - vnfd_pkg: Name (and location) of the NF Package - vnfd_name: Name of the existing NF Package ${rc} ${stdout} osm vnfpkg-update --content ${vnfd_pkg} ${vnfd_name} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-update --content '/robot-systest/osm-packages/updated_simple_ee_vnf' simple_ee-vnf 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/updated_simple_ee_vnf Validation OK List of charms in the descriptor: set() Adding File: updated_simple_ee_vnf Package created: /robot-systest/osm-packag... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/updated_simple_ee_vnf Validation OK List of charms in the descriptor: set() Adding File: updated_simple_ee_vnf Package created: /robot-systest/osm-packages/updated_simple_ee_vnf.tar.gz Uploading package /robot-systest/osm-packages/updated_simple_ee_vnf.tar.gz Updated ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 7 lines ${lines} = 7 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 6 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = Updated ${id} Updates the VNFD by using new VNFD package which includes the EE which has new day2 operation. basic_27 cluster_ee_config daily regression ${NS_ID} ${UPDATE_TYPE} ${NS_UPDATE_CONFIG} ${NS_UPDATE_TIMEOUT} Run an update operation over a NS instance, and return the operation id. ${rc} ${stdout} osm ns-update ${ns_id} --updatetype ${update_type} --config ${ns_update_config} --timeout ${ns_update_timeout} --wait Runs the given command in the system and returns the RC and output. Running command 'osm ns-update 0c75f305-0fb9-4b96-b2f1-3dcb6e526634 --updatetype CHANGE_VNFPKG --config '{changeVnfPackageData: [{vnfInstanceId: "f02e3dd7-c689-4888-b18c-9310474ee8f3", vnfdId: "a182f313-1d88-4cec-863e-a86d6e83f4c2"}]}' --timeout 500 --wait 2>&1'. ${rc} = 0 ${stdout} = detailed-status: In progress detailed-status: Done 42968aa5-dc53-4f10-bcad-820b546ef4a7 ${stdout} Logs the given message with the given level. detailed-status: In progress detailed-status: Done 42968aa5-dc53-4f10-bcad-820b546ef4a7 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Updates the running VNF instance by using new VNFD package. As the VNFD has an updated Helm EE, this operation will trigger the upgrade of existing Helm EE for the specific VNF. basic_27 cluster_ee_config daily regression ${NS_ID} msg=Network service instance is not available Fails unless the given variable exists within the current scope. ${ns_op_id_2} ${NS_NAME} ${NEW_ACTION_NAME} ${VNF_MEMBER_INDEX} foldername=${DAY_2_FOLDER_NAME} Execute an action over the desired NS. Parameters are given to this function in key=value format (one argument per key/value pair). Return the ID of the operation associated to the executed action. Examples of execution: ${ns_op_id}= Execute NS Action ${ns_name} ${ns_action} ${vnf_member_index} ${ns_op_id}= Execute NS Action ${ns_name} ${ns_action} ${vnf_member_index} ${param1}=${value1} ${param2}=${value2} ${params} ${EMPTY} Returns the given values which can then be assigned to a variables. ${params} = ${param} @{action_params} foldername=/home/ubuntu/myfolder1 ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = foldername=/home/ubuntu/myfolder1 ${param_name} = foldername ${param_value} = /home/ubuntu/myfolder1 ${match},${param_name},${param_value} Logs the given message with the given level. foldername=/home/ubuntu/myfolder1,foldername,/home/ubuntu/myfolder1 ${params} SEPARATOR= ${params} "${param_name}":"${param_value}", Catenates the given items together and returns the resulted string. ${params} = "foldername":"/home/ubuntu/myfolder1", ${osm_ns_action_command} osm ns-action --action_name ${ns_action} --vnf_name ${vnf_member_index} Returns the given values which can then be assigned to a variables. ${osm_ns_action_command} = osm ns-action --action_name mkdir --vnf_name simple ${osm_ns_action_command} ${osm_ns_action_command} --params '{${params}}' Catenates the given items together and returns the resulted string. ${osm_ns_action_command} = osm ns-action --action_name mkdir --vnf_name simple --params '{"foldername":"/home/ubuntu/myfolder1",}' ${osm_ns_action_command} ${osm_ns_action_command} Returns the given values which can then be assigned to a variables. ${osm_ns_action_command} ${osm_ns_action_command} ${ns_name} Catenates the given items together and returns the resulted string. ${osm_ns_action_command} = osm ns-action --action_name mkdir --vnf_name simple --params '{"foldername":"/home/ubuntu/myfolder1",}' basic_27_helm_ee_update_test ${rc} ${stdout} ${osm_ns_action_command} Runs the given command in the system and returns the RC and output. Running command 'osm ns-action --action_name mkdir --vnf_name simple --params '{"foldername":"/home/ubuntu/myfolder1",}' basic_27_helm_ee_update_test 2>&1'. ${rc} = 0 ${stdout} = 9c8a07b5-14e9-4ab5-9101-80d3f6068f01 ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${NS_ACTION_MAX_WAIT_TIME} ${NS_ACTION_POL_TIME} Check For NS Operation Ended ${stdout} Runs the specified keyword and retries if it fails. ${stdout} Check wheter the status of the desired operation is "FAILED" or "COMPLETED". ${ns_operation_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm ns-op-show ${ns_operation_id} --literal | yq -r .operationState Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-show 9c8a07b5-14e9-4ab5-9101-80d3f6068f01 --literal | yq -r .operationState 2>&1'. ${rc} = 0 ${stdout} = COMPLETED ${stdout} Logs the given message with the given level. COMPLETED ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} FAILED COMPLETED msg=Timeout waiting for ns-action with id ${ns_operation_id} values=False Fails if ``container`` does not contain any of the ``*items``. ${stdout} Check wheter the status of the desired operation is "COMPLETED" or not. ${ns_operation_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm ns-op-show ${ns_operation_id} --literal | yq -r .operationState Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-show 9c8a07b5-14e9-4ab5-9101-80d3f6068f01 --literal | yq -r .operationState 2>&1'. ${rc} = 0 ${stdout} = COMPLETED ${stdout} Logs the given message with the given level. COMPLETED ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} COMPLETED msg=The ns-action with id ${ns_operation_id} was not completed values=False Fails if ``container`` does not contain ``item`` one or more times. ${stdout} ${ns_op_id_2} = 9c8a07b5-14e9-4ab5-9101-80d3f6068f01 ${ns_op_id_2} Logs the given message with the given level. 9c8a07b5-14e9-4ab5-9101-80d3f6068f01 Performs one Day 2 operation on the updated VNF that creates a new folder. basic_27 cluster_ee_config daily regression ${VNF_IP_ADDR} ${USERNAME} ${PASSWORD} ${PRIVATEKEY} ${DAY_2_FOLDER_NAME} Check via SSH if a folder exists in in the remote host, using the user and credentials passed as arguments. ${host} Opens a new SSH connection to the given ``host`` and ``port``. ${username} ${password} Logs into the SSH server with the given ``username`` and ``password``. ${username} ${privatekey} Logs into the SSH server using key-based authentication. Logging into '172.21.249.213:22' as 'ubuntu'. Read output: Welcome to Ubuntu 18.04.6 LTS (GNU/Linux 4.15.0-180-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Mon Feb 19 03:05:53 UTC 2024 System load: 0.07 Processes: 88 Usage of /: 5.9% of 19.21GB Users logged in: 0 Memory usage: 12% IP address for ens3: 172.21.249.213 Swap usage: 0% 0 updates can be applied immediately. New release '20.04.6 LTS' available. Run 'do-release-upgrade' to upgrade to it. Last login: Mon Feb 19 03:04:29 2024 from 172.21.249.4 To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. ubuntu@basic-27-helm-ee-simple-mgmtvm-0:~$ ${output} ls -d ${folder} Executes ``command`` on the remote machine and returns its outputs. Executing command 'ls -d /home/ubuntu/myfolder1'. Command exited with return code 0. ${output} = /home/ubuntu/myfolder1 Closes all open connections. ${output} ${folder} Fails if objects are unequal after converting them to strings. Check whether the folder created in the previous test via Day 2 operations exist or not. basic_27 cluster_ee_config daily regression ${NS_NAME} Delete a NS instance. ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} Logs the given message with the given level. 240.0 ${rc} ${stdout} osm ns-delete ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-delete basic_27_helm_ee_update_test 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${stdout} Logs the given message with the given level. Deletion in progress ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${ns_delete_max_wait_time} ${NS_DELETE_POL_TIME} Check For NS Instance To Be Deleted ${ns} Runs the specified keyword and retries if it fails. ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ | 501d8f1a-3306-4d1d-8f88-ac87ed35aec9 | epa_01-epa_sriov-vnf-hackfest_basic-VM-0 | BUILD | | ubuntu18.04 | hackfest_basic-VM-vnf-1-flv | | 9d0d6d40-11b2-4596-a71b-a866decaf5ba | k8s_10-k8s_proxy-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | ebc351de-791d-49d7-a5c0-8e8e598d5253 | k8s_10-k8s_proxy-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | cadfc52e-f6e5-4cb3-b264-dd4875bf8911 | basic_27_helm_ee-simple-mgmtVM-0 | ACTIVE | osm-ext=172.21.249.213 | ubuntu18.04 | mgmtVM-simple-1-flv-51 | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep basic_27_helm_ee_update_test 2>&1'. ${rc} = 0 ${stdout} = basic_27_helm_ee_update_test ${rc},${stdout} Logs the given message with the given level. 0,basic_27_helm_ee_update_test ${stdout} ${ns} Fails if objects are equal after converting them to strings. basic_27_helm_ee_update_test == basic_27_helm_ee_update_test ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ | 501d8f1a-3306-4d1d-8f88-ac87ed35aec9 | epa_01-epa_sriov-vnf-hackfest_basic-VM-0 | BUILD | | ubuntu18.04 | hackfest_basic-VM-vnf-1-flv | | 9d0d6d40-11b2-4596-a71b-a866decaf5ba | k8s_10-k8s_proxy-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | ebc351de-791d-49d7-a5c0-8e8e598d5253 | k8s_10-k8s_proxy-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep basic_27_helm_ee_update_test 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${ns} Fails if objects are equal after converting them to strings. Delete NS instance. basic_27 cleanup cluster_ee_config daily regression ${NSD_NAME} Delete a NS package from OSM. ${rc} ${stdout} Run And Return Rc And Output osm nspkg-delete ${nsd_id} Runs the keyword and continues execution even if a failure occurs. osm nspkg-delete ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-delete simple_ee-ns 2>&1'. ${rc} = 0 ${stdout} = Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Logs the given message with the given level. Deleted ${NSD_DELETE_MAX_WAIT_TIME} ${NSD_DELETE_POL_TIME} Check For NSD ${nsd_id} Runs the specified keyword and retries if it fails. ${nsd_id} Check that a NS package exists in OSM. ${rc} ${stdout} osm nspkg-list | awk '{print $2}' | grep ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-list | awk '{print $2}' | grep simple_ee-ns 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. Delete NS package from OSM. basic_27 cleanup cluster_ee_config daily regression ${VNFD_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete simple_ee-vnf 2>&1'. ${rc} = 0 ${stdout} = Deleted ${stdout} Logs the given message with the given level. Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep simple_ee-vnf 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. Delete VNF package from OSM. basic_27 cleanup cluster_ee_config daily regression Suite Cleanup Runs the given keyword with the given arguments and ignores possible error. Test Suite Cleanup: Deleting descriptors and NS instance Delete NS ${NS_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete NSD ${NSD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete VNFD ${VNFD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. [BASIC-27] Update Helm EE in Running VNF Instance. '%{PACKAGES_FOLDER}/${VNFD_PKG}' Onboards ("creates") a NF Package into OSM. - Parameters: - vnfd_pkg: Name (and location) of the NF Package - overrides (optional): String with options to override the EPA and/or interface properties of the Package. This is very useful to allow to deploy e.g. non-EPA packages in EPA VIMs (or vice-versa). Valid strings are the same as in the command. E.g.: - `--override-epa`: adds EPA attributes to all VDUs. - `--override-nonepa`: removes all EPA attributes from all VDUs. - `--override-paravirt`: converts all interfaces to `PARAVIRT`. This one can be combined with the others above (e.g. '--override-nonepa --override-paravirt'). - Relevant environment variables: - OVERRIDES: If the environment variable "OVERRIDES" exists, it prevails over the value in the argument. This is often more convenient to enforce the same behaviour for every test run in a given VIM. ${overrides} OVERRIDES default=${overrides} Returns the value of an environment variable with the given name. ${overrides} = ${rc} ${stdout} osm vnfpkg-create ${overrides} ${vnfd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-create '/robot-systest/osm-packages/keep_persistent_volume_vnf' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/keep_persistent_volume_vnf Validation OK List of charms in the descriptor: set() Adding File: keep_persistent_volume_vnf Package created: /robot-systest/... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/keep_persistent_volume_vnf Validation OK List of charms in the descriptor: set() Adding File: keep_persistent_volume_vnf Package created: /robot-systest/osm-packages/keep_persistent_volume_vnf.tar.gz Uploading package /robot-systest/osm-packages/keep_persistent_volume_vnf.tar.gz 38552ea3-6d64-4861-9a62-e173565519cc ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 7 lines ${lines} = 7 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 6 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = 38552ea3-6d64-4861-9a62-e173565519cc ${id} Upload VNF package for the testsuite. basic_28 cluster_main daily regression '%{PACKAGES_FOLDER}/${NSD_PKG}' Upload a NS package to OSM and return the id. ${rc} ${stdout} osm nspkg-create ${nsd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-create '/robot-systest/osm-packages/keep_persistent_volume_ns' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/keep_persistent_volume_ns Validation OK List of charms in the descriptor: set() Adding File: keep_persistent_volume_ns Package created: /robot-systest/os... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/keep_persistent_volume_ns Validation OK List of charms in the descriptor: set() Adding File: keep_persistent_volume_ns Package created: /robot-systest/osm-packages/keep_persistent_volume_ns.tar.gz 7bf80e19-20a2-41e3-8f71-3af63d57d0b0 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 6 lines ${lines} = 6 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 5 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = 7bf80e19-20a2-41e3-8f71-3af63d57d0b0 ${id} Upload NS package for the testsuite. basic_28 cluster_main daily regression ${id} ${NSD_NAME} %{VIM_TARGET} ${NS_NAME} ${NS_CONFIG} ${PUBLICKEY} Launch the instantation of a NS and verify in a loop that the NS instance is successfully created in a given time, and return the NS instance id. ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_launch_max_wait_time} = 300.0 ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_launch_max_wait_time} = 300.0 ${ns_launch_max_wait_time} Logs the given message with the given level. 300.0 ${config_attr} '${ns_config}'!='${EMPTY}' --config '${ns_config}' ${EMPTY} Sets variable based on the given condition. ${config_attr} = --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext} ] }' ${sshkeys_attr} '${publickey}'!='${EMPTY}' --ssh_keys ${publickey} ${EMPTY} Sets variable based on the given condition. ${sshkeys_attr} = --ssh_keys /root/.ssh/id_rsa.pub ${config_file_attr} '${config_file}'!='${EMPTY}' --config_file '${config_file}' ${EMPTY} Sets variable based on the given condition. ${config_file_attr} = ${ns_id} ${ns_name} ${nsd} ${vim_name} ${config_attr} ${sshkeys_attr} ${config_file_attr} Launch the instantation of a NS, and return the NS instance id. ${rc} ${stdout} osm ns-create --ns_name ${ns_name} --nsd_name ${nsd} --vim_account ${vim_name} ${ns_extra_args} Runs the given command in the system and returns the RC and output. Running command 'osm ns-create --ns_name basic_28 --nsd_name persistent_volumes-ns --vim_account osm --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext} ] }' --ssh_keys /root/.ssh/id_rsa.pub 2>&1'. ${rc} = 0 ${stdout} = c027e6f8-d332-4d8f-ae94-2f3c7390a33c ${stdout} Logs the given message with the given level. c027e6f8-d332-4d8f-ae94-2f3c7390a33c ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = c027e6f8-d332-4d8f-ae94-2f3c7390a33c ${ns_id} Logs the given message with the given level. c027e6f8-d332-4d8f-ae94-2f3c7390a33c ${ns_launch_max_wait_time} ${NS_LAUNCH_POL_TIME} Check For NS Instance To Configured ${ns_name} Runs the specified keyword and retries if it fails. ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ | 501d8f1a-3306-4d1d-8f88-ac87ed35aec9 | epa_01-epa_sriov-vnf-hackfest_basic-VM-0 | BUILD | | ubuntu18.04 | hackfest_basic-VM-vnf-1-flv | | 9d0d6d40-11b2-4596-a71b-a866decaf5ba | k8s_10-k8s_proxy-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | ebc351de-791d-49d7-a5c0-8e8e598d5253 | k8s_10-k8s_proxy-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_28" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_28 | c027e6f8-d332-4d8f-ae94-2f3c7390a33c | 2024-02-19T03:06:27 | BUILDING | INSTANTIATING (2c416f1d-6c7a-4abc-898d-5cb0ab44e926) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_28 | c027e6f8-d332-4d8f-ae94-2f3c7390a33c | 2024-02-19T03:06:27 | BUILDING | INSTANTIATING (2c416f1d-6c7a-4abc-898d-5cb0ab44e926) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ | ID... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ | 3a40e0ef-c0a6-4643-a2c1-b6d53106c686 | basic_28-vnf-persistent-v-keep-persistent-vol-VM-0 | BUILD | | ubuntu20.04 | keep-persistent-vol-VM-vnf-persistent-volumes-1-flv | | 501d8f1a-3306-4d1d-8f88-ac87ed35aec9 | epa_01-epa_sriov-vnf-hackfest_basic-VM-0 | BUILD | | ubuntu18.04 | hackfest_basic-VM-vnf-1-flv | | 9d0d6d40-11b2-4596-a71b-a866decaf5ba | k8s_10-k8s_proxy-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | ebc351de-791d-49d7-a5c0-8e8e598d5253 | k8s_10-k8s_proxy-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_28" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_28 | c027e6f8-d332-4d8f-ae94-2f3c7390a33c | 2024-02-19T03:06:27 | BUILDING | INSTANTIATING (2c416f1d-6c7a-4abc-898d-5cb0ab44e926) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_28 | c027e6f8-d332-4d8f-ae94-2f3c7390a33c | 2024-02-19T03:06:27 | BUILDING | INSTANTIATING (2c416f1d-6c7a-4abc-898d-5cb0ab44e926) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ | ID... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ | 3a40e0ef-c0a6-4643-a2c1-b6d53106c686 | basic_28-vnf-persistent-v-keep-persistent-vol-VM-0 | ACTIVE | osm-ext=172.21.248.216 | ubuntu20.04 | keep-persistent-vol-VM-vnf-persistent-volumes-1-flv | | 501d8f1a-3306-4d1d-8f88-ac87ed35aec9 | epa_01-epa_sriov-vnf-hackfest_basic-VM-0 | BUILD | | ubuntu18.04 | hackfest_basic-VM-vnf-1-flv | | 9d0d6d40-11b2-4596-a71b-a866decaf5ba | k8s_10-k8s_proxy-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | ebc351de-791d-49d7-a5c0-8e8e598d5253 | k8s_10-k8s_proxy-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_28" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | basic_28 | c027e6f8-d332-4d8f-ae94-2f3c7390a33c | 2024-02-19T03:06:27 | READY | IDLE (None) | N/A | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. ${ns_name} Check if a given NS instance has not failed in the instantiation (the status should not be BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ | ID... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ | 3a40e0ef-c0a6-4643-a2c1-b6d53106c686 | basic_28-vnf-persistent-v-keep-persistent-vol-VM-0 | ACTIVE | osm-ext=172.21.248.216 | ubuntu20.04 | keep-persistent-vol-VM-vnf-persistent-volumes-1-flv | | 501d8f1a-3306-4d1d-8f88-ac87ed35aec9 | epa_01-epa_sriov-vnf-hackfest_basic-VM-0 | BUILD | | ubuntu18.04 | hackfest_basic-VM-vnf-1-flv | | 9d0d6d40-11b2-4596-a71b-a866decaf5ba | k8s_10-k8s_proxy-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | ebc351de-791d-49d7-a5c0-8e8e598d5253 | k8s_10-k8s_proxy-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_28" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | basic_28 | c027e6f8-d332-4d8f-ae94-2f3c7390a33c | 2024-02-19T03:06:27 | READY | IDLE (None) | N/A | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} BROKEN Fails if ``container`` contains ``item`` one or more times. ${ns_id} ${id} = c027e6f8-d332-4d8f-ae94-2f3c7390a33c ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = c027e6f8-d332-4d8f-ae94-2f3c7390a33c Instantiate NS for the testsuite. basic_28 cluster_main daily regression ${NS_ID} msg=NS is not available Fails unless the given variable exists within the current scope. ${VOLUME_MATCH} ${NS_ID} Sets the root volume ID and ordinary volume ID by checking bootable property of volumes ${ns_id} msg=NS is not available Fails unless the given variable exists within the current scope. ${vnfs_list} ${ns_id} Get the list of VNF instances of a given NS instance id, and return it. ${ns_id} Verifies that the given item is not empty. Length is 36 @{vnf_list_string} osm vnf-list --ns ${ns_id} | grep ${ns_id} | awk '{print $2}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm vnf-list --ns c027e6f8-d332-4d8f-ae94-2f3c7390a33c | grep c027e6f8-d332-4d8f-ae94-2f3c7390a33c | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | 9f47c10d-99f6-42bd-b39b-402b008c3372 ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ 9f47c10d-99f6-42bd-b39b-402b008c3372 ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: 9f47c10d-99f6-42bd-b39b-402b008c3372 @{vnf_list} ${vnfs_list} = ['9f47c10d-99f6-42bd-b39b-402b008c3372'] ${vim_id} ${vnfs_list}[0] Get the identifier of the first VDU of a VNF instance. Useful to get the id when a VNF has a single VDU. ${vnf_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm vnf-show ${vnf_id} --literal | yq -r '.vdur[]."vim-id"' Runs the given command in the system and returns the RC and output. Running command 'osm vnf-show 9f47c10d-99f6-42bd-b39b-402b008c3372 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 3a40e0ef-c0a6-4643-a2c1-b6d53106c686 ${stdout} Logs the given message with the given level. 3a40e0ef-c0a6-4643-a2c1-b6d53106c686 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${vim_id} = 3a40e0ef-c0a6-4643-a2c1-b6d53106c686 ${volumes_attached} ${vim_id} volumes_attached Get a field (flavor, image, volumes_attached, etc.) from a server. ${server_id} Verifies that the given item is not empty. Length is 36 ${field} Verifies that the given item is not empty. Length is 16 ${rc} ${stdout} openstack server show ${server_id} -c ${field} -f value Runs the given command in the system and returns the RC and output. Running command 'openstack server show 3a40e0ef-c0a6-4643-a2c1-b6d53106c686 -c volumes_attached -f value 2>&1'. ${rc} = 0 ${stdout} = [{'device': None, 'id': '2c7638c3-876f-4232-853c-4331c8fb8972', 'volume_id': None, 'attachment_id': None, 'bdm_id': None, 'tag': None, 'delete_on_termination': False, 'name': None, 'location': None}, ... ${stdout} Logs the given message with the given level. [{'device': None, 'id': '2c7638c3-876f-4232-853c-4331c8fb8972', 'volume_id': None, 'attachment_id': None, 'bdm_id': None, 'tag': None, 'delete_on_termination': False, 'name': None, 'location': None}, {'device': None, 'id': '86ccb123-0544-426d-8adc-ae381ac8ba23', 'volume_id': None, 'attachment_id': None, 'bdm_id': None, 'tag': None, 'delete_on_termination': False, 'name': None, 'location': None}] ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${volumes_attached} = [{'device': None, 'id': '2c7638c3-876f-4232-853c-4331c8fb8972', 'volume_id': None, 'attachment_id': None, 'bdm_id': None, 'tag': None, 'delete_on_termination': False, 'name': None, 'location': None}, ... ${volumes_attached} Logs the given message with the given level. [{'device': None, 'id': '2c7638c3-876f-4232-853c-4331c8fb8972', 'volume_id': None, 'attachment_id': None, 'bdm_id': None, 'tag': None, 'delete_on_termination': False, 'name': None, 'location': None}, {'device': None, 'id': '86ccb123-0544-426d-8adc-ae381ac8ba23', 'volume_id': None, 'attachment_id': None, 'bdm_id': None, 'tag': None, 'delete_on_termination': False, 'name': None, 'location': None}] ${stdout} ${volumes_attached} '([0-9a-f\-]+)' 1 Returns a list of all non-overlapping matches in the given string. ${stdout} = ['2c7638c3-876f-4232-853c-4331c8fb8972', '86ccb123-0544-426d-8adc-ae381ac8ba23'] ${stdout} Logs the given message with the given level. ['2c7638c3-876f-4232-853c-4331c8fb8972', '86ccb123-0544-426d-8adc-ae381ac8ba23'] ${stdout} ${VOLUME_MATCH} = ['2c7638c3-876f-4232-853c-4331c8fb8972', '86ccb123-0544-426d-8adc-ae381ac8ba23'] ${VOLUME_MATCH} Makes a variable available everywhere within the scope of the current suite. ${VOLUME_MATCH} = ['2c7638c3-876f-4232-853c-4331c8fb8972', '86ccb123-0544-426d-8adc-ae381ac8ba23'] ${VOLUME_COUNTS} ${VOLUME_MATCH} Returns and logs the length of the given item as an integer. Length is 2 ${VOLUME_COUNTS} = 2 ${VOLUME_COUNTS} Makes a variable available everywhere within the scope of the current suite. ${VOLUME_COUNTS} = 2 msg=There were not 2 volumes attached to VM Fails the test with the given message and optionally alters its tags. Check that the number of persistent volumes attached to VM in the NS meet the expected number (2). basic_28 cluster_main daily regression ${VOLUME_MATCH} msg=NS is not available Fails unless the given variable exists within the current scope. ${VOLUME_MATCH} 0 Sets the root volume ID and ordinary volume ID by checking bootable property of volumes ${volume_match} ${index} Verifies that the given item is not empty. Length is 2 ${bootable} ${volume_match}[${index}] Check the volume properties and return whether it is bootable or not. ${volume_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} openstack volume show ${volume_id} | grep bootable | awk '{print $4}' Runs the given command in the system and returns the RC and output. Running command 'openstack volume show 2c7638c3-876f-4232-853c-4331c8fb8972 | grep bootable | awk '{print $4}' 2>&1'. ${rc} = 0 ${stdout} = true ${stdout} Logs the given message with the given level. true ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${bootable} = true ${ROOT_VOL_ID} ${volume_match}[${index}] Makes a variable available everywhere within the scope of the current suite. ${ROOT_VOL_ID} = 2c7638c3-876f-4232-853c-4331c8fb8972 ${ORDINARY_VOL_ID} ${volume_match}[1] Makes a variable available everywhere within the scope of the current suite. ${ORDINARY_VOL_ID} = 86ccb123-0544-426d-8adc-ae381ac8ba23 ${ORDINARY_VOL_ID} ${volume_match}[0] Makes a variable available everywhere within the scope of the current suite. ${VOLUME_MATCH} 1 Sets the root volume ID and ordinary volume ID by checking bootable property of volumes ${volume_match} ${index} Verifies that the given item is not empty. Length is 2 ${bootable} ${volume_match}[${index}] Check the volume properties and return whether it is bootable or not. ${volume_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} openstack volume show ${volume_id} | grep bootable | awk '{print $4}' Runs the given command in the system and returns the RC and output. Running command 'openstack volume show 86ccb123-0544-426d-8adc-ae381ac8ba23 | grep bootable | awk '{print $4}' 2>&1'. ${rc} = 0 ${stdout} = false ${stdout} Logs the given message with the given level. false ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${bootable} = false ${ROOT_VOL_ID} ${volume_match}[${index}] Makes a variable available everywhere within the scope of the current suite. ${ORDINARY_VOL_ID} ${volume_match}[1] Makes a variable available everywhere within the scope of the current suite. ${ORDINARY_VOL_ID} ${volume_match}[0] Makes a variable available everywhere within the scope of the current suite. Get the identifiers of the persistent volumes attached to VM in the NS and store in suite variables ROOT_VOL_ID and ORDINARY_VOL_ID. basic_28 cluster_main daily regression ${NS_NAME} Delete a NS instance. ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} Logs the given message with the given level. 240.0 ${rc} ${stdout} osm ns-delete ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-delete basic_28 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${stdout} Logs the given message with the given level. Deletion in progress ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${ns_delete_max_wait_time} ${NS_DELETE_POL_TIME} Check For NS Instance To Be Deleted ${ns} Runs the specified keyword and retries if it fails. ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ | ID... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ | 3a40e0ef-c0a6-4643-a2c1-b6d53106c686 | basic_28-vnf-persistent-v-keep-persistent-vol-VM-0 | ACTIVE | osm-ext=172.21.248.216 | ubuntu20.04 | keep-persistent-vol-VM-vnf-persistent-volumes-1-flv | | 501d8f1a-3306-4d1d-8f88-ac87ed35aec9 | epa_01-epa_sriov-vnf-hackfest_basic-VM-0 | BUILD | | ubuntu18.04 | hackfest_basic-VM-vnf-1-flv | | 9d0d6d40-11b2-4596-a71b-a866decaf5ba | k8s_10-k8s_proxy-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | ebc351de-791d-49d7-a5c0-8e8e598d5253 | k8s_10-k8s_proxy-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep basic_28 2>&1'. ${rc} = 0 ${stdout} = basic_28 ${rc},${stdout} Logs the given message with the given level. 0,basic_28 ${stdout} ${ns} Fails if objects are equal after converting them to strings. basic_28 == basic_28 ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ | 501d8f1a-3306-4d1d-8f88-ac87ed35aec9 | epa_01-epa_sriov-vnf-hackfest_basic-VM-0 | BUILD | | ubuntu18.04 | hackfest_basic-VM-vnf-1-flv | | 9d0d6d40-11b2-4596-a71b-a866decaf5ba | k8s_10-k8s_proxy-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | ebc351de-791d-49d7-a5c0-8e8e598d5253 | k8s_10-k8s_proxy-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep basic_28 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${ns} Fails if objects are equal after converting them to strings. Delete NS instance. basic_28 cluster_main daily regression ${ROOT_VOL_ID} msg=Root volume is not available Fails unless the given variable exists within the current scope. ${root_vol_exists} ${ROOT_VOL_ID} Checks if a volume id exists ${volume_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} openstack volume list | grep ${volume_id} | wc -l Runs the given command in the system and returns the RC and output. Running command 'openstack volume list | grep 2c7638c3-876f-4232-853c-4331c8fb8972 | wc -l 2>&1'. ${rc} = 0 ${stdout} = 1 ${stdout} Logs the given message with the given level. 1 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${root_vol_exists} = 1 ${root_vol_exists} Logs the given message with the given level. 1 Persistent root volume still exists Logs the given message with the given level. Persistent root volume still exists msg=Persistent root volume was deleted Fails the test with the given message and optionally alters its tags. ${ROOT_VOL_ID} ${EMPTY} Makes a variable available everywhere within the scope of the current suite. Check that the persistent root volume requested to be kept is present after deleting NS instance. basic_28 cluster_main daily regression ${ORDINARY_VOL_ID} msg=Ordinary persistent volume is not available Fails unless the given variable exists within the current scope. ${ordinary_vol_exists} ${ORDINARY_VOL_ID} Checks if a volume id exists ${volume_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} openstack volume list | grep ${volume_id} | wc -l Runs the given command in the system and returns the RC and output. Running command 'openstack volume list | grep 86ccb123-0544-426d-8adc-ae381ac8ba23 | wc -l 2>&1'. ${rc} = 0 ${stdout} = 1 ${stdout} Logs the given message with the given level. 1 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ordinary_vol_exists} = 1 ${ordinary_vol_exists} Logs the given message with the given level. 1 Persistent ordinary volume still exists Logs the given message with the given level. Persistent ordinary volume still exists msg=Persistent ordinary volume was deleted Fails the test with the given message and optionally alters its tags. ${ORDINARY_VOL_ID} ${EMPTY} Makes a variable available everywhere within the scope of the current suite. Check that the persistent ordinary volume requested to be kept is present after deleting NS instance. basic_28 cluster_main daily regression ${NS_CONFIG_WITH_VIM_ID} {vld: [ {name: mgmtnet, vim-network-name: %{VIM_MGMT_NET}} ], vnf: [ {member-vnf-index: ${VNF_MEMBER_INDEX}, vdu: [ {id: ${VDU_ID}, volume: [{"name": ${ROOT_DISK}, vim-volume-id: ${ROOT_VOL_ID}}, {"name": ${ORDINARY_DISK}, vim-volume-id: ${ORDINARY_VOL_ID}}] } ] } ] } Makes a variable available everywhere within the scope of the current suite. ${NS_CONFIG_WITH_VIM_ID} = {vld: [ {name: mgmtnet, vim-network-name: osm-ext} ], vnf: [ {member-vnf-index: vnf-persistent-volumes, vdu: [ {id: keep-persistent-vol-VM, volume: [{"name": root-volume, vim-volume-id: 2c7638c3-876f-... Generate NS instantiation parameters to be used in next NS instance, using the persistent volumes that were kept previously. basic_28 cluster_main daily regression ${id} ${NSD_NAME} %{VIM_TARGET} ${NS_NAME} ${NS_CONFIG_WITH_VIM_ID} ${PUBLICKEY} Launch the instantation of a NS and verify in a loop that the NS instance is successfully created in a given time, and return the NS instance id. ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_launch_max_wait_time} = 300.0 ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_launch_max_wait_time} = 300.0 ${ns_launch_max_wait_time} Logs the given message with the given level. 300.0 ${config_attr} '${ns_config}'!='${EMPTY}' --config '${ns_config}' ${EMPTY} Sets variable based on the given condition. ${config_attr} = --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext} ], vnf: [ {member-vnf-index: vnf-persistent-volumes, vdu: [ {id: keep-persistent-vol-VM, volume: [{"name": root-volume, vim-volume-id: 2c76... ${sshkeys_attr} '${publickey}'!='${EMPTY}' --ssh_keys ${publickey} ${EMPTY} Sets variable based on the given condition. ${sshkeys_attr} = --ssh_keys /root/.ssh/id_rsa.pub ${config_file_attr} '${config_file}'!='${EMPTY}' --config_file '${config_file}' ${EMPTY} Sets variable based on the given condition. ${config_file_attr} = ${ns_id} ${ns_name} ${nsd} ${vim_name} ${config_attr} ${sshkeys_attr} ${config_file_attr} Launch the instantation of a NS, and return the NS instance id. ${rc} ${stdout} osm ns-create --ns_name ${ns_name} --nsd_name ${nsd} --vim_account ${vim_name} ${ns_extra_args} Runs the given command in the system and returns the RC and output. Running command 'osm ns-create --ns_name basic_28 --nsd_name persistent_volumes-ns --vim_account osm --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext} ], vnf: [ {member-vnf-index: vnf-persistent-volumes, vdu: [ {id: keep-persistent-vol-VM, volume: [{"name": root-volume, vim-volume-id: 2c7638c3-876f-4232-853c-4331c8fb8972}, {"name": persistent-volume, vim-volume-id: 86ccb123-0544-426d-8adc-ae381ac8ba23}] } ] } ] }' --ssh_keys /root/.ssh/id_rsa.pub 2>&1'. ${rc} = 0 ${stdout} = e278065d-2376-4bdd-8e29-fc43586d8512 ${stdout} Logs the given message with the given level. e278065d-2376-4bdd-8e29-fc43586d8512 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = e278065d-2376-4bdd-8e29-fc43586d8512 ${ns_id} Logs the given message with the given level. e278065d-2376-4bdd-8e29-fc43586d8512 ${ns_launch_max_wait_time} ${NS_LAUNCH_POL_TIME} Check For NS Instance To Configured ${ns_name} Runs the specified keyword and retries if it fails. ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ | 501d8f1a-3306-4d1d-8f88-ac87ed35aec9 | epa_01-epa_sriov-vnf-hackfest_basic-VM-0 | BUILD | | ubuntu18.04 | hackfest_basic-VM-vnf-1-flv | | 9d0d6d40-11b2-4596-a71b-a866decaf5ba | k8s_10-k8s_proxy-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | ebc351de-791d-49d7-a5c0-8e8e598d5253 | k8s_10-k8s_proxy-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_28" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_28 | e278065d-2376-4bdd-8e29-fc43586d8512 | 2024-02-19T03:08:14 | BUILDING | INSTANTIATING (069a21cf-4418-4ece-bf04-2d92b9e9edc8) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_28 | e278065d-2376-4bdd-8e29-fc43586d8512 | 2024-02-19T03:08:14 | BUILDING | INSTANTIATING (069a21cf-4418-4ece-bf04-2d92b9e9edc8) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ | ID... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ | 2fb8da2b-b52f-42c7-b2cb-7a6b295cb285 | basic_28-vnf-persistent-v-keep-persistent-vol-VM-0 | ACTIVE | osm-ext=172.21.248.70 | ubuntu20.04 | keep-persistent-vol-VM-vnf-persistent-volumes-1-flv | | 501d8f1a-3306-4d1d-8f88-ac87ed35aec9 | epa_01-epa_sriov-vnf-hackfest_basic-VM-0 | BUILD | | ubuntu18.04 | hackfest_basic-VM-vnf-1-flv | | 9d0d6d40-11b2-4596-a71b-a866decaf5ba | k8s_10-k8s_proxy-vnf2-mgmtVM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | ebc351de-791d-49d7-a5c0-8e8e598d5253 | k8s_10-k8s_proxy-vnf1-mgmtVM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_28" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_28 | e278065d-2376-4bdd-8e29-fc43586d8512 | 2024-02-19T03:08:14 | BUILDING | INSTANTIATING (069a21cf-4418-4ece-bf04-2d92b9e9edc8) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_28 | e278065d-2376-4bdd-8e29-fc43586d8512 | 2024-02-19T03:08:14 | BUILDING | INSTANTIATING (069a21cf-4418-4ece-bf04-2d92b9e9edc8) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ | ID... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ | 2fb8da2b-b52f-42c7-b2cb-7a6b295cb285 | basic_28-vnf-persistent-v-keep-persistent-vol-VM-0 | ACTIVE | osm-ext=172.21.248.70 | ubuntu20.04 | keep-persistent-vol-VM-vnf-persistent-volumes-1-flv | | 501d8f1a-3306-4d1d-8f88-ac87ed35aec9 | epa_01-epa_sriov-vnf-hackfest_basic-VM-0 | BUILD | | ubuntu18.04 | hackfest_basic-VM-vnf-1-flv | | 9d0d6d40-11b2-4596-a71b-a866decaf5ba | k8s_10-k8s_proxy-vnf2-mgmtVM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | ebc351de-791d-49d7-a5c0-8e8e598d5253 | k8s_10-k8s_proxy-vnf1-mgmtVM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_28" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | basic_28 | e278065d-2376-4bdd-8e29-fc43586d8512 | 2024-02-19T03:08:14 | READY | IDLE (None) | N/A | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. ${ns_name} Check if a given NS instance has not failed in the instantiation (the status should not be BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ | ID... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ | 2fb8da2b-b52f-42c7-b2cb-7a6b295cb285 | basic_28-vnf-persistent-v-keep-persistent-vol-VM-0 | ACTIVE | osm-ext=172.21.248.70 | ubuntu20.04 | keep-persistent-vol-VM-vnf-persistent-volumes-1-flv | | 501d8f1a-3306-4d1d-8f88-ac87ed35aec9 | epa_01-epa_sriov-vnf-hackfest_basic-VM-0 | BUILD | | ubuntu18.04 | hackfest_basic-VM-vnf-1-flv | | 9d0d6d40-11b2-4596-a71b-a866decaf5ba | k8s_10-k8s_proxy-vnf2-mgmtVM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | ebc351de-791d-49d7-a5c0-8e8e598d5253 | k8s_10-k8s_proxy-vnf1-mgmtVM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_28" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | basic_28 | e278065d-2376-4bdd-8e29-fc43586d8512 | 2024-02-19T03:08:14 | READY | IDLE (None) | N/A | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} BROKEN Fails if ``container`` contains ``item`` one or more times. ${ns_id} ${id} = e278065d-2376-4bdd-8e29-fc43586d8512 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = e278065d-2376-4bdd-8e29-fc43586d8512 Instantiate NS for the testsuite again. The persistent volumes passed as instantiation parameters should be used. basic_28 cluster_main daily regression ${PREV_ROOT_VOL_ID} ${ROOT_VOL_ID} Makes a variable available everywhere within the scope of the current suite. ${PREV_ROOT_VOL_ID} = 2c7638c3-876f-4232-853c-4331c8fb8972 ${PREV_ORDINARY_VOL_ID} ${ORDINARY_VOL_ID} Makes a variable available everywhere within the scope of the current suite. ${PREV_ORDINARY_VOL_ID} = 86ccb123-0544-426d-8adc-ae381ac8ba23 ${volume_match} ${NS_ID} Sets the root volume ID and ordinary volume ID by checking bootable property of volumes ${ns_id} msg=NS is not available Fails unless the given variable exists within the current scope. ${vnfs_list} ${ns_id} Get the list of VNF instances of a given NS instance id, and return it. ${ns_id} Verifies that the given item is not empty. Length is 36 @{vnf_list_string} osm vnf-list --ns ${ns_id} | grep ${ns_id} | awk '{print $2}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm vnf-list --ns e278065d-2376-4bdd-8e29-fc43586d8512 | grep e278065d-2376-4bdd-8e29-fc43586d8512 | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | 9c4d9df0-cb34-44d1-ba6e-a6bc9dd86aaa ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ 9c4d9df0-cb34-44d1-ba6e-a6bc9dd86aaa ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: 9c4d9df0-cb34-44d1-ba6e-a6bc9dd86aaa @{vnf_list} ${vnfs_list} = ['9c4d9df0-cb34-44d1-ba6e-a6bc9dd86aaa'] ${vim_id} ${vnfs_list}[0] Get the identifier of the first VDU of a VNF instance. Useful to get the id when a VNF has a single VDU. ${vnf_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm vnf-show ${vnf_id} --literal | yq -r '.vdur[]."vim-id"' Runs the given command in the system and returns the RC and output. Running command 'osm vnf-show 9c4d9df0-cb34-44d1-ba6e-a6bc9dd86aaa --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 2fb8da2b-b52f-42c7-b2cb-7a6b295cb285 ${stdout} Logs the given message with the given level. 2fb8da2b-b52f-42c7-b2cb-7a6b295cb285 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${vim_id} = 2fb8da2b-b52f-42c7-b2cb-7a6b295cb285 ${volumes_attached} ${vim_id} volumes_attached Get a field (flavor, image, volumes_attached, etc.) from a server. ${server_id} Verifies that the given item is not empty. Length is 36 ${field} Verifies that the given item is not empty. Length is 16 ${rc} ${stdout} openstack server show ${server_id} -c ${field} -f value Runs the given command in the system and returns the RC and output. Running command 'openstack server show 2fb8da2b-b52f-42c7-b2cb-7a6b295cb285 -c volumes_attached -f value 2>&1'. ${rc} = 0 ${stdout} = [{'device': None, 'id': '2c7638c3-876f-4232-853c-4331c8fb8972', 'volume_id': None, 'attachment_id': None, 'bdm_id': None, 'tag': None, 'delete_on_termination': False, 'name': None, 'location': None}, ... ${stdout} Logs the given message with the given level. [{'device': None, 'id': '2c7638c3-876f-4232-853c-4331c8fb8972', 'volume_id': None, 'attachment_id': None, 'bdm_id': None, 'tag': None, 'delete_on_termination': False, 'name': None, 'location': None}, {'device': None, 'id': '86ccb123-0544-426d-8adc-ae381ac8ba23', 'volume_id': None, 'attachment_id': None, 'bdm_id': None, 'tag': None, 'delete_on_termination': False, 'name': None, 'location': None}] ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${volumes_attached} = [{'device': None, 'id': '2c7638c3-876f-4232-853c-4331c8fb8972', 'volume_id': None, 'attachment_id': None, 'bdm_id': None, 'tag': None, 'delete_on_termination': False, 'name': None, 'location': None}, ... ${volumes_attached} Logs the given message with the given level. [{'device': None, 'id': '2c7638c3-876f-4232-853c-4331c8fb8972', 'volume_id': None, 'attachment_id': None, 'bdm_id': None, 'tag': None, 'delete_on_termination': False, 'name': None, 'location': None}, {'device': None, 'id': '86ccb123-0544-426d-8adc-ae381ac8ba23', 'volume_id': None, 'attachment_id': None, 'bdm_id': None, 'tag': None, 'delete_on_termination': False, 'name': None, 'location': None}] ${stdout} ${volumes_attached} '([0-9a-f\-]+)' 1 Returns a list of all non-overlapping matches in the given string. ${stdout} = ['2c7638c3-876f-4232-853c-4331c8fb8972', '86ccb123-0544-426d-8adc-ae381ac8ba23'] ${stdout} Logs the given message with the given level. ['2c7638c3-876f-4232-853c-4331c8fb8972', '86ccb123-0544-426d-8adc-ae381ac8ba23'] ${stdout} ${volume_match} = ['2c7638c3-876f-4232-853c-4331c8fb8972', '86ccb123-0544-426d-8adc-ae381ac8ba23'] ${VOLUME_MATCH} Makes a variable available everywhere within the scope of the current suite. ${VOLUME_MATCH} = ['2c7638c3-876f-4232-853c-4331c8fb8972', '86ccb123-0544-426d-8adc-ae381ac8ba23'] ${VOLUME_MATCH} 0 Sets the root volume ID and ordinary volume ID by checking bootable property of volumes ${volume_match} ${index} Verifies that the given item is not empty. Length is 2 ${bootable} ${volume_match}[${index}] Check the volume properties and return whether it is bootable or not. ${volume_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} openstack volume show ${volume_id} | grep bootable | awk '{print $4}' Runs the given command in the system and returns the RC and output. Running command 'openstack volume show 2c7638c3-876f-4232-853c-4331c8fb8972 | grep bootable | awk '{print $4}' 2>&1'. ${rc} = 0 ${stdout} = true ${stdout} Logs the given message with the given level. true ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${bootable} = true ${ROOT_VOL_ID} ${volume_match}[${index}] Makes a variable available everywhere within the scope of the current suite. ${ROOT_VOL_ID} = 2c7638c3-876f-4232-853c-4331c8fb8972 ${ORDINARY_VOL_ID} ${volume_match}[1] Makes a variable available everywhere within the scope of the current suite. ${ORDINARY_VOL_ID} = 86ccb123-0544-426d-8adc-ae381ac8ba23 ${ORDINARY_VOL_ID} ${volume_match}[0] Makes a variable available everywhere within the scope of the current suite. ${VOLUME_MATCH} 1 Sets the root volume ID and ordinary volume ID by checking bootable property of volumes ${volume_match} ${index} Verifies that the given item is not empty. Length is 2 ${bootable} ${volume_match}[${index}] Check the volume properties and return whether it is bootable or not. ${volume_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} openstack volume show ${volume_id} | grep bootable | awk '{print $4}' Runs the given command in the system and returns the RC and output. Running command 'openstack volume show 86ccb123-0544-426d-8adc-ae381ac8ba23 | grep bootable | awk '{print $4}' 2>&1'. ${rc} = 0 ${stdout} = false ${stdout} Logs the given message with the given level. false ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${bootable} = false ${ROOT_VOL_ID} ${volume_match}[${index}] Makes a variable available everywhere within the scope of the current suite. ${ORDINARY_VOL_ID} ${volume_match}[1] Makes a variable available everywhere within the scope of the current suite. ${ORDINARY_VOL_ID} ${volume_match}[0] Makes a variable available everywhere within the scope of the current suite. ${ROOT_VOL_ID} ${PREV_ROOT_VOL_ID} msg=Existing root volume is not attached to server Fails if objects are unequal after converting them to strings. ${ORDINARY_VOL_ID} ${PREV_ORDINARY_VOL_ID} msg=Existing ordinary volume is not attached to server Fails if objects are unequal after converting them to strings. Get the identifiers of the persistent volumes attached to VM in the second NS instance and verify that they are the same of the first NS instance. basic_28 cluster_main daily regression ${NS_NAME} Delete a NS instance. ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} Logs the given message with the given level. 240.0 ${rc} ${stdout} osm ns-delete ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-delete basic_28 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${stdout} Logs the given message with the given level. Deletion in progress ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${ns_delete_max_wait_time} ${NS_DELETE_POL_TIME} Check For NS Instance To Be Deleted ${ns} Runs the specified keyword and retries if it fails. ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ | ID... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ | 2fb8da2b-b52f-42c7-b2cb-7a6b295cb285 | basic_28-vnf-persistent-v-keep-persistent-vol-VM-0 | ACTIVE | osm-ext=172.21.248.70 | ubuntu20.04 | keep-persistent-vol-VM-vnf-persistent-volumes-1-flv | | 501d8f1a-3306-4d1d-8f88-ac87ed35aec9 | epa_01-epa_sriov-vnf-hackfest_basic-VM-0 | BUILD | | ubuntu18.04 | hackfest_basic-VM-vnf-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep basic_28 2>&1'. ${rc} = 0 ${stdout} = basic_28 ${rc},${stdout} Logs the given message with the given level. 0,basic_28 ${stdout} ${ns} Fails if objects are equal after converting them to strings. basic_28 == basic_28 ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ | 501d8f1a-3306-4d1d-8f88-ac87ed35aec9 | epa_01-epa_sriov-vnf-hackfest_basic-VM-0 | ERROR | | ubuntu18.04 | hackfest_basic-VM-vnf-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep basic_28 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${ns} Fails if objects are equal after converting them to strings. Delete NS instance. basic_28 cleanup cluster_main daily regression ${ROOT_VOL_ID} msg=Volume is not available Fails unless the given variable exists within the current scope. ${ORDINARY_VOL_ID} msg=Volume is not available Fails unless the given variable exists within the current scope. ${root_vol_exists} ${ROOT_VOL_ID} Checks if a volume id exists ${volume_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} openstack volume list | grep ${volume_id} | wc -l Runs the given command in the system and returns the RC and output. Running command 'openstack volume list | grep 2c7638c3-876f-4232-853c-4331c8fb8972 | wc -l 2>&1'. ${rc} = 0 ${stdout} = 1 ${stdout} Logs the given message with the given level. 1 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${root_vol_exists} = 1 msg=Existing root volume is deleted Fails the test with the given message and optionally alters its tags. ${ordinary_vol_exists} ${ORDINARY_VOL_ID} Checks if a volume id exists ${volume_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} openstack volume list | grep ${volume_id} | wc -l Runs the given command in the system and returns the RC and output. Running command 'openstack volume list | grep 86ccb123-0544-426d-8adc-ae381ac8ba23 | wc -l 2>&1'. ${rc} = 0 ${stdout} = 1 ${stdout} Logs the given message with the given level. 1 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ordinary_vol_exists} = 1 msg=Existing ordinary volume is deleted Fails the test with the given message and optionally alters its tags. Check that the persistent volumes exist after deleting the NS. basic_28 cluster_main daily regression cleanup Delete root and ordinary volumes. ${ROOT_VOL_ID} Delete a volume by its identifier ${volume_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} openstack volume delete ${volume_id} Runs the given command in the system and returns the RC and output. Running command 'openstack volume delete 2c7638c3-876f-4232-853c-4331c8fb8972 2>&1'. ${rc} = 0 ${stdout} = ${stdout} Logs the given message with the given level. ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ORDINARY_VOL_ID} Delete a volume by its identifier ${volume_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} openstack volume delete ${volume_id} Runs the given command in the system and returns the RC and output. Running command 'openstack volume delete 86ccb123-0544-426d-8adc-ae381ac8ba23 2>&1'. ${rc} = 0 ${stdout} = ${stdout} Logs the given message with the given level. ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Delete persistent volumes. basic_28 cluster_main daily regression ${NSD_NAME} Delete a NS package from OSM. ${rc} ${stdout} Run And Return Rc And Output osm nspkg-delete ${nsd_id} Runs the keyword and continues execution even if a failure occurs. osm nspkg-delete ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-delete persistent_volumes-ns 2>&1'. ${rc} = 0 ${stdout} = Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Logs the given message with the given level. Deleted ${NSD_DELETE_MAX_WAIT_TIME} ${NSD_DELETE_POL_TIME} Check For NSD ${nsd_id} Runs the specified keyword and retries if it fails. ${nsd_id} Check that a NS package exists in OSM. ${rc} ${stdout} osm nspkg-list | awk '{print $2}' | grep ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-list | awk '{print $2}' | grep persistent_volumes-ns 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. Delete NS package from OSM. basic_28 cleanup cluster_main daily regression ${VNFD_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete keep_persistent-volumes-vnf 2>&1'. ${rc} = 0 ${stdout} = Deleted ${stdout} Logs the given message with the given level. Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep keep_persistent-volumes-vnf 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. Delete VNF package from OSM. basic_28 cleanup cluster_main daily regression Suite Cleanup Runs the given keyword with the given arguments and ignores possible error. Test Suit Cleanup: Deleting Descriptor, instance and vim Delete NS ${NS_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete NSD ${NSD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete VNFD ${VNFD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Clean Persistent Volumes Runs the given keyword with the given arguments, if one or more tests failed. [BASIC-28] NS with one VDU which has 2 persistent volumes with keep flag '%{PACKAGES_FOLDER}/${VNFD_PKG}' Onboards ("creates") a NF Package into OSM. - Parameters: - vnfd_pkg: Name (and location) of the NF Package - overrides (optional): String with options to override the EPA and/or interface properties of the Package. This is very useful to allow to deploy e.g. non-EPA packages in EPA VIMs (or vice-versa). Valid strings are the same as in the command. E.g.: - `--override-epa`: adds EPA attributes to all VDUs. - `--override-nonepa`: removes all EPA attributes from all VDUs. - `--override-paravirt`: converts all interfaces to `PARAVIRT`. This one can be combined with the others above (e.g. '--override-nonepa --override-paravirt'). - Relevant environment variables: - OVERRIDES: If the environment variable "OVERRIDES" exists, it prevails over the value in the argument. This is often more convenient to enforce the same behaviour for every test run in a given VIM. ${overrides} OVERRIDES default=${overrides} Returns the value of an environment variable with the given name. ${overrides} = ${rc} ${stdout} osm vnfpkg-create ${overrides} ${vnfd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-create '/robot-systest/osm-packages/ipv6profile_2vm_vnf' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/ipv6profile_2vm_vnf Validation OK List of charms in the descriptor: set() Adding File: ipv6profile_2vm_vnf Package created: /robot-systest/osm-packages/i... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/ipv6profile_2vm_vnf Validation OK List of charms in the descriptor: set() Adding File: ipv6profile_2vm_vnf Package created: /robot-systest/osm-packages/ipv6profile_2vm_vnf.tar.gz Uploading package /robot-systest/osm-packages/ipv6profile_2vm_vnf.tar.gz 8943f177-9f0c-455e-addb-39df2fbf069c ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 7 lines ${lines} = 7 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 6 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = 8943f177-9f0c-455e-addb-39df2fbf069c ${id} Upload VNF package for the testsuite. basic_29 cluster_main daily regression '%{PACKAGES_FOLDER}/${NSD_PKG}' Upload a NS package to OSM and return the id. ${rc} ${stdout} osm nspkg-create ${nsd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-create '/robot-systest/osm-packages/ipv6profile_2vm_ns' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/ipv6profile_2vm_ns Validation OK List of charms in the descriptor: set() Adding File: ipv6profile_2vm_ns Package created: /robot-systest/osm-packages/ipv... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/ipv6profile_2vm_ns Validation OK List of charms in the descriptor: set() Adding File: ipv6profile_2vm_ns Package created: /robot-systest/osm-packages/ipv6profile_2vm_ns.tar.gz f67a80f5-ad99-4683-8eed-0752fdb5dc06 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 6 lines ${lines} = 6 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 5 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = f67a80f5-ad99-4683-8eed-0752fdb5dc06 ${id} Upload NS package for the testsuite. basic_29 cluster_main daily regression ${id} ${NSD_NAME} %{VIM_TARGET} ${NS_NAME} ${NS_CONFIG} ${PUBLICKEY} Launch the instantation of a NS and verify in a loop that the NS instance is successfully created in a given time, and return the NS instance id. ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_launch_max_wait_time} = 300.0 ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_launch_max_wait_time} = 300.0 ${ns_launch_max_wait_time} Logs the given message with the given level. 300.0 ${config_attr} '${ns_config}'!='${EMPTY}' --config '${ns_config}' ${EMPTY} Sets variable based on the given condition. ${config_attr} = --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext} ] }' ${sshkeys_attr} '${publickey}'!='${EMPTY}' --ssh_keys ${publickey} ${EMPTY} Sets variable based on the given condition. ${sshkeys_attr} = --ssh_keys /root/.ssh/id_rsa.pub ${config_file_attr} '${config_file}'!='${EMPTY}' --config_file '${config_file}' ${EMPTY} Sets variable based on the given condition. ${config_file_attr} = ${ns_id} ${ns_name} ${nsd} ${vim_name} ${config_attr} ${sshkeys_attr} ${config_file_attr} Launch the instantation of a NS, and return the NS instance id. ${rc} ${stdout} osm ns-create --ns_name ${ns_name} --nsd_name ${nsd} --vim_account ${vim_name} ${ns_extra_args} Runs the given command in the system and returns the RC and output. Running command 'osm ns-create --ns_name basic_29 --nsd_name ipv6profile_2vm-ns --vim_account osm --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext} ] }' --ssh_keys /root/.ssh/id_rsa.pub 2>&1'. ${rc} = 0 ${stdout} = 413dfac2-cff0-421d-a853-a27b4fba3cfa ${stdout} Logs the given message with the given level. 413dfac2-cff0-421d-a853-a27b4fba3cfa ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 413dfac2-cff0-421d-a853-a27b4fba3cfa ${ns_id} Logs the given message with the given level. 413dfac2-cff0-421d-a853-a27b4fba3cfa ${ns_launch_max_wait_time} ${NS_LAUNCH_POL_TIME} Check For NS Instance To Configured ${ns_name} Runs the specified keyword and retries if it fails. ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ | 501d8f1a-3306-4d1d-8f88-ac87ed35aec9 | epa_01-epa_sriov-vnf-hackfest_basic-VM-0 | ERROR | | ubuntu18.04 | hackfest_basic-VM-vnf-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_29" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_29 | 413dfac2-cff0-421d-a853-a27b4fba3cfa | 2024-02-19T03:10:14 | BUILDING | INSTANTIATING (5ca760a1-bf8d-467f-a33d-1da623d08fdf) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_29 | 413dfac2-cff0-421d-a853-a27b4fba3cfa | 2024-02-19T03:10:14 | BUILDING | INSTANTIATING (5ca760a1-bf8d-467f-a33d-1da623d08fdf) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------+--------+------------------------+-------------+-------------------------+ | e0b047e8-57ec-456b-8f23-1be550ee2cbb | basic_29-vnf-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 7e7dcd72-7c6a-455c-8e6c-e3a577678d8c | basic_29-vnf-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_29" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_29 | 413dfac2-cff0-421d-a853-a27b4fba3cfa | 2024-02-19T03:10:14 | BUILDING | INSTANTIATING (5ca760a1-bf8d-467f-a33d-1da623d08fdf) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_29 | 413dfac2-cff0-421d-a853-a27b4fba3cfa | 2024-02-19T03:10:14 | BUILDING | INSTANTIATING (5ca760a1-bf8d-467f-a33d-1da623d08fdf) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-------------------------------------+--------+------------------------+-------------+-------------------------+ | 99e7c9c6-599c-404b-9b75-6f63c5a7a2d7 | epa_02-epa_quota-vnf-epa_quota-VM-0 | BUILD | | ubuntu18.04 | epa_quota-VM-vnf-1-flv | | e0b047e8-57ec-456b-8f23-1be550ee2cbb | basic_29-vnf-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 7e7dcd72-7c6a-455c-8e6c-e3a577678d8c | basic_29-vnf-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_29" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_29 | 413dfac2-cff0-421d-a853-a27b4fba3cfa | 2024-02-19T03:10:14 | BUILDING | INSTANTIATING (5ca760a1-bf8d-467f-a33d-1da623d08fdf) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_29 | 413dfac2-cff0-421d-a853-a27b4fba3cfa | 2024-02-19T03:10:14 | BUILDING | INSTANTIATING (5ca760a1-bf8d-467f-a33d-1da623d08fdf) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-------------------------------------+--------+------------------------+-------------+-------------------------+ | 99e7c9c6-599c-404b-9b75-6f63c5a7a2d7 | epa_02-epa_quota-vnf-epa_quota-VM-0 | ACTIVE | osm-ext=172.21.248.89 | ubuntu18.04 | epa_quota-VM-vnf-1-flv | | e0b047e8-57ec-456b-8f23-1be550ee2cbb | basic_29-vnf-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 7e7dcd72-7c6a-455c-8e6c-e3a577678d8c | basic_29-vnf-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_29" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_29 | 413dfac2-cff0-421d-a853-a27b4fba3cfa | 2024-02-19T03:10:14 | BUILDING | INSTANTIATING (5ca760a1-bf8d-467f-a33d-1da623d08fdf) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_29 | 413dfac2-cff0-421d-a853-a27b4fba3cfa | 2024-02-19T03:10:14 | BUILDING | INSTANTIATING (5ca760a1-bf8d-467f-a33d-1da623d08fdf) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------+--------+------------------------+-------------+-------------------------+ | e0b047e8-57ec-456b-8f23-1be550ee2cbb | basic_29-vnf-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 7e7dcd72-7c6a-455c-8e6c-e3a577678d8c | basic_29-vnf-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_29" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_29 | 413dfac2-cff0-421d-a853-a27b4fba3cfa | 2024-02-19T03:10:14 | BUILDING | INSTANTIATING (5ca760a1-bf8d-467f-a33d-1da623d08fdf) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_29 | 413dfac2-cff0-421d-a853-a27b4fba3cfa | 2024-02-19T03:10:14 | BUILDING | INSTANTIATING (5ca760a1-bf8d-467f-a33d-1da623d08fdf) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------+--------+------------------------+-------------+-------------------------+ | e0b047e8-57ec-456b-8f23-1be550ee2cbb | basic_29-vnf-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 7e7dcd72-7c6a-455c-8e6c-e3a577678d8c | basic_29-vnf-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_29" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_29 | 413dfac2-cff0-421d-a853-a27b4fba3cfa | 2024-02-19T03:10:14 | BUILDING | INSTANTIATING (5ca760a1-bf8d-467f-a33d-1da623d08fdf) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_29 | 413dfac2-cff0-421d-a853-a27b4fba3cfa | 2024-02-19T03:10:14 | BUILDING | INSTANTIATING (5ca760a1-bf8d-467f-a33d-1da623d08fdf) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------+--------+------------------------+-------------+-------------------------+ | e0b047e8-57ec-456b-8f23-1be550ee2cbb | basic_29-vnf-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 7e7dcd72-7c6a-455c-8e6c-e3a577678d8c | basic_29-vnf-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_29" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_29 | 413dfac2-cff0-421d-a853-a27b4fba3cfa | 2024-02-19T03:10:14 | BUILDING | INSTANTIATING (5ca760a1-bf8d-467f-a33d-1da623d08fdf) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_29 | 413dfac2-cff0-421d-a853-a27b4fba3cfa | 2024-02-19T03:10:14 | BUILDING | INSTANTIATING (5ca760a1-bf8d-467f-a33d-1da623d08fdf) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | 2628d2b1-a57d-4a36-bb0f-af52c1079fba | epa_04-vnf2-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.22; osm-ext=172.21.249.97 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 52150b9a-4827-49d6-9b7d-c18e31ca06bf | epa_04-vnf1-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.11; osm-ext=172.21.249.193 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | e0b047e8-57ec-456b-8f23-1be550ee2cbb | basic_29-vnf-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 7e7dcd72-7c6a-455c-8e6c-e3a577678d8c | basic_29-vnf-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_29" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_29 | 413dfac2-cff0-421d-a853-a27b4fba3cfa | 2024-02-19T03:10:14 | BUILDING | INSTANTIATING (5ca760a1-bf8d-467f-a33d-1da623d08fdf) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_29 | 413dfac2-cff0-421d-a853-a27b4fba3cfa | 2024-02-19T03:10:14 | BUILDING | INSTANTIATING (5ca760a1-bf8d-467f-a33d-1da623d08fdf) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | 2628d2b1-a57d-4a36-bb0f-af52c1079fba | epa_04-vnf2-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.22; osm-ext=172.21.249.97 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 52150b9a-4827-49d6-9b7d-c18e31ca06bf | epa_04-vnf1-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.11; osm-ext=172.21.249.193 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | e0b047e8-57ec-456b-8f23-1be550ee2cbb | basic_29-vnf-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 7e7dcd72-7c6a-455c-8e6c-e3a577678d8c | basic_29-vnf-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_29" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_29 | 413dfac2-cff0-421d-a853-a27b4fba3cfa | 2024-02-19T03:10:14 | BUILDING | INSTANTIATING (5ca760a1-bf8d-467f-a33d-1da623d08fdf) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_29 | 413dfac2-cff0-421d-a853-a27b4fba3cfa | 2024-02-19T03:10:14 | BUILDING | INSTANTIATING (5ca760a1-bf8d-467f-a33d-1da623d08fdf) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | 2628d2b1-a57d-4a36-bb0f-af52c1079fba | epa_04-vnf2-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.22; osm-ext=172.21.249.97 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 52150b9a-4827-49d6-9b7d-c18e31ca06bf | epa_04-vnf1-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.11; osm-ext=172.21.249.193 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | e0b047e8-57ec-456b-8f23-1be550ee2cbb | basic_29-vnf-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 7e7dcd72-7c6a-455c-8e6c-e3a577678d8c | basic_29-vnf-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_29" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_29 | 413dfac2-cff0-421d-a853-a27b4fba3cfa | 2024-02-19T03:10:14 | BUILDING | INSTANTIATING (5ca760a1-bf8d-467f-a33d-1da623d08fdf) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_29 | 413dfac2-cff0-421d-a853-a27b4fba3cfa | 2024-02-19T03:10:14 | BUILDING | INSTANTIATING (5ca760a1-bf8d-467f-a33d-1da623d08fdf) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' Keyword 'Check For NS Instance To Configured' failed after retrying for 5 minutes. The last error was: '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_29 | 413dfac2-cff0-421d-a853-a27b4fba3cfa | 2024-02-19T03:10:14 | BUILDING | INSTANTIATING (5ca760a1-bf8d-467f-a33d-1da623d08fdf) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has not failed in the instantiation (the status should not be BROKEN). ${ns_id} ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. Instantiate NS for the testsuite. basic_29 cluster_main daily regression Keyword 'Check For NS Instance To Configured' failed after retrying for 5 minutes. The last error was: '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_29 | 413dfac2-cff0-421d-a853-a27b4fba3cfa | 2024-02-19T03:10:14 | BUILDING | INSTANTIATING (5ca760a1-bf8d-467f-a33d-1da623d08fdf) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${NS_ID} msg=Network service instance is not available Fails unless the given variable exists within the current scope. msg=Network service instance is not available @{vnfr_list} ${NS_ID} Return a list with the IDs of the VNF records of a NS instance. ${vnfr_list} Logs the length and contents of the ``list`` using given ``level``. ${VNF_ID} ${vnfr_list}[0] Makes a variable available everywhere within the scope of the current suite. ${ip} ${NS_ID} ${VNF_MEMBER_INDEX_1} Get the mgmt IP address of a member VNF in a NS instance, and return it. ${VNF_IPMGMT} ${ip} Makes a variable available everywhere within the scope of the current suite. ${VNF_IPMGMT} Logs the given message with the given level. Get VNF information, specifically VNF instance id and mgmt IP address. basic_29 cluster_main daily regression msg=Network service instance is not available ${VNF_ID} msg=VNF is not available Fails unless the given variable exists within the current scope. msg=VNF is not available ${rc} ${stdout} osm vnf-show ${VNF_ID} --literal | yq '.vdur[0].interfaces[] | select(."vnf-vld-id" == "internal")' | yq -r '."ip-address"' Runs the given command in the system and returns the RC and output. ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. ${stdout} ${INTERNAL_PREFIX} msg=${stdout} doesn't match subnet's regexp ${INTERNAL_PREFIX} Fails if ``string`` does not match ``pattern`` as a regular expression. ${rc} ${stdout} osm vnf-show ${VNF_ID} --literal | yq '.vdur[1].interfaces[] | select(."vnf-vld-id" == "internal")' | yq -r '."ip-address"' Runs the given command in the system and returns the RC and output. ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. ${stdout} ${INTERNAL_PREFIX} msg=${stdout} doesn't match subnet's regexp ${INTERNAL_PREFIX} Fails if ``string`` does not match ``pattern`` as a regular expression. Check whether IP addresses are syntactically valid. basic_29 cluster_main daily regression msg=VNF is not available ${rc} ${vim_info} osm vnf-show ${VNF_ID} --literal | yq '.vdur[] | select(."count-index" == 0)' | yq -r '.vim_info[].interfaces[].vim_info' Runs the given command in the system and returns the RC and output. Variable '${VNF_ID}' not found. Did you mean: ${VNFD_PKG} ${rc},${vim_info} Logs the given message with the given level. ${subnet_id} ${vim_info} {ip_address: '2001:db8::.*', subnet_id: ([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})} 1 Returns a list of all non-overlapping matches in the given string. ${subnet_info} ${subnet_id}[0] Get subnet information in JSON format ${json_object} ${subnet_info} Convert String to JSON object ${address_mode} ${json_object} ipv6_address_mode Returns a value from the given ``dictionary`` based on the given ``key``. ${ra_mode} ${json_object} ipv6_ra_mode Returns a value from the given ``dictionary`` based on the given ``key``. ${address_mode} dhcpv6-stateful msg=ipv6_address_mode does not equals to dhcpv6-stateful Fails if the given objects are unequal. ${ra_mode} dhcpv6-stateful msg=ipv6_ra_mode does not equals to dhcpv6-stateful Fails if the given objects are unequal. Check that IPv6 address mode and RA mode are set and equal to dhcpv6-stateful. basic_29 cluster_main daily regression Variable '${VNF_ID}' not found. Did you mean: ${VNFD_PKG} ${NS_NAME} Delete a NS instance. ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} Logs the given message with the given level. 240.0 ${rc} ${stdout} osm ns-delete ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-delete basic_29 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${stdout} Logs the given message with the given level. Deletion in progress ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${ns_delete_max_wait_time} ${NS_DELETE_POL_TIME} Check For NS Instance To Be Deleted ${ns} Runs the specified keyword and retries if it fails. ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | 2628d2b1-a57d-4a36-bb0f-af52c1079fba | epa_04-vnf2-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.22; osm-ext=172.21.249.97 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 52150b9a-4827-49d6-9b7d-c18e31ca06bf | epa_04-vnf1-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.11; osm-ext=172.21.249.193 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | e0b047e8-57ec-456b-8f23-1be550ee2cbb | basic_29-vnf-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 7e7dcd72-7c6a-455c-8e6c-e3a577678d8c | basic_29-vnf-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep basic_29 2>&1'. ${rc} = 0 ${stdout} = basic_29 ${rc},${stdout} Logs the given message with the given level. 0,basic_29 ${stdout} ${ns} Fails if objects are equal after converting them to strings. basic_29 == basic_29 ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | 2628d2b1-a57d-4a36-bb0f-af52c1079fba | epa_04-vnf2-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.22; osm-ext=172.21.249.97 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 52150b9a-4827-49d6-9b7d-c18e31ca06bf | epa_04-vnf1-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.11; osm-ext=172.21.249.193 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | e0b047e8-57ec-456b-8f23-1be550ee2cbb | basic_29-vnf-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 7e7dcd72-7c6a-455c-8e6c-e3a577678d8c | basic_29-vnf-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep basic_29 2>&1'. ${rc} = 0 ${stdout} = basic_29 ${rc},${stdout} Logs the given message with the given level. 0,basic_29 ${stdout} ${ns} Fails if objects are equal after converting them to strings. basic_29 == basic_29 ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | 2628d2b1-a57d-4a36-bb0f-af52c1079fba | epa_04-vnf2-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.22; osm-ext=172.21.249.97 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 52150b9a-4827-49d6-9b7d-c18e31ca06bf | epa_04-vnf1-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.11; osm-ext=172.21.249.193 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | e0b047e8-57ec-456b-8f23-1be550ee2cbb | basic_29-vnf-dataVM-0 | ERROR | | ubuntu20.04 | simple_requires-1-1-flv | | 7e7dcd72-7c6a-455c-8e6c-e3a577678d8c | basic_29-vnf-mgmtVM-0 | ERROR | | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep basic_29 2>&1'. ${rc} = 0 ${stdout} = basic_29 ${rc},${stdout} Logs the given message with the given level. 0,basic_29 ${stdout} ${ns} Fails if objects are equal after converting them to strings. basic_29 == basic_29 ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------+--------+------------------------------------------------------+-------------+----------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------+--------+------------------------------------------------------+-------------+----------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------+--------+------------------------------------------------------+-------------+----------------------+ | 2628d2b1-a57d-4a36-bb0f-af52c1079fba | epa_04-vnf2-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.22; osm-ext=172.21.249.97 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 52150b9a-4827-49d6-9b7d-c18e31ca06bf | epa_04-vnf1-dataVM-0 | ACTIVE | osm-ext=172.21.249.193 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------+--------+------------------------------------------------------+-------------+----------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep basic_29 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${ns} Fails if objects are equal after converting them to strings. Delete NS instance. basic_29 cleanup cluster_main daily regression ${NSD_NAME} Delete a NS package from OSM. ${rc} ${stdout} Run And Return Rc And Output osm nspkg-delete ${nsd_id} Runs the keyword and continues execution even if a failure occurs. osm nspkg-delete ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-delete ipv6profile_2vm-ns 2>&1'. ${rc} = 0 ${stdout} = Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Logs the given message with the given level. Deleted ${NSD_DELETE_MAX_WAIT_TIME} ${NSD_DELETE_POL_TIME} Check For NSD ${nsd_id} Runs the specified keyword and retries if it fails. ${nsd_id} Check that a NS package exists in OSM. ${rc} ${stdout} osm nspkg-list | awk '{print $2}' | grep ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-list | awk '{print $2}' | grep ipv6profile_2vm-ns 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. Delete NS package from OSM. basic_29 cleanup cluster_main daily regression ${VNFD_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete ipv6profile_2vm-vnf 2>&1'. ${rc} = 0 ${stdout} = Deleted ${stdout} Logs the given message with the given level. Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep ipv6profile_2vm-vnf 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. Delete VNF package from OSM. basic_29 cleanup cluster_main daily regression Suite Cleanup Runs the given keyword with the given arguments and ignores possible error. Test Suite Cleanup: Deleting descriptors and NS instance Delete NS ${NS_NAME} Runs the given keyword with the given arguments, if one or more tests failed. ${NS_NAME} Delete a NS instance. ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} Logs the given message with the given level. 240.0 ${rc} ${stdout} osm ns-delete ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-delete basic_29 2>&1'. ${rc} = 1 ${stdout} = ERROR: ns 'basic_29' not found ${stdout} Logs the given message with the given level. ERROR: ns 'basic_29' not found ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${ns_delete_max_wait_time} ${NS_DELETE_POL_TIME} Check For NS Instance To Be Deleted ${ns} Runs the specified keyword and retries if it fails. ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | ID | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep basic_29 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${ns} Fails if objects are equal after converting them to strings. Delete NSD ${NSD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. ${NSD_NAME} Delete a NS package from OSM. ${rc} ${stdout} Run And Return Rc And Output osm nspkg-delete ${nsd_id} Runs the keyword and continues execution even if a failure occurs. osm nspkg-delete ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-delete ipv6profile_2vm-ns 2>&1'. ${rc} = 1 ${stdout} = ERROR: nsd ipv6profile_2vm-ns not found ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${stdout} Logs the given message with the given level. ERROR: nsd ipv6profile_2vm-ns not found ${NSD_DELETE_MAX_WAIT_TIME} ${NSD_DELETE_POL_TIME} Check For NSD ${nsd_id} Runs the specified keyword and retries if it fails. ${nsd_id} Check that a NS package exists in OSM. ${rc} ${stdout} osm nspkg-list | awk '{print $2}' | grep ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-list | awk '{print $2}' | grep ipv6profile_2vm-ns 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. Delete VNFD ${VNFD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. ${VNFD_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete ipv6profile_2vm-vnf 2>&1'. ${rc} = 1 ${stdout} = ERROR: vnfd ipv6profile_2vm-vnf not found ${stdout} Logs the given message with the given level. ERROR: vnfd ipv6profile_2vm-vnf not found ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep ipv6profile_2vm-vnf 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. [BASIC-29] NS with a single VNF and two VDU linked by a VLD with ipv6-profile. '%{PACKAGES_FOLDER}/${VNFD_PKG}' Onboards ("creates") a NF Package into OSM. - Parameters: - vnfd_pkg: Name (and location) of the NF Package - overrides (optional): String with options to override the EPA and/or interface properties of the Package. This is very useful to allow to deploy e.g. non-EPA packages in EPA VIMs (or vice-versa). Valid strings are the same as in the command. E.g.: - `--override-epa`: adds EPA attributes to all VDUs. - `--override-nonepa`: removes all EPA attributes from all VDUs. - `--override-paravirt`: converts all interfaces to `PARAVIRT`. This one can be combined with the others above (e.g. '--override-nonepa --override-paravirt'). - Relevant environment variables: - OVERRIDES: If the environment variable "OVERRIDES" exists, it prevails over the value in the argument. This is often more convenient to enforce the same behaviour for every test run in a given VIM. ${overrides} OVERRIDES default=${overrides} Returns the value of an environment variable with the given name. ${overrides} = ${rc} ${stdout} osm vnfpkg-create ${overrides} ${vnfd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-create '/robot-systest/osm-packages/ubuntu_4ifaces_vnf' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/ubuntu_4ifaces_vnf Validation OK List of charms in the descriptor: set() Adding File: ubuntu_4ifaces_vnf Package created: /robot-systest/osm-packages/ubu... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/ubuntu_4ifaces_vnf Validation OK List of charms in the descriptor: set() Adding File: ubuntu_4ifaces_vnf Package created: /robot-systest/osm-packages/ubuntu_4ifaces_vnf.tar.gz Uploading package /robot-systest/osm-packages/ubuntu_4ifaces_vnf.tar.gz f30918d0-1180-4f92-80b9-0e66cda664c4 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 7 lines ${lines} = 7 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 6 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = f30918d0-1180-4f92-80b9-0e66cda664c4 ${id} Upload VNF package for the testsuite. basic_30 cluster_main daily regression '%{PACKAGES_FOLDER}/${NSD_PKG}' Upload a NS package to OSM and return the id. ${rc} ${stdout} osm nspkg-create ${nsd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-create '/robot-systest/osm-packages/ubuntu_4ifaces_ipv6_ns' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/ubuntu_4ifaces_ipv6_ns Validation OK List of charms in the descriptor: set() Adding File: ubuntu_4ifaces_ipv6_ns Package created: /robot-systest/osm-pack... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/ubuntu_4ifaces_ipv6_ns Validation OK List of charms in the descriptor: set() Adding File: ubuntu_4ifaces_ipv6_ns Package created: /robot-systest/osm-packages/ubuntu_4ifaces_ipv6_ns.tar.gz ae136eb6-0e5d-4a10-89ee-dc252eaac2d4 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 6 lines ${lines} = 6 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 5 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = ae136eb6-0e5d-4a10-89ee-dc252eaac2d4 ${id} Upload NS package for the testsuite. basic_30 cluster_main daily regression ${id} ${NSD_NAME} %{VIM_TARGET} ${NS_NAME} ${NS_CONFIG} ${PUBLICKEY} Launch the instantation of a NS and verify in a loop that the NS instance is successfully created in a given time, and return the NS instance id. ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_launch_max_wait_time} = 300.0 ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_launch_max_wait_time} = 300.0 ${ns_launch_max_wait_time} Logs the given message with the given level. 300.0 ${config_attr} '${ns_config}'!='${EMPTY}' --config '${ns_config}' ${EMPTY} Sets variable based on the given condition. ${config_attr} = --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext} ] }' ${sshkeys_attr} '${publickey}'!='${EMPTY}' --ssh_keys ${publickey} ${EMPTY} Sets variable based on the given condition. ${sshkeys_attr} = --ssh_keys /root/.ssh/id_rsa.pub ${config_file_attr} '${config_file}'!='${EMPTY}' --config_file '${config_file}' ${EMPTY} Sets variable based on the given condition. ${config_file_attr} = ${ns_id} ${ns_name} ${nsd} ${vim_name} ${config_attr} ${sshkeys_attr} ${config_file_attr} Launch the instantation of a NS, and return the NS instance id. ${rc} ${stdout} osm ns-create --ns_name ${ns_name} --nsd_name ${nsd} --vim_account ${vim_name} ${ns_extra_args} Runs the given command in the system and returns the RC and output. Running command 'osm ns-create --ns_name basic_30 --nsd_name ubuntu_4ifaces-ipv6-ns --vim_account osm --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext} ] }' --ssh_keys /root/.ssh/id_rsa.pub 2>&1'. ${rc} = 0 ${stdout} = 875a25c9-043e-460f-870b-f7e70fdf77a0 ${stdout} Logs the given message with the given level. 875a25c9-043e-460f-870b-f7e70fdf77a0 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 875a25c9-043e-460f-870b-f7e70fdf77a0 ${ns_id} Logs the given message with the given level. 875a25c9-043e-460f-870b-f7e70fdf77a0 ${ns_launch_max_wait_time} ${NS_LAUNCH_POL_TIME} Check For NS Instance To Configured ${ns_name} Runs the specified keyword and retries if it fails. ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | ID | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_30" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_30 | 875a25c9-043e-460f-870b-f7e70fdf77a0 | 2024-02-19T03:16:36 | BUILDING | INSTANTIATING (0d3006b6-70ed-452e-b953-32af8e50edae) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_30 | 875a25c9-043e-460f-870b-f7e70fdf77a0 | 2024-02-19T03:16:36 | BUILDING | INSTANTIATING (0d3006b6-70ed-452e-b953-32af8e50edae) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | ID | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | a605c4e8-3de5-4f9c-ae24-f152b890e624 | basic_30-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 096bd164-c8cd-4395-8dab-3fa3a350820f | basic_30-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_30" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_30 | 875a25c9-043e-460f-870b-f7e70fdf77a0 | 2024-02-19T03:16:36 | BUILDING | INSTANTIATING (0d3006b6-70ed-452e-b953-32af8e50edae) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_30 | 875a25c9-043e-460f-870b-f7e70fdf77a0 | 2024-02-19T03:16:36 | BUILDING | INSTANTIATING (0d3006b6-70ed-452e-b953-32af8e50edae) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 0afb2a29-551c-4279-b2b9-476765d40117 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.73 | ubuntu20.04 | simple_requires-1-1-flv | | 7a0d9214-cb6c-468f-99bd-fff3933bcb21 | fail_01_4414-vnf-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | a605c4e8-3de5-4f9c-ae24-f152b890e624 | basic_30-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 096bd164-c8cd-4395-8dab-3fa3a350820f | basic_30-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_30" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_30 | 875a25c9-043e-460f-870b-f7e70fdf77a0 | 2024-02-19T03:16:36 | BUILDING | INSTANTIATING (0d3006b6-70ed-452e-b953-32af8e50edae) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_30 | 875a25c9-043e-460f-870b-f7e70fdf77a0 | 2024-02-19T03:16:36 | BUILDING | INSTANTIATING (0d3006b6-70ed-452e-b953-32af8e50edae) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 0afb2a29-551c-4279-b2b9-476765d40117 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.73 | ubuntu20.04 | simple_requires-1-1-flv | | 7a0d9214-cb6c-468f-99bd-fff3933bcb21 | fail_01_4414-vnf-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | a605c4e8-3de5-4f9c-ae24-f152b890e624 | basic_30-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 096bd164-c8cd-4395-8dab-3fa3a350820f | basic_30-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_30" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_30 | 875a25c9-043e-460f-870b-f7e70fdf77a0 | 2024-02-19T03:16:36 | BUILDING | INSTANTIATING (0d3006b6-70ed-452e-b953-32af8e50edae) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_30 | 875a25c9-043e-460f-870b-f7e70fdf77a0 | 2024-02-19T03:16:36 | BUILDING | INSTANTIATING (0d3006b6-70ed-452e-b953-32af8e50edae) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 0afb2a29-551c-4279-b2b9-476765d40117 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.73 | ubuntu20.04 | simple_requires-1-1-flv | | 7a0d9214-cb6c-468f-99bd-fff3933bcb21 | fail_01_4414-vnf-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | a605c4e8-3de5-4f9c-ae24-f152b890e624 | basic_30-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 096bd164-c8cd-4395-8dab-3fa3a350820f | basic_30-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_30" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_30 | 875a25c9-043e-460f-870b-f7e70fdf77a0 | 2024-02-19T03:16:36 | BUILDING | INSTANTIATING (0d3006b6-70ed-452e-b953-32af8e50edae) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_30 | 875a25c9-043e-460f-870b-f7e70fdf77a0 | 2024-02-19T03:16:36 | BUILDING | INSTANTIATING (0d3006b6-70ed-452e-b953-32af8e50edae) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 0afb2a29-551c-4279-b2b9-476765d40117 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.73 | ubuntu20.04 | simple_requires-1-1-flv | | 7a0d9214-cb6c-468f-99bd-fff3933bcb21 | fail_01_4414-vnf-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | a605c4e8-3de5-4f9c-ae24-f152b890e624 | basic_30-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 096bd164-c8cd-4395-8dab-3fa3a350820f | basic_30-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_30" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_30 | 875a25c9-043e-460f-870b-f7e70fdf77a0 | 2024-02-19T03:16:36 | BUILDING | INSTANTIATING (0d3006b6-70ed-452e-b953-32af8e50edae) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_30 | 875a25c9-043e-460f-870b-f7e70fdf77a0 | 2024-02-19T03:16:36 | BUILDING | INSTANTIATING (0d3006b6-70ed-452e-b953-32af8e50edae) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 0afb2a29-551c-4279-b2b9-476765d40117 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.73 | ubuntu20.04 | simple_requires-1-1-flv | | 7a0d9214-cb6c-468f-99bd-fff3933bcb21 | fail_01_4414-vnf-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | a605c4e8-3de5-4f9c-ae24-f152b890e624 | basic_30-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 096bd164-c8cd-4395-8dab-3fa3a350820f | basic_30-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_30" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_30 | 875a25c9-043e-460f-870b-f7e70fdf77a0 | 2024-02-19T03:16:36 | BUILDING | INSTANTIATING (0d3006b6-70ed-452e-b953-32af8e50edae) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_30 | 875a25c9-043e-460f-870b-f7e70fdf77a0 | 2024-02-19T03:16:36 | BUILDING | INSTANTIATING (0d3006b6-70ed-452e-b953-32af8e50edae) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 0afb2a29-551c-4279-b2b9-476765d40117 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.73 | ubuntu20.04 | simple_requires-1-1-flv | | 7a0d9214-cb6c-468f-99bd-fff3933bcb21 | fail_01_4414-vnf-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | a605c4e8-3de5-4f9c-ae24-f152b890e624 | basic_30-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 096bd164-c8cd-4395-8dab-3fa3a350820f | basic_30-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_30" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_30 | 875a25c9-043e-460f-870b-f7e70fdf77a0 | 2024-02-19T03:16:36 | BUILDING | INSTANTIATING (0d3006b6-70ed-452e-b953-32af8e50edae) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_30 | 875a25c9-043e-460f-870b-f7e70fdf77a0 | 2024-02-19T03:16:36 | BUILDING | INSTANTIATING (0d3006b6-70ed-452e-b953-32af8e50edae) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 0afb2a29-551c-4279-b2b9-476765d40117 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.73 | ubuntu20.04 | simple_requires-1-1-flv | | 7a0d9214-cb6c-468f-99bd-fff3933bcb21 | fail_01_4414-vnf-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | a605c4e8-3de5-4f9c-ae24-f152b890e624 | basic_30-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 096bd164-c8cd-4395-8dab-3fa3a350820f | basic_30-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_30" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_30 | 875a25c9-043e-460f-870b-f7e70fdf77a0 | 2024-02-19T03:16:36 | BUILDING | INSTANTIATING (0d3006b6-70ed-452e-b953-32af8e50edae) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_30 | 875a25c9-043e-460f-870b-f7e70fdf77a0 | 2024-02-19T03:16:36 | BUILDING | INSTANTIATING (0d3006b6-70ed-452e-b953-32af8e50edae) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 0afb2a29-551c-4279-b2b9-476765d40117 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.73 | ubuntu20.04 | simple_requires-1-1-flv | | 7a0d9214-cb6c-468f-99bd-fff3933bcb21 | fail_01_4414-vnf-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | a605c4e8-3de5-4f9c-ae24-f152b890e624 | basic_30-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 096bd164-c8cd-4395-8dab-3fa3a350820f | basic_30-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_30" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_30 | 875a25c9-043e-460f-870b-f7e70fdf77a0 | 2024-02-19T03:16:36 | BUILDING | INSTANTIATING (0d3006b6-70ed-452e-b953-32af8e50edae) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_30 | 875a25c9-043e-460f-870b-f7e70fdf77a0 | 2024-02-19T03:16:36 | BUILDING | INSTANTIATING (0d3006b6-70ed-452e-b953-32af8e50edae) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 0afb2a29-551c-4279-b2b9-476765d40117 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.73 | ubuntu20.04 | simple_requires-1-1-flv | | 7a0d9214-cb6c-468f-99bd-fff3933bcb21 | fail_01_4414-vnf-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | a605c4e8-3de5-4f9c-ae24-f152b890e624 | basic_30-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 096bd164-c8cd-4395-8dab-3fa3a350820f | basic_30-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="basic_30" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_30 | 875a25c9-043e-460f-870b-f7e70fdf77a0 | 2024-02-19T03:16:36 | BUILDING | INSTANTIATING (0d3006b6-70ed-452e-b953-32af8e50edae) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_30 | 875a25c9-043e-460f-870b-f7e70fdf77a0 | 2024-02-19T03:16:36 | BUILDING | INSTANTIATING (0d3006b6-70ed-452e-b953-32af8e50edae) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' Keyword 'Check For NS Instance To Configured' failed after retrying for 5 minutes. The last error was: '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_30 | 875a25c9-043e-460f-870b-f7e70fdf77a0 | 2024-02-19T03:16:36 | BUILDING | INSTANTIATING (0d3006b6-70ed-452e-b953-32af8e50edae) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has not failed in the instantiation (the status should not be BROKEN). ${ns_id} ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. Instantiate NS for the testsuite. basic_30 cluster_main daily regression Keyword 'Check For NS Instance To Configured' failed after retrying for 5 minutes. The last error was: '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | basic_30 | 875a25c9-043e-460f-870b-f7e70fdf77a0 | 2024-02-19T03:16:36 | BUILDING | INSTANTIATING (0d3006b6-70ed-452e-b953-32af8e50edae) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${NS_ID} msg=Network service instance is not available Fails unless the given variable exists within the current scope. msg=Network service instance is not available @{vnfr_list} ${NS_ID} Return a list with the IDs of the VNF records of a NS instance. ${vnfr_list} Logs the length and contents of the ``list`` using given ``level``. ${VNF_ID1} ${vnfr_list}[0] Makes a variable available everywhere within the scope of the current suite. ${VNF_ID2} ${vnfr_list}[1] Makes a variable available everywhere within the scope of the current suite. ${ip} ${NS_ID} ${VNF_MEMBER_INDEX_1} Get the mgmt IP address of a member VNF in a NS instance, and return it. ${VNF1_IPMGMT} ${ip} Makes a variable available everywhere within the scope of the current suite. ${VNF1_IPMGMT} Logs the given message with the given level. ${ip} ${NS_ID} ${VNF_MEMBER_INDEX_2} Get the mgmt IP address of a member VNF in a NS instance, and return it. ${VNF2_IPMGMT} ${ip} Makes a variable available everywhere within the scope of the current suite. ${VNF2_IPMGMT} Logs the given message with the given level. Get information from the two VNF of the NS, specifically VNF instance id and mgmt IP address. basic_30 cluster_main daily regression msg=Network service instance is not available ${VNF_ID1} msg=VNF1 is not available Fails unless the given variable exists within the current scope. msg=VNF1 is not available ${rc} ${stdout} osm vnf-show ${VNF_ID1} --literal | yq '.vdur[0].interfaces[] | select(.name == "${IFACE1_NAME}")' | yq -r '."ip-address"' Runs the given command in the system and returns the RC and output. ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. ${stdout} ${DATANET1_PREFIX} msg=${stdout} doesn't match subnet's regexp ${DATANET1_PREFIX} Fails if ``string`` does not match ``pattern`` as a regular expression. ${VNF1_IP1} ${stdout} Makes a variable available everywhere within the scope of the current suite. Check whether IP addresses of the first VNF in the VNF record meet the expected CIDR. basic_30 cluster_main daily regression msg=VNF1 is not available ${VNF_ID2} msg=VNF2 is not available Fails unless the given variable exists within the current scope. msg=VNF2 is not available ${rc} ${stdout} osm vnf-show ${VNF_ID2} --literal | yq '.vdur[0].interfaces[] | select(.name == "${IFACE1_NAME}")' | yq -r '."ip-address"' Runs the given command in the system and returns the RC and output. ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. ${stdout} ${DATANET1_PREFIX} msg=${stdout} doesn't match subnet's regexp ${DATANET1_PREFIX} Fails if ``string`` does not match ``pattern`` as a regular expression. ${VNF2_IP1} ${stdout} Makes a variable available everywhere within the scope of the current suite. Check whether IP addresses of the second VNF in the VNF record meet the expected CIDR. basic_30 cluster_main daily regression msg=VNF2 is not available ${VNF1_IPMGMT} msg=IP address of the data VNF '${VNF_MEMBER_INDEX_1}' is not available Fails unless the given variable exists within the current scope. msg=IP address of the data VNF 'vnf1' is not available ${PRIVATEKEY} msg=SSH private key not available Fails unless the given variable exists within the current scope. 120 seconds Wait for SSH daemon to be up Pauses the test executed for the given time. ${stdout} ${VNF1_IPMGMT} ${USERNAME} ${EMPTY} ${PRIVATEKEY} sudo dhclient -6 ens4 ; ip --brief addr show up | grep -v "^lo" | awk '{print $3}' Execute via SSH a command in a remote host and, if the command succeeds, return the output. ${stdout} Logs the given message with the given level. @{ip} ${stdout} Splits the ``string`` using ``separator`` as a delimiter string. ${ip}[1] ${DATANET1_PREFIX} msg=${ip}[1] doesn't match subnet's regexp ${DATANET1_PREFIX} Fails if ``string`` does not match ``pattern`` as a regular expression. Check whether IP addresses of the first VNF configured inside the VM meet the expected CIDR. basic_30 cluster_main daily regression msg=IP address of the data VNF 'vnf1' is not available ${VNF2_IPMGMT} msg=IP address of the data VNF '${VNF_MEMBER_INDEX_2}' is not available Fails unless the given variable exists within the current scope. msg=IP address of the data VNF 'vnf2' is not available ${PRIVATEKEY} msg=SSH private key not available Fails unless the given variable exists within the current scope. ${stdout} ${VNF2_IPMGMT} ${USERNAME} ${EMPTY} ${PRIVATEKEY} sudo dhclient -6 ens4 ; ip --brief addr show up | grep -v "^lo" | awk '{print $3}' Execute via SSH a command in a remote host and, if the command succeeds, return the output. ${stdout} Logs the given message with the given level. @{ip} ${stdout} Splits the ``string`` using ``separator`` as a delimiter string. ${ip}[1] ${DATANET1_PREFIX} msg=${ip}[1] doesn't match subnet's regexp ${DATANET1_PREFIX} Fails if ``string`` does not match ``pattern`` as a regular expression. Check whether IP addresses of the second VNF configured inside the VM meet the expected CIDR. basic_30 cluster_main daily regression msg=IP address of the data VNF 'vnf2' is not available ${rc} ${vim_info} osm vnf-show ${VNF_ID1} --literal | yq '.vdur[] | select(."count-index" == 0)' | yq -r '.vim_info[].interfaces[].vim_info' Runs the given command in the system and returns the RC and output. Variable '${VNF_ID1}' not found. ${rc},${vim_info} Logs the given message with the given level. ${subnet_id} ${vim_info} {ip_address: '2001:db8::.*', subnet_id: ([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})} 1 Returns a list of all non-overlapping matches in the given string. ${subnet_info} ${subnet_id}[0] Get subnet information in JSON format ${json_object} ${subnet_info} Convert String to JSON object ${address_mode} ${json_object} ipv6_address_mode Returns a value from the given ``dictionary`` based on the given ``key``. ${ra_mode} ${json_object} ipv6_ra_mode Returns a value from the given ``dictionary`` based on the given ``key``. ${address_mode} dhcpv6-stateful msg=ipv6_address_mode does not equal dhcpv6-stateful Fails if the given objects are unequal. ${ra_mode} dhcpv6-stateful msg=ipv6_ra_mode does not equal dhcpv6-stateful Fails if the given objects are unequal. Check that IPv6 address mode and RA mode are set and equal to dhcpv6-stateful. basic_30 cluster_main daily regression Variable '${VNF_ID1}' not found. ${NS_NAME} Delete a NS instance. ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} Logs the given message with the given level. 240.0 ${rc} ${stdout} osm ns-delete ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-delete basic_30 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${stdout} Logs the given message with the given level. Deletion in progress ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${ns_delete_max_wait_time} ${NS_DELETE_POL_TIME} Check For NS Instance To Be Deleted ${ns} Runs the specified keyword and retries if it fails. ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 0afb2a29-551c-4279-b2b9-476765d40117 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.73 | ubuntu20.04 | simple_requires-1-1-flv | | 7a0d9214-cb6c-468f-99bd-fff3933bcb21 | fail_01_4414-vnf-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | a605c4e8-3de5-4f9c-ae24-f152b890e624 | basic_30-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 096bd164-c8cd-4395-8dab-3fa3a350820f | basic_30-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep basic_30 2>&1'. ${rc} = 0 ${stdout} = basic_30 ${rc},${stdout} Logs the given message with the given level. 0,basic_30 ${stdout} ${ns} Fails if objects are equal after converting them to strings. basic_30 == basic_30 ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 0afb2a29-551c-4279-b2b9-476765d40117 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.73 | ubuntu20.04 | simple_requires-1-1-flv | | a605c4e8-3de5-4f9c-ae24-f152b890e624 | basic_30-vnf2-dataVM-0 | ERROR | | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 096bd164-c8cd-4395-8dab-3fa3a350820f | basic_30-vnf1-dataVM-0 | ERROR | | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep basic_30 2>&1'. ${rc} = 0 ${stdout} = basic_30 ${rc},${stdout} Logs the given message with the given level. 0,basic_30 ${stdout} ${ns} Fails if objects are equal after converting them to strings. basic_30 == basic_30 ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 0afb2a29-551c-4279-b2b9-476765d40117 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.73 | ubuntu20.04 | simple_requires-1-1-flv | | a605c4e8-3de5-4f9c-ae24-f152b890e624 | basic_30-vnf2-dataVM-0 | ERROR | | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 096bd164-c8cd-4395-8dab-3fa3a350820f | basic_30-vnf1-dataVM-0 | ERROR | | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep basic_30 2>&1'. ${rc} = 0 ${stdout} = basic_30 ${rc},${stdout} Logs the given message with the given level. 0,basic_30 ${stdout} ${ns} Fails if objects are equal after converting them to strings. basic_30 == basic_30 ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | b1b4e9a5-0b5b-4f14-a4fb-e35e91944b34 | hfbasic-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.244 | ubuntu20.04 | simple_requires-1-1-flv | | 0afb2a29-551c-4279-b2b9-476765d40117 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.73 | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep basic_30 2>&1'. ${rc} = 0 ${stdout} = basic_30 ${rc},${stdout} Logs the given message with the given level. 0,basic_30 ${stdout} ${ns} Fails if objects are equal after converting them to strings. basic_30 == basic_30 ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | b1b4e9a5-0b5b-4f14-a4fb-e35e91944b34 | hfbasic-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.244 | ubuntu20.04 | simple_requires-1-1-flv | | 0afb2a29-551c-4279-b2b9-476765d40117 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.73 | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep basic_30 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${ns} Fails if objects are equal after converting them to strings. Delete NS instance. basic_30 cleanup cluster_main daily regression ${NSD_NAME} Delete a NS package from OSM. ${rc} ${stdout} Run And Return Rc And Output osm nspkg-delete ${nsd_id} Runs the keyword and continues execution even if a failure occurs. osm nspkg-delete ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-delete ubuntu_4ifaces-ipv6-ns 2>&1'. ${rc} = 0 ${stdout} = Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Logs the given message with the given level. Deleted ${NSD_DELETE_MAX_WAIT_TIME} ${NSD_DELETE_POL_TIME} Check For NSD ${nsd_id} Runs the specified keyword and retries if it fails. ${nsd_id} Check that a NS package exists in OSM. ${rc} ${stdout} osm nspkg-list | awk '{print $2}' | grep ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-list | awk '{print $2}' | grep ubuntu_4ifaces-ipv6-ns 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. Delete NS package from OSM. basic_30 cleanup cluster_main daily regression ${VNFD_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete ubuntu_4ifaces-vnf 2>&1'. ${rc} = 0 ${stdout} = Deleted ${stdout} Logs the given message with the given level. Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep ubuntu_4ifaces-vnf 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. Delete VNF package from OSM. basic_30 cleanup cluster_main daily regression Suite Cleanup Runs the given keyword with the given arguments and ignores possible error. Test Suite Cleanup: Deleting descriptors and NS instance Delete NS ${NS_NAME} Runs the given keyword with the given arguments, if one or more tests failed. ${NS_NAME} Delete a NS instance. ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} Logs the given message with the given level. 240.0 ${rc} ${stdout} osm ns-delete ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-delete basic_30 2>&1'. ${rc} = 1 ${stdout} = ERROR: ns 'basic_30' not found ${stdout} Logs the given message with the given level. ERROR: ns 'basic_30' not found ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${ns_delete_max_wait_time} ${NS_DELETE_POL_TIME} Check For NS Instance To Be Deleted ${ns} Runs the specified keyword and retries if it fails. ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | b1b4e9a5-0b5b-4f14-a4fb-e35e91944b34 | hfbasic-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.244 | ubuntu20.04 | simple_requires-1-1-flv | | 0afb2a29-551c-4279-b2b9-476765d40117 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.73 | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep basic_30 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${ns} Fails if objects are equal after converting them to strings. Delete NSD ${NSD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. ${NSD_NAME} Delete a NS package from OSM. ${rc} ${stdout} Run And Return Rc And Output osm nspkg-delete ${nsd_id} Runs the keyword and continues execution even if a failure occurs. osm nspkg-delete ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-delete ubuntu_4ifaces-ipv6-ns 2>&1'. ${rc} = 1 ${stdout} = ERROR: nsd ubuntu_4ifaces-ipv6-ns not found ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${stdout} Logs the given message with the given level. ERROR: nsd ubuntu_4ifaces-ipv6-ns not found ${NSD_DELETE_MAX_WAIT_TIME} ${NSD_DELETE_POL_TIME} Check For NSD ${nsd_id} Runs the specified keyword and retries if it fails. ${nsd_id} Check that a NS package exists in OSM. ${rc} ${stdout} osm nspkg-list | awk '{print $2}' | grep ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-list | awk '{print $2}' | grep ubuntu_4ifaces-ipv6-ns 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. Delete VNFD ${VNFD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. ${VNFD_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete ubuntu_4ifaces-vnf 2>&1'. ${rc} = 1 ${stdout} = ERROR: vnfd ubuntu_4ifaces-vnf not found ${stdout} Logs the given message with the given level. ERROR: vnfd ubuntu_4ifaces-vnf not found ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep ubuntu_4ifaces-vnf 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. [BASIC-30] NS with a single VNF and two VDU linked by a VLD with ipv6-profile. '%{PACKAGES_FOLDER}/${VNFD_PKG}' Onboards ("creates") a NF Package into OSM. - Parameters: - vnfd_pkg: Name (and location) of the NF Package - overrides (optional): String with options to override the EPA and/or interface properties of the Package. This is very useful to allow to deploy e.g. non-EPA packages in EPA VIMs (or vice-versa). Valid strings are the same as in the command. E.g.: - `--override-epa`: adds EPA attributes to all VDUs. - `--override-nonepa`: removes all EPA attributes from all VDUs. - `--override-paravirt`: converts all interfaces to `PARAVIRT`. This one can be combined with the others above (e.g. '--override-nonepa --override-paravirt'). - Relevant environment variables: - OVERRIDES: If the environment variable "OVERRIDES" exists, it prevails over the value in the argument. This is often more convenient to enforce the same behaviour for every test run in a given VIM. ${overrides} OVERRIDES default=${overrides} Returns the value of an environment variable with the given name. ${overrides} = ${rc} ${stdout} osm vnfpkg-create ${overrides} ${vnfd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-create '/robot-systest/osm-packages/multivdu_multiattach_vnf' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/multivdu_multiattach_vnf Validation OK List of charms in the descriptor: set() Adding File: multivdu_multiattach_vnf Package created: /robot-systest/osm-... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/multivdu_multiattach_vnf Validation OK List of charms in the descriptor: set() Adding File: multivdu_multiattach_vnf Package created: /robot-systest/osm-packages/multivdu_multiattach_vnf.tar.gz Uploading package /robot-systest/osm-packages/multivdu_multiattach_vnf.tar.gz f2541f64-54bb-484a-bdb5-12955083bd8e ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 7 lines ${lines} = 7 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 6 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = f2541f64-54bb-484a-bdb5-12955083bd8e ${id} Upload VNF package for the testsuite. basic_31 cluster_main daily regression '%{PACKAGES_FOLDER}/${NSD_PKG}' Upload a NS package to OSM and return the id. ${rc} ${stdout} osm nspkg-create ${nsd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-create '/robot-systest/osm-packages/multivdu_multiattach_ns' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/multivdu_multiattach_ns Validation OK List of charms in the descriptor: set() Adding File: multivdu_multiattach_ns Package created: /robot-systest/osm-pa... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/multivdu_multiattach_ns Validation OK List of charms in the descriptor: set() Adding File: multivdu_multiattach_ns Package created: /robot-systest/osm-packages/multivdu_multiattach_ns.tar.gz 3d53d417-70b2-435b-9a93-3c901bedb8d3 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 6 lines ${lines} = 6 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 5 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = 3d53d417-70b2-435b-9a93-3c901bedb8d3 ${id} Upload NS package for the testsuite. basic_31 cluster_main daily regression ${status} ${message} Variable Should Exist ${VDU0_PUBLICKEY} Runs the given keyword with the given arguments and ignores possible error. ${VDU0_PUBLICKEY} Fails unless the given variable exists within the current scope. ${status} = PASS ${message} = None ${status} Logs the given message with the given level. PASS ${message} Logs the given message with the given level. None ${VDU0_PUBLICKEY} ${EMPTY} Makes a variable available globally in all tests and suites. ${id} ${NSD_NAME} %{VIM_TARGET} ${NS_NAME} ${NS_CONFIG} ${VDU0_PUBLICKEY} Launch the instantation of a NS and verify in a loop that the NS instance is successfully created in a given time, and return the NS instance id. ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_launch_max_wait_time} = 300.0 ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_launch_max_wait_time} = 300.0 ${ns_launch_max_wait_time} Logs the given message with the given level. 300.0 ${config_attr} '${ns_config}'!='${EMPTY}' --config '${ns_config}' ${EMPTY} Sets variable based on the given condition. ${config_attr} = --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext} ] }' ${sshkeys_attr} '${publickey}'!='${EMPTY}' --ssh_keys ${publickey} ${EMPTY} Sets variable based on the given condition. ${sshkeys_attr} = --ssh_keys /root/.ssh/id_rsa.pub ${config_file_attr} '${config_file}'!='${EMPTY}' --config_file '${config_file}' ${EMPTY} Sets variable based on the given condition. ${config_file_attr} = ${ns_id} ${ns_name} ${nsd} ${vim_name} ${config_attr} ${sshkeys_attr} ${config_file_attr} Launch the instantation of a NS, and return the NS instance id. ${rc} ${stdout} osm ns-create --ns_name ${ns_name} --nsd_name ${nsd} --vim_account ${vim_name} ${ns_extra_args} Runs the given command in the system and returns the RC and output. Running command 'osm ns-create --ns_name multivdu_multiattach --nsd_name multivdu_multiattach-ns --vim_account osm --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext} ] }' --ssh_keys /root/.ssh/id_rsa.pub 2>&1'. ${rc} = 0 ${stdout} = e3a4b93e-d592-4422-95ad-5f3926fd48f7 ${stdout} Logs the given message with the given level. e3a4b93e-d592-4422-95ad-5f3926fd48f7 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = e3a4b93e-d592-4422-95ad-5f3926fd48f7 ${ns_id} Logs the given message with the given level. e3a4b93e-d592-4422-95ad-5f3926fd48f7 ${ns_launch_max_wait_time} ${NS_LAUNCH_POL_TIME} Check For NS Instance To Configured ${ns_name} Runs the specified keyword and retries if it fails. ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | b1b4e9a5-0b5b-4f14-a4fb-e35e91944b34 | hfbasic-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.244 | ubuntu20.04 | simple_requires-1-1-flv | | 0afb2a29-551c-4279-b2b9-476765d40117 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.73 | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="multivdu_multiattach" 2>&1'. ${rc} = 0 ${stdout} = +----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | multivdu_multiattach | e3a4b93e-d592-4422-95ad-5f3926fd48f7 | 2024-02-19T03:23:49 | BUILDING | INSTANTIATING (ec60e8d7-7ddf-44c6-980e-f86519eaa6b6) | N/A | +----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | multivdu_multiattach | e3a4b93e-d592-4422-95ad-5f3926fd48f7 | 2024-02-19T03:23:49 | BUILDING | INSTANTIATING (ec60e8d7-7ddf-44c6-980e-f86519eaa6b6) | N/A | +----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 3e70974d-158e-4dea-9e92-b93aa9ecba52 | multivdu_multiat-vnf-dataVM-0 | ACTIVE | osm-ext=172.21.249.165 | ubuntu22.04 | mgmtVM-vnf-1-flv | | 0c111664-0049-4f54-931e-783a86a4f91d | multivdu_multiat-vnf-mgmtVM-0 | ACTIVE | osm-ext=172.21.248.83 | ubuntu22.04 | mgmtVM-vnf-1-flv | | 0afb2a29-551c-4279-b2b9-476765d40117 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.73 | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="multivdu_multiattach" 2>&1'. ${rc} = 0 ${stdout} = +----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | multivdu_multiattach | e3a4b93e-d592-4422-95ad-5f3926fd48f7 | 2024-02-19T03:23:49 | BUILDING | INSTANTIATING (ec60e8d7-7ddf-44c6-980e-f86519eaa6b6) | N/A | +----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | multivdu_multiattach | e3a4b93e-d592-4422-95ad-5f3926fd48f7 | 2024-02-19T03:23:49 | BUILDING | INSTANTIATING (ec60e8d7-7ddf-44c6-980e-f86519eaa6b6) | N/A | +----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | db8be5dc-17c1-4ea6-b3b4-b8ba98c6f8f6 | hfcloudinit-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 7964b9cc-fb12-451b-b6c3-fc73cc417bdd | hfcloudinit-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | b552393e-26d0-4b26-a505-cde221e5e125 | hfcloudinit-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 3e70974d-158e-4dea-9e92-b93aa9ecba52 | multivdu_multiat-vnf-dataVM-0 | ACTIVE | osm-ext=172.21.249.165 | ubuntu22.04 | mgmtVM-vnf-1-flv | | 0c111664-0049-4f54-931e-783a86a4f91d | multivdu_multiat-vnf-mgmtVM-0 | ACTIVE | osm-ext=172.21.248.83 | ubuntu22.04 | mgmtVM-vnf-1-flv | | 0afb2a29-551c-4279-b2b9-476765d40117 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.73 | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="multivdu_multiattach" 2>&1'. ${rc} = 0 ${stdout} = +----------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | dat... ${rc},${stdout} Logs the given message with the given level. 0,+----------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +----------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | multivdu_multiattach | e3a4b93e-d592-4422-95ad-5f3926fd48f7 | 2024-02-19T03:23:49 | READY | IDLE (None) | N/A | +----------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. ${ns_name} Check if a given NS instance has not failed in the instantiation (the status should not be BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 375cd678-0d8d-406a-9d96-794d1ef93b97 | hfcloudinit-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | db8be5dc-17c1-4ea6-b3b4-b8ba98c6f8f6 | hfcloudinit-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 7964b9cc-fb12-451b-b6c3-fc73cc417bdd | hfcloudinit-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | b552393e-26d0-4b26-a505-cde221e5e125 | hfcloudinit-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 3e70974d-158e-4dea-9e92-b93aa9ecba52 | multivdu_multiat-vnf-dataVM-0 | ACTIVE | osm-ext=172.21.249.165 | ubuntu22.04 | mgmtVM-vnf-1-flv | | 0c111664-0049-4f54-931e-783a86a4f91d | multivdu_multiat-vnf-mgmtVM-0 | ACTIVE | osm-ext=172.21.248.83 | ubuntu22.04 | mgmtVM-vnf-1-flv | | 0afb2a29-551c-4279-b2b9-476765d40117 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.73 | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="multivdu_multiattach" 2>&1'. ${rc} = 0 ${stdout} = +----------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | dat... ${rc},${stdout} Logs the given message with the given level. 0,+----------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +----------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | multivdu_multiattach | e3a4b93e-d592-4422-95ad-5f3926fd48f7 | 2024-02-19T03:23:49 | READY | IDLE (None) | N/A | +----------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} BROKEN Fails if ``container`` contains ``item`` one or more times. ${ns_id} ${id} = e3a4b93e-d592-4422-95ad-5f3926fd48f7 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = e3a4b93e-d592-4422-95ad-5f3926fd48f7 ${WAIT_GUARD_FOR_VM_BOOT} Waiting for VM's daemons to be up and running Pauses the test executed for the given time. Slept 50 seconds Waiting for VM's daemons to be up and running Instantiate NS for the testsuite. basic_31 cluster_main daily regression ${vnf_id} ${NS_ID} ${VNF_MEMBER_INDEX} Get the VNF instance ID of a member VNF in a NS instance, and return it. ${ns_id} Verifies that the given item is not empty. Length is 36 ${vnf_member_index} Verifies that the given item is not empty. Length is 3 ${rc} ${stdout} osm vnf-list --filter member-vnf-index-ref=${vnf_member_index} | grep ${ns_id} | awk '{print $2}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm vnf-list --filter member-vnf-index-ref=vnf | grep e3a4b93e-d592-4422-95ad-5f3926fd48f7 | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = b19d23c3-4850-4d90-b890-f1499427da57 ${stdout} Logs the given message with the given level. b19d23c3-4850-4d90-b890-f1499427da57 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${vnf_id} = b19d23c3-4850-4d90-b890-f1499427da57 ${VNF_ID} ${vnf_id} Makes a variable available everywhere within the scope of the current suite. ${VNF_ID} = b19d23c3-4850-4d90-b890-f1499427da57 Get the VNF instance id from OSM. basic_31 cluster_main daily regression ${rc} ${vdu0_ip} osm vnf-show ${VNF_ID} --literal | yq -r '.vdur[0].interfaces[]."ip-address"' Runs the given command in the system and returns the RC and output. Running command 'osm vnf-show b19d23c3-4850-4d90-b890-f1499427da57 --literal | yq -r '.vdur[0].interfaces[]."ip-address"' 2>&1'. ${rc} = 0 ${vdu0_ip} = 172.21.248.83 ${rc},${vdu0_ip} Logs the given message with the given level. 0,172.21.248.83 ${rc} ${vdu1_ip} osm vnf-show ${VNF_ID} --literal | yq -r '.vdur[1].interfaces[]."ip-address"' Runs the given command in the system and returns the RC and output. Running command 'osm vnf-show b19d23c3-4850-4d90-b890-f1499427da57 --literal | yq -r '.vdur[1].interfaces[]."ip-address"' 2>&1'. ${rc} = 0 ${vdu1_ip} = 172.21.249.165 ${rc},${vdu1_ip} Logs the given message with the given level. 0,172.21.249.165 ${MGMT_IP_ADDR_0} ${vdu0_ip} Makes a variable available everywhere within the scope of the current suite. ${MGMT_IP_ADDR_0} = 172.21.248.83 ${MGMT_IP_ADDR_1} ${vdu1_ip} Makes a variable available everywhere within the scope of the current suite. ${MGMT_IP_ADDR_1} = 172.21.249.165 Get the IP addresses of the two VDU of the VNF. basic_31 cluster_main daily regression ${MGMT_IP_ADDR_0} ${VDU0_USERNAME} ${VDU0_PASSWORD} ${VDU0_PRIVATEKEY} sudo mkfs.ext3 -F /dev/vdb && sudo mkdir /shared && sudo mount /dev/vdb /shared && sudo chown ubuntu:ubuntu /shared && echo "osmtest" > /shared/test_file Execute via SSH a command in a remote host and, if the command succeeds, return the output. ${host} Opens a new SSH connection to the given ``host`` and ``port``. ${username} ${password} Logs into the SSH server with the given ``username`` and ``password``. ${username} ${privatekey} Logs into the SSH server using key-based authentication. Logging into '172.21.248.83:22' as 'ubuntu'. Read output: Welcome to Ubuntu 22.04.1 LTS (GNU/Linux 5.15.0-47-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Mon Feb 19 03:25:55 UTC 2024 System load: 0.11767578125 Processes: 93 Usage of /: 29.7% of 4.67GB Users logged in: 0 Memory usage: 20% IPv4 address for ens3: 172.21.248.83 Swap usage: 0% 0 updates can be applied immediately. The list of available updates is more than a week old. To check for new updates run: sudo apt update The programs included with the Ubuntu system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. [?2004hubuntu@multivdu-multiat-vnf-mgmtvm-0:~$ ${stdout} ${rc} ${command} return_rc=True return_stdout=True Executes ``command`` on the remote machine and returns its outputs. Executing command 'sudo mkfs.ext3 -F /dev/vdb && sudo mkdir /shared && sudo mount /dev/vdb /shared && sudo chown ubuntu:ubuntu /shared && echo "osmtest" > /shared/test_file'. Command exited with return code 0. ${stdout} = Discarding device blocks: 0/2621440 done Creating filesystem with 2621440 4k blocks and 655360 inodes Filesystem UUID: 63f... ${rc} = 0 ${rc} Logs the given message with the given level. 0 ${stdout} Logs the given message with the given level. Discarding device blocks: 0/2621440 done Creating filesystem with 2621440 4k blocks and 655360 inodes Filesystem UUID: 63f7fdc1-dd70-4399-8c63-414fabac1b2d Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632 Allocating group tables: 0/80 done Writing inode tables: 0/8018/8068/80 done Creating journal (16384 blocks): done Writing superblocks and filesystem accounting information: 0/80 done Closes all open connections. ${rc} 0 Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} 10s Pauses the test executed for the given time. Slept 10 seconds ${MGMT_IP_ADDR_1} ${VDU1_USERNAME} ${VDU1_PASSWORD} ${VDU1_PRIVATEKEY} sudo mkdir /shared && sudo mount /dev/vdb /shared && ls /shared Execute via SSH a command in a remote host and, if the command succeeds, return the output. ${host} Opens a new SSH connection to the given ``host`` and ``port``. ${username} ${password} Logs into the SSH server with the given ``username`` and ``password``. Logging into '172.21.249.165:22' as 'ubuntu'. Read output: Welcome to Ubuntu 22.04.1 LTS (GNU/Linux 5.15.0-47-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Mon Feb 19 03:26:11 UTC 2024 System load: 0.3876953125 Processes: 93 Usage of /: 29.7% of 4.67GB Users logged in: 0 Memory usage: 20% IPv4 address for ens3: 172.21.249.165 Swap usage: 0% 0 updates can be applied immediately. The list of available updates is more than a week old. To check for new updates run: sudo apt update The programs included with the Ubuntu system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. [?2004hubuntu@multivdu-multiat-vnf-datavm-0:~$ ${username} ${privatekey} Logs into the SSH server using key-based authentication. ${stdout} ${rc} ${command} return_rc=True return_stdout=True Executes ``command`` on the remote machine and returns its outputs. Executing command 'sudo mkdir /shared && sudo mount /dev/vdb /shared && ls /shared'. Command exited with return code 0. ${stdout} = lost+found test_file ${rc} = 0 ${rc} Logs the given message with the given level. 0 ${stdout} Logs the given message with the given level. lost+found test_file Closes all open connections. ${rc} 0 Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${MGMT_IP_ADDR_1} ${VDU1_USERNAME} ${VDU1_PASSWORD} ${VDU1_PRIVATEKEY} cat /shared/test_file Execute via SSH a command in a remote host and, if the command succeeds, return the output. ${host} Opens a new SSH connection to the given ``host`` and ``port``. ${username} ${password} Logs into the SSH server with the given ``username`` and ``password``. Logging into '172.21.249.165:22' as 'ubuntu'. Read output: Welcome to Ubuntu 22.04.1 LTS (GNU/Linux 5.15.0-47-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Mon Feb 19 03:26:11 UTC 2024 System load: 0.3876953125 Processes: 93 Usage of /: 29.7% of 4.67GB Users logged in: 0 Memory usage: 20% IPv4 address for ens3: 172.21.249.165 Swap usage: 0% 0 updates can be applied immediately. The list of available updates is more than a week old. To check for new updates run: sudo apt update Last login: Mon Feb 19 03:26:12 2024 from 172.21.249.4 [?2004hubuntu@multivdu-multiat-vnf-datavm-0:~$ ${username} ${privatekey} Logs into the SSH server using key-based authentication. ${stdout} ${rc} ${command} return_rc=True return_stdout=True Executes ``command`` on the remote machine and returns its outputs. Executing command 'cat /shared/test_file'. Command exited with return code 0. ${stdout} = osmtest ${rc} = 0 ${rc} Logs the given message with the given level. 0 ${stdout} Logs the given message with the given level. osmtest Closes all open connections. ${rc} 0 Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${stdout} ${MGMT_IP_ADDR_0} ${VDU0_USERNAME} ${VDU0_PASSWORD} ${VDU0_PRIVATEKEY} cat /shared/test_file Execute via SSH a command in a remote host and, if the command succeeds, return the output. ${host} Opens a new SSH connection to the given ``host`` and ``port``. ${username} ${password} Logs into the SSH server with the given ``username`` and ``password``. ${username} ${privatekey} Logs into the SSH server using key-based authentication. Logging into '172.21.248.83:22' as 'ubuntu'. Read output: Welcome to Ubuntu 22.04.1 LTS (GNU/Linux 5.15.0-47-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Mon Feb 19 03:25:55 UTC 2024 System load: 0.11767578125 Processes: 93 Usage of /: 29.7% of 4.67GB Users logged in: 0 Memory usage: 20% IPv4 address for ens3: 172.21.248.83 Swap usage: 0% 0 updates can be applied immediately. The list of available updates is more than a week old. To check for new updates run: sudo apt update Last login: Mon Feb 19 03:25:56 2024 from 172.21.249.4 [?2004hubuntu@multivdu-multiat-vnf-mgmtvm-0:~$ ${stdout} ${rc} ${command} return_rc=True return_stdout=True Executes ``command`` on the remote machine and returns its outputs. Executing command 'cat /shared/test_file'. Command exited with return code 0. ${stdout} = osmtest ${rc} = 0 ${rc} Logs the given message with the given level. 0 ${stdout} Logs the given message with the given level. osmtest Closes all open connections. ${rc} 0 Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${stdout} = osmtest ${stdout} Logs the given message with the given level. osmtest ${stdout} osmtest Shared data can't be read Fails if the given objects are unequal. Connect via SSH to the two VDUs of the VNF and check that the volume is shared as expected. basic_31 cluster_main daily regression ${NS_NAME} Delete a NS instance. ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} Logs the given message with the given level. 240.0 ${rc} ${stdout} osm ns-delete ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-delete multivdu_multiattach 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${stdout} Logs the given message with the given level. Deletion in progress ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${ns_delete_max_wait_time} ${NS_DELETE_POL_TIME} Check For NS Instance To Be Deleted ${ns} Runs the specified keyword and retries if it fails. ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-------------------------------+--------+------------------------+-------------+-------------------------+ | 375cd678-0d8d-406a-9d96-794d1ef93b97 | hfcloudinit-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | db8be5dc-17c1-4ea6-b3b4-b8ba98c6f8f6 | hfcloudinit-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 7964b9cc-fb12-451b-b6c3-fc73cc417bdd | hfcloudinit-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | b552393e-26d0-4b26-a505-cde221e5e125 | hfcloudinit-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 3e70974d-158e-4dea-9e92-b93aa9ecba52 | multivdu_multiat-vnf-dataVM-0 | ACTIVE | osm-ext=172.21.249.165 | ubuntu22.04 | mgmtVM-vnf-1-flv | | 0c111664-0049-4f54-931e-783a86a4f91d | multivdu_multiat-vnf-mgmtVM-0 | ACTIVE | osm-ext=172.21.248.83 | ubuntu22.04 | mgmtVM-vnf-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep multivdu_multiattach 2>&1'. ${rc} = 0 ${stdout} = multivdu_multiattach ${rc},${stdout} Logs the given message with the given level. 0,multivdu_multiattach ${stdout} ${ns} Fails if objects are equal after converting them to strings. multivdu_multiattach == multivdu_multiattach ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+---------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+---------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+---------------------------+--------+------------------------+-------------+-------------------------+ | 375cd678-0d8d-406a-9d96-794d1ef93b97 | hfcloudinit-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | db8be5dc-17c1-4ea6-b3b4-b8ba98c6f8f6 | hfcloudinit-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 7964b9cc-fb12-451b-b6c3-fc73cc417bdd | hfcloudinit-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | b552393e-26d0-4b26-a505-cde221e5e125 | hfcloudinit-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+---------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep multivdu_multiattach 2>&1'. ${rc} = 0 ${stdout} = multivdu_multiattach ${rc},${stdout} Logs the given message with the given level. 0,multivdu_multiattach ${stdout} ${ns} Fails if objects are equal after converting them to strings. multivdu_multiattach == multivdu_multiattach ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | cd77516e-1498-48e2-bcae-4600ba52724d | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.35 | ubuntu20.04 | simple_requires-1-1-flv | | 375cd678-0d8d-406a-9d96-794d1ef93b97 | hfcloudinit-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | db8be5dc-17c1-4ea6-b3b4-b8ba98c6f8f6 | hfcloudinit-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 7964b9cc-fb12-451b-b6c3-fc73cc417bdd | hfcloudinit-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | b552393e-26d0-4b26-a505-cde221e5e125 | hfcloudinit-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep multivdu_multiattach 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${ns} Fails if objects are equal after converting them to strings. Delete NS instance. basic_31 cleanup cluster_main daily regression ${NSD_NAME} Delete a NS package from OSM. ${rc} ${stdout} Run And Return Rc And Output osm nspkg-delete ${nsd_id} Runs the keyword and continues execution even if a failure occurs. osm nspkg-delete ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-delete multivdu_multiattach-ns 2>&1'. ${rc} = 0 ${stdout} = Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Logs the given message with the given level. Deleted ${NSD_DELETE_MAX_WAIT_TIME} ${NSD_DELETE_POL_TIME} Check For NSD ${nsd_id} Runs the specified keyword and retries if it fails. ${nsd_id} Check that a NS package exists in OSM. ${rc} ${stdout} osm nspkg-list | awk '{print $2}' | grep ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-list | awk '{print $2}' | grep multivdu_multiattach-ns 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. Delete NS package from OSM. basic_31 cleanup cluster_main daily regression ${VNFD_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete multivdu_multiattach-vnf 2>&1'. ${rc} = 0 ${stdout} = Deleted ${stdout} Logs the given message with the given level. Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep multivdu_multiattach-vnf 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. Delete VNF package from OSM. basic_31 cleanup cluster_main daily regression Suite Cleanup Runs the given keyword with the given arguments and ignores possible error. Test Suit Cleanup: Deleting Descriptor, instance and vim Delete NS ${NS_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete NSD ${NSD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete VNFD ${VNFD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. [BASIC-31] Basic NS with two multi-VDU VNF '%{PACKAGES_FOLDER}/${VNFD_PKG}' Onboards ("creates") a NF Package into OSM. - Parameters: - vnfd_pkg: Name (and location) of the NF Package - overrides (optional): String with options to override the EPA and/or interface properties of the Package. This is very useful to allow to deploy e.g. non-EPA packages in EPA VIMs (or vice-versa). Valid strings are the same as in the command. E.g.: - `--override-epa`: adds EPA attributes to all VDUs. - `--override-nonepa`: removes all EPA attributes from all VDUs. - `--override-paravirt`: converts all interfaces to `PARAVIRT`. This one can be combined with the others above (e.g. '--override-nonepa --override-paravirt'). - Relevant environment variables: - OVERRIDES: If the environment variable "OVERRIDES" exists, it prevails over the value in the argument. This is often more convenient to enforce the same behaviour for every test run in a given VIM. ${overrides} OVERRIDES default=${overrides} Returns the value of an environment variable with the given name. ${overrides} = ${rc} ${stdout} osm vnfpkg-create ${overrides} ${vnfd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-create '/robot-systest/osm-packages/hackfest_basic_sriov_vnf' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/hackfest_basic_sriov_vnf Validation OK List of charms in the descriptor: set() Adding File: hackfest_basic_sriov_vnf Package created: /robot-systest/osm-... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/hackfest_basic_sriov_vnf Validation OK List of charms in the descriptor: set() Adding File: hackfest_basic_sriov_vnf Package created: /robot-systest/osm-packages/hackfest_basic_sriov_vnf.tar.gz Uploading package /robot-systest/osm-packages/hackfest_basic_sriov_vnf.tar.gz ea277172-5a68-4c90-aaf7-4704cfb641b6 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 7 lines ${lines} = 7 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 6 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = ea277172-5a68-4c90-aaf7-4704cfb641b6 ${id} Upload VNF package for the testsuite. cluster_epa daily epa_01 regression '%{PACKAGES_FOLDER}/${NSD_PKG}' Upload a NS package to OSM and return the id. ${rc} ${stdout} osm nspkg-create ${nsd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-create '/robot-systest/osm-packages/hackfest_basic_sriov_ns' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/hackfest_basic_sriov_ns Validation OK List of charms in the descriptor: set() Adding File: hackfest_basic_sriov_ns Package created: /robot-systest/osm-pa... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/hackfest_basic_sriov_ns Validation OK List of charms in the descriptor: set() Adding File: hackfest_basic_sriov_ns Package created: /robot-systest/osm-packages/hackfest_basic_sriov_ns.tar.gz 68c93523-ee4d-44a9-a8f5-93ad193b999f ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 6 lines ${lines} = 6 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 5 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = 68c93523-ee4d-44a9-a8f5-93ad193b999f ${id} Upload NS package for the testsuite. cluster_epa daily epa_01 regression ${id} ${NSD_NAME} %{VIM_TARGET} ${NS_NAME} ${NS_CONFIG} ${PUBLICKEY} Launch the instantation of a NS and verify in a loop that the NS instance is successfully created in a given time, and return the NS instance id. ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_launch_max_wait_time} = 300.0 ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_launch_max_wait_time} = 300.0 ${ns_launch_max_wait_time} Logs the given message with the given level. 300.0 ${config_attr} '${ns_config}'!='${EMPTY}' --config '${ns_config}' ${EMPTY} Sets variable based on the given condition. ${config_attr} = --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext} ] }' ${sshkeys_attr} '${publickey}'!='${EMPTY}' --ssh_keys ${publickey} ${EMPTY} Sets variable based on the given condition. ${sshkeys_attr} = --ssh_keys /root/.ssh/id_rsa.pub ${config_file_attr} '${config_file}'!='${EMPTY}' --config_file '${config_file}' ${EMPTY} Sets variable based on the given condition. ${config_file_attr} = ${ns_id} ${ns_name} ${nsd} ${vim_name} ${config_attr} ${sshkeys_attr} ${config_file_attr} Launch the instantation of a NS, and return the NS instance id. ${rc} ${stdout} osm ns-create --ns_name ${ns_name} --nsd_name ${nsd} --vim_account ${vim_name} ${ns_extra_args} Runs the given command in the system and returns the RC and output. Running command 'osm ns-create --ns_name epa_01-epa_sriov_test --nsd_name hackfest_basic_sriov-ns --vim_account osm --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext} ] }' --ssh_keys /root/.ssh/id_rsa.pub 2>&1'. ${rc} = 0 ${stdout} = 17e9bed9-91ae-4b91-b6a5-460c0b2eb021 ${stdout} Logs the given message with the given level. 17e9bed9-91ae-4b91-b6a5-460c0b2eb021 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 17e9bed9-91ae-4b91-b6a5-460c0b2eb021 ${ns_id} Logs the given message with the given level. 17e9bed9-91ae-4b91-b6a5-460c0b2eb021 ${ns_launch_max_wait_time} ${NS_LAUNCH_POL_TIME} Check For NS Instance To Configured ${ns_name} Runs the specified keyword and retries if it fails. ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | cd77516e-1498-48e2-bcae-4600ba52724d | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.35 | ubuntu20.04 | simple_requires-1-1-flv | | 375cd678-0d8d-406a-9d96-794d1ef93b97 | hfcloudinit-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | db8be5dc-17c1-4ea6-b3b4-b8ba98c6f8f6 | hfcloudinit-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 7964b9cc-fb12-451b-b6c3-fc73cc417bdd | hfcloudinit-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | b552393e-26d0-4b26-a505-cde221e5e125 | hfcloudinit-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="epa_01-epa_sriov_test" 2>&1'. ${rc} = 0 ${stdout} = +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | epa_01-epa_sriov_test | 17e9bed9-91ae-4b91-b6a5-460c0b2eb021 | 2024-02-19T03:27:08 | BUILDING | INSTANTIATING (c26aab68-c8cc-4ecf-ab82-baf3f49da173) | N/A | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | epa_01-epa_sriov_test | 17e9bed9-91ae-4b91-b6a5-460c0b2eb021 | 2024-02-19T03:27:08 | BUILDING | INSTANTIATING (c26aab68-c8cc-4ecf-ab82-baf3f49da173) | N/A | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ | 053b73bf-3de3-4dd1-a7f7-4959bb4c59ef | epa_01-epa_sriov-vnf-hackfest_basic-VM-0 | BUILD | | ubuntu18.04 | hackfest_basic-VM-vnf-1-flv | | cd77516e-1498-48e2-bcae-4600ba52724d | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.35 | ubuntu20.04 | simple_requires-1-1-flv | | 375cd678-0d8d-406a-9d96-794d1ef93b97 | hfcloudinit-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | db8be5dc-17c1-4ea6-b3b4-b8ba98c6f8f6 | hfcloudinit-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 7964b9cc-fb12-451b-b6c3-fc73cc417bdd | hfcloudinit-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | b552393e-26d0-4b26-a505-cde221e5e125 | hfcloudinit-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="epa_01-epa_sriov_test" 2>&1'. ${rc} = 0 ${stdout} = +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | epa_01-epa_sriov_test | 17e9bed9-91ae-4b91-b6a5-460c0b2eb021 | 2024-02-19T03:27:08 | BUILDING | INSTANTIATING (c26aab68-c8cc-4ecf-ab82-baf3f49da173) | N/A | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | epa_01-epa_sriov_test | 17e9bed9-91ae-4b91-b6a5-460c0b2eb021 | 2024-02-19T03:27:08 | BUILDING | INSTANTIATING (c26aab68-c8cc-4ecf-ab82-baf3f49da173) | N/A | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ | 053b73bf-3de3-4dd1-a7f7-4959bb4c59ef | epa_01-epa_sriov-vnf-hackfest_basic-VM-0 | BUILD | | ubuntu18.04 | hackfest_basic-VM-vnf-1-flv | | cd77516e-1498-48e2-bcae-4600ba52724d | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.35 | ubuntu20.04 | simple_requires-1-1-flv | | 375cd678-0d8d-406a-9d96-794d1ef93b97 | hfcloudinit-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | db8be5dc-17c1-4ea6-b3b4-b8ba98c6f8f6 | hfcloudinit-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 7964b9cc-fb12-451b-b6c3-fc73cc417bdd | hfcloudinit-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | b552393e-26d0-4b26-a505-cde221e5e125 | hfcloudinit-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="epa_01-epa_sriov_test" 2>&1'. ${rc} = 0 ${stdout} = +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | epa_01-epa_sriov_test | 17e9bed9-91ae-4b91-b6a5-460c0b2eb021 | 2024-02-19T03:27:08 | BUILDING | INSTANTIATING (c26aab68-c8cc-4ecf-ab82-baf3f49da173) | N/A | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | epa_01-epa_sriov_test | 17e9bed9-91ae-4b91-b6a5-460c0b2eb021 | 2024-02-19T03:27:08 | BUILDING | INSTANTIATING (c26aab68-c8cc-4ecf-ab82-baf3f49da173) | N/A | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ | 053b73bf-3de3-4dd1-a7f7-4959bb4c59ef | epa_01-epa_sriov-vnf-hackfest_basic-VM-0 | BUILD | | ubuntu18.04 | hackfest_basic-VM-vnf-1-flv | | cd77516e-1498-48e2-bcae-4600ba52724d | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.35 | ubuntu20.04 | simple_requires-1-1-flv | | 375cd678-0d8d-406a-9d96-794d1ef93b97 | hfcloudinit-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | db8be5dc-17c1-4ea6-b3b4-b8ba98c6f8f6 | hfcloudinit-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 7964b9cc-fb12-451b-b6c3-fc73cc417bdd | hfcloudinit-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | b552393e-26d0-4b26-a505-cde221e5e125 | hfcloudinit-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="epa_01-epa_sriov_test" 2>&1'. ${rc} = 0 ${stdout} = +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | epa_01-epa_sriov_test | 17e9bed9-91ae-4b91-b6a5-460c0b2eb021 | 2024-02-19T03:27:08 | BUILDING | INSTANTIATING (c26aab68-c8cc-4ecf-ab82-baf3f49da173) | N/A | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | epa_01-epa_sriov_test | 17e9bed9-91ae-4b91-b6a5-460c0b2eb021 | 2024-02-19T03:27:08 | BUILDING | INSTANTIATING (c26aab68-c8cc-4ecf-ab82-baf3f49da173) | N/A | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ | 053b73bf-3de3-4dd1-a7f7-4959bb4c59ef | epa_01-epa_sriov-vnf-hackfest_basic-VM-0 | BUILD | | ubuntu18.04 | hackfest_basic-VM-vnf-1-flv | | cd77516e-1498-48e2-bcae-4600ba52724d | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.35 | ubuntu20.04 | simple_requires-1-1-flv | | 375cd678-0d8d-406a-9d96-794d1ef93b97 | hfcloudinit-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | db8be5dc-17c1-4ea6-b3b4-b8ba98c6f8f6 | hfcloudinit-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 7964b9cc-fb12-451b-b6c3-fc73cc417bdd | hfcloudinit-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | b552393e-26d0-4b26-a505-cde221e5e125 | hfcloudinit-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="epa_01-epa_sriov_test" 2>&1'. ${rc} = 0 ${stdout} = +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | epa_01-epa_sriov_test | 17e9bed9-91ae-4b91-b6a5-460c0b2eb021 | 2024-02-19T03:27:08 | BUILDING | INSTANTIATING (c26aab68-c8cc-4ecf-ab82-baf3f49da173) | N/A | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | epa_01-epa_sriov_test | 17e9bed9-91ae-4b91-b6a5-460c0b2eb021 | 2024-02-19T03:27:08 | BUILDING | INSTANTIATING (c26aab68-c8cc-4ecf-ab82-baf3f49da173) | N/A | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ | 053b73bf-3de3-4dd1-a7f7-4959bb4c59ef | epa_01-epa_sriov-vnf-hackfest_basic-VM-0 | BUILD | | ubuntu18.04 | hackfest_basic-VM-vnf-1-flv | | cd77516e-1498-48e2-bcae-4600ba52724d | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.35 | ubuntu20.04 | simple_requires-1-1-flv | | 375cd678-0d8d-406a-9d96-794d1ef93b97 | hfcloudinit-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | db8be5dc-17c1-4ea6-b3b4-b8ba98c6f8f6 | hfcloudinit-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 7964b9cc-fb12-451b-b6c3-fc73cc417bdd | hfcloudinit-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | b552393e-26d0-4b26-a505-cde221e5e125 | hfcloudinit-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="epa_01-epa_sriov_test" 2>&1'. ${rc} = 0 ${stdout} = +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | epa_01-epa_sriov_test | 17e9bed9-91ae-4b91-b6a5-460c0b2eb021 | 2024-02-19T03:27:08 | BUILDING | INSTANTIATING (c26aab68-c8cc-4ecf-ab82-baf3f49da173) | N/A | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | epa_01-epa_sriov_test | 17e9bed9-91ae-4b91-b6a5-460c0b2eb021 | 2024-02-19T03:27:08 | BUILDING | INSTANTIATING (c26aab68-c8cc-4ecf-ab82-baf3f49da173) | N/A | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ | 053b73bf-3de3-4dd1-a7f7-4959bb4c59ef | epa_01-epa_sriov-vnf-hackfest_basic-VM-0 | BUILD | | ubuntu18.04 | hackfest_basic-VM-vnf-1-flv | | cd77516e-1498-48e2-bcae-4600ba52724d | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.35 | ubuntu20.04 | simple_requires-1-1-flv | | 375cd678-0d8d-406a-9d96-794d1ef93b97 | hfcloudinit-vnf2-dataVM-0 | ERROR | | ubuntu20.04 | simple_requires-1-1-flv | | db8be5dc-17c1-4ea6-b3b4-b8ba98c6f8f6 | hfcloudinit-vnf2-mgmtVM-0 | ERROR | | ubuntu20.04 | simple_requires-1-1-flv | | 7964b9cc-fb12-451b-b6c3-fc73cc417bdd | hfcloudinit-vnf1-dataVM-0 | ERROR | | ubuntu20.04 | simple_requires-1-1-flv | | b552393e-26d0-4b26-a505-cde221e5e125 | hfcloudinit-vnf1-mgmtVM-0 | ERROR | | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="epa_01-epa_sriov_test" 2>&1'. ${rc} = 0 ${stdout} = +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | epa_01-epa_sriov_test | 17e9bed9-91ae-4b91-b6a5-460c0b2eb021 | 2024-02-19T03:27:08 | BUILDING | INSTANTIATING (c26aab68-c8cc-4ecf-ab82-baf3f49da173) | N/A | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | epa_01-epa_sriov_test | 17e9bed9-91ae-4b91-b6a5-460c0b2eb021 | 2024-02-19T03:27:08 | BUILDING | INSTANTIATING (c26aab68-c8cc-4ecf-ab82-baf3f49da173) | N/A | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ | 053b73bf-3de3-4dd1-a7f7-4959bb4c59ef | epa_01-epa_sriov-vnf-hackfest_basic-VM-0 | BUILD | | ubuntu18.04 | hackfest_basic-VM-vnf-1-flv | | cd77516e-1498-48e2-bcae-4600ba52724d | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.35 | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="epa_01-epa_sriov_test" 2>&1'. ${rc} = 0 ${stdout} = +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | epa_01-epa_sriov_test | 17e9bed9-91ae-4b91-b6a5-460c0b2eb021 | 2024-02-19T03:27:08 | BUILDING | INSTANTIATING (c26aab68-c8cc-4ecf-ab82-baf3f49da173) | N/A | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | epa_01-epa_sriov_test | 17e9bed9-91ae-4b91-b6a5-460c0b2eb021 | 2024-02-19T03:27:08 | BUILDING | INSTANTIATING (c26aab68-c8cc-4ecf-ab82-baf3f49da173) | N/A | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ | 053b73bf-3de3-4dd1-a7f7-4959bb4c59ef | epa_01-epa_sriov-vnf-hackfest_basic-VM-0 | BUILD | | ubuntu18.04 | hackfest_basic-VM-vnf-1-flv | | cd77516e-1498-48e2-bcae-4600ba52724d | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.35 | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="epa_01-epa_sriov_test" 2>&1'. ${rc} = 0 ${stdout} = +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | epa_01-epa_sriov_test | 17e9bed9-91ae-4b91-b6a5-460c0b2eb021 | 2024-02-19T03:27:08 | BUILDING | INSTANTIATING (c26aab68-c8cc-4ecf-ab82-baf3f49da173) | N/A | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | epa_01-epa_sriov_test | 17e9bed9-91ae-4b91-b6a5-460c0b2eb021 | 2024-02-19T03:27:08 | BUILDING | INSTANTIATING (c26aab68-c8cc-4ecf-ab82-baf3f49da173) | N/A | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ | edf39e6e-95c1-4d6f-a8de-78ae27925f23 | hfmultivdu-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | c35dbb2c-3428-4563-9470-1958681f5003 | hfmultivdu-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | acd79518-7a50-48f9-a784-92ca6fbdacd0 | hfmultivdu-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 053b73bf-3de3-4dd1-a7f7-4959bb4c59ef | epa_01-epa_sriov-vnf-hackfest_basic-VM-0 | BUILD | | ubuntu18.04 | hackfest_basic-VM-vnf-1-flv | | cd77516e-1498-48e2-bcae-4600ba52724d | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.35 | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="epa_01-epa_sriov_test" 2>&1'. ${rc} = 0 ${stdout} = +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | epa_01-epa_sriov_test | 17e9bed9-91ae-4b91-b6a5-460c0b2eb021 | 2024-02-19T03:27:08 | BUILDING | INSTANTIATING (c26aab68-c8cc-4ecf-ab82-baf3f49da173) | N/A | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | epa_01-epa_sriov_test | 17e9bed9-91ae-4b91-b6a5-460c0b2eb021 | 2024-02-19T03:27:08 | BUILDING | INSTANTIATING (c26aab68-c8cc-4ecf-ab82-baf3f49da173) | N/A | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' Keyword 'Check For NS Instance To Configured' failed after retrying for 5 minutes. The last error was: '+-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | epa_01-epa_sriov_test | 17e9bed9-91ae-4b91-b6a5-460c0b2eb021 | 2024-02-19T03:27:08 | BUILDING | INSTANTIATING (c26aab68-c8cc-4ecf-ab82-baf3f49da173) | N/A | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has not failed in the instantiation (the status should not be BROKEN). ${ns_id} ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. Instantiate NS for the testsuite. cluster_epa daily epa_01 regression Keyword 'Check For NS Instance To Configured' failed after retrying for 5 minutes. The last error was: '+-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | epa_01-epa_sriov_test | 17e9bed9-91ae-4b91-b6a5-460c0b2eb021 | 2024-02-19T03:27:08 | BUILDING | INSTANTIATING (c26aab68-c8cc-4ecf-ab82-baf3f49da173) | N/A | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ip_addr} ${NS_ID} ${VNF_MEMBER_INDEX} Get the mgmt IP address of a member VNF in a NS instance, and return it. ${ns_id} Verifies that the given item is not empty. Length is 0 '' should not be empty. ${vnf_member_index} Verifies that the given item is not empty. ${rc} ${stdout} osm vnf-list --filter member-vnf-index-ref=${vnf_member_index} | grep ${ns_id} | awk '{print $14}' 2>&1 Runs the given command in the system and returns the RC and output. ${stdout} Logs the given message with the given level. ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. ${stdout} ${ip_addr} Logs the given message with the given level. ${VNF_IP_ADDR} ${ip_addr} Makes a variable available everywhere within the scope of the current suite. Get the mgmt IP address of the VNF of the NS. cluster_epa daily epa_01 regression '' should not be empty. 30 seconds Waiting for SSH daemon to be up Pauses the test executed for the given time. Slept 30 seconds Waiting for SSH daemon to be up ${VNF_IP_ADDR} ${USERNAME} ${PASSWORD} ${PRIVATEKEY} lspci | grep "Ethernet controller" | grep -v "Virtio" Execute via SSH a command in a remote host and, if the command succeeds, return the output. ${host} Opens a new SSH connection to the given ``host`` and ``port``. ${username} ${password} Logs into the SSH server with the given ``username`` and ``password``. Logging into ':22' as 'ubuntu'. gaierror: [Errno -2] Name or service not known ${username} ${privatekey} Logs into the SSH server using key-based authentication. ${stdout} ${rc} ${command} return_rc=True return_stdout=True Executes ``command`` on the remote machine and returns its outputs. ${rc} Logs the given message with the given level. ${stdout} Logs the given message with the given level. Closes all open connections. ${rc} 0 Fails if objects are unequal after converting them to integers. ${stdout} Connect via SSH to the mgmt IP address of the VNF and check that the interface is not based in VirtIO. cluster_epa daily epa_01 regression gaierror: [Errno -2] Name or service not known ${NS_NAME} Delete a NS instance. ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} Logs the given message with the given level. 240.0 ${rc} ${stdout} osm ns-delete ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-delete epa_01-epa_sriov_test 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${stdout} Logs the given message with the given level. Deletion in progress ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${ns_delete_max_wait_time} ${NS_DELETE_POL_TIME} Check For NS Instance To Be Deleted ${ns} Runs the specified keyword and retries if it fails. ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ | 6d6e24a9-34a1-4d6f-a479-0ded5e88ee71 | hfmultivdu-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | edf39e6e-95c1-4d6f-a8de-78ae27925f23 | hfmultivdu-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | c35dbb2c-3428-4563-9470-1958681f5003 | hfmultivdu-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | acd79518-7a50-48f9-a784-92ca6fbdacd0 | hfmultivdu-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 053b73bf-3de3-4dd1-a7f7-4959bb4c59ef | epa_01-epa_sriov-vnf-hackfest_basic-VM-0 | ERROR | | ubuntu18.04 | hackfest_basic-VM-vnf-1-flv | | cd77516e-1498-48e2-bcae-4600ba52724d | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.35 | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep epa_01-epa_sriov_test 2>&1'. ${rc} = 0 ${stdout} = epa_01-epa_sriov_test ${rc},${stdout} Logs the given message with the given level. 0,epa_01-epa_sriov_test ${stdout} ${ns} Fails if objects are equal after converting them to strings. epa_01-epa_sriov_test == epa_01-epa_sriov_test ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ | 6d6e24a9-34a1-4d6f-a479-0ded5e88ee71 | hfmultivdu-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | edf39e6e-95c1-4d6f-a8de-78ae27925f23 | hfmultivdu-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | c35dbb2c-3428-4563-9470-1958681f5003 | hfmultivdu-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | acd79518-7a50-48f9-a784-92ca6fbdacd0 | hfmultivdu-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 053b73bf-3de3-4dd1-a7f7-4959bb4c59ef | epa_01-epa_sriov-vnf-hackfest_basic-VM-0 | ERROR | | ubuntu18.04 | hackfest_basic-VM-vnf-1-flv | | cd77516e-1498-48e2-bcae-4600ba52724d | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.35 | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep epa_01-epa_sriov_test 2>&1'. ${rc} = 0 ${stdout} = epa_01-epa_sriov_test ${rc},${stdout} Logs the given message with the given level. 0,epa_01-epa_sriov_test ${stdout} ${ns} Fails if objects are equal after converting them to strings. epa_01-epa_sriov_test == epa_01-epa_sriov_test ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | 6d6e24a9-34a1-4d6f-a479-0ded5e88ee71 | hfmultivdu-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | edf39e6e-95c1-4d6f-a8de-78ae27925f23 | hfmultivdu-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | c35dbb2c-3428-4563-9470-1958681f5003 | hfmultivdu-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | acd79518-7a50-48f9-a784-92ca6fbdacd0 | hfmultivdu-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | cd77516e-1498-48e2-bcae-4600ba52724d | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.35 | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep epa_01-epa_sriov_test 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${ns} Fails if objects are equal after converting them to strings. Delete NS instance. cleanup cluster_epa daily epa_01 regression ${NSD_NAME} Delete a NS package from OSM. ${rc} ${stdout} Run And Return Rc And Output osm nspkg-delete ${nsd_id} Runs the keyword and continues execution even if a failure occurs. osm nspkg-delete ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-delete hackfest_basic_sriov-ns 2>&1'. ${rc} = 0 ${stdout} = Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Logs the given message with the given level. Deleted ${NSD_DELETE_MAX_WAIT_TIME} ${NSD_DELETE_POL_TIME} Check For NSD ${nsd_id} Runs the specified keyword and retries if it fails. ${nsd_id} Check that a NS package exists in OSM. ${rc} ${stdout} osm nspkg-list | awk '{print $2}' | grep ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-list | awk '{print $2}' | grep hackfest_basic_sriov-ns 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. Delete NS package from OSM. cleanup cluster_epa daily epa_01 regression ${VNFD_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete hackfest_basic_sriov-vnf 2>&1'. ${rc} = 0 ${stdout} = Deleted ${stdout} Logs the given message with the given level. Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep hackfest_basic_sriov-vnf 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. Delete VNF package from OSM. cleanup cluster_epa daily epa_01 regression Suite Cleanup Runs the given keyword with the given arguments and ignores possible error. Test Suite Cleanup: Deleting descriptors and NS instance Delete NS ${NS_NAME} Runs the given keyword with the given arguments, if one or more tests failed. ${NS_NAME} Delete a NS instance. ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} Logs the given message with the given level. 240.0 ${rc} ${stdout} osm ns-delete ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-delete epa_01-epa_sriov_test 2>&1'. ${rc} = 1 ${stdout} = ERROR: ns 'epa_01-epa_sriov_test' not found ${stdout} Logs the given message with the given level. ERROR: ns 'epa_01-epa_sriov_test' not found ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${ns_delete_max_wait_time} ${NS_DELETE_POL_TIME} Check For NS Instance To Be Deleted ${ns} Runs the specified keyword and retries if it fails. ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | 6d6e24a9-34a1-4d6f-a479-0ded5e88ee71 | hfmultivdu-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | edf39e6e-95c1-4d6f-a8de-78ae27925f23 | hfmultivdu-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | c35dbb2c-3428-4563-9470-1958681f5003 | hfmultivdu-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | acd79518-7a50-48f9-a784-92ca6fbdacd0 | hfmultivdu-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | cd77516e-1498-48e2-bcae-4600ba52724d | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.35 | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep epa_01-epa_sriov_test 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${ns} Fails if objects are equal after converting them to strings. Delete NSD ${NSD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. ${NSD_NAME} Delete a NS package from OSM. ${rc} ${stdout} Run And Return Rc And Output osm nspkg-delete ${nsd_id} Runs the keyword and continues execution even if a failure occurs. osm nspkg-delete ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-delete hackfest_basic_sriov-ns 2>&1'. ${rc} = 1 ${stdout} = ERROR: nsd hackfest_basic_sriov-ns not found ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${stdout} Logs the given message with the given level. ERROR: nsd hackfest_basic_sriov-ns not found ${NSD_DELETE_MAX_WAIT_TIME} ${NSD_DELETE_POL_TIME} Check For NSD ${nsd_id} Runs the specified keyword and retries if it fails. ${nsd_id} Check that a NS package exists in OSM. ${rc} ${stdout} osm nspkg-list | awk '{print $2}' | grep ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-list | awk '{print $2}' | grep hackfest_basic_sriov-ns 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. Delete VNFD ${VNFD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. ${VNFD_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete hackfest_basic_sriov-vnf 2>&1'. ${rc} = 1 ${stdout} = ERROR: vnfd hackfest_basic_sriov-vnf not found ${stdout} Logs the given message with the given level. ERROR: vnfd hackfest_basic_sriov-vnf not found ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep hackfest_basic_sriov-vnf 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. [EPA-01] EPA+SRIOV without underlay. OVERRIDES Deletes the specified environment variable. Environment variable 'OVERRIDES' does not exist. '%{PACKAGES_FOLDER}/${VNFD_PKG}' Onboards ("creates") a NF Package into OSM. - Parameters: - vnfd_pkg: Name (and location) of the NF Package - overrides (optional): String with options to override the EPA and/or interface properties of the Package. This is very useful to allow to deploy e.g. non-EPA packages in EPA VIMs (or vice-versa). Valid strings are the same as in the command. E.g.: - `--override-epa`: adds EPA attributes to all VDUs. - `--override-nonepa`: removes all EPA attributes from all VDUs. - `--override-paravirt`: converts all interfaces to `PARAVIRT`. This one can be combined with the others above (e.g. '--override-nonepa --override-paravirt'). - Relevant environment variables: - OVERRIDES: If the environment variable "OVERRIDES" exists, it prevails over the value in the argument. This is often more convenient to enforce the same behaviour for every test run in a given VIM. ${overrides} OVERRIDES default=${overrides} Returns the value of an environment variable with the given name. ${overrides} = ${rc} ${stdout} osm vnfpkg-create ${overrides} ${vnfd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-create '/robot-systest/osm-packages/epa_quota_vnf' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/epa_quota_vnf Validation OK List of charms in the descriptor: set() Adding File: epa_quota_vnf Package created: /robot-systest/osm-packages/epa_quota_vnf... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/epa_quota_vnf Validation OK List of charms in the descriptor: set() Adding File: epa_quota_vnf Package created: /robot-systest/osm-packages/epa_quota_vnf.tar.gz Uploading package /robot-systest/osm-packages/epa_quota_vnf.tar.gz 4c2c5c5a-a615-4ca6-b7a2-d96b2c7363f4 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 7 lines ${lines} = 7 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 6 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = 4c2c5c5a-a615-4ca6-b7a2-d96b2c7363f4 ${id} Upload VNF package for the testsuite. cluster_epa daily epa_02 regression '%{PACKAGES_FOLDER}/${NSD_PKG}' Upload a NS package to OSM and return the id. ${rc} ${stdout} osm nspkg-create ${nsd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-create '/robot-systest/osm-packages/epa_quota_ns' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/epa_quota_ns Validation OK List of charms in the descriptor: set() Adding File: epa_quota_ns Package created: /robot-systest/osm-packages/epa_quota_ns.ta... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/epa_quota_ns Validation OK List of charms in the descriptor: set() Adding File: epa_quota_ns Package created: /robot-systest/osm-packages/epa_quota_ns.tar.gz c85f00ab-724f-43c1-b26b-bea5c95f4b2b ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 6 lines ${lines} = 6 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 5 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = c85f00ab-724f-43c1-b26b-bea5c95f4b2b ${id} Upload NS package for the testsuite. cluster_epa daily epa_02 regression ${id} ${NSD_NAME} %{VIM_TARGET} ${NS_NAME} ${NS_CONFIG} ${PUBLICKEY} Launch the instantation of a NS and verify in a loop that the NS instance is successfully created in a given time, and return the NS instance id. ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_launch_max_wait_time} = 300.0 ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_launch_max_wait_time} = 300.0 ${ns_launch_max_wait_time} Logs the given message with the given level. 300.0 ${config_attr} '${ns_config}'!='${EMPTY}' --config '${ns_config}' ${EMPTY} Sets variable based on the given condition. ${config_attr} = --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext} ] }' ${sshkeys_attr} '${publickey}'!='${EMPTY}' --ssh_keys ${publickey} ${EMPTY} Sets variable based on the given condition. ${sshkeys_attr} = --ssh_keys /root/.ssh/id_rsa.pub ${config_file_attr} '${config_file}'!='${EMPTY}' --config_file '${config_file}' ${EMPTY} Sets variable based on the given condition. ${config_file_attr} = ${ns_id} ${ns_name} ${nsd} ${vim_name} ${config_attr} ${sshkeys_attr} ${config_file_attr} Launch the instantation of a NS, and return the NS instance id. ${rc} ${stdout} osm ns-create --ns_name ${ns_name} --nsd_name ${nsd} --vim_account ${vim_name} ${ns_extra_args} Runs the given command in the system and returns the RC and output. Running command 'osm ns-create --ns_name epa_02-epa_quota_test --nsd_name epa_quota-ns --vim_account osm --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext} ] }' --ssh_keys /root/.ssh/id_rsa.pub 2>&1'. ${rc} = 0 ${stdout} = 83f825d9-1bf7-4fdf-8973-aa46125328e0 ${stdout} Logs the given message with the given level. 83f825d9-1bf7-4fdf-8973-aa46125328e0 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 83f825d9-1bf7-4fdf-8973-aa46125328e0 ${ns_id} Logs the given message with the given level. 83f825d9-1bf7-4fdf-8973-aa46125328e0 ${ns_launch_max_wait_time} ${NS_LAUNCH_POL_TIME} Check For NS Instance To Configured ${ns_name} Runs the specified keyword and retries if it fails. ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | 6d6e24a9-34a1-4d6f-a479-0ded5e88ee71 | hfmultivdu-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | edf39e6e-95c1-4d6f-a8de-78ae27925f23 | hfmultivdu-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | c35dbb2c-3428-4563-9470-1958681f5003 | hfmultivdu-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | acd79518-7a50-48f9-a784-92ca6fbdacd0 | hfmultivdu-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | cd77516e-1498-48e2-bcae-4600ba52724d | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.35 | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="epa_02-epa_quota_test" 2>&1'. ${rc} = 0 ${stdout} = +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | epa_02-epa_quota_test | 83f825d9-1bf7-4fdf-8973-aa46125328e0 | 2024-02-19T03:33:41 | BUILDING | INSTANTIATING (4dcc0846-6e1d-4a5c-9c1f-9215dd96b31f) | N/A | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | epa_02-epa_quota_test | 83f825d9-1bf7-4fdf-8973-aa46125328e0 | 2024-02-19T03:33:41 | BUILDING | INSTANTIATING (4dcc0846-6e1d-4a5c-9c1f-9215dd96b31f) | N/A | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | 29d6be1d-fd29-4789-962b-54f86db361b8 | epa_02-epa_quota-vnf-epa_quota-VM-0 | ACTIVE | osm-ext=172.21.248.197 | ubuntu18.04 | epa_quota-VM-vnf-1-flv | | 6d6e24a9-34a1-4d6f-a479-0ded5e88ee71 | hfmultivdu-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | edf39e6e-95c1-4d6f-a8de-78ae27925f23 | hfmultivdu-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | c35dbb2c-3428-4563-9470-1958681f5003 | hfmultivdu-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | acd79518-7a50-48f9-a784-92ca6fbdacd0 | hfmultivdu-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | cd77516e-1498-48e2-bcae-4600ba52724d | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.35 | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="epa_02-epa_quota_test" 2>&1'. ${rc} = 0 ${stdout} = +-----------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | d... ${rc},${stdout} Logs the given message with the given level. 0,+-----------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +-----------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | epa_02-epa_quota_test | 83f825d9-1bf7-4fdf-8973-aa46125328e0 | 2024-02-19T03:33:41 | READY | IDLE (None) | N/A | +-----------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. ${ns_name} Check if a given NS instance has not failed in the instantiation (the status should not be BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | 29d6be1d-fd29-4789-962b-54f86db361b8 | epa_02-epa_quota-vnf-epa_quota-VM-0 | ACTIVE | osm-ext=172.21.248.197 | ubuntu18.04 | epa_quota-VM-vnf-1-flv | | 6d6e24a9-34a1-4d6f-a479-0ded5e88ee71 | hfmultivdu-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | edf39e6e-95c1-4d6f-a8de-78ae27925f23 | hfmultivdu-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | c35dbb2c-3428-4563-9470-1958681f5003 | hfmultivdu-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | acd79518-7a50-48f9-a784-92ca6fbdacd0 | hfmultivdu-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | cd77516e-1498-48e2-bcae-4600ba52724d | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.35 | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="epa_02-epa_quota_test" 2>&1'. ${rc} = 0 ${stdout} = +-----------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | d... ${rc},${stdout} Logs the given message with the given level. 0,+-----------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +-----------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | epa_02-epa_quota_test | 83f825d9-1bf7-4fdf-8973-aa46125328e0 | 2024-02-19T03:33:41 | READY | IDLE (None) | N/A | +-----------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} BROKEN Fails if ``container`` contains ``item`` one or more times. ${ns_id} ${id} = 83f825d9-1bf7-4fdf-8973-aa46125328e0 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 83f825d9-1bf7-4fdf-8973-aa46125328e0 Instantiate the NS for the testsuite. cluster_epa daily epa_02 regression ${vnfs_list} ${NS_ID} Get the list of VNF instances of a given NS instance id, and return it. ${ns_id} Verifies that the given item is not empty. Length is 36 @{vnf_list_string} osm vnf-list --ns ${ns_id} | grep ${ns_id} | awk '{print $2}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm vnf-list --ns 83f825d9-1bf7-4fdf-8973-aa46125328e0 | grep 83f825d9-1bf7-4fdf-8973-aa46125328e0 | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | ec14d613-eea3-424e-9f68-90eca9400c20 ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ ec14d613-eea3-424e-9f68-90eca9400c20 ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: ec14d613-eea3-424e-9f68-90eca9400c20 @{vnf_list} ${vnfs_list} = ['ec14d613-eea3-424e-9f68-90eca9400c20'] ${vim_id} ${vnfs_list}[0] Get the identifier of the first VDU of a VNF instance. Useful to get the id when a VNF has a single VDU. ${vnf_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm vnf-show ${vnf_id} --literal | yq -r '.vdur[]."vim-id"' Runs the given command in the system and returns the RC and output. Running command 'osm vnf-show ec14d613-eea3-424e-9f68-90eca9400c20 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 29d6be1d-fd29-4789-962b-54f86db361b8 ${stdout} Logs the given message with the given level. 29d6be1d-fd29-4789-962b-54f86db361b8 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${vim_id} = 29d6be1d-fd29-4789-962b-54f86db361b8 ${vim_id} Logs the given message with the given level. 29d6be1d-fd29-4789-962b-54f86db361b8 ${VNF_SERVER_ID} ${vim_id} Makes a variable available everywhere within the scope of the current suite. ${VNF_SERVER_ID} = 29d6be1d-fd29-4789-962b-54f86db361b8 Get the id of the VM at the VIM and store in VNF_SERVER_ID suite variable to be used later on. cluster_epa daily epa_02 regression ${flavor_id} ${VNF_SERVER_ID} Get from Openstack the flavor id of a server/VM passed as argument. ${server_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} openstack server show ${server_id} | grep flavor | awk 'NR>1{print $1}' RS='(' FS=')' Runs the given command in the system and returns the RC and output. Running command 'openstack server show 29d6be1d-fd29-4789-962b-54f86db361b8 | grep flavor | awk 'NR>1{print $1}' RS='(' FS=')''. ${rc} = 0 ${stdout} = epa_quota-VM-vnf-1-flv ${stdout} Logs the given message with the given level. epa_quota-VM-vnf-1-flv ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${flavor_id} = epa_quota-VM-vnf-1-flv ${properties} ${flavor_id} Get from Openstack the properties of a flavor passed as argument. ${flavor_id} Verifies that the given item is not empty. Length is 22 ${rc} ${stdout} openstack flavor show ${flavor_id} | grep properties | awk -F '|' '{print $3}' Runs the given command in the system and returns the RC and output. Running command 'openstack flavor show epa_quota-VM-vnf-1-flv | grep properties | awk -F '|' '{print $3}' 2>&1'. ${rc} = 0 ${stdout} = quota:cpu_reservation='512', quota:cpu_shares_level='custom', quota:cpu_shares_share='3000', quota:disk_io_shares_level='custom', quota:disk_io_shares_share='1000', quota:memory_limit='2048', quota:m... ${stdout} Logs the given message with the given level. quota:cpu_reservation='512', quota:cpu_shares_level='custom', quota:cpu_shares_share='3000', quota:disk_io_shares_level='custom', quota:disk_io_shares_share='1000', quota:memory_limit='2048', quota:memory_reservation='512', quota:memory_shares_level='custom', quota:memory_shares_share='20480' ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${properties} = quota:cpu_reservation='512', quota:cpu_shares_level='custom', quota:cpu_shares_share='3000', quota:disk_io_shares_level='custom', quota:disk_io_shares_share='1000', quota:memory_limit='2048', quota:m... ${properties} Logs the given message with the given level. quota:cpu_reservation='512', quota:cpu_shares_level='custom', quota:cpu_shares_share='3000', quota:disk_io_shares_level='custom', quota:disk_io_shares_share='1000', quota:memory_limit='2048', quota:memory_reservation='512', quota:memory_shares_level='custom', quota:memory_shares_share='20480' ${FLAVOR_PROPERTIES} ${properties} Makes a variable available everywhere within the scope of the current suite. ${FLAVOR_PROPERTIES} = quota:cpu_reservation='512', quota:cpu_shares_level='custom', quota:cpu_shares_share='3000', quota:disk_io_shares_level='custom', quota:disk_io_shares_share='1000', quota:memory_limit='2048', quota:m... Get from the VIM the flavor properties of the VM with id VNF_SERVER_ID. cluster_epa daily epa_02 regression ${rc} echo ${FLAVOR_PROPERTIES} | grep "cpu_shares_level=custom" Runs the given command in the system and returns the return code. Running command 'echo quota:cpu_reservation='512', quota:cpu_shares_level='custom', quota:cpu_shares_share='3000', quota:disk_io_shares_level='custom', quota:disk_io_shares_share='1000', quota:memory_limit='2048', quota:memory_reservation='512', quota:memory_shares_level='custom', quota:memory_shares_share='20480' | grep "cpu_shares_level=custom" 2>&1'. ${rc} = 0 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${rc} echo ${FLAVOR_PROPERTIES} | grep "disk_io_shares_level=custom" Runs the given command in the system and returns the return code. Running command 'echo quota:cpu_reservation='512', quota:cpu_shares_level='custom', quota:cpu_shares_share='3000', quota:disk_io_shares_level='custom', quota:disk_io_shares_share='1000', quota:memory_limit='2048', quota:memory_reservation='512', quota:memory_shares_level='custom', quota:memory_shares_share='20480' | grep "disk_io_shares_level=custom" 2>&1'. ${rc} = 0 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${rc} echo ${FLAVOR_PROPERTIES} | grep "memory_shares_level=custom" Runs the given command in the system and returns the return code. Running command 'echo quota:cpu_reservation='512', quota:cpu_shares_level='custom', quota:cpu_shares_share='3000', quota:disk_io_shares_level='custom', quota:disk_io_shares_share='1000', quota:memory_limit='2048', quota:memory_reservation='512', quota:memory_shares_level='custom', quota:memory_shares_share='20480' | grep "memory_shares_level=custom" 2>&1'. ${rc} = 0 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> Assert that the flavor properties include the expected EPA parameters included in the descriptor. cluster_epa daily epa_02 regression ${NS_NAME} Delete a NS instance. ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} Logs the given message with the given level. 240.0 ${rc} ${stdout} osm ns-delete ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-delete epa_02-epa_quota_test 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${stdout} Logs the given message with the given level. Deletion in progress ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${ns_delete_max_wait_time} ${NS_DELETE_POL_TIME} Check For NS Instance To Be Deleted ${ns} Runs the specified keyword and retries if it fails. ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | 29d6be1d-fd29-4789-962b-54f86db361b8 | epa_02-epa_quota-vnf-epa_quota-VM-0 | ACTIVE | osm-ext=172.21.248.197 | ubuntu18.04 | epa_quota-VM-vnf-1-flv | | 6d6e24a9-34a1-4d6f-a479-0ded5e88ee71 | hfmultivdu-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | edf39e6e-95c1-4d6f-a8de-78ae27925f23 | hfmultivdu-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | c35dbb2c-3428-4563-9470-1958681f5003 | hfmultivdu-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | acd79518-7a50-48f9-a784-92ca6fbdacd0 | hfmultivdu-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | cd77516e-1498-48e2-bcae-4600ba52724d | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.35 | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep epa_02-epa_quota_test 2>&1'. ${rc} = 0 ${stdout} = epa_02-epa_quota_test ${rc},${stdout} Logs the given message with the given level. 0,epa_02-epa_quota_test ${stdout} ${ns} Fails if objects are equal after converting them to strings. epa_02-epa_quota_test == epa_02-epa_quota_test ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | 6d6e24a9-34a1-4d6f-a479-0ded5e88ee71 | hfmultivdu-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | edf39e6e-95c1-4d6f-a8de-78ae27925f23 | hfmultivdu-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | c35dbb2c-3428-4563-9470-1958681f5003 | hfmultivdu-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | acd79518-7a50-48f9-a784-92ca6fbdacd0 | hfmultivdu-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | cd77516e-1498-48e2-bcae-4600ba52724d | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.35 | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep epa_02-epa_quota_test 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${ns} Fails if objects are equal after converting them to strings. Delete NS instance. cleanup cluster_epa daily epa_02 regression ${NSD_NAME} Delete a NS package from OSM. ${rc} ${stdout} Run And Return Rc And Output osm nspkg-delete ${nsd_id} Runs the keyword and continues execution even if a failure occurs. osm nspkg-delete ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-delete epa_quota-ns 2>&1'. ${rc} = 0 ${stdout} = Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Logs the given message with the given level. Deleted ${NSD_DELETE_MAX_WAIT_TIME} ${NSD_DELETE_POL_TIME} Check For NSD ${nsd_id} Runs the specified keyword and retries if it fails. ${nsd_id} Check that a NS package exists in OSM. ${rc} ${stdout} osm nspkg-list | awk '{print $2}' | grep ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-list | awk '{print $2}' | grep epa_quota-ns 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. Delete NS package from OSM. cleanup cluster_epa daily epa_02 regression ${VNFD_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete epa_quota-vnf 2>&1'. ${rc} = 0 ${stdout} = Deleted ${stdout} Logs the given message with the given level. Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep epa_quota-vnf 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. Delete VNF package from OSM. cleanup cluster_epa daily epa_02 regression Suite Cleanup Runs the given keyword with the given arguments and ignores possible error. Test Suite Cleanup: Deleting descriptors and NS instance Delete NS ${NS_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete NSD ${NSD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete VNFD ${VNFD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. [EPA-02] Support for additional EPA capabilities. Suite Preparation Runs the given keyword with the given arguments and ignores possible error. Test Suite Preparation: Setting Prometheus Testsuite Variables. Set Testsuite Prometheus Variables to be used in subsequent test cases ${local_prometheus_host} OSM_HOSTNAME Returns the value of an environment variable with the given name. ${PROMETHEUS_HOST} ${local_prometheus_host} Makes a variable available everywhere within the scope of the current suite. ${PROMETHEUS_HOST} 9091 Makes a variable available everywhere within the scope of the current suite. Invalid IF condition: Evaluating expression '172.21.249.226 == 'UNKNOWN'' failed: SyntaxError: invalid syntax (<string>, line 1) Variables in the original expression '${PROMETHEUS_HOST} == 'UNKNOWN'' were resolved before the expression was evaluated. Try using '$PROMETHEUS_HOST == 'UNKNOWN'' syntax to avoid that. See Evaluating Expressions appendix in Robot Framework User Guide for more details. ${PROMETHEUS_PORT} Logs the given message with the given level. ${PROMETHEUS_HOST} Logs the given message with the given level. ${PROMETHEUS_USER} Logs the given message with the given level. ${PROMETHEUS_PASSWORD} Logs the given message with the given level. ${created_sdnc_id} ${SDNC_NAME} ${SDNC_USER} ${SDNC_PASSWORD} ${SDNC_URL} ${SDNC_TYPE} Register an SDN Controller in OSM. The optional parameters (such as 'switch_dpid' or 'ip-address') are given to this function in name=value format. These parameters will be appended to the 'osm sdnc-create' command with the next syntax: --param_name=param_value Returns the ID of the created SDNC Target. Example of execution: ${sdnc_id}= Create SDNC ${sdnc_name} ${sdnc_user} ${sdnc_password} ${sdnc_url} ${sdnc_type} switch_dpid='{...}' ${osm_sdnc_create_command} osm sdnc-create --name ${sdnc_name} --user ${sdnc_user} --password ${sdnc_password} --url ${sdnc_url} --type ${sdnc_type} Returns the given values which can then be assigned to a variables. ${osm_sdnc_create_command} = osm sdnc-create --name epa_03 --user karaf --password karaf --url http://172.21.248.11:8181 --type onos_vpls ${param} @{optional_parameters} ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in optional parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match},${param_name},${param_value} Logs the given message with the given level. ${osm_sdnc_create_command} ${osm_sdnc_create_command} --${param_name}=${param_value} Catenates the given items together and returns the resulted string. ${rc} ${stdout} ${osm_sdnc_create_command} Runs the given command in the system and returns the RC and output. Running command 'osm sdnc-create --name epa_03 --user karaf --password karaf --url http://172.21.248.11:8181 --type onos_vpls 2>&1'. ${rc} = 0 ${stdout} = 1445564a-3de8-4bb1-ad14-ca72d4fd03ce ${stdout} Logs the given message with the given level. 1445564a-3de8-4bb1-ad14-ca72d4fd03ce ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${created_sdnc_id} = 1445564a-3de8-4bb1-ad14-ca72d4fd03ce ${SDNC_ID} ${created_sdnc_id} Makes a variable available everywhere within the scope of the current suite. ${SDNC_ID} = 1445564a-3de8-4bb1-ad14-ca72d4fd03ce ${SDNC_ENABLED_MAX_WAIT_TIME} ${SDNC_ENABLED_POL_TIME} Check For SDNC ${SDNC_ID} Runs the specified keyword and retries if it fails. ${SDNC_ID} Check if an SDN Controller identified by name or id exists in OSM and is enabled. ${rc} ${stdout} osm sdnc-show ${sdnc_id} | grep -io ENABLED Runs the given command in the system and returns the RC and output. Running command 'osm sdnc-show 1445564a-3de8-4bb1-ad14-ca72d4fd03ce | grep -io ENABLED 2>&1'. ${rc} = 0 ${stdout} = ENABLED ${stdout} Logs the given message with the given level. ENABLED ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> Register SDN controller in OSM. cluster_epa daily epa_03 regression ${SDNC_ID} ${PROMETHEUS_HOST} ${PROMETHEUS_PORT} ${PROMETHEUS_USER} ${PROMETHEUS_PASSWORD} Check in a loop if the value of the metric osm_sdnc_status in Prometheus for the SDN controller is 1 (reachable). ${SDNC_STATUS_MAX_WAIT_TIME} ${SDNC_STATUS_POL_TIME} Check If SDNC Is Available ${sdnc_id} ${prometheus_host} ${prometheus_port} ${prometheus_user} ${prometheus_password} Runs the specified keyword and retries if it fails. ${sdnc_id} ${prometheus_host} ${prometheus_port} ${prometheus_user} ${prometheus_password} Check if the value of the metric osm_sdnc_status in Prometheus for the SDN controller is 1 (reachable). ${metric} ${prometheus_host} ${prometheus_port} ${prometheus_user} ${prometheus_password} osm_sdnc_status sdnc_id=${sdnc_id} Get the instant value of a metric from Prometheus using multiple filter parameters. The filter parameters are given to this function in key=value format (one argument per key/value pair). Fails if the metric is not found or has multiple values. Examples of execution: ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${param1}=${value1} ${param2}=${value2} ${filter} ${EMPTY} Returns the given values which can then be assigned to a variables. ${filter} = ${param} @{filter_parameters} sdnc_id=1445564a-3de8-4bb1-ad14-ca72d4fd03ce ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in filter parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = sdnc_id=1445564a-3de8-4bb1-ad14-ca72d4fd03ce ${param_name} = sdnc_id ${param_value} = 1445564a-3de8-4bb1-ad14-ca72d4fd03ce ${match},${param_name},${param_value} Logs the given message with the given level. sdnc_id=1445564a-3de8-4bb1-ad14-ca72d4fd03ce,sdnc_id,1445564a-3de8-4bb1-ad14-ca72d4fd03ce ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = sdnc_id="1445564a-3de8-4bb1-ad14-ca72d4fd03ce", ${resp} ${prometheus_ip} ${prometheus_port} ${prometheus_user} ${prometheus_password} query=${metric}{${filter}} Execute a Prometheus Instant Query using HTTP API. Return an inline json with the result of the query. The requested URL is the next: http://${prometheus_ip}:${prometheus_port}/api/v1/query?${querystring} ${auth} ${prometheus_user} ${prometheus_password} Returns a list containing given items. ${auth} = ['""', '""'] ${auth} None Returns the given values which can then be assigned to a variables. prometheus http://${prometheus_ip}:${prometheus_port} timeout=${TIMEOUT} max_retries=${MAX_RETRIES} verify=false auth=${auth} Create Session: create a HTTP session to a server Creating Session using : alias=prometheus, url=http://172.21.249.226:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7ff1a6f0a080>, timeout=30, proxies=None, verify=False, debug=0 ${resp} prometheus /api/v1/query?${querystring} timeout=${TIMEOUT} Sends a GET request on a previously created HTTP Session. GET Request : url=http://172.21.249.226:9091/api/v1/query?query=osm_sdnc_status%7Bsdnc_id=%221445564a-3de8-4bb1-ad14-ca72d4fd03ce%22,%7D path_url=/api/v1/query?query=osm_sdnc_status%7Bsdnc_id=%221445564a-3de8-4bb1-ad14-ca72d4fd03ce%22,%7D headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'Basic IiI6IiI='} body=None GET Response : url=http://172.21.249.226:9091/api/v1/query?query=osm_sdnc_status%7Bsdnc_id=%221445564a-3de8-4bb1-ad14-ca72d4fd03ce%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Mon, 19 Feb 2024 03:34:59 GMT', 'Content-Length': '87'} body={"status":"success","data":{"resultType":"vector","result":[]}} ${resp} = <Response [200]> 200 ${resp} Fails if response status code is different than the expected. ${resp.json()} ${resp} = {'status': 'success', 'data': {'resultType': 'vector', 'result': []}} ${result_list} ${resp["data"]["result"]} Converts the given ``item`` to a Python ``list`` type. ${result_list} = [] ${results} ${result_list} Returns and logs the length of the given item as an integer. Length is 0 ${results} = 0 0 ${results} msg=Metric ${metric} not found values=false Fails if objects are equal after converting them to real numbers. Argument types are: <class 'str'> <class 'int'> Metric osm_sdnc_status not found 1 ${results} msg=Metric ${metric} with multiple values values=false Fails if objects are unequal after converting them to integers. ${result_list[0]["value"][1]} ${metric} 1 msg=SDNC '${sdnc_id}' is not active values=false Fails if objects are unequal after converting them to integers. ${sdnc_id} ${prometheus_host} ${prometheus_port} ${prometheus_user} ${prometheus_password} Check if the value of the metric osm_sdnc_status in Prometheus for the SDN controller is 1 (reachable). ${metric} ${prometheus_host} ${prometheus_port} ${prometheus_user} ${prometheus_password} osm_sdnc_status sdnc_id=${sdnc_id} Get the instant value of a metric from Prometheus using multiple filter parameters. The filter parameters are given to this function in key=value format (one argument per key/value pair). Fails if the metric is not found or has multiple values. Examples of execution: ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${param1}=${value1} ${param2}=${value2} ${filter} ${EMPTY} Returns the given values which can then be assigned to a variables. ${filter} = ${param} @{filter_parameters} sdnc_id=1445564a-3de8-4bb1-ad14-ca72d4fd03ce ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in filter parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = sdnc_id=1445564a-3de8-4bb1-ad14-ca72d4fd03ce ${param_name} = sdnc_id ${param_value} = 1445564a-3de8-4bb1-ad14-ca72d4fd03ce ${match},${param_name},${param_value} Logs the given message with the given level. sdnc_id=1445564a-3de8-4bb1-ad14-ca72d4fd03ce,sdnc_id,1445564a-3de8-4bb1-ad14-ca72d4fd03ce ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = sdnc_id="1445564a-3de8-4bb1-ad14-ca72d4fd03ce", ${resp} ${prometheus_ip} ${prometheus_port} ${prometheus_user} ${prometheus_password} query=${metric}{${filter}} Execute a Prometheus Instant Query using HTTP API. Return an inline json with the result of the query. The requested URL is the next: http://${prometheus_ip}:${prometheus_port}/api/v1/query?${querystring} ${auth} ${prometheus_user} ${prometheus_password} Returns a list containing given items. ${auth} = ['""', '""'] ${auth} None Returns the given values which can then be assigned to a variables. prometheus http://${prometheus_ip}:${prometheus_port} timeout=${TIMEOUT} max_retries=${MAX_RETRIES} verify=false auth=${auth} Create Session: create a HTTP session to a server Creating Session using : alias=prometheus, url=http://172.21.249.226:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7ff1a6f09810>, timeout=30, proxies=None, verify=False, debug=0 ${resp} prometheus /api/v1/query?${querystring} timeout=${TIMEOUT} Sends a GET request on a previously created HTTP Session. GET Request : url=http://172.21.249.226:9091/api/v1/query?query=osm_sdnc_status%7Bsdnc_id=%221445564a-3de8-4bb1-ad14-ca72d4fd03ce%22,%7D path_url=/api/v1/query?query=osm_sdnc_status%7Bsdnc_id=%221445564a-3de8-4bb1-ad14-ca72d4fd03ce%22,%7D headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'Basic IiI6IiI='} body=None GET Response : url=http://172.21.249.226:9091/api/v1/query?query=osm_sdnc_status%7Bsdnc_id=%221445564a-3de8-4bb1-ad14-ca72d4fd03ce%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Mon, 19 Feb 2024 03:36:00 GMT', 'Content-Length': '191'} body={"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"osm_sdnc_status","job":"airflow_osm_sdnc_status_1445564a-3de8-4bb1-ad14-ca72d4fd03ce","sdnc_id":"1445564a-3de8-4bb1-ad14-ca72d4fd03ce"},"value":[1708313760.020,"1"]}]}} ${resp} = <Response [200]> 200 ${resp} Fails if response status code is different than the expected. ${resp.json()} ${resp} = {'status': 'success', 'data': {'resultType': 'vector', 'result': [{'metric': {'__name__': 'osm_sdnc_status', 'job': 'airflow_osm_sdnc_status_1445564a-3de8-4bb1-ad14-ca72d4fd03ce', 'sdnc_id': '1445564a... ${result_list} ${resp["data"]["result"]} Converts the given ``item`` to a Python ``list`` type. ${result_list} = [{'metric': {'__name__': 'osm_sdnc_status', 'job': 'airflow_osm_sdnc_status_1445564a-3de8-4bb1-ad14-ca72d4fd03ce', 'sdnc_id': '1445564a-3de8-4bb1-ad14-ca72d4fd03ce'}, 'value': [1708313760.02, '1']}] ${results} ${result_list} Returns and logs the length of the given item as an integer. Length is 1 ${results} = 1 0 ${results} msg=Metric ${metric} not found values=false Fails if objects are equal after converting them to real numbers. Argument types are: <class 'str'> <class 'int'> 1 ${results} msg=Metric ${metric} with multiple values values=false Fails if objects are unequal after converting them to integers. Argument types are: <class 'str'> <class 'int'> ${result_list[0]["value"][1]} ${metric} = 1 ${metric} 1 msg=SDNC '${sdnc_id}' is not active values=false Fails if objects are unequal after converting them to integers. Check in Prometheus that the SDN controller is in healthy state. cluster_epa daily epa_03 regression ${SDNC_NAME} Unregister/delete from OSM an SDN controller identified by name. ${rc} ${stdout} Run And Return Rc And Output osm sdnc-delete ${sdnc_name} Runs the keyword and continues execution even if a failure occurs. osm sdnc-delete ${sdnc_name} Runs the given command in the system and returns the RC and output. Running command 'osm sdnc-delete epa_03 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${stdout} Logs the given message with the given level. Deletion in progress ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${SDNC_DELETE_MAX_WAIT_TIME} ${SDNC_DELETE_POL_TIME} Check For SDNC To Be Deleted ${sdnc_name} Runs the specified keyword and retries if it fails. ${sdnc_name} Check if an SDN controller identified by name is not present in OSM. ${rc} ${stdout} osm sdnc-list | awk '{print $2}' | grep ${sdnc_name} Runs the given command in the system and returns the RC and output. Running command 'osm sdnc-list | awk '{print $2}' | grep epa_03 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${sdnc_name} Fails if objects are equal after converting them to strings. Delete SDN controller from OSM. cleanup cluster_epa daily epa_03 regression Clean SDNC Runs the given keyword with the given arguments and ignores possible error. Delete SDN controller from OSM. ${sdnc_name} Unregister/delete from OSM an SDN controller identified by name. ${rc} ${stdout} Run And Return Rc And Output osm sdnc-delete ${sdnc_name} Runs the keyword and continues execution even if a failure occurs. osm sdnc-delete ${sdnc_name} Runs the given command in the system and returns the RC and output. Running command 'osm sdnc-delete epa_03 2>&1'. ${rc} = 1 ${stdout} = ERROR: SDN controller epa_03 not found ${stdout} Logs the given message with the given level. ERROR: SDN controller epa_03 not found ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ERROR: SDN controller epa_03 not found ${SDNC_DELETE_MAX_WAIT_TIME} ${SDNC_DELETE_POL_TIME} Check For SDNC To Be Deleted ${sdnc_name} Runs the specified keyword and retries if it fails. ${sdnc_name} Check if an SDN controller identified by name is not present in OSM. ${rc} ${stdout} osm sdnc-list | awk '{print $2}' | grep ${sdnc_name} Runs the given command in the system and returns the RC and output. Running command 'osm sdnc-list | awk '{print $2}' | grep epa_03 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${sdnc_name} Fails if objects are equal after converting them to strings. [EPA-03] CRUD operations on SDNC accounts. OVERRIDES Deletes the specified environment variable. Environment variable 'OVERRIDES' does not exist. '%{PACKAGES_FOLDER}/${VNFD_PKG}' Onboards ("creates") a NF Package into OSM. - Parameters: - vnfd_pkg: Name (and location) of the NF Package - overrides (optional): String with options to override the EPA and/or interface properties of the Package. This is very useful to allow to deploy e.g. non-EPA packages in EPA VIMs (or vice-versa). Valid strings are the same as in the command. E.g.: - `--override-epa`: adds EPA attributes to all VDUs. - `--override-nonepa`: removes all EPA attributes from all VDUs. - `--override-paravirt`: converts all interfaces to `PARAVIRT`. This one can be combined with the others above (e.g. '--override-nonepa --override-paravirt'). - Relevant environment variables: - OVERRIDES: If the environment variable "OVERRIDES" exists, it prevails over the value in the argument. This is often more convenient to enforce the same behaviour for every test run in a given VIM. ${overrides} OVERRIDES default=${overrides} Returns the value of an environment variable with the given name. ${overrides} = ${rc} ${stdout} osm vnfpkg-create ${overrides} ${vnfd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-create '/robot-systest/osm-packages/epa_1vm_sriov_vnf' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/epa_1vm_sriov_vnf Validation OK List of charms in the descriptor: set() Adding File: epa_1vm_sriov_vnf Package created: /robot-systest/osm-packages/epa_1... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/epa_1vm_sriov_vnf Validation OK List of charms in the descriptor: set() Adding File: epa_1vm_sriov_vnf Package created: /robot-systest/osm-packages/epa_1vm_sriov_vnf.tar.gz Uploading package /robot-systest/osm-packages/epa_1vm_sriov_vnf.tar.gz 663601e5-b271-44fc-949b-1fdb64bd5e1f ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 7 lines ${lines} = 7 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 6 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = 663601e5-b271-44fc-949b-1fdb64bd5e1f ${id} Upload VNF package for the testsuite. cluster_epa daily epa_04 regression '%{PACKAGES_FOLDER}/${NSD_PKG}' Upload a NS package to OSM and return the id. ${rc} ${stdout} osm nspkg-create ${nsd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-create '/robot-systest/osm-packages/epa_1vm_sriov_ns' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/epa_1vm_sriov_ns Validation OK List of charms in the descriptor: set() Adding File: epa_1vm_sriov_ns Package created: /robot-systest/osm-packages/epa_1vm... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/epa_1vm_sriov_ns Validation OK List of charms in the descriptor: set() Adding File: epa_1vm_sriov_ns Package created: /robot-systest/osm-packages/epa_1vm_sriov_ns.tar.gz 537f2a6d-b88f-47a5-bb6f-b5ebe160fa85 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 6 lines ${lines} = 6 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 5 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = 537f2a6d-b88f-47a5-bb6f-b5ebe160fa85 ${id} Upload NS package for the testsuite. cluster_epa daily epa_04 regression ${id} ${NSD_NAME} %{VIM_TARGET} ${NS_NAME} ${NS_CONFIG} ${EMPTY} Launch the instantation of a NS and verify in a loop that the NS instance is successfully created in a given time, and return the NS instance id. ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_launch_max_wait_time} = 300.0 ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_launch_max_wait_time} = 300.0 ${ns_launch_max_wait_time} Logs the given message with the given level. 300.0 ${config_attr} '${ns_config}'!='${EMPTY}' --config '${ns_config}' ${EMPTY} Sets variable based on the given condition. ${config_attr} = --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext} , {name: datanet, ip-profile: {ip-version: ipv4, subnet-address: "192.168.100.0/24"}, vnfd-connection-point-ref: [ {member-vnf-index-ref: "... ${sshkeys_attr} '${publickey}'!='${EMPTY}' --ssh_keys ${publickey} ${EMPTY} Sets variable based on the given condition. ${sshkeys_attr} = ${config_file_attr} '${config_file}'!='${EMPTY}' --config_file '${config_file}' ${EMPTY} Sets variable based on the given condition. ${config_file_attr} = ${ns_id} ${ns_name} ${nsd} ${vim_name} ${config_attr} ${sshkeys_attr} ${config_file_attr} Launch the instantation of a NS, and return the NS instance id. ${rc} ${stdout} osm ns-create --ns_name ${ns_name} --nsd_name ${nsd} --vim_account ${vim_name} ${ns_extra_args} Runs the given command in the system and returns the RC and output. Running command 'osm ns-create --ns_name epa_04 --nsd_name epa_1vm_sriov-ns --vim_account osm --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext} , {name: datanet, ip-profile: {ip-version: ipv4, subnet-address: "192.168.100.0/24"}, vnfd-connection-point-ref: [ {member-vnf-index-ref: "vnf1", vnfd-connection-point-ref: vnf-data-ext, ip-address: "192.168.100.11"}, {member-vnf-index-ref: "vnf2", vnfd-connection-point-ref: vnf-data-ext, ip-address: "192.168.100.22"}]} ] }' 2>&1'. ${rc} = 0 ${stdout} = 2284eaba-77f6-4671-9158-52b56c448214 ${stdout} Logs the given message with the given level. 2284eaba-77f6-4671-9158-52b56c448214 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 2284eaba-77f6-4671-9158-52b56c448214 ${ns_id} Logs the given message with the given level. 2284eaba-77f6-4671-9158-52b56c448214 ${ns_launch_max_wait_time} ${NS_LAUNCH_POL_TIME} Check For NS Instance To Configured ${ns_name} Runs the specified keyword and retries if it fails. ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | 6d6e24a9-34a1-4d6f-a479-0ded5e88ee71 | hfmultivdu-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | edf39e6e-95c1-4d6f-a8de-78ae27925f23 | hfmultivdu-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | c35dbb2c-3428-4563-9470-1958681f5003 | hfmultivdu-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | acd79518-7a50-48f9-a784-92ca6fbdacd0 | hfmultivdu-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | cd77516e-1498-48e2-bcae-4600ba52724d | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.35 | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="epa_04" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | epa_04 | 2284eaba-77f6-4671-9158-52b56c448214 | 2024-02-19T03:36:11 | BUILDING | INSTANTIATING (9bcd0f52-a860-4dc5-9c5b-d05a0ecff62c) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | epa_04 | 2284eaba-77f6-4671-9158-52b56c448214 | 2024-02-19T03:36:11 | BUILDING | INSTANTIATING (9bcd0f52-a860-4dc5-9c5b-d05a0ecff62c) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+---------------------------------------+--------+------------------------------------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+---------------------------------------+--------+------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+---------------------------------------+--------+------------------------------------------------------+-------------+-------------------------+ | 8f1a35cc-2177-4f16-ba6a-97481bbfe526 | epa_04-vnf2-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.22; osm-ext=172.21.249.98 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | bc2f4fb9-7923-4b9a-b2f3-d554c680a8c4 | epa_04-vnf1-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.11; osm-ext=172.21.248.86 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 6d6e24a9-34a1-4d6f-a479-0ded5e88ee71 | hfmultivdu-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | edf39e6e-95c1-4d6f-a8de-78ae27925f23 | hfmultivdu-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | c35dbb2c-3428-4563-9470-1958681f5003 | hfmultivdu-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | acd79518-7a50-48f9-a784-92ca6fbdacd0 | hfmultivdu-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | cd77516e-1498-48e2-bcae-4600ba52724d | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.35 | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+---------------------------------------+--------+------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="epa_04" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | epa_04 | 2284eaba-77f6-4671-9158-52b56c448214 | 2024-02-19T03:36:11 | BUILDING | INSTANTIATING (9bcd0f52-a860-4dc5-9c5b-d05a0ecff62c) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | epa_04 | 2284eaba-77f6-4671-9158-52b56c448214 | 2024-02-19T03:36:11 | BUILDING | INSTANTIATING (9bcd0f52-a860-4dc5-9c5b-d05a0ecff62c) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+---------------------------------------+--------+------------------------------------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+---------------------------------------+--------+------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+---------------------------------------+--------+------------------------------------------------------+-------------+-------------------------+ | 8f1a35cc-2177-4f16-ba6a-97481bbfe526 | epa_04-vnf2-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.22; osm-ext=172.21.249.98 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | bc2f4fb9-7923-4b9a-b2f3-d554c680a8c4 | epa_04-vnf1-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.11; osm-ext=172.21.248.86 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 6d6e24a9-34a1-4d6f-a479-0ded5e88ee71 | hfmultivdu-vnf2-dataVM-0 | ERROR | | ubuntu20.04 | simple_requires-1-1-flv | | edf39e6e-95c1-4d6f-a8de-78ae27925f23 | hfmultivdu-vnf2-mgmtVM-0 | ERROR | | ubuntu20.04 | simple_requires-1-1-flv | | c35dbb2c-3428-4563-9470-1958681f5003 | hfmultivdu-vnf1-dataVM-0 | ERROR | | ubuntu20.04 | simple_requires-1-1-flv | | acd79518-7a50-48f9-a784-92ca6fbdacd0 | hfmultivdu-vnf1-mgmtVM-0 | ERROR | | ubuntu20.04 | simple_requires-1-1-flv | | cd77516e-1498-48e2-bcae-4600ba52724d | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.35 | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+---------------------------------------+--------+------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="epa_04" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | epa_04 | 2284eaba-77f6-4671-9158-52b56c448214 | 2024-02-19T03:36:11 | READY | IDLE (None) | N/A | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. ${ns_name} Check if a given NS instance has not failed in the instantiation (the status should not be BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+---------------------------------------+--------+------------------------------------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+---------------------------------------+--------+------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+---------------------------------------+--------+------------------------------------------------------+-------------+-------------------------+ | 8f1a35cc-2177-4f16-ba6a-97481bbfe526 | epa_04-vnf2-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.22; osm-ext=172.21.249.98 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | bc2f4fb9-7923-4b9a-b2f3-d554c680a8c4 | epa_04-vnf1-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.11; osm-ext=172.21.248.86 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 6d6e24a9-34a1-4d6f-a479-0ded5e88ee71 | hfmultivdu-vnf2-dataVM-0 | ERROR | | ubuntu20.04 | simple_requires-1-1-flv | | edf39e6e-95c1-4d6f-a8de-78ae27925f23 | hfmultivdu-vnf2-mgmtVM-0 | ERROR | | ubuntu20.04 | simple_requires-1-1-flv | | c35dbb2c-3428-4563-9470-1958681f5003 | hfmultivdu-vnf1-dataVM-0 | ERROR | | ubuntu20.04 | simple_requires-1-1-flv | | acd79518-7a50-48f9-a784-92ca6fbdacd0 | hfmultivdu-vnf1-mgmtVM-0 | ERROR | | ubuntu20.04 | simple_requires-1-1-flv | | cd77516e-1498-48e2-bcae-4600ba52724d | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.35 | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+---------------------------------------+--------+------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="epa_04" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | epa_04 | 2284eaba-77f6-4671-9158-52b56c448214 | 2024-02-19T03:36:11 | READY | IDLE (None) | N/A | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} BROKEN Fails if ``container`` contains ``item`` one or more times. ${ns_id} ${id} = 2284eaba-77f6-4671-9158-52b56c448214 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 2284eaba-77f6-4671-9158-52b56c448214 Instantiate NS for the testsuite. cluster_epa daily epa_04 regression ${NS_ID} msg=Network service instance is not available Fails unless the given variable exists within the current scope. ${ip} ${NS_ID} ${VNF_MEMBER_INDEX_1} Get the mgmt IP address of a member VNF in a NS instance, and return it. ${ns_id} Verifies that the given item is not empty. Length is 36 ${vnf_member_index} Verifies that the given item is not empty. Length is 4 ${rc} ${stdout} osm vnf-list --filter member-vnf-index-ref=${vnf_member_index} | grep ${ns_id} | awk '{print $14}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm vnf-list --filter member-vnf-index-ref=vnf1 | grep 2284eaba-77f6-4671-9158-52b56c448214 | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.248.86 ${stdout} Logs the given message with the given level. 172.21.248.86 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ip} = 172.21.248.86 ${IP_MGMT_1} ${ip} Makes a variable available everywhere within the scope of the current suite. ${IP_MGMT_1} = 172.21.248.86 ${IP_MGMT_1} Logs the given message with the given level. 172.21.248.86 ${ip} ${NS_ID} ${VNF_MEMBER_INDEX_2} Get the mgmt IP address of a member VNF in a NS instance, and return it. ${ns_id} Verifies that the given item is not empty. Length is 36 ${vnf_member_index} Verifies that the given item is not empty. Length is 4 ${rc} ${stdout} osm vnf-list --filter member-vnf-index-ref=${vnf_member_index} | grep ${ns_id} | awk '{print $14}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm vnf-list --filter member-vnf-index-ref=vnf2 | grep 2284eaba-77f6-4671-9158-52b56c448214 | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.249.98 ${stdout} Logs the given message with the given level. 172.21.249.98 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ip} = 172.21.249.98 ${IP_MGMT_2} ${ip} Makes a variable available everywhere within the scope of the current suite. ${IP_MGMT_2} = 172.21.249.98 ${IP_MGMT_2} Logs the given message with the given level. 172.21.249.98 Get the mgmt IP addresses of both VNF of the NS. cluster_epa daily epa_04 regression ${IP_MGMT_1} msg=IP address of the data VNF '${VNF_MEMBER_INDEX_1}' is not available Fails unless the given variable exists within the current scope. 30 seconds Wait for SSH daemon to be up Pauses the test executed for the given time. Slept 30 seconds Wait for SSH daemon to be up ${stdout} ${IP_MGMT_1} ${USERNAME} ${PASSWORD} ${EMPTY} ip addr ; ping -c 5 ${DATANET_IP2} Execute via SSH a command in a remote host and, if the command succeeds, return the output. ${host} Opens a new SSH connection to the given ``host`` and ``port``. ${username} ${password} Logs into the SSH server with the given ``username`` and ``password``. Logging into '172.21.248.86:22' as 'ubuntu'. Read output: Welcome to Ubuntu 20.04.4 LTS (GNU/Linux 5.4.0-107-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Mon Feb 19 03:37:59 UTC 2024 System load: 0.58 Processes: 128 Usage of /: 14.0% of 9.52GB Users logged in: 0 Memory usage: 5% IPv4 address for ens3: 172.21.248.86 Swap usage: 0% IPv4 address for ens6: 192.168.100.11 1 update can be applied immediately. To see these additional updates run: apt list --upgradable The list of available updates is more than a week old. To check for new updates run: sudo apt update The programs included with the Ubuntu system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. ubuntu@epa-04-vnf1-datavm-0:~$ ${username} ${privatekey} Logs into the SSH server using key-based authentication. ${stdout} ${rc} ${command} return_rc=True return_stdout=True Executes ``command`` on the remote machine and returns its outputs. Executing command 'ip addr ; ping -c 5 192.168.100.22'. Command exited with return code 0. ${stdout} = 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lf... ${rc} = 0 ${rc} Logs the given message with the given level. 0 ${stdout} Logs the given message with the given level. 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: ens3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 link/ether fa:16:3e:14:c5:a4 brd ff:ff:ff:ff:ff:ff inet 172.21.248.86/22 brd 172.21.251.255 scope global dynamic ens3 valid_lft 86330sec preferred_lft 86330sec inet6 fe80::f816:3eff:fe14:c5a4/64 scope link valid_lft forever preferred_lft forever 3: ens6: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000 link/ether fa:16:3e:23:17:ad brd ff:ff:ff:ff:ff:ff inet 192.168.100.11/24 brd 192.168.100.255 scope global ens6 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe23:17ad/64 scope link valid_lft forever preferred_lft forever PING 192.168.100.22 (192.168.100.22) 56(84) bytes of data. 64 bytes from 192.168.100.22: icmp_seq=1 ttl=64 time=0.795 ms 64 bytes from 192.168.100.22: icmp_seq=2 ttl=64 time=0.190 ms 64 bytes from 192.168.100.22: icmp_seq=3 ttl=64 time=0.189 ms 64 bytes from 192.168.100.22: icmp_seq=4 ttl=64 time=0.185 ms 64 bytes from 192.168.100.22: icmp_seq=5 ttl=64 time=0.177 ms --- 192.168.100.22 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4070ms rtt min/avg/max/mdev = 0.177/0.307/0.795/0.243 ms Closes all open connections. ${rc} 0 Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${stdout} = 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lf... ${stdout} Logs the given message with the given level. 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: ens3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 link/ether fa:16:3e:14:c5:a4 brd ff:ff:ff:ff:ff:ff inet 172.21.248.86/22 brd 172.21.251.255 scope global dynamic ens3 valid_lft 86330sec preferred_lft 86330sec inet6 fe80::f816:3eff:fe14:c5a4/64 scope link valid_lft forever preferred_lft forever 3: ens6: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000 link/ether fa:16:3e:23:17:ad brd ff:ff:ff:ff:ff:ff inet 192.168.100.11/24 brd 192.168.100.255 scope global ens6 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe23:17ad/64 scope link valid_lft forever preferred_lft forever PING 192.168.100.22 (192.168.100.22) 56(84) bytes of data. 64 bytes from 192.168.100.22: icmp_seq=1 ttl=64 time=0.795 ms 64 bytes from 192.168.100.22: icmp_seq=2 ttl=64 time=0.190 ms 64 bytes from 192.168.100.22: icmp_seq=3 ttl=64 time=0.189 ms 64 bytes from 192.168.100.22: icmp_seq=4 ttl=64 time=0.185 ms 64 bytes from 192.168.100.22: icmp_seq=5 ttl=64 time=0.177 ms --- 192.168.100.22 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4070ms rtt min/avg/max/mdev = 0.177/0.307/0.795/0.243 ms Check connectivity from the first VNF to the second VNF using ping. cluster_epa daily epa_04 regression ${IP_MGMT_2} msg=IP address of the data VNF '${VNF_MEMBER_INDEX_2}' is not available Fails unless the given variable exists within the current scope. ${stdout} ${IP_MGMT_2} ${USERNAME} ${PASSWORD} ${EMPTY} ip addr ; ping -c 5 ${DATANET_IP1} Execute via SSH a command in a remote host and, if the command succeeds, return the output. ${host} Opens a new SSH connection to the given ``host`` and ``port``. ${username} ${password} Logs into the SSH server with the given ``username`` and ``password``. Logging into '172.21.249.98:22' as 'ubuntu'. Read output: Welcome to Ubuntu 20.04.4 LTS (GNU/Linux 5.4.0-107-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Mon Feb 19 03:38:05 UTC 2024 System load: 0.72 Processes: 127 Usage of /: 14.0% of 9.52GB Users logged in: 0 Memory usage: 5% IPv4 address for ens3: 172.21.249.98 Swap usage: 0% IPv4 address for ens6: 192.168.100.22 1 update can be applied immediately. To see these additional updates run: apt list --upgradable The list of available updates is more than a week old. To check for new updates run: sudo apt update The programs included with the Ubuntu system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. ubuntu@epa-04-vnf2-datavm-0:~$ ${username} ${privatekey} Logs into the SSH server using key-based authentication. ${stdout} ${rc} ${command} return_rc=True return_stdout=True Executes ``command`` on the remote machine and returns its outputs. Executing command 'ip addr ; ping -c 5 192.168.100.11'. Command exited with return code 0. ${stdout} = 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lf... ${rc} = 0 ${rc} Logs the given message with the given level. 0 ${stdout} Logs the given message with the given level. 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: ens3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 link/ether fa:16:3e:03:ad:77 brd ff:ff:ff:ff:ff:ff inet 172.21.249.98/22 brd 172.21.251.255 scope global dynamic ens3 valid_lft 86328sec preferred_lft 86328sec inet6 fe80::f816:3eff:fe03:ad77/64 scope link valid_lft forever preferred_lft forever 3: ens6: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000 link/ether fa:16:3e:22:a6:6a brd ff:ff:ff:ff:ff:ff inet 192.168.100.22/24 brd 192.168.100.255 scope global ens6 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe22:a66a/64 scope link valid_lft forever preferred_lft forever PING 192.168.100.11 (192.168.100.11) 56(84) bytes of data. 64 bytes from 192.168.100.11: icmp_seq=1 ttl=64 time=0.226 ms 64 bytes from 192.168.100.11: icmp_seq=2 ttl=64 time=1.06 ms 64 bytes from 192.168.100.11: icmp_seq=3 ttl=64 time=0.210 ms 64 bytes from 192.168.100.11: icmp_seq=4 ttl=64 time=0.241 ms 64 bytes from 192.168.100.11: icmp_seq=5 ttl=64 time=0.227 ms --- 192.168.100.11 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4052ms rtt min/avg/max/mdev = 0.210/0.391/1.055/0.331 ms Closes all open connections. ${rc} 0 Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${stdout} = 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lf... ${stdout} Logs the given message with the given level. 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: ens3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 link/ether fa:16:3e:03:ad:77 brd ff:ff:ff:ff:ff:ff inet 172.21.249.98/22 brd 172.21.251.255 scope global dynamic ens3 valid_lft 86328sec preferred_lft 86328sec inet6 fe80::f816:3eff:fe03:ad77/64 scope link valid_lft forever preferred_lft forever 3: ens6: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000 link/ether fa:16:3e:22:a6:6a brd ff:ff:ff:ff:ff:ff inet 192.168.100.22/24 brd 192.168.100.255 scope global ens6 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe22:a66a/64 scope link valid_lft forever preferred_lft forever PING 192.168.100.11 (192.168.100.11) 56(84) bytes of data. 64 bytes from 192.168.100.11: icmp_seq=1 ttl=64 time=0.226 ms 64 bytes from 192.168.100.11: icmp_seq=2 ttl=64 time=1.06 ms 64 bytes from 192.168.100.11: icmp_seq=3 ttl=64 time=0.210 ms 64 bytes from 192.168.100.11: icmp_seq=4 ttl=64 time=0.241 ms 64 bytes from 192.168.100.11: icmp_seq=5 ttl=64 time=0.227 ms --- 192.168.100.11 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4052ms rtt min/avg/max/mdev = 0.210/0.391/1.055/0.331 ms Check connectivity from the second VNF to the first VNF using ping. cluster_epa daily epa_04 regression ${NS_NAME} Delete a NS instance. ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} Logs the given message with the given level. 240.0 ${rc} ${stdout} osm ns-delete ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-delete epa_04 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${stdout} Logs the given message with the given level. Deletion in progress ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${ns_delete_max_wait_time} ${NS_DELETE_POL_TIME} Check For NS Instance To Be Deleted ${ns} Runs the specified keyword and retries if it fails. ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+---------------------------------------+--------+------------------------------------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+---------------------------------------+--------+------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+---------------------------------------+--------+------------------------------------------------------+-------------+-------------------------+ | 8f1a35cc-2177-4f16-ba6a-97481bbfe526 | epa_04-vnf2-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.22; osm-ext=172.21.249.98 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | bc2f4fb9-7923-4b9a-b2f3-d554c680a8c4 | epa_04-vnf1-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.11; osm-ext=172.21.248.86 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | cd77516e-1498-48e2-bcae-4600ba52724d | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.35 | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+---------------------------------------+--------+------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep epa_04 2>&1'. ${rc} = 0 ${stdout} = epa_04 ${rc},${stdout} Logs the given message with the given level. 0,epa_04 ${stdout} ${ns} Fails if objects are equal after converting them to strings. epa_04 == epa_04 ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | cd77516e-1498-48e2-bcae-4600ba52724d | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.35 | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep epa_04 2>&1'. ${rc} = 0 ${stdout} = epa_04 ${rc},${stdout} Logs the given message with the given level. 0,epa_04 ${stdout} ${ns} Fails if objects are equal after converting them to strings. epa_04 == epa_04 ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | cd77516e-1498-48e2-bcae-4600ba52724d | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.35 | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep epa_04 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${ns} Fails if objects are equal after converting them to strings. Delete NS instance. cleanup cluster_epa daily epa_04 regression ${NSD_NAME} Delete a NS package from OSM. ${rc} ${stdout} Run And Return Rc And Output osm nspkg-delete ${nsd_id} Runs the keyword and continues execution even if a failure occurs. osm nspkg-delete ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-delete epa_1vm_sriov-ns 2>&1'. ${rc} = 0 ${stdout} = Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Logs the given message with the given level. Deleted ${NSD_DELETE_MAX_WAIT_TIME} ${NSD_DELETE_POL_TIME} Check For NSD ${nsd_id} Runs the specified keyword and retries if it fails. ${nsd_id} Check that a NS package exists in OSM. ${rc} ${stdout} osm nspkg-list | awk '{print $2}' | grep ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-list | awk '{print $2}' | grep epa_1vm_sriov-ns 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. Delete NS package from OSM. cleanup cluster_epa daily epa_04 regression ${VNFD_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete epa_1vm_sriov-vnf 2>&1'. ${rc} = 0 ${stdout} = Deleted ${stdout} Logs the given message with the given level. Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep epa_1vm_sriov-vnf 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. Delete VNF package from OSM. cleanup cluster_epa daily epa_04 regression Suite Cleanup Runs the given keyword with the given arguments and ignores possible error. Test Suite Cleanup: Deleting descriptors and NS instance Delete NS ${NS_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete NSD ${NSD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete VNFD ${VNFD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. [EPA-04] EPA underlay SR-IOV. ${ram_quota} ram Get a field (ram, cores, ports, etc.) from quota in current project. ${field} Verifies that the given item is not empty. Length is 3 ${rc} ${stdout} openstack quota show -f yaml | yq '.[] | select(.Resource=="${field}") | .Limit' Runs the given command in the system and returns the RC and output. Running command 'openstack quota show -f yaml | yq '.[] | select(.Resource=="ram") | .Limit' 2>&1'. ${rc} = 0 ${stdout} = 327680 ${stdout} Logs the given message with the given level. 327680 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ram_quota} = 327680 ${memory} VM_MEMORY_OVERRIDE default=${DEFAULT_MEMORY} Returns the value of an environment variable with the given name. ${memory} ${ram_quota} / 1000 Evaluates the given expression in Python and returns the result. ${memory} = 327.68 ${memory} Logs the given message with the given level. 327.68 '%{PACKAGES_FOLDER}/${VNFD_PKG}' virtual-compute-desc.1.virtual-memory.size=${memory} Onboards ("creates") a NF Package into OSM. - Parameters: - vnfd_pkg: Name (and location) of the NF Package - override_fields: String with options to override fields in descriptor, format: "key1.key2...=value[;key3...=value;...]" - overrides (optional): String with options to override the EPA and/or interface properties of the Package. This is very useful to allow to deploy e.g. non-EPA packages in EPA VIMs (or vice-versa). Valid strings are the same as in the command. E.g.: - `--override-epa`: adds EPA attributes to all VDUs. - `--override-nonepa`: removes all EPA attributes from all VDUs. - `--override-paravirt`: converts all interfaces to `PARAVIRT`. This one can be combined with the others above (e.g. '--override-nonepa --override-paravirt'). - Relevant environment variables: - OVERRIDES: If the environment variable "OVERRIDES" exists, it prevails over the value in the argument. This is often more convenient to enforce the same behaviour for every test run in a given VIM. ${overrides} OVERRIDES default=${overrides} Returns the value of an environment variable with the given name. ${overrides} = ${rc} ${stdout} osm vnfpkg-create ${overrides} ${vnfd_pkg} --override '${override_fields}' Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-create '/robot-systest/osm-packages/simple_2vm_vnf' --override 'virtual-compute-desc.1.virtual-memory.size=327.68' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/simple_2vm_vnf Validation OK List of charms in the descriptor: set() Adding File: simple_2vm_vnf Package created: /robot-systest/osm-packages/simple_2vm_... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/simple_2vm_vnf Validation OK List of charms in the descriptor: set() Adding File: simple_2vm_vnf Package created: /robot-systest/osm-packages/simple_2vm_vnf.tar.gz Uploading package /robot-systest/osm-packages/simple_2vm_vnf.tar.gz f37db406-196e-4d80-8217-ca341cd03df1 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 7 lines ${lines} = 7 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 6 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = f37db406-196e-4d80-8217-ca341cd03df1 ${id} Upload VNF package for the testsuite. cluster_main daily fail_01 regression '%{PACKAGES_FOLDER}/${NSD_PKG}' Upload a NS package to OSM and return the id. ${rc} ${stdout} osm nspkg-create ${nsd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-create '/robot-systest/osm-packages/simple_2vm_ns' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/simple_2vm_ns Validation OK List of charms in the descriptor: set() Adding File: simple_2vm_ns Package created: /robot-systest/osm-packages/simple_2vm_ns... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/simple_2vm_ns Validation OK List of charms in the descriptor: set() Adding File: simple_2vm_ns Package created: /robot-systest/osm-packages/simple_2vm_ns.tar.gz d809ef85-69bc-41cd-89b6-7b1b7326f37b ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 6 lines ${lines} = 6 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 5 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = d809ef85-69bc-41cd-89b6-7b1b7326f37b ${id} Upload NS package for the testsuite. cluster_main daily fail_01 regression ${rand} 4 [NUMBERS] Generates a string with a desired ``length`` from the given ``chars``. ${rand} = 6201 ${ns_name} SEPARATOR=_ ${NS_NAME_PREFIX} ${rand} Catenates the given items together and returns the resulted string. ${ns_name} = fail_01_6201 ${NS_NAME} Makes a variable available everywhere within the scope of the current suite. ${NS_NAME} = fail_01_6201 ${NS_NAME} Logs the given message with the given level. fail_01_6201 ${id} ${NS_NAME} ${NSD_NAME} %{VIM_TARGET} --config '${NS_CONFIG}' --ssh_keys ${PUBLICKEY} Launch the instantation of a NS, and return the NS instance id. ${rc} ${stdout} osm ns-create --ns_name ${ns_name} --nsd_name ${nsd} --vim_account ${vim_name} ${ns_extra_args} Runs the given command in the system and returns the RC and output. Running command 'osm ns-create --ns_name fail_01_6201 --nsd_name simple_2vm-ns --vim_account osm --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext} ] }' --ssh_keys /root/.ssh/id_rsa.pub 2>&1'. ${rc} = 0 ${stdout} = d1298b17-5823-4182-aeb3-d79c318b58b5 ${stdout} Logs the given message with the given level. d1298b17-5823-4182-aeb3-d79c318b58b5 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = d1298b17-5823-4182-aeb3-d79c318b58b5 ${id} Logs the given message with the given level. d1298b17-5823-4182-aeb3-d79c318b58b5 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = d1298b17-5823-4182-aeb3-d79c318b58b5 ${NS_LAUNCH_MAX_WAIT_TIME} ${NS_LAUNCH_POL_TIME} Check For Ns Instance To Configured ${NS_NAME} Runs the specified keyword and retries if it fails. ${NS_NAME} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+------------------------+-------------+-------------------------+ | b1902f1e-0318-4c24-917f-ad51ba9efb51 | heal_01-several_volumes_-several_volumes-VM-0 | BUILD | | ubuntu20.04 | several_volumes-VM-flv | | cd77516e-1498-48e2-bcae-4600ba52724d | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.35 | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="fail_01_6201" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | fail_01_6201 | d1298b17-5823-4182-aeb3-d79c318b58b5 | 2024-02-19T03:39:07 | BUILDING | INSTANTIATING (2299c6e0-5e3a-41f7-be5b-92f34684f678) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | fail_01_6201 | d1298b17-5823-4182-aeb3-d79c318b58b5 | 2024-02-19T03:39:07 | BUILDING | INSTANTIATING (2299c6e0-5e3a-41f7-be5b-92f34684f678) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${NS_NAME} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | ID... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | 532feb12-fe6c-442b-9f2b-4f65236a22fc | fail_01_6201-vnf-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | b1f0f3d6-6268-4f95-bb4e-b3e9be0f0c1c | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.225.122; osm-ext=172.21.248.208 | ubuntu18.04 | simple_requires-1-1-flv | | f88c2de2-5d88-4dc4-a9db-927de19d58fd | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.225.93; osm-ext=172.21.249.47 | ubuntu18.04 | simple_requires-1-1-flv | | b1902f1e-0318-4c24-917f-ad51ba9efb51 | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.183 | ubuntu20.04 | several_volumes-VM-flv | | cd77516e-1498-48e2-bcae-4600ba52724d | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.35 | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="fail_01_6201" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | fail_01_6201 | d1298b17-5823-4182-aeb3-d79c318b58b5 | 2024-02-19T03:39:07 | BUILDING | INSTANTIATING (2299c6e0-5e3a-41f7-be5b-92f34684f678) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | fail_01_6201 | d1298b17-5823-4182-aeb3-d79c318b58b5 | 2024-02-19T03:39:07 | BUILDING | INSTANTIATING (2299c6e0-5e3a-41f7-be5b-92f34684f678) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${NS_NAME} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | ID... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | 532feb12-fe6c-442b-9f2b-4f65236a22fc | fail_01_6201-vnf-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | b1f0f3d6-6268-4f95-bb4e-b3e9be0f0c1c | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.225.122; osm-ext=172.21.248.208 | ubuntu18.04 | simple_requires-1-1-flv | | f88c2de2-5d88-4dc4-a9db-927de19d58fd | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.225.93; osm-ext=172.21.249.47 | ubuntu18.04 | simple_requires-1-1-flv | | b1902f1e-0318-4c24-917f-ad51ba9efb51 | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.183 | ubuntu20.04 | several_volumes-VM-flv | | cd77516e-1498-48e2-bcae-4600ba52724d | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.35 | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="fail_01_6201" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+-------------------+-----------------------------------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+-------------------+-----------------------------------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+-------------------+-----------------------------------------+ | fail_01_6201 | d1298b17-5823-4182-aeb3-d79c318b58b5 | 2024-02-19T03:39:07 | BROKEN | IDLE (None) | Operation: INSTANTIATING.2299c6e0-5e3a- | | | | | | | 41f7-be5b-92f34684f678, Stage 2/5: | | | | | | | deployment of KDUs, VMs and execution | | | | | | | environments. | | | | | | | Detail: Deploying at VIM: Error at | | | | | | | create vdu: Forbidden: Quota exceeded | | | | | | | for ram: Requested 335544, but already | | | | | | | used 192512 of 327680 ram (HTTP 403) | | | | | | | (Request-ID: req-082ccd64-5a38-49b1- | | | | | | | 8a17-741e18135ada) | +------------------+--------------------------------------+---------------------+----------+-------------------+-----------------------------------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. ${rc} ${stdout} osm ns-list --filter id="${NS_ID}" | grep ${NS_ID} | awk '{print $8}' Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter id="d1298b17-5823-4182-aeb3-d79c318b58b5" | grep d1298b17-5823-4182-aeb3-d79c318b58b5 | awk '{print $8}' 2>&1'. ${rc} = 0 ${stdout} = BROKEN ${rc},${stdout} Logs the given message with the given level. 0,BROKEN ${stdout} BROKEN Fails if ``container`` does not contain ``item`` one or more times. ${rc} ${stdout} osm ns-show ${NS_ID} --literal | yq .errorDetail Runs the given command in the system and returns the RC and output. Running command 'osm ns-show d1298b17-5823-4182-aeb3-d79c318b58b5 --literal | yq .errorDetail 2>&1'. ${rc} = 0 ${stdout} = "Deploying at VIM: Error at create vdu: Forbidden: Quota exceeded for ram: Requested 335544, but already used 192512 of 327680 ram (HTTP 403) (Request-ID: req-082ccd64-5a38-49b1-8a17-741e18135ada)" ${rc},${stdout} Logs the given message with the given level. 0,"Deploying at VIM: Error at create vdu: Forbidden: Quota exceeded for ram: Requested 335544, but already used 192512 of 327680 ram (HTTP 403) (Request-ID: req-082ccd64-5a38-49b1-8a17-741e18135ada)" ${stdout} Deploying at VIM: Error at create vdu Fails if ``container`` does not contain ``item`` one or more times. Assert failure when trying to instantiate the NS instance and there are not enough resources in the VIM. cluster_main daily fail_01 regression ${NS_NAME} Delete a NS instance. ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} Logs the given message with the given level. 240.0 ${rc} ${stdout} osm ns-delete ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-delete fail_01_6201 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${stdout} Logs the given message with the given level. Deletion in progress ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${ns_delete_max_wait_time} ${NS_DELETE_POL_TIME} Check For NS Instance To Be Deleted ${ns} Runs the specified keyword and retries if it fails. ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | ID... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | 532feb12-fe6c-442b-9f2b-4f65236a22fc | fail_01_6201-vnf-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | b1f0f3d6-6268-4f95-bb4e-b3e9be0f0c1c | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.225.122; osm-ext=172.21.248.208 | ubuntu18.04 | simple_requires-1-1-flv | | f88c2de2-5d88-4dc4-a9db-927de19d58fd | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.225.93; osm-ext=172.21.249.47 | ubuntu18.04 | simple_requires-1-1-flv | | b1902f1e-0318-4c24-917f-ad51ba9efb51 | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.183 | ubuntu20.04 | several_volumes-VM-flv | | cd77516e-1498-48e2-bcae-4600ba52724d | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.35 | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep fail_01_6201 2>&1'. ${rc} = 0 ${stdout} = fail_01_6201 ${rc},${stdout} Logs the given message with the given level. 0,fail_01_6201 ${stdout} ${ns} Fails if objects are equal after converting them to strings. fail_01_6201 == fail_01_6201 ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | ID... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | 532feb12-fe6c-442b-9f2b-4f65236a22fc | fail_01_6201-vnf-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | b1f0f3d6-6268-4f95-bb4e-b3e9be0f0c1c | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.225.122; osm-ext=172.21.248.208 | ubuntu18.04 | simple_requires-1-1-flv | | f88c2de2-5d88-4dc4-a9db-927de19d58fd | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.225.93; osm-ext=172.21.249.47 | ubuntu18.04 | simple_requires-1-1-flv | | b1902f1e-0318-4c24-917f-ad51ba9efb51 | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.183 | ubuntu20.04 | several_volumes-VM-flv | | cd77516e-1498-48e2-bcae-4600ba52724d | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.35 | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep fail_01_6201 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${ns} Fails if objects are equal after converting them to strings. ${OS_DELETE_MAX_WAIT_TIME} ${OS_DELETE_POL_TIME} Check NS Servers In VIM ${NS_NAME} 0 Runs the specified keyword and retries if it fails. ${NS_NAME} 0 Check if the number of servers in Openstack by filtering by NS name is as expected. ${ns_name} Verifies that the given item is not empty. Length is 12 ${rc} ${stdout} openstack server list | grep ${ns_name} | awk '{print $4}' Runs the given command in the system and returns the RC and output. Running command 'openstack server list | grep fail_01_6201 | awk '{print $4}' 2>&1'. ${rc} = 0 ${stdout} = fail_01_6201-vnf-mgmtVM-0 ${stdout} Logs the given message with the given level. fail_01_6201-vnf-mgmtVM-0 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> @{servers} ${stdout} Splits the ``string`` using ``separator`` as a delimiter string. @{servers} = [ fail_01_6201-vnf-mgmtVM-0 ] ${n_servers} ${servers} Returns and logs the length of the given item as an integer. Length is 1 ${n_servers} = 1 ${number} ${n_servers} Fails if objects are unequal after converting them to integers. Argument types are: <class 'str'> <class 'int'> 0 != 1 ${NS_NAME} 0 Check if the number of servers in Openstack by filtering by NS name is as expected. ${ns_name} Verifies that the given item is not empty. Length is 12 ${rc} ${stdout} openstack server list | grep ${ns_name} | awk '{print $4}' Runs the given command in the system and returns the RC and output. Running command 'openstack server list | grep fail_01_6201 | awk '{print $4}' 2>&1'. ${rc} = 0 ${stdout} = fail_01_6201-vnf-mgmtVM-0 ${stdout} Logs the given message with the given level. fail_01_6201-vnf-mgmtVM-0 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> @{servers} ${stdout} Splits the ``string`` using ``separator`` as a delimiter string. @{servers} = [ fail_01_6201-vnf-mgmtVM-0 ] ${n_servers} ${servers} Returns and logs the length of the given item as an integer. Length is 1 ${n_servers} = 1 ${number} ${n_servers} Fails if objects are unequal after converting them to integers. Argument types are: <class 'str'> <class 'int'> 0 != 1 ${NS_NAME} 0 Check if the number of servers in Openstack by filtering by NS name is as expected. ${ns_name} Verifies that the given item is not empty. Length is 12 ${rc} ${stdout} openstack server list | grep ${ns_name} | awk '{print $4}' Runs the given command in the system and returns the RC and output. Running command 'openstack server list | grep fail_01_6201 | awk '{print $4}' 2>&1'. ${rc} = 0 ${stdout} = fail_01_6201-vnf-mgmtVM-0 ${stdout} Logs the given message with the given level. fail_01_6201-vnf-mgmtVM-0 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> @{servers} ${stdout} Splits the ``string`` using ``separator`` as a delimiter string. @{servers} = [ fail_01_6201-vnf-mgmtVM-0 ] ${n_servers} ${servers} Returns and logs the length of the given item as an integer. Length is 1 ${n_servers} = 1 ${number} ${n_servers} Fails if objects are unequal after converting them to integers. Argument types are: <class 'str'> <class 'int'> 0 != 1 ${NS_NAME} 0 Check if the number of servers in Openstack by filtering by NS name is as expected. ${ns_name} Verifies that the given item is not empty. Length is 12 ${rc} ${stdout} openstack server list | grep ${ns_name} | awk '{print $4}' Runs the given command in the system and returns the RC and output. Running command 'openstack server list | grep fail_01_6201 | awk '{print $4}' 2>&1'. ${rc} = 0 ${stdout} = fail_01_6201-vnf-mgmtVM-0 ${stdout} Logs the given message with the given level. fail_01_6201-vnf-mgmtVM-0 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> @{servers} ${stdout} Splits the ``string`` using ``separator`` as a delimiter string. @{servers} = [ fail_01_6201-vnf-mgmtVM-0 ] ${n_servers} ${servers} Returns and logs the length of the given item as an integer. Length is 1 ${n_servers} = 1 ${number} ${n_servers} Fails if objects are unequal after converting them to integers. Argument types are: <class 'str'> <class 'int'> 0 != 1 ${NS_NAME} 0 Check if the number of servers in Openstack by filtering by NS name is as expected. ${ns_name} Verifies that the given item is not empty. Length is 12 ${rc} ${stdout} openstack server list | grep ${ns_name} | awk '{print $4}' Runs the given command in the system and returns the RC and output. Running command 'openstack server list | grep fail_01_6201 | awk '{print $4}' 2>&1'. ${rc} = 0 ${stdout} = fail_01_6201-vnf-mgmtVM-0 ${stdout} Logs the given message with the given level. fail_01_6201-vnf-mgmtVM-0 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> @{servers} ${stdout} Splits the ``string`` using ``separator`` as a delimiter string. @{servers} = [ fail_01_6201-vnf-mgmtVM-0 ] ${n_servers} ${servers} Returns and logs the length of the given item as an integer. Length is 1 ${n_servers} = 1 ${number} ${n_servers} Fails if objects are unequal after converting them to integers. Argument types are: <class 'str'> <class 'int'> 0 != 1 ${NS_NAME} 0 Check if the number of servers in Openstack by filtering by NS name is as expected. ${ns_name} Verifies that the given item is not empty. Length is 12 ${rc} ${stdout} openstack server list | grep ${ns_name} | awk '{print $4}' Runs the given command in the system and returns the RC and output. Running command 'openstack server list | grep fail_01_6201 | awk '{print $4}' 2>&1'. ${rc} = 0 ${stdout} = fail_01_6201-vnf-mgmtVM-0 ${stdout} Logs the given message with the given level. fail_01_6201-vnf-mgmtVM-0 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> @{servers} ${stdout} Splits the ``string`` using ``separator`` as a delimiter string. @{servers} = [ fail_01_6201-vnf-mgmtVM-0 ] ${n_servers} ${servers} Returns and logs the length of the given item as an integer. Length is 1 ${n_servers} = 1 ${number} ${n_servers} Fails if objects are unequal after converting them to integers. Argument types are: <class 'str'> <class 'int'> 0 != 1 ${NS_NAME} 0 Check if the number of servers in Openstack by filtering by NS name is as expected. ${ns_name} Verifies that the given item is not empty. Length is 12 ${rc} ${stdout} openstack server list | grep ${ns_name} | awk '{print $4}' Runs the given command in the system and returns the RC and output. Running command 'openstack server list | grep fail_01_6201 | awk '{print $4}' 2>&1'. ${rc} = 0 ${stdout} = fail_01_6201-vnf-mgmtVM-0 ${stdout} Logs the given message with the given level. fail_01_6201-vnf-mgmtVM-0 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> @{servers} ${stdout} Splits the ``string`` using ``separator`` as a delimiter string. @{servers} = [ fail_01_6201-vnf-mgmtVM-0 ] ${n_servers} ${servers} Returns and logs the length of the given item as an integer. Length is 1 ${n_servers} = 1 ${number} ${n_servers} Fails if objects are unequal after converting them to integers. Argument types are: <class 'str'> <class 'int'> 0 != 1 ${NS_NAME} 0 Check if the number of servers in Openstack by filtering by NS name is as expected. ${ns_name} Verifies that the given item is not empty. Length is 12 ${rc} ${stdout} openstack server list | grep ${ns_name} | awk '{print $4}' Runs the given command in the system and returns the RC and output. Running command 'openstack server list | grep fail_01_6201 | awk '{print $4}' 2>&1'. ${rc} = 0 ${stdout} = fail_01_6201-vnf-mgmtVM-0 ${stdout} Logs the given message with the given level. fail_01_6201-vnf-mgmtVM-0 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> @{servers} ${stdout} Splits the ``string`` using ``separator`` as a delimiter string. @{servers} = [ fail_01_6201-vnf-mgmtVM-0 ] ${n_servers} ${servers} Returns and logs the length of the given item as an integer. Length is 1 ${n_servers} = 1 ${number} ${n_servers} Fails if objects are unequal after converting them to integers. Argument types are: <class 'str'> <class 'int'> 0 != 1 ${NS_NAME} 0 Check if the number of servers in Openstack by filtering by NS name is as expected. ${ns_name} Verifies that the given item is not empty. Length is 12 ${rc} ${stdout} openstack server list | grep ${ns_name} | awk '{print $4}' Runs the given command in the system and returns the RC and output. Running command 'openstack server list | grep fail_01_6201 | awk '{print $4}' 2>&1'. ${rc} = 0 ${stdout} = fail_01_6201-vnf-mgmtVM-0 ${stdout} Logs the given message with the given level. fail_01_6201-vnf-mgmtVM-0 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> @{servers} ${stdout} Splits the ``string`` using ``separator`` as a delimiter string. @{servers} = [ fail_01_6201-vnf-mgmtVM-0 ] ${n_servers} ${servers} Returns and logs the length of the given item as an integer. Length is 1 ${n_servers} = 1 ${number} ${n_servers} Fails if objects are unequal after converting them to integers. Argument types are: <class 'str'> <class 'int'> 0 != 1 ${NS_NAME} 0 Check if the number of servers in Openstack by filtering by NS name is as expected. ${ns_name} Verifies that the given item is not empty. Length is 12 ${rc} ${stdout} openstack server list | grep ${ns_name} | awk '{print $4}' Runs the given command in the system and returns the RC and output. Running command 'openstack server list | grep fail_01_6201 | awk '{print $4}' 2>&1'. ${rc} = 0 ${stdout} = fail_01_6201-vnf-mgmtVM-0 ${stdout} Logs the given message with the given level. fail_01_6201-vnf-mgmtVM-0 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> @{servers} ${stdout} Splits the ``string`` using ``separator`` as a delimiter string. @{servers} = [ fail_01_6201-vnf-mgmtVM-0 ] ${n_servers} ${servers} Returns and logs the length of the given item as an integer. Length is 1 ${n_servers} = 1 ${number} ${n_servers} Fails if objects are unequal after converting them to integers. Argument types are: <class 'str'> <class 'int'> 0 != 1 ${NS_NAME} 0 Check if the number of servers in Openstack by filtering by NS name is as expected. ${ns_name} Verifies that the given item is not empty. Length is 12 ${rc} ${stdout} openstack server list | grep ${ns_name} | awk '{print $4}' Runs the given command in the system and returns the RC and output. Running command 'openstack server list | grep fail_01_6201 | awk '{print $4}' 2>&1'. ${rc} = 0 ${stdout} = fail_01_6201-vnf-mgmtVM-0 ${stdout} Logs the given message with the given level. fail_01_6201-vnf-mgmtVM-0 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> @{servers} ${stdout} Splits the ``string`` using ``separator`` as a delimiter string. @{servers} = [ fail_01_6201-vnf-mgmtVM-0 ] ${n_servers} ${servers} Returns and logs the length of the given item as an integer. Length is 1 ${n_servers} = 1 ${number} ${n_servers} Fails if objects are unequal after converting them to integers. Argument types are: <class 'str'> <class 'int'> 0 != 1 ${NS_NAME} 0 Check if the number of servers in Openstack by filtering by NS name is as expected. ${ns_name} Verifies that the given item is not empty. Length is 12 ${rc} ${stdout} openstack server list | grep ${ns_name} | awk '{print $4}' Runs the given command in the system and returns the RC and output. Running command 'openstack server list | grep fail_01_6201 | awk '{print $4}' 2>&1'. ${rc} = 0 ${stdout} = fail_01_6201-vnf-mgmtVM-0 ${stdout} Logs the given message with the given level. fail_01_6201-vnf-mgmtVM-0 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> @{servers} ${stdout} Splits the ``string`` using ``separator`` as a delimiter string. @{servers} = [ fail_01_6201-vnf-mgmtVM-0 ] ${n_servers} ${servers} Returns and logs the length of the given item as an integer. Length is 1 ${n_servers} = 1 ${number} ${n_servers} Fails if objects are unequal after converting them to integers. Argument types are: <class 'str'> <class 'int'> 0 != 1 ${NS_NAME} 0 Check if the number of servers in Openstack by filtering by NS name is as expected. ${ns_name} Verifies that the given item is not empty. Length is 12 ${rc} ${stdout} openstack server list | grep ${ns_name} | awk '{print $4}' Runs the given command in the system and returns the RC and output. Running command 'openstack server list | grep fail_01_6201 | awk '{print $4}' 2>&1'. ${rc} = 0 ${stdout} = ${stdout} Logs the given message with the given level. ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> @{servers} ${stdout} Splits the ``string`` using ``separator`` as a delimiter string. @{servers} = [ ] ${n_servers} ${servers} Returns and logs the length of the given item as an integer. Length is 0 ${n_servers} = 0 ${number} ${n_servers} Fails if objects are unequal after converting them to integers. Argument types are: <class 'str'> <class 'int'> Delete NS instance and check that the VMs have been deleted. cleanup cluster_main daily fail_01 regression ${NSD_NAME} Delete a NS package from OSM. ${rc} ${stdout} Run And Return Rc And Output osm nspkg-delete ${nsd_id} Runs the keyword and continues execution even if a failure occurs. osm nspkg-delete ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-delete simple_2vm-ns 2>&1'. ${rc} = 0 ${stdout} = Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Logs the given message with the given level. Deleted ${NSD_DELETE_MAX_WAIT_TIME} ${NSD_DELETE_POL_TIME} Check For NSD ${nsd_id} Runs the specified keyword and retries if it fails. ${nsd_id} Check that a NS package exists in OSM. ${rc} ${stdout} osm nspkg-list | awk '{print $2}' | grep ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-list | awk '{print $2}' | grep simple_2vm-ns 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. Delete NS package from OSM. cleanup cluster_main daily fail_01 regression ${VNFD_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete simple_2vm-vnf 2>&1'. ${rc} = 0 ${stdout} = Deleted ${stdout} Logs the given message with the given level. Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep simple_2vm-vnf 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. Delete VNF package from OSM. cleanup cluster_main daily fail_01 regression Suite Cleanup Runs the given keyword with the given arguments and ignores possible error. Test Suite Cleanup: Deleting descriptors and NS instance Delete NS ${NS_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete NSD ${NSD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete VNFD ${VNFD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. [FAIL-01] A single VNF with 2 VDUs, one of them unallocatable because of resources. '%{PACKAGES_FOLDER}/${VNFD_PKG}' Onboards ("creates") a NF Package into OSM. - Parameters: - vnfd_pkg: Name (and location) of the NF Package - overrides (optional): String with options to override the EPA and/or interface properties of the Package. This is very useful to allow to deploy e.g. non-EPA packages in EPA VIMs (or vice-versa). Valid strings are the same as in the command. E.g.: - `--override-epa`: adds EPA attributes to all VDUs. - `--override-nonepa`: removes all EPA attributes from all VDUs. - `--override-paravirt`: converts all interfaces to `PARAVIRT`. This one can be combined with the others above (e.g. '--override-nonepa --override-paravirt'). - Relevant environment variables: - OVERRIDES: If the environment variable "OVERRIDES" exists, it prevails over the value in the argument. This is often more convenient to enforce the same behaviour for every test run in a given VIM. ${overrides} OVERRIDES default=${overrides} Returns the value of an environment variable with the given name. ${overrides} = ${rc} ${stdout} osm vnfpkg-create ${overrides} ${vnfd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-create '/robot-systest/osm-packages/hackfest_basic_vnf' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/hackfest_basic_vnf Validation OK List of charms in the descriptor: set() Adding File: hackfest_basic_vnf Package created: /robot-systest/osm-packages/hac... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/hackfest_basic_vnf Validation OK List of charms in the descriptor: set() Adding File: hackfest_basic_vnf Package created: /robot-systest/osm-packages/hackfest_basic_vnf.tar.gz Uploading package /robot-systest/osm-packages/hackfest_basic_vnf.tar.gz 187988e9-b9f5-4954-b524-9f812acf537c ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 7 lines ${lines} = 7 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 6 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = 187988e9-b9f5-4954-b524-9f812acf537c ${id} Upload VNF package for the testsuite. azure cluster_main daily hackfest_basic regression sanity '%{PACKAGES_FOLDER}/${NSD_PKG}' Upload a NS package to OSM and return the id. ${rc} ${stdout} osm nspkg-create ${nsd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-create '/robot-systest/osm-packages/hackfest_basic_ns' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/hackfest_basic_ns Validation OK List of charms in the descriptor: set() Adding File: hackfest_basic_ns Package created: /robot-systest/osm-packages/hackf... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/hackfest_basic_ns Validation OK List of charms in the descriptor: set() Adding File: hackfest_basic_ns Package created: /robot-systest/osm-packages/hackfest_basic_ns.tar.gz f6cd7b1e-1d7a-4f36-a135-468b9f3631a4 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 6 lines ${lines} = 6 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 5 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = f6cd7b1e-1d7a-4f36-a135-468b9f3631a4 ${id} Upload NS package for the testsuite. azure cluster_main daily hackfest_basic regression sanity ${id} ${NSD_NAME} %{VIM_TARGET} ${NS_NAME} ${NS_CONFIG} ${PUBLICKEY} Launch the instantation of a NS and verify in a loop that the NS instance is successfully created in a given time, and return the NS instance id. ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_launch_max_wait_time} = 300.0 ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_launch_max_wait_time} = 300.0 ${ns_launch_max_wait_time} Logs the given message with the given level. 300.0 ${config_attr} '${ns_config}'!='${EMPTY}' --config '${ns_config}' ${EMPTY} Sets variable based on the given condition. ${config_attr} = --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext} ] }' ${sshkeys_attr} '${publickey}'!='${EMPTY}' --ssh_keys ${publickey} ${EMPTY} Sets variable based on the given condition. ${sshkeys_attr} = --ssh_keys /root/.ssh/id_rsa.pub ${config_file_attr} '${config_file}'!='${EMPTY}' --config_file '${config_file}' ${EMPTY} Sets variable based on the given condition. ${config_file_attr} = ${ns_id} ${ns_name} ${nsd} ${vim_name} ${config_attr} ${sshkeys_attr} ${config_file_attr} Launch the instantation of a NS, and return the NS instance id. ${rc} ${stdout} osm ns-create --ns_name ${ns_name} --nsd_name ${nsd} --vim_account ${vim_name} ${ns_extra_args} Runs the given command in the system and returns the RC and output. Running command 'osm ns-create --ns_name hfbasic --nsd_name hackfest_basic-ns --vim_account osm --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext} ] }' --ssh_keys /root/.ssh/id_rsa.pub 2>&1'. ${rc} = 0 ${stdout} = a5ac363d-20f4-41ac-8d47-101bac7fb381 ${stdout} Logs the given message with the given level. a5ac363d-20f4-41ac-8d47-101bac7fb381 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = a5ac363d-20f4-41ac-8d47-101bac7fb381 ${ns_id} Logs the given message with the given level. a5ac363d-20f4-41ac-8d47-101bac7fb381 ${ns_launch_max_wait_time} ${NS_LAUNCH_POL_TIME} Check For NS Instance To Configured ${ns_name} Runs the specified keyword and retries if it fails. ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | ID... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 17eb49aa-605c-40d3-aabe-4e7cc2231dfb | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.183 | ubuntu20.04 | several_volumes-VM-flv | | 2b9b1707-cf55-4b3c-b8f5-355446202410 | sa_02-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.249.48 | ubuntu20.04 | simple_requires-1-1-flv | | b1f0f3d6-6268-4f95-bb4e-b3e9be0f0c1c | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.225.122; osm-ext=172.21.248.208 | ubuntu18.04 | simple_requires-1-1-flv | | f88c2de2-5d88-4dc4-a9db-927de19d58fd | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.225.93; osm-ext=172.21.249.47 | ubuntu18.04 | simple_requires-1-1-flv | | cd77516e-1498-48e2-bcae-4600ba52724d | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.35 | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="hfbasic" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | hfbasic | a5ac363d-20f4-41ac-8d47-101bac7fb381 | 2024-02-19T03:44:57 | BUILDING | INSTANTIATING (72cb7cc5-c138-498b-bf21-60b6bd6fa6f7) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | hfbasic | a5ac363d-20f4-41ac-8d47-101bac7fb381 | 2024-02-19T03:44:57 | BUILDING | INSTANTIATING (72cb7cc5-c138-498b-bf21-60b6bd6fa6f7) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+---------+---------------------------------------------------------+-------------+-------------------------+ | I... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+---------+---------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+---------+---------------------------------------------------------+-------------+-------------------------+ | 02de867d-96fd-4cd5-ac56-27e95e564f17 | hfbasic-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.120 | ubuntu20.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 17eb49aa-605c-40d3-aabe-4e7cc2231dfb | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.183 | ubuntu20.04 | several_volumes-VM-flv | | 2b9b1707-cf55-4b3c-b8f5-355446202410 | sa_02-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.249.48 | ubuntu20.04 | simple_requires-1-1-flv | | b1f0f3d6-6268-4f95-bb4e-b3e9be0f0c1c | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.225.122; osm-ext=172.21.248.208 | ubuntu18.04 | simple_requires-1-1-flv | | f88c2de2-5d88-4dc4-a9db-927de19d58fd | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.225.93; osm-ext=172.21.249.47 | ubuntu18.04 | simple_requires-1-1-flv | | cd77516e-1498-48e2-bcae-4600ba52724d | sa_02-vnf-hackfest_basic_metrics-VM-0 | DELETED | | ubuntu20.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+---------+---------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="hfbasic" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | hfbasic | a5ac363d-20f4-41ac-8d47-101bac7fb381 | 2024-02-19T03:44:57 | READY | IDLE (None) | N/A | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. ${ns_name} Check if a given NS instance has not failed in the instantiation (the status should not be BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | ID... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | 02de867d-96fd-4cd5-ac56-27e95e564f17 | hfbasic-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.120 | ubuntu20.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 17eb49aa-605c-40d3-aabe-4e7cc2231dfb | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.183 | ubuntu20.04 | several_volumes-VM-flv | | b1f0f3d6-6268-4f95-bb4e-b3e9be0f0c1c | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.225.122; osm-ext=172.21.248.208 | ubuntu18.04 | simple_requires-1-1-flv | | f88c2de2-5d88-4dc4-a9db-927de19d58fd | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | osm-ext=172.21.249.47 | ubuntu18.04 | simple_requires-1-1-flv | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="hfbasic" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | hfbasic | a5ac363d-20f4-41ac-8d47-101bac7fb381 | 2024-02-19T03:44:57 | READY | IDLE (None) | N/A | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} BROKEN Fails if ``container`` contains ``item`` one or more times. ${ns_id} ${id} = a5ac363d-20f4-41ac-8d47-101bac7fb381 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = a5ac363d-20f4-41ac-8d47-101bac7fb381 Instantiate NS for the testsuite. azure cluster_main daily hackfest_basic regression sanity ${ip_addr} ${NS_ID} ${VNF_MEMBER_INDEX} Get the mgmt IP address of a member VNF in a NS instance, and return it. ${ns_id} Verifies that the given item is not empty. Length is 36 ${vnf_member_index} Verifies that the given item is not empty. Length is 3 ${rc} ${stdout} osm vnf-list --filter member-vnf-index-ref=${vnf_member_index} | grep ${ns_id} | awk '{print $14}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm vnf-list --filter member-vnf-index-ref=vnf | grep a5ac363d-20f4-41ac-8d47-101bac7fb381 | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.248.120 ${stdout} Logs the given message with the given level. 172.21.248.120 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ip_addr} = 172.21.248.120 ${ip_addr} Logs the given message with the given level. 172.21.248.120 ${VNF_IP_ADDR} ${ip_addr} Makes a variable available everywhere within the scope of the current suite. ${VNF_IP_ADDR} = 172.21.248.120 Get the mgmt IP address of the VNF of the NS. azure cluster_main daily hackfest_basic regression sanity ${VNF_IP_ADDR} Ping a host several times during 30sec until it succeeds or raises a timeout. ${CONNECTIVITY_MAX_WAIT_TIME} ${CONNECTIVITY_POL_TIME} Test Ping Host ${host} Runs the specified keyword and retries if it fails. ${host} Run Ping Parameters: host: IP or name of the host Execution example: Ping Test ${host} ${rc} ${stdout} ping -c 2 -W 1 ${host} Runs the given command in the system and returns the RC and output. Running command 'ping -c 2 -W 1 172.21.248.120 2>&1'. ${rc} = 0 ${stdout} = PING 172.21.248.120 (172.21.248.120) 56(84) bytes of data. 64 bytes from 172.21.248.120: icmp_seq=1 ttl=63 time=2.27 ms 64 bytes from 172.21.248.120: icmp_seq=2 ttl=63 time=1.02 ms --- 172.21.248.120... ${stdout} Logs the given message with the given level. PING 172.21.248.120 (172.21.248.120) 56(84) bytes of data. 64 bytes from 172.21.248.120: icmp_seq=1 ttl=63 time=2.27 ms 64 bytes from 172.21.248.120: icmp_seq=2 ttl=63 time=1.02 ms --- 172.21.248.120 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1001ms rtt min/avg/max/mdev = 1.023/1.644/2.266/0.621 ms ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> Test that the mgmt IP address of the VNF is reachable with ping. azure cluster_main daily hackfest_basic regression sanity 30s Waiting ssh daemon to be up Pauses the test executed for the given time. Slept 30 seconds Waiting ssh daemon to be up ${VNF_IP_ADDR} ${USERNAME} ${PASSWORD} ${PRIVATEKEY} Test the SSH connection to the host with the user and credentials passed as arguments. ${host} Opens a new SSH connection to the given ``host`` and ``port``. ${username} ${password} Logs into the SSH server with the given ``username`` and ``password``. ${username} ${privatekey} Logs into the SSH server using key-based authentication. Logging into '172.21.248.120:22' as 'ubuntu'. Read output: Welcome to Ubuntu 20.04.4 LTS (GNU/Linux 5.4.0-107-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Mon Feb 19 03:46:10 UTC 2024 System load: 0.78 Processes: 104 Usage of /: 14.0% of 9.52GB Users logged in: 0 Memory usage: 20% IPv4 address for ens3: 172.21.248.120 Swap usage: 0% 1 update can be applied immediately. To see these additional updates run: apt list --upgradable The list of available updates is more than a week old. To check for new updates run: sudo apt update The programs included with the Ubuntu system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. ubuntu@hfbasic-vnf-hackfest-basic-vm-0:~$ hostname Executes ``command`` on the remote machine and returns its outputs. Executing command 'hostname'. Command exited with return code 0. Closes all open connections. Check that the VNF is accessible via SSH in its mgmt IP address. azure cluster_main daily hackfest_basic regression sanity ${NS_NAME} Delete a NS instance. ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} Logs the given message with the given level. 240.0 ${rc} ${stdout} osm ns-delete ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-delete hfbasic 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${stdout} Logs the given message with the given level. Deletion in progress ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${ns_delete_max_wait_time} ${NS_DELETE_POL_TIME} Check For NS Instance To Be Deleted ${ns} Runs the specified keyword and retries if it fails. ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | N... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ | c0705d0b-73e0-4b40-b901-c35bef57059a | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.249.50 | ubuntu20.04 | simple_requires-1-1-flv | | 02de867d-96fd-4cd5-ac56-27e95e564f17 | hfbasic-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.120 | ubuntu20.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep hfbasic 2>&1'. ${rc} = 0 ${stdout} = hfbasic ${rc},${stdout} Logs the given message with the given level. 0,hfbasic ${stdout} ${ns} Fails if objects are equal after converting them to strings. hfbasic == hfbasic ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | N... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ | c0705d0b-73e0-4b40-b901-c35bef57059a | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.249.50 | ubuntu20.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep hfbasic 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${ns} Fails if objects are equal after converting them to strings. Delete NS instance. azure cleanup cluster_main daily hackfest_basic regression sanity ${NSD_NAME} Delete a NS package from OSM. ${rc} ${stdout} Run And Return Rc And Output osm nspkg-delete ${nsd_id} Runs the keyword and continues execution even if a failure occurs. osm nspkg-delete ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-delete hackfest_basic-ns 2>&1'. ${rc} = 0 ${stdout} = Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Logs the given message with the given level. Deleted ${NSD_DELETE_MAX_WAIT_TIME} ${NSD_DELETE_POL_TIME} Check For NSD ${nsd_id} Runs the specified keyword and retries if it fails. ${nsd_id} Check that a NS package exists in OSM. ${rc} ${stdout} osm nspkg-list | awk '{print $2}' | grep ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-list | awk '{print $2}' | grep hackfest_basic-ns 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. Delete NS package from OSM. azure cleanup cluster_main daily hackfest_basic regression sanity ${VNFD_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete hackfest_basic-vnf 2>&1'. ${rc} = 0 ${stdout} = Deleted ${stdout} Logs the given message with the given level. Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep hackfest_basic-vnf 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. Delete VNF package from OSM. azure cleanup cluster_main daily hackfest_basic regression sanity Suite Cleanup Runs the given keyword with the given arguments and ignores possible error. Test Suit Cleanup: Deleting Descriptor, instance and vim Delete NS ${NS_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete NSD ${NSD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete VNFD ${VNFD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. [HACKFEST-BASIC] Basic NS with a single-VDU VNF '%{PACKAGES_FOLDER}/${VNFD_PKG}' Onboards ("creates") a NF Package into OSM. - Parameters: - vnfd_pkg: Name (and location) of the NF Package - overrides (optional): String with options to override the EPA and/or interface properties of the Package. This is very useful to allow to deploy e.g. non-EPA packages in EPA VIMs (or vice-versa). Valid strings are the same as in the command. E.g.: - `--override-epa`: adds EPA attributes to all VDUs. - `--override-nonepa`: removes all EPA attributes from all VDUs. - `--override-paravirt`: converts all interfaces to `PARAVIRT`. This one can be combined with the others above (e.g. '--override-nonepa --override-paravirt'). - Relevant environment variables: - OVERRIDES: If the environment variable "OVERRIDES" exists, it prevails over the value in the argument. This is often more convenient to enforce the same behaviour for every test run in a given VIM. ${overrides} OVERRIDES default=${overrides} Returns the value of an environment variable with the given name. ${overrides} = ${rc} ${stdout} osm vnfpkg-create ${overrides} ${vnfd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-create '/robot-systest/osm-packages/hackfest_cloudinit_vnf' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/hackfest_cloudinit_vnf Validation OK List of charms in the descriptor: set() Adding File: hackfest_cloudinit_vnf Package created: /robot-systest/osm-pack... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/hackfest_cloudinit_vnf Validation OK List of charms in the descriptor: set() Adding File: hackfest_cloudinit_vnf Package created: /robot-systest/osm-packages/hackfest_cloudinit_vnf.tar.gz Uploading package /robot-systest/osm-packages/hackfest_cloudinit_vnf.tar.gz 617b107d-e409-4f44-8a6f-6061b31578ec ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 7 lines ${lines} = 7 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 6 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = 617b107d-e409-4f44-8a6f-6061b31578ec ${id} Upload VNF package for the testsuite. azure cluster_main daily hackfest_cloudinit regression sanity '%{PACKAGES_FOLDER}/${NSD_PKG}' Upload a NS package to OSM and return the id. ${rc} ${stdout} osm nspkg-create ${nsd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-create '/robot-systest/osm-packages/hackfest_cloudinit_ns' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/hackfest_cloudinit_ns Validation OK List of charms in the descriptor: set() Adding File: hackfest_cloudinit_ns Package created: /robot-systest/osm-packag... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/hackfest_cloudinit_ns Validation OK List of charms in the descriptor: set() Adding File: hackfest_cloudinit_ns Package created: /robot-systest/osm-packages/hackfest_cloudinit_ns.tar.gz 9bb00f64-45d2-4ec2-8867-c850ce2754ff ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 6 lines ${lines} = 6 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 5 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = 9bb00f64-45d2-4ec2-8867-c850ce2754ff ${id} Upload NS package for the testsuite. azure cluster_main daily hackfest_cloudinit regression sanity ${id} ${NSD_NAME} %{VIM_TARGET} ${NS_NAME} ${NS_CONFIG} ${EMPTY} Launch the instantation of a NS and verify in a loop that the NS instance is successfully created in a given time, and return the NS instance id. ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_launch_max_wait_time} = 300.0 ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_launch_max_wait_time} = 300.0 ${ns_launch_max_wait_time} Logs the given message with the given level. 300.0 ${config_attr} '${ns_config}'!='${EMPTY}' --config '${ns_config}' ${EMPTY} Sets variable based on the given condition. ${config_attr} = --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext} ] }' ${sshkeys_attr} '${publickey}'!='${EMPTY}' --ssh_keys ${publickey} ${EMPTY} Sets variable based on the given condition. ${sshkeys_attr} = ${config_file_attr} '${config_file}'!='${EMPTY}' --config_file '${config_file}' ${EMPTY} Sets variable based on the given condition. ${config_file_attr} = ${ns_id} ${ns_name} ${nsd} ${vim_name} ${config_attr} ${sshkeys_attr} ${config_file_attr} Launch the instantation of a NS, and return the NS instance id. ${rc} ${stdout} osm ns-create --ns_name ${ns_name} --nsd_name ${nsd} --vim_account ${vim_name} ${ns_extra_args} Runs the given command in the system and returns the RC and output. Running command 'osm ns-create --ns_name hfcloudinit --nsd_name hackfest_cloudinit-ns --vim_account osm --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext} ] }' 2>&1'. ${rc} = 0 ${stdout} = 85336811-93ce-44d1-a670-208ed3af8453 ${stdout} Logs the given message with the given level. 85336811-93ce-44d1-a670-208ed3af8453 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 85336811-93ce-44d1-a670-208ed3af8453 ${ns_id} Logs the given message with the given level. 85336811-93ce-44d1-a670-208ed3af8453 ${ns_launch_max_wait_time} ${NS_LAUNCH_POL_TIME} Check For NS Instance To Configured ${ns_name} Runs the specified keyword and retries if it fails. ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | N... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ | c0705d0b-73e0-4b40-b901-c35bef57059a | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.249.50 | ubuntu20.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="hfcloudinit" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | hfcloudinit | 85336811-93ce-44d1-a670-208ed3af8453 | 2024-02-19T03:46:46 | BUILDING | INSTANTIATING (a16a179f-3f42-49b4-a90d-05842c4a2cfe) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | hfcloudinit | 85336811-93ce-44d1-a670-208ed3af8453 | 2024-02-19T03:46:46 | BUILDING | INSTANTIATING (a16a179f-3f42-49b4-a90d-05842c4a2cfe) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+------------------------+-------------+-------------------------+ | 47633082-4e77-4328-ab18-b301fa78984f | hfcloudinit-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | b9da49fa-cd62-41bb-b449-e418418ac2d5 | hfcloudinit-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | d13d5f6f-9e33-42c9-8cd0-46399a7e5084 | hfcloudinit-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 41aee01b-bb1d-40f5-830f-ad7b49201a0e | hfcloudinit-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 6a9aafdf-dc2a-424c-9bfe-6f328585afb8 | heal_02-charm_vnf-mgmtVM-1 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 45b73b3e-fd7c-4b26-ad4d-a9a3f8eb800d | heal_02-charm_vnf-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 62be150d-6009-41d2-96af-f26e13a495f7 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.109 | ubuntu20.04 | several_volumes-VM-flv | | c0705d0b-73e0-4b40-b901-c35bef57059a | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.249.50 | ubuntu20.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="hfcloudinit" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | hfcloudinit | 85336811-93ce-44d1-a670-208ed3af8453 | 2024-02-19T03:46:46 | BUILDING | INSTANTIATING (a16a179f-3f42-49b4-a90d-05842c4a2cfe) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | hfcloudinit | 85336811-93ce-44d1-a670-208ed3af8453 | 2024-02-19T03:46:46 | BUILDING | INSTANTIATING (a16a179f-3f42-49b4-a90d-05842c4a2cfe) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | 9e674e36-5805-4499-adfe-2b624da10795 | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.57 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | 47633082-4e77-4328-ab18-b301fa78984f | hfcloudinit-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | b9da49fa-cd62-41bb-b449-e418418ac2d5 | hfcloudinit-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | d13d5f6f-9e33-42c9-8cd0-46399a7e5084 | hfcloudinit-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 41aee01b-bb1d-40f5-830f-ad7b49201a0e | hfcloudinit-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 6a9aafdf-dc2a-424c-9bfe-6f328585afb8 | heal_02-charm_vnf-mgmtVM-1 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 45b73b3e-fd7c-4b26-ad4d-a9a3f8eb800d | heal_02-charm_vnf-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 62be150d-6009-41d2-96af-f26e13a495f7 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.109 | ubuntu20.04 | several_volumes-VM-flv | | c0705d0b-73e0-4b40-b901-c35bef57059a | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.249.50 | ubuntu20.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+------------------------+------------------------------+--------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="hfcloudinit" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | hfcloudinit | 85336811-93ce-44d1-a670-208ed3af8453 | 2024-02-19T03:46:46 | BUILDING | INSTANTIATING (a16a179f-3f42-49b4-a90d-05842c4a2cfe) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | hfcloudinit | 85336811-93ce-44d1-a670-208ed3af8453 | 2024-02-19T03:46:46 | BUILDING | INSTANTIATING (a16a179f-3f42-49b4-a90d-05842c4a2cfe) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | 9e674e36-5805-4499-adfe-2b624da10795 | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.57 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | 47633082-4e77-4328-ab18-b301fa78984f | hfcloudinit-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | b9da49fa-cd62-41bb-b449-e418418ac2d5 | hfcloudinit-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | d13d5f6f-9e33-42c9-8cd0-46399a7e5084 | hfcloudinit-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 41aee01b-bb1d-40f5-830f-ad7b49201a0e | hfcloudinit-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 6a9aafdf-dc2a-424c-9bfe-6f328585afb8 | heal_02-charm_vnf-mgmtVM-1 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 45b73b3e-fd7c-4b26-ad4d-a9a3f8eb800d | heal_02-charm_vnf-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 62be150d-6009-41d2-96af-f26e13a495f7 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.109 | ubuntu20.04 | several_volumes-VM-flv | | c0705d0b-73e0-4b40-b901-c35bef57059a | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.249.50 | ubuntu20.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+------------------------+------------------------------+--------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="hfcloudinit" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | hfcloudinit | 85336811-93ce-44d1-a670-208ed3af8453 | 2024-02-19T03:46:46 | BUILDING | INSTANTIATING (a16a179f-3f42-49b4-a90d-05842c4a2cfe) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | hfcloudinit | 85336811-93ce-44d1-a670-208ed3af8453 | 2024-02-19T03:46:46 | BUILDING | INSTANTIATING (a16a179f-3f42-49b4-a90d-05842c4a2cfe) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | 9e674e36-5805-4499-adfe-2b624da10795 | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.57 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | 47633082-4e77-4328-ab18-b301fa78984f | hfcloudinit-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | b9da49fa-cd62-41bb-b449-e418418ac2d5 | hfcloudinit-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | d13d5f6f-9e33-42c9-8cd0-46399a7e5084 | hfcloudinit-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 41aee01b-bb1d-40f5-830f-ad7b49201a0e | hfcloudinit-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 6a9aafdf-dc2a-424c-9bfe-6f328585afb8 | heal_02-charm_vnf-mgmtVM-1 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 45b73b3e-fd7c-4b26-ad4d-a9a3f8eb800d | heal_02-charm_vnf-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 62be150d-6009-41d2-96af-f26e13a495f7 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.109 | ubuntu20.04 | several_volumes-VM-flv | | c0705d0b-73e0-4b40-b901-c35bef57059a | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.249.50 | ubuntu20.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+------------------------+------------------------------+--------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="hfcloudinit" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | hfcloudinit | 85336811-93ce-44d1-a670-208ed3af8453 | 2024-02-19T03:46:46 | BUILDING | INSTANTIATING (a16a179f-3f42-49b4-a90d-05842c4a2cfe) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | hfcloudinit | 85336811-93ce-44d1-a670-208ed3af8453 | 2024-02-19T03:46:46 | BUILDING | INSTANTIATING (a16a179f-3f42-49b4-a90d-05842c4a2cfe) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | 9e674e36-5805-4499-adfe-2b624da10795 | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.57 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | 47633082-4e77-4328-ab18-b301fa78984f | hfcloudinit-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | b9da49fa-cd62-41bb-b449-e418418ac2d5 | hfcloudinit-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | d13d5f6f-9e33-42c9-8cd0-46399a7e5084 | hfcloudinit-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 41aee01b-bb1d-40f5-830f-ad7b49201a0e | hfcloudinit-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 6a9aafdf-dc2a-424c-9bfe-6f328585afb8 | heal_02-charm_vnf-mgmtVM-1 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 45b73b3e-fd7c-4b26-ad4d-a9a3f8eb800d | heal_02-charm_vnf-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 62be150d-6009-41d2-96af-f26e13a495f7 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.109 | ubuntu20.04 | several_volumes-VM-flv | | c0705d0b-73e0-4b40-b901-c35bef57059a | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.249.50 | ubuntu20.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+------------------------+------------------------------+--------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="hfcloudinit" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | hfcloudinit | 85336811-93ce-44d1-a670-208ed3af8453 | 2024-02-19T03:46:46 | BUILDING | INSTANTIATING (a16a179f-3f42-49b4-a90d-05842c4a2cfe) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | hfcloudinit | 85336811-93ce-44d1-a670-208ed3af8453 | 2024-02-19T03:46:46 | BUILDING | INSTANTIATING (a16a179f-3f42-49b4-a90d-05842c4a2cfe) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | 9e674e36-5805-4499-adfe-2b624da10795 | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.57 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | 47633082-4e77-4328-ab18-b301fa78984f | hfcloudinit-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | b9da49fa-cd62-41bb-b449-e418418ac2d5 | hfcloudinit-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | d13d5f6f-9e33-42c9-8cd0-46399a7e5084 | hfcloudinit-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 41aee01b-bb1d-40f5-830f-ad7b49201a0e | hfcloudinit-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 6a9aafdf-dc2a-424c-9bfe-6f328585afb8 | heal_02-charm_vnf-mgmtVM-1 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 45b73b3e-fd7c-4b26-ad4d-a9a3f8eb800d | heal_02-charm_vnf-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 62be150d-6009-41d2-96af-f26e13a495f7 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.109 | ubuntu20.04 | several_volumes-VM-flv | | c0705d0b-73e0-4b40-b901-c35bef57059a | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.249.50 | ubuntu20.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+------------------------+------------------------------+--------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="hfcloudinit" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | hfcloudinit | 85336811-93ce-44d1-a670-208ed3af8453 | 2024-02-19T03:46:46 | BUILDING | INSTANTIATING (a16a179f-3f42-49b4-a90d-05842c4a2cfe) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | hfcloudinit | 85336811-93ce-44d1-a670-208ed3af8453 | 2024-02-19T03:46:46 | BUILDING | INSTANTIATING (a16a179f-3f42-49b4-a90d-05842c4a2cfe) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | 9e674e36-5805-4499-adfe-2b624da10795 | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.57 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | 47633082-4e77-4328-ab18-b301fa78984f | hfcloudinit-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | b9da49fa-cd62-41bb-b449-e418418ac2d5 | hfcloudinit-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | d13d5f6f-9e33-42c9-8cd0-46399a7e5084 | hfcloudinit-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 41aee01b-bb1d-40f5-830f-ad7b49201a0e | hfcloudinit-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 6a9aafdf-dc2a-424c-9bfe-6f328585afb8 | heal_02-charm_vnf-mgmtVM-1 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 45b73b3e-fd7c-4b26-ad4d-a9a3f8eb800d | heal_02-charm_vnf-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 62be150d-6009-41d2-96af-f26e13a495f7 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.109 | ubuntu20.04 | several_volumes-VM-flv | | c0705d0b-73e0-4b40-b901-c35bef57059a | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.249.50 | ubuntu20.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+------------------------+------------------------------+--------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="hfcloudinit" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | hfcloudinit | 85336811-93ce-44d1-a670-208ed3af8453 | 2024-02-19T03:46:46 | BUILDING | INSTANTIATING (a16a179f-3f42-49b4-a90d-05842c4a2cfe) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | hfcloudinit | 85336811-93ce-44d1-a670-208ed3af8453 | 2024-02-19T03:46:46 | BUILDING | INSTANTIATING (a16a179f-3f42-49b4-a90d-05842c4a2cfe) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | 9e674e36-5805-4499-adfe-2b624da10795 | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.57 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | 47633082-4e77-4328-ab18-b301fa78984f | hfcloudinit-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | b9da49fa-cd62-41bb-b449-e418418ac2d5 | hfcloudinit-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | d13d5f6f-9e33-42c9-8cd0-46399a7e5084 | hfcloudinit-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 41aee01b-bb1d-40f5-830f-ad7b49201a0e | hfcloudinit-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 6a9aafdf-dc2a-424c-9bfe-6f328585afb8 | heal_02-charm_vnf-mgmtVM-1 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 45b73b3e-fd7c-4b26-ad4d-a9a3f8eb800d | heal_02-charm_vnf-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 62be150d-6009-41d2-96af-f26e13a495f7 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.109 | ubuntu20.04 | several_volumes-VM-flv | | c0705d0b-73e0-4b40-b901-c35bef57059a | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.249.50 | ubuntu20.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+------------------------+------------------------------+--------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="hfcloudinit" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | hfcloudinit | 85336811-93ce-44d1-a670-208ed3af8453 | 2024-02-19T03:46:46 | BUILDING | INSTANTIATING (a16a179f-3f42-49b4-a90d-05842c4a2cfe) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | hfcloudinit | 85336811-93ce-44d1-a670-208ed3af8453 | 2024-02-19T03:46:46 | BUILDING | INSTANTIATING (a16a179f-3f42-49b4-a90d-05842c4a2cfe) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | 9e674e36-5805-4499-adfe-2b624da10795 | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.57 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | 47633082-4e77-4328-ab18-b301fa78984f | hfcloudinit-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | b9da49fa-cd62-41bb-b449-e418418ac2d5 | hfcloudinit-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | d13d5f6f-9e33-42c9-8cd0-46399a7e5084 | hfcloudinit-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 41aee01b-bb1d-40f5-830f-ad7b49201a0e | hfcloudinit-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 6a9aafdf-dc2a-424c-9bfe-6f328585afb8 | heal_02-charm_vnf-mgmtVM-1 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 45b73b3e-fd7c-4b26-ad4d-a9a3f8eb800d | heal_02-charm_vnf-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 62be150d-6009-41d2-96af-f26e13a495f7 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.109 | ubuntu20.04 | several_volumes-VM-flv | | c0705d0b-73e0-4b40-b901-c35bef57059a | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.249.50 | ubuntu20.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+------------------------+------------------------------+--------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="hfcloudinit" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | hfcloudinit | 85336811-93ce-44d1-a670-208ed3af8453 | 2024-02-19T03:46:46 | BUILDING | INSTANTIATING (a16a179f-3f42-49b4-a90d-05842c4a2cfe) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | hfcloudinit | 85336811-93ce-44d1-a670-208ed3af8453 | 2024-02-19T03:46:46 | BUILDING | INSTANTIATING (a16a179f-3f42-49b4-a90d-05842c4a2cfe) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' Keyword 'Check For NS Instance To Configured' failed after retrying for 5 minutes. The last error was: '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | hfcloudinit | 85336811-93ce-44d1-a670-208ed3af8453 | 2024-02-19T03:46:46 | BUILDING | INSTANTIATING (a16a179f-3f42-49b4-a90d-05842c4a2cfe) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has not failed in the instantiation (the status should not be BROKEN). ${ns_id} ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. Instantiate NS for the testsuite. azure cluster_main daily hackfest_cloudinit regression sanity Keyword 'Check For NS Instance To Configured' failed after retrying for 5 minutes. The last error was: '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | hfcloudinit | 85336811-93ce-44d1-a670-208ed3af8453 | 2024-02-19T03:46:46 | BUILDING | INSTANTIATING (a16a179f-3f42-49b4-a90d-05842c4a2cfe) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ip_addr} ${NS_ID} ${VNF_MEMBER_INDEX} Get the mgmt IP address of a member VNF in a NS instance, and return it. ${ns_id} Verifies that the given item is not empty. Length is 0 '' should not be empty. ${vnf_member_index} Verifies that the given item is not empty. ${rc} ${stdout} osm vnf-list --filter member-vnf-index-ref=${vnf_member_index} | grep ${ns_id} | awk '{print $14}' 2>&1 Runs the given command in the system and returns the RC and output. ${stdout} Logs the given message with the given level. ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. ${stdout} ${ip_addr} Logs the given message with the given level. ${VNF_IP_ADDR} ${ip_addr} Makes a variable available everywhere within the scope of the current suite. Get the mgmt IP address of the VNF of the NS. azure cluster_main daily hackfest_cloudinit regression sanity '' should not be empty. 30s Waiting ssh daemon to be up Pauses the test executed for the given time. Slept 30 seconds Waiting ssh daemon to be up ${VNF_IP_ADDR} ${USERNAME} ${PASSWORD} ${EMPTY} Test the SSH connection to the host with the user and credentials passed as arguments. ${host} Opens a new SSH connection to the given ``host`` and ``port``. ${username} ${password} Logs into the SSH server with the given ``username`` and ``password``. Logging into ':22' as 'ubuntu'. gaierror: [Errno -2] Name or service not known ${username} ${privatekey} Logs into the SSH server using key-based authentication. hostname Executes ``command`` on the remote machine and returns its outputs. Closes all open connections. Check that the VNF is accessible via SSH in its mgmt IP address. azure cluster_main daily hackfest_cloudinit regression sanity gaierror: [Errno -2] Name or service not known ${stdout} ${VNF_IP_ADDR} ${USERNAME} ${PASSWORD} ${EMPTY} sudo cat /root/helloworld.txt Execute via SSH a command in a remote host and, if the command succeeds, return the output. ${host} Opens a new SSH connection to the given ``host`` and ``port``. ${username} ${password} Logs into the SSH server with the given ``username`` and ``password``. Logging into ':22' as 'ubuntu'. gaierror: [Errno -2] Name or service not known ${username} ${privatekey} Logs into the SSH server using key-based authentication. ${stdout} ${rc} ${command} return_rc=True return_stdout=True Executes ``command`` on the remote machine and returns its outputs. ${rc} Logs the given message with the given level. ${stdout} Logs the given message with the given level. Closes all open connections. ${rc} 0 Fails if objects are unequal after converting them to integers. ${stdout} ${stdout} Logs the given message with the given level. Check that the day-0 configuration via cloudinit worked as expected in the VNF. A file should exist in the VM. azure cluster_main daily hackfest_cloudinit regression sanity gaierror: [Errno -2] Name or service not known ${NS_NAME} Delete a NS instance. ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} Logs the given message with the given level. 240.0 ${rc} ${stdout} osm ns-delete ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-delete hfcloudinit 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${stdout} Logs the given message with the given level. Deletion in progress ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${ns_delete_max_wait_time} ${NS_DELETE_POL_TIME} Check For NS Instance To Be Deleted ${ns} Runs the specified keyword and retries if it fails. ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | 9e674e36-5805-4499-adfe-2b624da10795 | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.57 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | 47633082-4e77-4328-ab18-b301fa78984f | hfcloudinit-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | b9da49fa-cd62-41bb-b449-e418418ac2d5 | hfcloudinit-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | d13d5f6f-9e33-42c9-8cd0-46399a7e5084 | hfcloudinit-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 41aee01b-bb1d-40f5-830f-ad7b49201a0e | hfcloudinit-vnf1-mgmtVM-0 | ERROR | | ubuntu20.04 | simple_requires-1-1-flv | | 6a9aafdf-dc2a-424c-9bfe-6f328585afb8 | heal_02-charm_vnf-mgmtVM-1 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 45b73b3e-fd7c-4b26-ad4d-a9a3f8eb800d | heal_02-charm_vnf-mgmtVM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 62be150d-6009-41d2-96af-f26e13a495f7 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | | ubuntu20.04 | several_volumes-VM-flv | | c0705d0b-73e0-4b40-b901-c35bef57059a | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.249.50 | ubuntu20.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+------------------------+------------------------------+--------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep hfcloudinit 2>&1'. ${rc} = 0 ${stdout} = hfcloudinit ${rc},${stdout} Logs the given message with the given level. 0,hfcloudinit ${stdout} ${ns} Fails if objects are equal after converting them to strings. hfcloudinit == hfcloudinit ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | 9e674e36-5805-4499-adfe-2b624da10795 | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.57 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | 47633082-4e77-4328-ab18-b301fa78984f | hfcloudinit-vnf2-dataVM-0 | ERROR | | ubuntu20.04 | simple_requires-1-1-flv | | b9da49fa-cd62-41bb-b449-e418418ac2d5 | hfcloudinit-vnf2-mgmtVM-0 | ERROR | | ubuntu20.04 | simple_requires-1-1-flv | | d13d5f6f-9e33-42c9-8cd0-46399a7e5084 | hfcloudinit-vnf1-dataVM-0 | ERROR | | ubuntu20.04 | simple_requires-1-1-flv | | 41aee01b-bb1d-40f5-830f-ad7b49201a0e | hfcloudinit-vnf1-mgmtVM-0 | ERROR | | ubuntu20.04 | simple_requires-1-1-flv | | c0705d0b-73e0-4b40-b901-c35bef57059a | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.249.50 | ubuntu20.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------+--------+------------------------+------------------------------+--------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep hfcloudinit 2>&1'. ${rc} = 0 ${stdout} = hfcloudinit ${rc},${stdout} Logs the given message with the given level. 0,hfcloudinit ${stdout} ${ns} Fails if objects are equal after converting them to strings. hfcloudinit == hfcloudinit ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | 9e674e36-5805-4499-adfe-2b624da10795 | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.57 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | 47633082-4e77-4328-ab18-b301fa78984f | hfcloudinit-vnf2-dataVM-0 | ERROR | | ubuntu20.04 | simple_requires-1-1-flv | | b9da49fa-cd62-41bb-b449-e418418ac2d5 | hfcloudinit-vnf2-mgmtVM-0 | ERROR | | ubuntu20.04 | simple_requires-1-1-flv | | d13d5f6f-9e33-42c9-8cd0-46399a7e5084 | hfcloudinit-vnf1-dataVM-0 | ERROR | | ubuntu20.04 | simple_requires-1-1-flv | | c0705d0b-73e0-4b40-b901-c35bef57059a | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.249.50 | ubuntu20.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------+--------+------------------------+------------------------------+--------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep hfcloudinit 2>&1'. ${rc} = 0 ${stdout} = hfcloudinit ${rc},${stdout} Logs the given message with the given level. 0,hfcloudinit ${stdout} ${ns} Fails if objects are equal after converting them to strings. hfcloudinit == hfcloudinit ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | 9e674e36-5805-4499-adfe-2b624da10795 | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.57 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | c0705d0b-73e0-4b40-b901-c35bef57059a | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.249.50 | ubuntu20.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------+--------+------------------------+------------------------------+--------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep hfcloudinit 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${ns} Fails if objects are equal after converting them to strings. Delete NS instance. azure cleanup cluster_main daily hackfest_cloudinit regression sanity ${NSD_NAME} Delete a NS package from OSM. ${rc} ${stdout} Run And Return Rc And Output osm nspkg-delete ${nsd_id} Runs the keyword and continues execution even if a failure occurs. osm nspkg-delete ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-delete hackfest_cloudinit-ns 2>&1'. ${rc} = 0 ${stdout} = Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Logs the given message with the given level. Deleted ${NSD_DELETE_MAX_WAIT_TIME} ${NSD_DELETE_POL_TIME} Check For NSD ${nsd_id} Runs the specified keyword and retries if it fails. ${nsd_id} Check that a NS package exists in OSM. ${rc} ${stdout} osm nspkg-list | awk '{print $2}' | grep ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-list | awk '{print $2}' | grep hackfest_cloudinit-ns 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. Delete NS package from OSM. azure cleanup cluster_main daily hackfest_cloudinit regression sanity ${VNFD_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete hackfest_cloudinit-vnf 2>&1'. ${rc} = 0 ${stdout} = Deleted ${stdout} Logs the given message with the given level. Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep hackfest_cloudinit-vnf 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. Delete VNF package from OSM. azure cleanup cluster_main daily hackfest_cloudinit regression sanity Suite Cleanup Runs the given keyword with the given arguments and ignores possible error. Test Suit Cleanup: Deleting Descriptor, instance and vim Delete NS ${NS_NAME} Runs the given keyword with the given arguments, if one or more tests failed. ${NS_NAME} Delete a NS instance. ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} Logs the given message with the given level. 240.0 ${rc} ${stdout} osm ns-delete ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-delete hfcloudinit 2>&1'. ${rc} = 1 ${stdout} = ERROR: ns 'hfcloudinit' not found ${stdout} Logs the given message with the given level. ERROR: ns 'hfcloudinit' not found ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${ns_delete_max_wait_time} ${NS_DELETE_POL_TIME} Check For NS Instance To Be Deleted ${ns} Runs the specified keyword and retries if it fails. ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | 9e674e36-5805-4499-adfe-2b624da10795 | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.57 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | c0705d0b-73e0-4b40-b901-c35bef57059a | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.249.50 | ubuntu20.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------+--------+------------------------+------------------------------+--------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep hfcloudinit 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${ns} Fails if objects are equal after converting them to strings. Delete NSD ${NSD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. ${NSD_NAME} Delete a NS package from OSM. ${rc} ${stdout} Run And Return Rc And Output osm nspkg-delete ${nsd_id} Runs the keyword and continues execution even if a failure occurs. osm nspkg-delete ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-delete hackfest_cloudinit-ns 2>&1'. ${rc} = 1 ${stdout} = ERROR: nsd hackfest_cloudinit-ns not found ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${stdout} Logs the given message with the given level. ERROR: nsd hackfest_cloudinit-ns not found ${NSD_DELETE_MAX_WAIT_TIME} ${NSD_DELETE_POL_TIME} Check For NSD ${nsd_id} Runs the specified keyword and retries if it fails. ${nsd_id} Check that a NS package exists in OSM. ${rc} ${stdout} osm nspkg-list | awk '{print $2}' | grep ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-list | awk '{print $2}' | grep hackfest_cloudinit-ns 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. Delete VNFD ${VNFD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. ${VNFD_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete hackfest_cloudinit-vnf 2>&1'. ${rc} = 1 ${stdout} = ERROR: vnfd hackfest_cloudinit-vnf not found ${stdout} Logs the given message with the given level. ERROR: vnfd hackfest_cloudinit-vnf not found ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep hackfest_cloudinit-vnf 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. [HACKFEST-CLOUDINIT] Basic NS with two multi-VDU VNF with cloudinit '%{PACKAGES_FOLDER}/${VNFD_PKG}' Onboards ("creates") a NF Package into OSM. - Parameters: - vnfd_pkg: Name (and location) of the NF Package - overrides (optional): String with options to override the EPA and/or interface properties of the Package. This is very useful to allow to deploy e.g. non-EPA packages in EPA VIMs (or vice-versa). Valid strings are the same as in the command. E.g.: - `--override-epa`: adds EPA attributes to all VDUs. - `--override-nonepa`: removes all EPA attributes from all VDUs. - `--override-paravirt`: converts all interfaces to `PARAVIRT`. This one can be combined with the others above (e.g. '--override-nonepa --override-paravirt'). - Relevant environment variables: - OVERRIDES: If the environment variable "OVERRIDES" exists, it prevails over the value in the argument. This is often more convenient to enforce the same behaviour for every test run in a given VIM. ${overrides} OVERRIDES default=${overrides} Returns the value of an environment variable with the given name. ${overrides} = ${rc} ${stdout} osm vnfpkg-create ${overrides} ${vnfd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-create '/robot-systest/osm-packages/hackfest_multivdu_vnf' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/hackfest_multivdu_vnf Validation OK List of charms in the descriptor: set() Adding File: hackfest_multivdu_vnf Package created: /robot-systest/osm-packag... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/hackfest_multivdu_vnf Validation OK List of charms in the descriptor: set() Adding File: hackfest_multivdu_vnf Package created: /robot-systest/osm-packages/hackfest_multivdu_vnf.tar.gz Uploading package /robot-systest/osm-packages/hackfest_multivdu_vnf.tar.gz 958b8634-caf7-4e1d-8726-7ffab08ae57b ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 7 lines ${lines} = 7 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 6 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = 958b8634-caf7-4e1d-8726-7ffab08ae57b ${id} Upload VNF package for the testsuite. azure cluster_main daily hackfest_multivdu regression '%{PACKAGES_FOLDER}/${NSD_PKG}' Upload a NS package to OSM and return the id. ${rc} ${stdout} osm nspkg-create ${nsd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-create '/robot-systest/osm-packages/hackfest_multivdu_ns' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/hackfest_multivdu_ns Validation OK List of charms in the descriptor: set() Adding File: hackfest_multivdu_ns Package created: /robot-systest/osm-packages... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/hackfest_multivdu_ns Validation OK List of charms in the descriptor: set() Adding File: hackfest_multivdu_ns Package created: /robot-systest/osm-packages/hackfest_multivdu_ns.tar.gz 80280503-8d9b-4321-ab3f-c71fba531af3 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 6 lines ${lines} = 6 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 5 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = 80280503-8d9b-4321-ab3f-c71fba531af3 ${id} Upload NS package for the testsuite. azure cluster_main daily hackfest_multivdu regression ${status} ${message} Variable Should Exist ${PUBLICKEY} Runs the given keyword with the given arguments and ignores possible error. ${PUBLICKEY} Fails unless the given variable exists within the current scope. ${status} = PASS ${message} = None ${status},${message} Logs the given message with the given level. PASS,None ${PUBLICKEY} ${EMPTY} Makes a variable available globally in all tests and suites. ${id} ${NSD_NAME} %{VIM_TARGET} ${NS_NAME} ${NS_CONFIG} ${PUBLICKEY} Launch the instantation of a NS and verify in a loop that the NS instance is successfully created in a given time, and return the NS instance id. ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_launch_max_wait_time} = 300.0 ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_launch_max_wait_time} = 300.0 ${ns_launch_max_wait_time} Logs the given message with the given level. 300.0 ${config_attr} '${ns_config}'!='${EMPTY}' --config '${ns_config}' ${EMPTY} Sets variable based on the given condition. ${config_attr} = --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext} ] }' ${sshkeys_attr} '${publickey}'!='${EMPTY}' --ssh_keys ${publickey} ${EMPTY} Sets variable based on the given condition. ${sshkeys_attr} = --ssh_keys /root/.ssh/id_rsa.pub ${config_file_attr} '${config_file}'!='${EMPTY}' --config_file '${config_file}' ${EMPTY} Sets variable based on the given condition. ${config_file_attr} = ${ns_id} ${ns_name} ${nsd} ${vim_name} ${config_attr} ${sshkeys_attr} ${config_file_attr} Launch the instantation of a NS, and return the NS instance id. ${rc} ${stdout} osm ns-create --ns_name ${ns_name} --nsd_name ${nsd} --vim_account ${vim_name} ${ns_extra_args} Runs the given command in the system and returns the RC and output. Running command 'osm ns-create --ns_name hfmultivdu --nsd_name hackfest_multivdu-ns --vim_account osm --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext} ] }' --ssh_keys /root/.ssh/id_rsa.pub 2>&1'. ${rc} = 0 ${stdout} = 230de32e-0485-46a5-ac64-cc4a8bdf21e2 ${stdout} Logs the given message with the given level. 230de32e-0485-46a5-ac64-cc4a8bdf21e2 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 230de32e-0485-46a5-ac64-cc4a8bdf21e2 ${ns_id} Logs the given message with the given level. 230de32e-0485-46a5-ac64-cc4a8bdf21e2 ${ns_launch_max_wait_time} ${NS_LAUNCH_POL_TIME} Check For NS Instance To Configured ${ns_name} Runs the specified keyword and retries if it fails. ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | b5f6f012-d419-4c3e-a308-02e831bc3e37 | heal_03-several_volumes_-several_volumes-VM-0 | BUILD | | ubuntu20.04 | several_volumes-VM-flv | | 9e674e36-5805-4499-adfe-2b624da10795 | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.57 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | c0705d0b-73e0-4b40-b901-c35bef57059a | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.249.50 | ubuntu20.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+------------------------+------------------------------+--------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="hfmultivdu" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | hfmultivdu | 230de32e-0485-46a5-ac64-cc4a8bdf21e2 | 2024-02-19T03:53:38 | BUILDING | INSTANTIATING (972965e0-7603-474f-9d7c-4902705efc64) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | hfmultivdu | 230de32e-0485-46a5-ac64-cc4a8bdf21e2 | 2024-02-19T03:53:38 | BUILDING | INSTANTIATING (972965e0-7603-474f-9d7c-4902705efc64) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+---------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+--------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+--------------------------+ | a54c8ef6-de9d-4a08-900d-51692db733c8 | hfmultivdu-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | da931f1d-9909-445b-9abf-0bddd7779bb3 | hfmultivdu-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 1d214f0a-1395-4f74-91d4-3a53be60bb58 | hfmultivdu-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 4659f325-de8a-4020-927f-10c2aae74414 | hfmultivdu-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | c3f58887-2868-41f0-ace0-5e368a1260fc | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.222.124; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | 5f9d5d78-c3f6-4ea6-9291-447ebd5cdd2f | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.222.236; osm-ext=172.21.249.68 | ubuntu18.04 | simple_requires-1-1-flv | | b5f6f012-d419-4c3e-a308-02e831bc3e37 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.53 | ubuntu20.04 | several_volumes-VM-flv | | 9e674e36-5805-4499-adfe-2b624da10795 | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.57 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | c0705d0b-73e0-4b40-b901-c35bef57059a | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.249.50 | ubuntu20.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+--------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="hfmultivdu" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | hfmultivdu | 230de32e-0485-46a5-ac64-cc4a8bdf21e2 | 2024-02-19T03:53:38 | BUILDING | INSTANTIATING (972965e0-7603-474f-9d7c-4902705efc64) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | hfmultivdu | 230de32e-0485-46a5-ac64-cc4a8bdf21e2 | 2024-02-19T03:53:38 | BUILDING | INSTANTIATING (972965e0-7603-474f-9d7c-4902705efc64) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+---------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+--------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+--------------------------+ | a54c8ef6-de9d-4a08-900d-51692db733c8 | hfmultivdu-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | da931f1d-9909-445b-9abf-0bddd7779bb3 | hfmultivdu-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 1d214f0a-1395-4f74-91d4-3a53be60bb58 | hfmultivdu-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 4659f325-de8a-4020-927f-10c2aae74414 | hfmultivdu-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | c3f58887-2868-41f0-ace0-5e368a1260fc | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.222.124; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | 5f9d5d78-c3f6-4ea6-9291-447ebd5cdd2f | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.222.236; osm-ext=172.21.249.68 | ubuntu18.04 | simple_requires-1-1-flv | | b5f6f012-d419-4c3e-a308-02e831bc3e37 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.53 | ubuntu20.04 | several_volumes-VM-flv | | 9e674e36-5805-4499-adfe-2b624da10795 | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.57 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | c0705d0b-73e0-4b40-b901-c35bef57059a | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.249.50 | ubuntu20.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+--------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="hfmultivdu" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | hfmultivdu | 230de32e-0485-46a5-ac64-cc4a8bdf21e2 | 2024-02-19T03:53:38 | BUILDING | INSTANTIATING (972965e0-7603-474f-9d7c-4902705efc64) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | hfmultivdu | 230de32e-0485-46a5-ac64-cc4a8bdf21e2 | 2024-02-19T03:53:38 | BUILDING | INSTANTIATING (972965e0-7603-474f-9d7c-4902705efc64) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+---------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+--------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+--------------------------+ | a54c8ef6-de9d-4a08-900d-51692db733c8 | hfmultivdu-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | da931f1d-9909-445b-9abf-0bddd7779bb3 | hfmultivdu-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 1d214f0a-1395-4f74-91d4-3a53be60bb58 | hfmultivdu-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 4659f325-de8a-4020-927f-10c2aae74414 | hfmultivdu-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | c3f58887-2868-41f0-ace0-5e368a1260fc | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.222.124; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | 5f9d5d78-c3f6-4ea6-9291-447ebd5cdd2f | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.222.236; osm-ext=172.21.249.68 | ubuntu18.04 | simple_requires-1-1-flv | | b5f6f012-d419-4c3e-a308-02e831bc3e37 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.53 | ubuntu20.04 | several_volumes-VM-flv | | 9e674e36-5805-4499-adfe-2b624da10795 | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.57 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | c0705d0b-73e0-4b40-b901-c35bef57059a | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.249.50 | ubuntu20.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+--------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="hfmultivdu" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | hfmultivdu | 230de32e-0485-46a5-ac64-cc4a8bdf21e2 | 2024-02-19T03:53:38 | BUILDING | INSTANTIATING (972965e0-7603-474f-9d7c-4902705efc64) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | hfmultivdu | 230de32e-0485-46a5-ac64-cc4a8bdf21e2 | 2024-02-19T03:53:38 | BUILDING | INSTANTIATING (972965e0-7603-474f-9d7c-4902705efc64) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+---------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+--------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+--------------------------+ | a54c8ef6-de9d-4a08-900d-51692db733c8 | hfmultivdu-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | da931f1d-9909-445b-9abf-0bddd7779bb3 | hfmultivdu-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 1d214f0a-1395-4f74-91d4-3a53be60bb58 | hfmultivdu-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 4659f325-de8a-4020-927f-10c2aae74414 | hfmultivdu-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | c3f58887-2868-41f0-ace0-5e368a1260fc | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.222.124; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | 5f9d5d78-c3f6-4ea6-9291-447ebd5cdd2f | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.222.236; osm-ext=172.21.249.68 | ubuntu18.04 | simple_requires-1-1-flv | | b5f6f012-d419-4c3e-a308-02e831bc3e37 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.53 | ubuntu20.04 | several_volumes-VM-flv | | 9e674e36-5805-4499-adfe-2b624da10795 | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.57 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | c0705d0b-73e0-4b40-b901-c35bef57059a | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.249.50 | ubuntu20.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+--------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="hfmultivdu" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | hfmultivdu | 230de32e-0485-46a5-ac64-cc4a8bdf21e2 | 2024-02-19T03:53:38 | BUILDING | INSTANTIATING (972965e0-7603-474f-9d7c-4902705efc64) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | hfmultivdu | 230de32e-0485-46a5-ac64-cc4a8bdf21e2 | 2024-02-19T03:53:38 | BUILDING | INSTANTIATING (972965e0-7603-474f-9d7c-4902705efc64) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+---------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+--------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+--------------------------+ | a54c8ef6-de9d-4a08-900d-51692db733c8 | hfmultivdu-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | da931f1d-9909-445b-9abf-0bddd7779bb3 | hfmultivdu-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 1d214f0a-1395-4f74-91d4-3a53be60bb58 | hfmultivdu-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 4659f325-de8a-4020-927f-10c2aae74414 | hfmultivdu-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | c3f58887-2868-41f0-ace0-5e368a1260fc | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.222.124; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | 5f9d5d78-c3f6-4ea6-9291-447ebd5cdd2f | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.222.236; osm-ext=172.21.249.68 | ubuntu18.04 | simple_requires-1-1-flv | | b5f6f012-d419-4c3e-a308-02e831bc3e37 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.53 | ubuntu20.04 | several_volumes-VM-flv | | 9e674e36-5805-4499-adfe-2b624da10795 | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.57 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | c0705d0b-73e0-4b40-b901-c35bef57059a | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.249.50 | ubuntu20.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+--------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="hfmultivdu" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | hfmultivdu | 230de32e-0485-46a5-ac64-cc4a8bdf21e2 | 2024-02-19T03:53:38 | BUILDING | INSTANTIATING (972965e0-7603-474f-9d7c-4902705efc64) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | hfmultivdu | 230de32e-0485-46a5-ac64-cc4a8bdf21e2 | 2024-02-19T03:53:38 | BUILDING | INSTANTIATING (972965e0-7603-474f-9d7c-4902705efc64) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | a54c8ef6-de9d-4a08-900d-51692db733c8 | hfmultivdu-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | da931f1d-9909-445b-9abf-0bddd7779bb3 | hfmultivdu-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 1d214f0a-1395-4f74-91d4-3a53be60bb58 | hfmultivdu-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 4659f325-de8a-4020-927f-10c2aae74414 | hfmultivdu-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | c3f58887-2868-41f0-ace0-5e368a1260fc | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.222.124; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | 5f9d5d78-c3f6-4ea6-9291-447ebd5cdd2f | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.222.236; osm-ext=172.21.249.68 | ubuntu18.04 | simple_requires-1-1-flv | | b5f6f012-d419-4c3e-a308-02e831bc3e37 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.53 | ubuntu20.04 | several_volumes-VM-flv | | c0705d0b-73e0-4b40-b901-c35bef57059a | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.249.50 | ubuntu20.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="hfmultivdu" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | hfmultivdu | 230de32e-0485-46a5-ac64-cc4a8bdf21e2 | 2024-02-19T03:53:38 | BUILDING | INSTANTIATING (972965e0-7603-474f-9d7c-4902705efc64) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | hfmultivdu | 230de32e-0485-46a5-ac64-cc4a8bdf21e2 | 2024-02-19T03:53:38 | BUILDING | INSTANTIATING (972965e0-7603-474f-9d7c-4902705efc64) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | 2927b98a-0029-48ad-8fe8-bfa316f1531b | heal_03-charm_vnf-mgmtVM-2 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | a54c8ef6-de9d-4a08-900d-51692db733c8 | hfmultivdu-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | da931f1d-9909-445b-9abf-0bddd7779bb3 | hfmultivdu-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 1d214f0a-1395-4f74-91d4-3a53be60bb58 | hfmultivdu-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 4659f325-de8a-4020-927f-10c2aae74414 | hfmultivdu-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | c3f58887-2868-41f0-ace0-5e368a1260fc | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.222.124; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | 5f9d5d78-c3f6-4ea6-9291-447ebd5cdd2f | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.222.236; osm-ext=172.21.249.68 | ubuntu18.04 | simple_requires-1-1-flv | | b5f6f012-d419-4c3e-a308-02e831bc3e37 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.53 | ubuntu20.04 | several_volumes-VM-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="hfmultivdu" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | hfmultivdu | 230de32e-0485-46a5-ac64-cc4a8bdf21e2 | 2024-02-19T03:53:38 | BUILDING | INSTANTIATING (972965e0-7603-474f-9d7c-4902705efc64) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | hfmultivdu | 230de32e-0485-46a5-ac64-cc4a8bdf21e2 | 2024-02-19T03:53:38 | BUILDING | INSTANTIATING (972965e0-7603-474f-9d7c-4902705efc64) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | ID... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | 2927b98a-0029-48ad-8fe8-bfa316f1531b | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.222.233; osm-ext=172.21.248.206 | ubuntu18.04 | simple_requires-1-1-flv | | a54c8ef6-de9d-4a08-900d-51692db733c8 | hfmultivdu-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | da931f1d-9909-445b-9abf-0bddd7779bb3 | hfmultivdu-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 1d214f0a-1395-4f74-91d4-3a53be60bb58 | hfmultivdu-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 4659f325-de8a-4020-927f-10c2aae74414 | hfmultivdu-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | c3f58887-2868-41f0-ace0-5e368a1260fc | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.222.124; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | 5f9d5d78-c3f6-4ea6-9291-447ebd5cdd2f | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.222.236; osm-ext=172.21.249.68 | ubuntu18.04 | simple_requires-1-1-flv | | b5f6f012-d419-4c3e-a308-02e831bc3e37 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.53 | ubuntu20.04 | several_volumes-VM-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="hfmultivdu" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | hfmultivdu | 230de32e-0485-46a5-ac64-cc4a8bdf21e2 | 2024-02-19T03:53:38 | BUILDING | INSTANTIATING (972965e0-7603-474f-9d7c-4902705efc64) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | hfmultivdu | 230de32e-0485-46a5-ac64-cc4a8bdf21e2 | 2024-02-19T03:53:38 | BUILDING | INSTANTIATING (972965e0-7603-474f-9d7c-4902705efc64) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ | ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ | 04028981-4f32-48dc-8079-d3ba19af59c9 | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | BUILD | | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 2927b98a-0029-48ad-8fe8-bfa316f1531b | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.222.233; osm-ext=172.21.248.206 | ubuntu18.04 | simple_requires-1-1-flv | | a54c8ef6-de9d-4a08-900d-51692db733c8 | hfmultivdu-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | da931f1d-9909-445b-9abf-0bddd7779bb3 | hfmultivdu-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 1d214f0a-1395-4f74-91d4-3a53be60bb58 | hfmultivdu-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 4659f325-de8a-4020-927f-10c2aae74414 | hfmultivdu-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | c3f58887-2868-41f0-ace0-5e368a1260fc | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.222.124; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | 5f9d5d78-c3f6-4ea6-9291-447ebd5cdd2f | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.222.236; osm-ext=172.21.249.68 | ubuntu18.04 | simple_requires-1-1-flv | | b5f6f012-d419-4c3e-a308-02e831bc3e37 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.53 | ubuntu20.04 | several_volumes-VM-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="hfmultivdu" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | hfmultivdu | 230de32e-0485-46a5-ac64-cc4a8bdf21e2 | 2024-02-19T03:53:38 | BUILDING | INSTANTIATING (972965e0-7603-474f-9d7c-4902705efc64) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | hfmultivdu | 230de32e-0485-46a5-ac64-cc4a8bdf21e2 | 2024-02-19T03:53:38 | BUILDING | INSTANTIATING (972965e0-7603-474f-9d7c-4902705efc64) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' Keyword 'Check For NS Instance To Configured' failed after retrying for 5 minutes. The last error was: '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | hfmultivdu | 230de32e-0485-46a5-ac64-cc4a8bdf21e2 | 2024-02-19T03:53:38 | BUILDING | INSTANTIATING (972965e0-7603-474f-9d7c-4902705efc64) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has not failed in the instantiation (the status should not be BROKEN). ${ns_id} ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${WAIT_GUARD_FOR_VM_BOOT} Waiting for VM's daemons to be up and running Pauses the test executed for the given time. Instantiate NS for the testsuite. azure cluster_main daily hackfest_multivdu regression Keyword 'Check For NS Instance To Configured' failed after retrying for 5 minutes. The last error was: '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | hfmultivdu | 230de32e-0485-46a5-ac64-cc4a8bdf21e2 | 2024-02-19T03:53:38 | BUILDING | INSTANTIATING (972965e0-7603-474f-9d7c-4902705efc64) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ip_addr} ${NS_ID} ${VNF_MEMBER_INDEX} Get the mgmt IP address of a member VNF in a NS instance, and return it. ${ns_id} Verifies that the given item is not empty. Length is 0 '' should not be empty. ${vnf_member_index} Verifies that the given item is not empty. ${rc} ${stdout} osm vnf-list --filter member-vnf-index-ref=${vnf_member_index} | grep ${ns_id} | awk '{print $14}' 2>&1 Runs the given command in the system and returns the RC and output. ${stdout} Logs the given message with the given level. ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. ${stdout} ${ip_addr} Logs the given message with the given level. ${VNF_IP_ADDR} ${ip_addr} Makes a variable available everywhere within the scope of the current suite. Get the mgmt IP address of the VNF of the NS. azure cluster_main daily hackfest_multivdu regression '' should not be empty. ${VNF_IP_ADDR} Ping a host several times during 30sec until it succeeds or raises a timeout. ${CONNECTIVITY_MAX_WAIT_TIME} ${CONNECTIVITY_POL_TIME} Test Ping Host ${host} Runs the specified keyword and retries if it fails. ${host} Run Ping Parameters: host: IP or name of the host Execution example: Ping Test ${host} ${rc} ${stdout} ping -c 2 -W 1 ${host} Runs the given command in the system and returns the RC and output. Running command 'ping -c 2 -W 1 2>&1'. ${rc} = 1 ${stdout} = ping: usage error: Destination address required ${stdout} Logs the given message with the given level. ping: usage error: Destination address required ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${host} Run Ping Parameters: host: IP or name of the host Execution example: Ping Test ${host} ${rc} ${stdout} ping -c 2 -W 1 ${host} Runs the given command in the system and returns the RC and output. Running command 'ping -c 2 -W 1 2>&1'. ${rc} = 1 ${stdout} = ping: usage error: Destination address required ${stdout} Logs the given message with the given level. ping: usage error: Destination address required ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${host} Run Ping Parameters: host: IP or name of the host Execution example: Ping Test ${host} ${rc} ${stdout} ping -c 2 -W 1 ${host} Runs the given command in the system and returns the RC and output. Running command 'ping -c 2 -W 1 2>&1'. ${rc} = 1 ${stdout} = ping: usage error: Destination address required ${stdout} Logs the given message with the given level. ping: usage error: Destination address required ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${host} Run Ping Parameters: host: IP or name of the host Execution example: Ping Test ${host} ${rc} ${stdout} ping -c 2 -W 1 ${host} Runs the given command in the system and returns the RC and output. Running command 'ping -c 2 -W 1 2>&1'. ${rc} = 1 ${stdout} = ping: usage error: Destination address required ${stdout} Logs the given message with the given level. ping: usage error: Destination address required ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${host} Run Ping Parameters: host: IP or name of the host Execution example: Ping Test ${host} ${rc} ${stdout} ping -c 2 -W 1 ${host} Runs the given command in the system and returns the RC and output. Running command 'ping -c 2 -W 1 2>&1'. ${rc} = 1 ${stdout} = ping: usage error: Destination address required ${stdout} Logs the given message with the given level. ping: usage error: Destination address required ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${host} Run Ping Parameters: host: IP or name of the host Execution example: Ping Test ${host} ${rc} ${stdout} ping -c 2 -W 1 ${host} Runs the given command in the system and returns the RC and output. Running command 'ping -c 2 -W 1 2>&1'. ${rc} = 1 ${stdout} = ping: usage error: Destination address required ${stdout} Logs the given message with the given level. ping: usage error: Destination address required ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${host} Run Ping Parameters: host: IP or name of the host Execution example: Ping Test ${host} ${rc} ${stdout} ping -c 2 -W 1 ${host} Runs the given command in the system and returns the RC and output. Running command 'ping -c 2 -W 1 2>&1'. ${rc} = 1 ${stdout} = ping: usage error: Destination address required ${stdout} Logs the given message with the given level. ping: usage error: Destination address required ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 Keyword 'Test Ping Host' failed after retrying for 30 seconds. The last error was: 1 != 0 Test that the mgmt IP address of the VNF is reachable with ping. azure cluster_main daily hackfest_multivdu regression Keyword 'Test Ping Host' failed after retrying for 30 seconds. The last error was: 1 != 0 ${status} ${message} Variable Should Exist ${PRIVATEKEY} Runs the given keyword with the given arguments and ignores possible error. ${PRIVATEKEY} Fails unless the given variable exists within the current scope. ${status} = PASS ${message} = None ${status},${message} Logs the given message with the given level. PASS,None ${PRIVATEKEY} ${EMPTY} Makes a variable available globally in all tests and suites. ${VNF_IP_ADDR} ${USERNAME} ${PASSWORD} ${PRIVATEKEY} Test the SSH connection to the host with the user and credentials passed as arguments. ${host} Opens a new SSH connection to the given ``host`` and ``port``. ${username} ${password} Logs into the SSH server with the given ``username`` and ``password``. ${username} ${privatekey} Logs into the SSH server using key-based authentication. Logging into ':22' as 'ubuntu'. gaierror: [Errno -2] Name or service not known hostname Executes ``command`` on the remote machine and returns its outputs. Closes all open connections. Check that the VNF is accessible via SSH in its mgmt IP address. azure cluster_main daily hackfest_multivdu regression gaierror: [Errno -2] Name or service not known ${NS_NAME} Delete a NS instance. ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} Logs the given message with the given level. 240.0 ${rc} ${stdout} osm ns-delete ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-delete hfmultivdu 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${stdout} Logs the given message with the given level. Deletion in progress ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${ns_delete_max_wait_time} ${NS_DELETE_POL_TIME} Check For NS Instance To Be Deleted ${ns} Runs the specified keyword and retries if it fails. ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ | ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ | 04028981-4f32-48dc-8079-d3ba19af59c9 | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | BUILD | | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 2927b98a-0029-48ad-8fe8-bfa316f1531b | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.222.233; osm-ext=172.21.248.206 | ubuntu18.04 | simple_requires-1-1-flv | | a54c8ef6-de9d-4a08-900d-51692db733c8 | hfmultivdu-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | da931f1d-9909-445b-9abf-0bddd7779bb3 | hfmultivdu-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 1d214f0a-1395-4f74-91d4-3a53be60bb58 | hfmultivdu-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 4659f325-de8a-4020-927f-10c2aae74414 | hfmultivdu-vnf1-mgmtVM-0 | ERROR | | ubuntu20.04 | simple_requires-1-1-flv | | c3f58887-2868-41f0-ace0-5e368a1260fc | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.222.124; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | 5f9d5d78-c3f6-4ea6-9291-447ebd5cdd2f | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.222.236; osm-ext=172.21.249.68 | ubuntu18.04 | simple_requires-1-1-flv | | b5f6f012-d419-4c3e-a308-02e831bc3e37 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.53 | ubuntu20.04 | several_volumes-VM-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep hfmultivdu 2>&1'. ${rc} = 0 ${stdout} = hfmultivdu ${rc},${stdout} Logs the given message with the given level. 0,hfmultivdu ${stdout} ${ns} Fails if objects are equal after converting them to strings. hfmultivdu == hfmultivdu ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ | ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ | 04028981-4f32-48dc-8079-d3ba19af59c9 | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | BUILD | | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 2927b98a-0029-48ad-8fe8-bfa316f1531b | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.222.233; osm-ext=172.21.248.206 | ubuntu18.04 | simple_requires-1-1-flv | | a54c8ef6-de9d-4a08-900d-51692db733c8 | hfmultivdu-vnf2-dataVM-0 | ERROR | | ubuntu20.04 | simple_requires-1-1-flv | | da931f1d-9909-445b-9abf-0bddd7779bb3 | hfmultivdu-vnf2-mgmtVM-0 | ERROR | | ubuntu20.04 | simple_requires-1-1-flv | | 1d214f0a-1395-4f74-91d4-3a53be60bb58 | hfmultivdu-vnf1-dataVM-0 | ERROR | | ubuntu20.04 | simple_requires-1-1-flv | | 4659f325-de8a-4020-927f-10c2aae74414 | hfmultivdu-vnf1-mgmtVM-0 | ERROR | | ubuntu20.04 | simple_requires-1-1-flv | | c3f58887-2868-41f0-ace0-5e368a1260fc | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.222.124; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | 5f9d5d78-c3f6-4ea6-9291-447ebd5cdd2f | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.222.236; osm-ext=172.21.249.68 | ubuntu18.04 | simple_requires-1-1-flv | | b5f6f012-d419-4c3e-a308-02e831bc3e37 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.53 | ubuntu20.04 | several_volumes-VM-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep hfmultivdu 2>&1'. ${rc} = 0 ${stdout} = hfmultivdu ${rc},${stdout} Logs the given message with the given level. 0,hfmultivdu ${stdout} ${ns} Fails if objects are equal after converting them to strings. hfmultivdu == hfmultivdu ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ | ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ | 04028981-4f32-48dc-8079-d3ba19af59c9 | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | BUILD | | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 2927b98a-0029-48ad-8fe8-bfa316f1531b | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.222.233; osm-ext=172.21.248.206 | ubuntu18.04 | simple_requires-1-1-flv | | a54c8ef6-de9d-4a08-900d-51692db733c8 | hfmultivdu-vnf2-dataVM-0 | ERROR | | ubuntu20.04 | simple_requires-1-1-flv | | da931f1d-9909-445b-9abf-0bddd7779bb3 | hfmultivdu-vnf2-mgmtVM-0 | ERROR | | ubuntu20.04 | simple_requires-1-1-flv | | 1d214f0a-1395-4f74-91d4-3a53be60bb58 | hfmultivdu-vnf1-dataVM-0 | ERROR | | ubuntu20.04 | simple_requires-1-1-flv | | 4659f325-de8a-4020-927f-10c2aae74414 | hfmultivdu-vnf1-mgmtVM-0 | ERROR | | ubuntu20.04 | simple_requires-1-1-flv | | c3f58887-2868-41f0-ace0-5e368a1260fc | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.222.124; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | 5f9d5d78-c3f6-4ea6-9291-447ebd5cdd2f | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.222.236; osm-ext=172.21.249.68 | ubuntu18.04 | simple_requires-1-1-flv | | b5f6f012-d419-4c3e-a308-02e831bc3e37 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.53 | ubuntu20.04 | several_volumes-VM-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep hfmultivdu 2>&1'. ${rc} = 0 ${stdout} = hfmultivdu ${rc},${stdout} Logs the given message with the given level. 0,hfmultivdu ${stdout} ${ns} Fails if objects are equal after converting them to strings. hfmultivdu == hfmultivdu ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ | ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ | 04028981-4f32-48dc-8079-d3ba19af59c9 | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | BUILD | | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 2927b98a-0029-48ad-8fe8-bfa316f1531b | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.222.233; osm-ext=172.21.248.206 | ubuntu18.04 | simple_requires-1-1-flv | | c3f58887-2868-41f0-ace0-5e368a1260fc | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.222.124; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | 5f9d5d78-c3f6-4ea6-9291-447ebd5cdd2f | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.222.236; osm-ext=172.21.249.68 | ubuntu18.04 | simple_requires-1-1-flv | | b5f6f012-d419-4c3e-a308-02e831bc3e37 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.53 | ubuntu20.04 | several_volumes-VM-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep hfmultivdu 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${ns} Fails if objects are equal after converting them to strings. Delete NS instance. azure cleanup cluster_main daily hackfest_multivdu regression ${NSD_NAME} Delete a NS package from OSM. ${rc} ${stdout} Run And Return Rc And Output osm nspkg-delete ${nsd_id} Runs the keyword and continues execution even if a failure occurs. osm nspkg-delete ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-delete hackfest_multivdu-ns 2>&1'. ${rc} = 0 ${stdout} = Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Logs the given message with the given level. Deleted ${NSD_DELETE_MAX_WAIT_TIME} ${NSD_DELETE_POL_TIME} Check For NSD ${nsd_id} Runs the specified keyword and retries if it fails. ${nsd_id} Check that a NS package exists in OSM. ${rc} ${stdout} osm nspkg-list | awk '{print $2}' | grep ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-list | awk '{print $2}' | grep hackfest_multivdu-ns 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. Delete NS package. azure cleanup cluster_main daily hackfest_multivdu regression ${VNFD_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete hackfest_multivdu-vnf 2>&1'. ${rc} = 0 ${stdout} = Deleted ${stdout} Logs the given message with the given level. Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep hackfest_multivdu-vnf 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. Delete VNF package. azure cleanup cluster_main daily hackfest_multivdu regression Suite Cleanup Runs the given keyword with the given arguments and ignores possible error. Test Suit Cleanup: Deleting Descriptor, instance and vim Delete NS ${NS_NAME} Runs the given keyword with the given arguments, if one or more tests failed. ${NS_NAME} Delete a NS instance. ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} Logs the given message with the given level. 240.0 ${rc} ${stdout} osm ns-delete ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-delete hfmultivdu 2>&1'. ${rc} = 1 ${stdout} = ERROR: ns 'hfmultivdu' not found ${stdout} Logs the given message with the given level. ERROR: ns 'hfmultivdu' not found ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${ns_delete_max_wait_time} ${NS_DELETE_POL_TIME} Check For NS Instance To Be Deleted ${ns} Runs the specified keyword and retries if it fails. ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ | ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ | 04028981-4f32-48dc-8079-d3ba19af59c9 | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | BUILD | | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 2927b98a-0029-48ad-8fe8-bfa316f1531b | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.222.233; osm-ext=172.21.248.206 | ubuntu18.04 | simple_requires-1-1-flv | | c3f58887-2868-41f0-ace0-5e368a1260fc | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.222.124; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | 5f9d5d78-c3f6-4ea6-9291-447ebd5cdd2f | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.222.236; osm-ext=172.21.249.68 | ubuntu18.04 | simple_requires-1-1-flv | | b5f6f012-d419-4c3e-a308-02e831bc3e37 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.53 | ubuntu20.04 | several_volumes-VM-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep hfmultivdu 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${ns} Fails if objects are equal after converting them to strings. Delete NSD ${NSD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. ${NSD_NAME} Delete a NS package from OSM. ${rc} ${stdout} Run And Return Rc And Output osm nspkg-delete ${nsd_id} Runs the keyword and continues execution even if a failure occurs. osm nspkg-delete ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-delete hackfest_multivdu-ns 2>&1'. ${rc} = 1 ${stdout} = ERROR: nsd hackfest_multivdu-ns not found ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${stdout} Logs the given message with the given level. ERROR: nsd hackfest_multivdu-ns not found ${NSD_DELETE_MAX_WAIT_TIME} ${NSD_DELETE_POL_TIME} Check For NSD ${nsd_id} Runs the specified keyword and retries if it fails. ${nsd_id} Check that a NS package exists in OSM. ${rc} ${stdout} osm nspkg-list | awk '{print $2}' | grep ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-list | awk '{print $2}' | grep hackfest_multivdu-ns 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. Delete VNFD ${VNFD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. ${VNFD_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete hackfest_multivdu-vnf 2>&1'. ${rc} = 1 ${stdout} = ERROR: vnfd hackfest_multivdu-vnf not found ${stdout} Logs the given message with the given level. ERROR: vnfd hackfest_multivdu-vnf not found ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep hackfest_multivdu-vnf 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. [HACKFEST-MULTIVDU] Basic NS with two multi-VDU VNF '%{PACKAGES_FOLDER}/${VNFD_MANUALSCALE_PKG}' Onboards ("creates") a NF Package into OSM. - Parameters: - vnfd_pkg: Name (and location) of the NF Package - overrides (optional): String with options to override the EPA and/or interface properties of the Package. This is very useful to allow to deploy e.g. non-EPA packages in EPA VIMs (or vice-versa). Valid strings are the same as in the command. E.g.: - `--override-epa`: adds EPA attributes to all VDUs. - `--override-nonepa`: removes all EPA attributes from all VDUs. - `--override-paravirt`: converts all interfaces to `PARAVIRT`. This one can be combined with the others above (e.g. '--override-nonepa --override-paravirt'). - Relevant environment variables: - OVERRIDES: If the environment variable "OVERRIDES" exists, it prevails over the value in the argument. This is often more convenient to enforce the same behaviour for every test run in a given VIM. ${overrides} OVERRIDES default=${overrides} Returns the value of an environment variable with the given name. ${overrides} = ${rc} ${stdout} osm vnfpkg-create ${overrides} ${vnfd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-create '/robot-systest/osm-packages/manual_scale_vnf' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/manual_scale_vnf Validation OK List of charms in the descriptor: set() Adding File: manual_scale_vnf Package created: /robot-systest/osm-packages/manual_... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/manual_scale_vnf Validation OK List of charms in the descriptor: set() Adding File: manual_scale_vnf Package created: /robot-systest/osm-packages/manual_scale_vnf.tar.gz Uploading package /robot-systest/osm-packages/manual_scale_vnf.tar.gz 2e7d6ba8-e9e9-4c1b-bb89-ff40e03f21a6 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 7 lines ${lines} = 7 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 6 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = 2e7d6ba8-e9e9-4c1b-bb89-ff40e03f21a6 ${id} '%{PACKAGES_FOLDER}/${VNFD_VOLUMES_PKG}' Onboards ("creates") a NF Package into OSM. - Parameters: - vnfd_pkg: Name (and location) of the NF Package - overrides (optional): String with options to override the EPA and/or interface properties of the Package. This is very useful to allow to deploy e.g. non-EPA packages in EPA VIMs (or vice-versa). Valid strings are the same as in the command. E.g.: - `--override-epa`: adds EPA attributes to all VDUs. - `--override-nonepa`: removes all EPA attributes from all VDUs. - `--override-paravirt`: converts all interfaces to `PARAVIRT`. This one can be combined with the others above (e.g. '--override-nonepa --override-paravirt'). - Relevant environment variables: - OVERRIDES: If the environment variable "OVERRIDES" exists, it prevails over the value in the argument. This is often more convenient to enforce the same behaviour for every test run in a given VIM. ${overrides} OVERRIDES default=${overrides} Returns the value of an environment variable with the given name. ${overrides} = ${rc} ${stdout} osm vnfpkg-create ${overrides} ${vnfd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-create '/robot-systest/osm-packages/several_volumes_vnf' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/several_volumes_vnf Validation OK List of charms in the descriptor: set() Adding File: several_volumes_vnf Package created: /robot-systest/osm-packages/s... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/several_volumes_vnf Validation OK List of charms in the descriptor: set() Adding File: several_volumes_vnf Package created: /robot-systest/osm-packages/several_volumes_vnf.tar.gz Uploading package /robot-systest/osm-packages/several_volumes_vnf.tar.gz a4335c2e-e6d4-4bd0-ac55-c73094256157 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 7 lines ${lines} = 7 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 6 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = a4335c2e-e6d4-4bd0-ac55-c73094256157 ${id} Upload VNF packages for the testsuite. cluster_heal daily heal_01 regression '%{PACKAGES_FOLDER}/${NSD_PKG}' Upload a NS package to OSM and return the id. ${rc} ${stdout} osm nspkg-create ${nsd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-create '/robot-systest/osm-packages/volumes_healing_ns' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/volumes_healing_ns Validation OK List of charms in the descriptor: set() Adding File: volumes_healing_ns Package created: /robot-systest/osm-packages/vol... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/volumes_healing_ns Validation OK List of charms in the descriptor: set() Adding File: volumes_healing_ns Package created: /robot-systest/osm-packages/volumes_healing_ns.tar.gz a2e81722-49df-4ae2-a6b1-563b28100a6f ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 6 lines ${lines} = 6 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 5 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = a2e81722-49df-4ae2-a6b1-563b28100a6f ${id} Upload NS package for the testsuite. cluster_heal daily heal_01 regression ${id} ${NSD_NAME} %{VIM_TARGET} ${NS_NAME} ${NS_CONFIG} ${PUBLICKEY} ${NS_TIMEOUT} Launch the instantation of a NS and verify in a loop that the NS instance is successfully created in a given time, and return the NS instance id. ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_launch_max_wait_time} = 360.0 ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_launch_max_wait_time} = 360.0 ${ns_launch_max_wait_time} Logs the given message with the given level. 360.0 ${config_attr} '${ns_config}'!='${EMPTY}' --config '${ns_config}' ${EMPTY} Sets variable based on the given condition. ${config_attr} = --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext} ] }' ${sshkeys_attr} '${publickey}'!='${EMPTY}' --ssh_keys ${publickey} ${EMPTY} Sets variable based on the given condition. ${sshkeys_attr} = --ssh_keys /root/.ssh/id_rsa.pub ${config_file_attr} '${config_file}'!='${EMPTY}' --config_file '${config_file}' ${EMPTY} Sets variable based on the given condition. ${config_file_attr} = ${ns_id} ${ns_name} ${nsd} ${vim_name} ${config_attr} ${sshkeys_attr} ${config_file_attr} Launch the instantation of a NS, and return the NS instance id. ${rc} ${stdout} osm ns-create --ns_name ${ns_name} --nsd_name ${nsd} --vim_account ${vim_name} ${ns_extra_args} Runs the given command in the system and returns the RC and output. Running command 'osm ns-create --ns_name heal_01 --nsd_name volumes_healing-ns --vim_account osm --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext} ] }' --ssh_keys /root/.ssh/id_rsa.pub 2>&1'. ${rc} = 0 ${stdout} = 9ce7f084-13c8-4e61-afdd-287cb2f838f2 ${stdout} Logs the given message with the given level. 9ce7f084-13c8-4e61-afdd-287cb2f838f2 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 9ce7f084-13c8-4e61-afdd-287cb2f838f2 ${ns_id} Logs the given message with the given level. 9ce7f084-13c8-4e61-afdd-287cb2f838f2 ${ns_launch_max_wait_time} ${NS_LAUNCH_POL_TIME} Check For NS Instance To Configured ${ns_name} Runs the specified keyword and retries if it fails. ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ | ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ | 04028981-4f32-48dc-8079-d3ba19af59c9 | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | BUILD | | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 2927b98a-0029-48ad-8fe8-bfa316f1531b | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.222.233; osm-ext=172.21.248.206 | ubuntu18.04 | simple_requires-1-1-flv | | c3f58887-2868-41f0-ace0-5e368a1260fc | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.222.124; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | 5f9d5d78-c3f6-4ea6-9291-447ebd5cdd2f | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.222.236; osm-ext=172.21.249.68 | ubuntu18.04 | simple_requires-1-1-flv | | b5f6f012-d419-4c3e-a308-02e831bc3e37 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.53 | ubuntu20.04 | several_volumes-VM-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="heal_01" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | heal_01 | 9ce7f084-13c8-4e61-afdd-287cb2f838f2 | 2024-02-19T04:00:33 | BUILDING | INSTANTIATING (b50d7bf8-10da-4b40-a01d-720fb3b67d19) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | heal_01 | 9ce7f084-13c8-4e61-afdd-287cb2f838f2 | 2024-02-19T04:00:33 | BUILDING | INSTANTIATING (b50d7bf8-10da-4b40-a01d-720fb3b67d19) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+---------+---------------------------------------------------------+-------------+---------------------------+ |... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+---------+---------------------------------------------------------+-------------+---------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+---------+---------------------------------------------------------+-------------+---------------------------+ | 17ed9273-d317-4159-b130-bb872b029514 | heal_01-manual_scale_vnf-mgmtVM-1 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 35bb30f6-dcfd-4fc1-b22b-2746dde3cf4d | heal_01-manual_scale_vnf-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 7d7ee696-3f93-4106-b4b8-e26401cc46fd | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.204 | ubuntu20.04 | several_volumes-VM-flv | | 04028981-4f32-48dc-8079-d3ba19af59c9 | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | BUILD | | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 2927b98a-0029-48ad-8fe8-bfa316f1531b | heal_03-charm_vnf-mgmtVM-2 | SHUTOFF | heal_03-datanet=192.168.222.233; osm-ext=172.21.248.206 | ubuntu18.04 | simple_requires-1-1-flv | | c3f58887-2868-41f0-ace0-5e368a1260fc | heal_03-charm_vnf-mgmtVM-1 | SHUTOFF | heal_03-datanet=192.168.222.124; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | 5f9d5d78-c3f6-4ea6-9291-447ebd5cdd2f | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.222.236; osm-ext=172.21.249.68 | ubuntu18.04 | simple_requires-1-1-flv | | b5f6f012-d419-4c3e-a308-02e831bc3e37 | heal_03-several_volumes_-several_volumes-VM-0 | SHUTOFF | osm-ext=172.21.248.53 | ubuntu20.04 | several_volumes-VM-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+---------+---------------------------------------------------------+-------------+---------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="heal_01" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | heal_01 | 9ce7f084-13c8-4e61-afdd-287cb2f838f2 | 2024-02-19T04:00:33 | BUILDING | INSTANTIATING (b50d7bf8-10da-4b40-a01d-720fb3b67d19) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | heal_01 | 9ce7f084-13c8-4e61-afdd-287cb2f838f2 | 2024-02-19T04:00:33 | BUILDING | INSTANTIATING (b50d7bf8-10da-4b40-a01d-720fb3b67d19) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+---------+---------------------------------------------------------+-------------+---------------------------+ |... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+---------+---------------------------------------------------------+-------------+---------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+---------+---------------------------------------------------------+-------------+---------------------------+ | 50631be6-cb99-4128-a906-50e4ebfae32a | heal_03-several_volumes_-several_volumes-VM-0 | BUILD | | ubuntu20.04 | several_volumes-VM-flv | | 17ed9273-d317-4159-b130-bb872b029514 | heal_01-manual_scale_vnf-mgmtVM-1 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 35bb30f6-dcfd-4fc1-b22b-2746dde3cf4d | heal_01-manual_scale_vnf-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 7d7ee696-3f93-4106-b4b8-e26401cc46fd | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.204 | ubuntu20.04 | several_volumes-VM-flv | | 04028981-4f32-48dc-8079-d3ba19af59c9 | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | BUILD | | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 2927b98a-0029-48ad-8fe8-bfa316f1531b | heal_03-charm_vnf-mgmtVM-2 | SHUTOFF | heal_03-datanet=192.168.222.233; osm-ext=172.21.248.206 | ubuntu18.04 | simple_requires-1-1-flv | | 5f9d5d78-c3f6-4ea6-9291-447ebd5cdd2f | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.222.236; osm-ext=172.21.249.68 | ubuntu18.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+---------+---------------------------------------------------------+-------------+---------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="heal_01" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | heal_01 | 9ce7f084-13c8-4e61-afdd-287cb2f838f2 | 2024-02-19T04:00:33 | BUILDING | INSTANTIATING (b50d7bf8-10da-4b40-a01d-720fb3b67d19) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | heal_01 | 9ce7f084-13c8-4e61-afdd-287cb2f838f2 | 2024-02-19T04:00:33 | BUILDING | INSTANTIATING (b50d7bf8-10da-4b40-a01d-720fb3b67d19) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ | ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ | 6ea47f55-a662-4a3d-986a-0d00f899cf81 | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.222.233; osm-ext=172.21.248.206 | ubuntu18.04 | simple_requires-1-1-flv | | 55020b13-69b2-4aca-99b4-7e2f898376e2 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.222.124; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | 50631be6-cb99-4128-a906-50e4ebfae32a | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.53 | ubuntu20.04 | several_volumes-VM-flv | | 17ed9273-d317-4159-b130-bb872b029514 | heal_01-manual_scale_vnf-mgmtVM-1 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 35bb30f6-dcfd-4fc1-b22b-2746dde3cf4d | heal_01-manual_scale_vnf-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 7d7ee696-3f93-4106-b4b8-e26401cc46fd | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.204 | ubuntu20.04 | several_volumes-VM-flv | | 04028981-4f32-48dc-8079-d3ba19af59c9 | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | BUILD | | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 5f9d5d78-c3f6-4ea6-9291-447ebd5cdd2f | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.222.236; osm-ext=172.21.249.68 | ubuntu18.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="heal_01" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | heal_01 | 9ce7f084-13c8-4e61-afdd-287cb2f838f2 | 2024-02-19T04:00:33 | BUILDING | INSTANTIATING (b50d7bf8-10da-4b40-a01d-720fb3b67d19) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | heal_01 | 9ce7f084-13c8-4e61-afdd-287cb2f838f2 | 2024-02-19T04:00:33 | BUILDING | INSTANTIATING (b50d7bf8-10da-4b40-a01d-720fb3b67d19) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ | ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ | 6ea47f55-a662-4a3d-986a-0d00f899cf81 | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.222.233; osm-ext=172.21.248.206 | ubuntu18.04 | simple_requires-1-1-flv | | 55020b13-69b2-4aca-99b4-7e2f898376e2 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.222.124; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | 50631be6-cb99-4128-a906-50e4ebfae32a | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.53 | ubuntu20.04 | several_volumes-VM-flv | | 17ed9273-d317-4159-b130-bb872b029514 | heal_01-manual_scale_vnf-mgmtVM-1 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 35bb30f6-dcfd-4fc1-b22b-2746dde3cf4d | heal_01-manual_scale_vnf-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 7d7ee696-3f93-4106-b4b8-e26401cc46fd | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.204 | ubuntu20.04 | several_volumes-VM-flv | | 04028981-4f32-48dc-8079-d3ba19af59c9 | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | BUILD | | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 5f9d5d78-c3f6-4ea6-9291-447ebd5cdd2f | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.222.236; osm-ext=172.21.249.68 | ubuntu18.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="heal_01" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | heal_01 | 9ce7f084-13c8-4e61-afdd-287cb2f838f2 | 2024-02-19T04:00:33 | BUILDING | INSTANTIATING (b50d7bf8-10da-4b40-a01d-720fb3b67d19) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | heal_01 | 9ce7f084-13c8-4e61-afdd-287cb2f838f2 | 2024-02-19T04:00:33 | BUILDING | INSTANTIATING (b50d7bf8-10da-4b40-a01d-720fb3b67d19) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------------+--------+---------------------------------------------------------+-------------+------------------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------------+--------+---------------------------------------------------------+-------------+-----------------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------------+--------+---------------------------------------------------------+-------------+-----------------------------------+ | 3ac045fd-2247-4eb1-b6f1-0b0d057c1ad3 | basic_05_instant-vnf-ubuntu_cloudinit-vnf-VM-0 | ACTIVE | osm-ext=172.21.249.52 | ubuntu18.04 | ubuntu_cloudinit-vnf-VM-vnf-1-flv | | 6ea47f55-a662-4a3d-986a-0d00f899cf81 | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.222.233; osm-ext=172.21.248.206 | ubuntu18.04 | simple_requires-1-1-flv | | 55020b13-69b2-4aca-99b4-7e2f898376e2 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.222.124; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | 50631be6-cb99-4128-a906-50e4ebfae32a | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.53 | ubuntu20.04 | several_volumes-VM-flv | | 17ed9273-d317-4159-b130-bb872b029514 | heal_01-manual_scale_vnf-mgmtVM-1 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 35bb30f6-dcfd-4fc1-b22b-2746dde3cf4d | heal_01-manual_scale_vnf-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 7d7ee696-3f93-4106-b4b8-e26401cc46fd | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.204 | ubuntu20.04 | several_volumes-VM-flv | | 04028981-4f32-48dc-8079-d3ba19af59c9 | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | BUILD | | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 5f9d5d78-c3f6-4ea6-9291-447ebd5cdd2f | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.222.236; osm-ext=172.21.249.68 | ubuntu18.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------------+--------+---------------------------------------------------------+-------------+-----------------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="heal_01" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | heal_01 | 9ce7f084-13c8-4e61-afdd-287cb2f838f2 | 2024-02-19T04:00:33 | BUILDING | INSTANTIATING (b50d7bf8-10da-4b40-a01d-720fb3b67d19) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | heal_01 | 9ce7f084-13c8-4e61-afdd-287cb2f838f2 | 2024-02-19T04:00:33 | BUILDING | INSTANTIATING (b50d7bf8-10da-4b40-a01d-720fb3b67d19) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------------+--------+---------------------------------------------------------+-------------+------------------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------------+--------+---------------------------------------------------------+-------------+-----------------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------------+--------+---------------------------------------------------------+-------------+-----------------------------------+ | 3ac045fd-2247-4eb1-b6f1-0b0d057c1ad3 | basic_05_instant-vnf-ubuntu_cloudinit-vnf-VM-0 | ACTIVE | osm-ext=172.21.249.52 | ubuntu18.04 | ubuntu_cloudinit-vnf-VM-vnf-1-flv | | 6ea47f55-a662-4a3d-986a-0d00f899cf81 | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.222.233; osm-ext=172.21.248.206 | ubuntu18.04 | simple_requires-1-1-flv | | 55020b13-69b2-4aca-99b4-7e2f898376e2 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.222.124; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | 50631be6-cb99-4128-a906-50e4ebfae32a | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.53 | ubuntu20.04 | several_volumes-VM-flv | | 17ed9273-d317-4159-b130-bb872b029514 | heal_01-manual_scale_vnf-mgmtVM-1 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 35bb30f6-dcfd-4fc1-b22b-2746dde3cf4d | heal_01-manual_scale_vnf-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 7d7ee696-3f93-4106-b4b8-e26401cc46fd | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.204 | ubuntu20.04 | several_volumes-VM-flv | | 04028981-4f32-48dc-8079-d3ba19af59c9 | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | ERROR | | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 5f9d5d78-c3f6-4ea6-9291-447ebd5cdd2f | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.222.236; osm-ext=172.21.249.68 | ubuntu18.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------------+--------+---------------------------------------------------------+-------------+-----------------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="heal_01" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | heal_01 | 9ce7f084-13c8-4e61-afdd-287cb2f838f2 | 2024-02-19T04:00:33 | BUILDING | INSTANTIATING (b50d7bf8-10da-4b40-a01d-720fb3b67d19) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | heal_01 | 9ce7f084-13c8-4e61-afdd-287cb2f838f2 | 2024-02-19T04:00:33 | BUILDING | INSTANTIATING (b50d7bf8-10da-4b40-a01d-720fb3b67d19) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------------+--------+---------------------------------------------------------+-------------+------------------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------------+--------+---------------------------------------------------------+-------------+-----------------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------------+--------+---------------------------------------------------------+-------------+-----------------------------------+ | 3ac045fd-2247-4eb1-b6f1-0b0d057c1ad3 | basic_05_instant-vnf-ubuntu_cloudinit-vnf-VM-0 | ACTIVE | osm-ext=172.21.249.52 | ubuntu18.04 | ubuntu_cloudinit-vnf-VM-vnf-1-flv | | 6ea47f55-a662-4a3d-986a-0d00f899cf81 | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.222.233; osm-ext=172.21.248.206 | ubuntu18.04 | simple_requires-1-1-flv | | 55020b13-69b2-4aca-99b4-7e2f898376e2 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.222.124; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | 50631be6-cb99-4128-a906-50e4ebfae32a | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.53 | ubuntu20.04 | several_volumes-VM-flv | | 17ed9273-d317-4159-b130-bb872b029514 | heal_01-manual_scale_vnf-mgmtVM-1 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 35bb30f6-dcfd-4fc1-b22b-2746dde3cf4d | heal_01-manual_scale_vnf-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 7d7ee696-3f93-4106-b4b8-e26401cc46fd | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.204 | ubuntu20.04 | several_volumes-VM-flv | | 04028981-4f32-48dc-8079-d3ba19af59c9 | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | ERROR | | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 5f9d5d78-c3f6-4ea6-9291-447ebd5cdd2f | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.222.236; osm-ext=172.21.249.68 | ubuntu18.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------------+--------+---------------------------------------------------------+-------------+-----------------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="heal_01" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | heal_01 | 9ce7f084-13c8-4e61-afdd-287cb2f838f2 | 2024-02-19T04:00:33 | BUILDING | INSTANTIATING (b50d7bf8-10da-4b40-a01d-720fb3b67d19) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | heal_01 | 9ce7f084-13c8-4e61-afdd-287cb2f838f2 | 2024-02-19T04:00:33 | BUILDING | INSTANTIATING (b50d7bf8-10da-4b40-a01d-720fb3b67d19) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ | ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ | 6ea47f55-a662-4a3d-986a-0d00f899cf81 | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.222.233; osm-ext=172.21.248.206 | ubuntu18.04 | simple_requires-1-1-flv | | 55020b13-69b2-4aca-99b4-7e2f898376e2 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.222.124; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | 50631be6-cb99-4128-a906-50e4ebfae32a | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.53 | ubuntu20.04 | several_volumes-VM-flv | | 17ed9273-d317-4159-b130-bb872b029514 | heal_01-manual_scale_vnf-mgmtVM-1 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 35bb30f6-dcfd-4fc1-b22b-2746dde3cf4d | heal_01-manual_scale_vnf-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 7d7ee696-3f93-4106-b4b8-e26401cc46fd | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.204 | ubuntu20.04 | several_volumes-VM-flv | | 04028981-4f32-48dc-8079-d3ba19af59c9 | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | ERROR | | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 5f9d5d78-c3f6-4ea6-9291-447ebd5cdd2f | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.222.236; osm-ext=172.21.249.68 | ubuntu18.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="heal_01" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | heal_01 | 9ce7f084-13c8-4e61-afdd-287cb2f838f2 | 2024-02-19T04:00:33 | BUILDING | INSTANTIATING (b50d7bf8-10da-4b40-a01d-720fb3b67d19) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | heal_01 | 9ce7f084-13c8-4e61-afdd-287cb2f838f2 | 2024-02-19T04:00:33 | BUILDING | INSTANTIATING (b50d7bf8-10da-4b40-a01d-720fb3b67d19) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ | ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ | 6ea47f55-a662-4a3d-986a-0d00f899cf81 | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.222.233; osm-ext=172.21.248.206 | ubuntu18.04 | simple_requires-1-1-flv | | 55020b13-69b2-4aca-99b4-7e2f898376e2 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.222.124; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | 50631be6-cb99-4128-a906-50e4ebfae32a | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.53 | ubuntu20.04 | several_volumes-VM-flv | | 17ed9273-d317-4159-b130-bb872b029514 | heal_01-manual_scale_vnf-mgmtVM-1 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 35bb30f6-dcfd-4fc1-b22b-2746dde3cf4d | heal_01-manual_scale_vnf-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 7d7ee696-3f93-4106-b4b8-e26401cc46fd | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.204 | ubuntu20.04 | several_volumes-VM-flv | | 04028981-4f32-48dc-8079-d3ba19af59c9 | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | ERROR | | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 5f9d5d78-c3f6-4ea6-9291-447ebd5cdd2f | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.222.236; osm-ext=172.21.249.68 | ubuntu18.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="heal_01" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | heal_01 | 9ce7f084-13c8-4e61-afdd-287cb2f838f2 | 2024-02-19T04:00:33 | BUILDING | INSTANTIATING (b50d7bf8-10da-4b40-a01d-720fb3b67d19) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | heal_01 | 9ce7f084-13c8-4e61-afdd-287cb2f838f2 | 2024-02-19T04:00:33 | BUILDING | INSTANTIATING (b50d7bf8-10da-4b40-a01d-720fb3b67d19) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ | ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ | b801e2e1-7942-45e2-a14e-f2db0a3147de | basic_08_disable-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | c3fc3b72-8711-4dd0-a8c0-34a3588bfd89 | basic_08_disable-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 6ea47f55-a662-4a3d-986a-0d00f899cf81 | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.222.233; osm-ext=172.21.248.206 | ubuntu18.04 | simple_requires-1-1-flv | | 55020b13-69b2-4aca-99b4-7e2f898376e2 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.222.124; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | 50631be6-cb99-4128-a906-50e4ebfae32a | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.53 | ubuntu20.04 | several_volumes-VM-flv | | 17ed9273-d317-4159-b130-bb872b029514 | heal_01-manual_scale_vnf-mgmtVM-1 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 35bb30f6-dcfd-4fc1-b22b-2746dde3cf4d | heal_01-manual_scale_vnf-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 7d7ee696-3f93-4106-b4b8-e26401cc46fd | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.204 | ubuntu20.04 | several_volumes-VM-flv | | 04028981-4f32-48dc-8079-d3ba19af59c9 | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | ERROR | | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 5f9d5d78-c3f6-4ea6-9291-447ebd5cdd2f | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.222.236; osm-ext=172.21.249.68 | ubuntu18.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="heal_01" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | heal_01 | 9ce7f084-13c8-4e61-afdd-287cb2f838f2 | 2024-02-19T04:00:33 | BUILDING | INSTANTIATING (b50d7bf8-10da-4b40-a01d-720fb3b67d19) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | heal_01 | 9ce7f084-13c8-4e61-afdd-287cb2f838f2 | 2024-02-19T04:00:33 | BUILDING | INSTANTIATING (b50d7bf8-10da-4b40-a01d-720fb3b67d19) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------+-------------+---------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------+-------------+---------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------+-------------+---------------------------+ | 11553140-d044-4f58-befe-747fa1785443 | basic_08_disable-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 2379e674-0a21-46a2-915d-c1eb3ade56fe | basic_08_disable-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | b801e2e1-7942-45e2-a14e-f2db0a3147de | basic_08_disable-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | c3fc3b72-8711-4dd0-a8c0-34a3588bfd89 | basic_08_disable-vnf1-mgmtVM-0 | ACTIVE | basic_08_disable-internal=192.168.122.182; osm-ext=172.21.249.219 | ubuntu20.04 | simple_requires-1-1-flv | | 6ea47f55-a662-4a3d-986a-0d00f899cf81 | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.222.233; osm-ext=172.21.248.206 | ubuntu18.04 | simple_requires-1-1-flv | | 55020b13-69b2-4aca-99b4-7e2f898376e2 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.222.124; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | 50631be6-cb99-4128-a906-50e4ebfae32a | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.53 | ubuntu20.04 | several_volumes-VM-flv | | 17ed9273-d317-4159-b130-bb872b029514 | heal_01-manual_scale_vnf-mgmtVM-1 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 35bb30f6-dcfd-4fc1-b22b-2746dde3cf4d | heal_01-manual_scale_vnf-mgmtVM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 7d7ee696-3f93-4106-b4b8-e26401cc46fd | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.204 | ubuntu20.04 | several_volumes-VM-flv | | 04028981-4f32-48dc-8079-d3ba19af59c9 | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | ERROR | | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 5f9d5d78-c3f6-4ea6-9291-447ebd5cdd2f | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.222.236; osm-ext=172.21.249.68 | ubuntu18.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------+-------------+---------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="heal_01" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+-------------------+------------------------------------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+-------------------+------------------------------------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+-------------------+------------------------------------------+ | heal_01 | 9ce7f084-13c8-4e61-afdd-287cb2f838f2 | 2024-02-19T04:00:33 | BROKEN | IDLE (None) | Operation: INSTANTIATING.b50d7bf8-10da- | | | | | | | 4b40-a01d-720fb3b67d19, Stage 2/5: | | | | | | | deployment of KDUs, VMs and execution | | | | | | | environments. | | | | | | | Detail: Deploying at VIM: Error at | | | | | | | create vdu: 'NoneType' object does not | | | | | | | support item assignment. Error at create | | | | | | | vdu: unknown | +------------------+--------------------------------------+---------------------+----------+-------------------+------------------------------------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. ${ns_name} Check if a given NS instance has not failed in the instantiation (the status should not be BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------+-------------+---------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------+-------------+---------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------+-------------+---------------------------+ | 11553140-d044-4f58-befe-747fa1785443 | basic_08_disable-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 2379e674-0a21-46a2-915d-c1eb3ade56fe | basic_08_disable-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | b801e2e1-7942-45e2-a14e-f2db0a3147de | basic_08_disable-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | c3fc3b72-8711-4dd0-a8c0-34a3588bfd89 | basic_08_disable-vnf1-mgmtVM-0 | ACTIVE | basic_08_disable-internal=192.168.122.182; osm-ext=172.21.249.219 | ubuntu20.04 | simple_requires-1-1-flv | | 6ea47f55-a662-4a3d-986a-0d00f899cf81 | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.222.233; osm-ext=172.21.248.206 | ubuntu18.04 | simple_requires-1-1-flv | | 55020b13-69b2-4aca-99b4-7e2f898376e2 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.222.124; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | 50631be6-cb99-4128-a906-50e4ebfae32a | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.53 | ubuntu20.04 | several_volumes-VM-flv | | 17ed9273-d317-4159-b130-bb872b029514 | heal_01-manual_scale_vnf-mgmtVM-1 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 35bb30f6-dcfd-4fc1-b22b-2746dde3cf4d | heal_01-manual_scale_vnf-mgmtVM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 7d7ee696-3f93-4106-b4b8-e26401cc46fd | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.204 | ubuntu20.04 | several_volumes-VM-flv | | 04028981-4f32-48dc-8079-d3ba19af59c9 | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | ERROR | | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 5f9d5d78-c3f6-4ea6-9291-447ebd5cdd2f | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.222.236; osm-ext=172.21.249.68 | ubuntu18.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------+-------------+---------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="heal_01" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+-------------------+------------------------------------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+-------------------+------------------------------------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+-------------------+------------------------------------------+ | heal_01 | 9ce7f084-13c8-4e61-afdd-287cb2f838f2 | 2024-02-19T04:00:33 | BROKEN | IDLE (None) | Operation: INSTANTIATING.b50d7bf8-10da- | | | | | | | 4b40-a01d-720fb3b67d19, Stage 2/5: | | | | | | | deployment of KDUs, VMs and execution | | | | | | | environments. | | | | | | | Detail: Deploying at VIM: Error at | | | | | | | create vdu: 'NoneType' object does not | | | | | | | support item assignment. Error at create | | | | | | | vdu: unknown | +------------------+--------------------------------------+---------------------+----------+-------------------+------------------------------------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} BROKEN Fails if ``container`` contains ``item`` one or more times. '+------------------+--------------------------------------+---------------------+----------+-------------------+------------------------------------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+-------------------+------------------------------------------+ | heal_01 | 9ce7f084-13c8-4e61-afdd-287cb2f838f2 | 2024-02-19T04:00:33 | BROKEN | IDLE (None) | Operation: INSTANTIATING.b50d7bf8-10da- | | | | | | | 4b40-a01d-720fb3b67d19, Stage 2/5: | | | | | | | deployment of KDUs, VMs and execution | | | | | | | environments. | | | | | | | Detail: Deploying at VIM: Error at | | | | | | | create vdu: 'NoneType' object does not | | | | | | | support item assignment. Error at create | | | | | | | vdu: unknown | +------------------+--------------------------------------+---------------------+----------+-------------------+------------------------------------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' contains 'BROKEN' ${ns_id} ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. Instantiate NS for the testsuite. cluster_heal daily heal_01 regression '+------------------+--------------------------------------+---------------------+----------+-------------------+------------------------------------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+-------------------+------------------------------------------+ | heal_01 | 9ce7f084-13c8-4e61-afdd-287cb2f838f2 | 2024-02-19T04:00:33 | BROKEN | IDLE (None) | Operation: INSTANTIATING.b50d7bf8-10da- | | | | | | | 4b40-a01d-720fb3b67d19, Stage 2/5: | | | | | | | deployment of KDUs, VMs and execution | | | | | | | environments. | | | | | | | Detail: Deploying at VIM: Error at | | | | | | | create vdu: 'NoneType' object does not | | | | | | | support item assignment. Error at create | | | | | | | vdu: unknown | +------------------+--------------------------------------+---------------------+----------+-------------------+------------------------------------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' contains 'BROKEN' ${variables} Returns a dictionary containing all variables in the current scope. ${variables} = {'${/}': '/', '${:}': ':', '${\\n}': '\n', '${DEBUG_FILE}': 'NONE', '${EXECDIR}': '/robot-systest', '${FAILURE_RETURN_CODE}': '1', '${False}': False, '${HEALING_POL_TIME}': '15sec', '${LOG_FILE}': '/r... ${id} ${NS_NAME} Get the NS instance ID from a NS instance name passed as argument, and return it. ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. Invalid IF condition: Evaluating expression 'not "${ns_id}" in "{'${/}': '/', '${:}': ':', '${\\n}': '\n', '${DEBUG_FILE}': 'NONE', '${EXECDIR}': '/robot-systest', '${FAILURE_RETURN_CODE}': '1', '${False}': False, '${HEALING_POL_TIME}': '15sec', '${LOG_FILE}': '/robot-systest/reports/log.html', '${LOG_LEVEL}': 'INFO', '${None}': None, '${NS_ACTION_MAX_WAIT_TIME}': '1min', '${NS_ACTION_POL_TIME}': '15sec', '${NS_CONFIG}': '{vld: [ {name: mgmtnet, vim-network-name: osm-ext} ] }', '${NSD_DELETE_MAX_WAIT_TIME}': '1min', '${NSD_DELETE_POL_TIME}': '15sec', '${NS_DELETE_POL_TIME}': '15sec', '${NSD_NAME}': 'volumes_healing-ns', '${NSD_PKG}': 'volumes_healing_ns', '${NS_LAUNCH_POL_TIME}': '30sec', '${NS_NAME}': 'heal_01', '${NS_TIMEOUT}': '6min', '${null}': None, '${OUTPUT_DIR}': '/robot-systest/reports', '${OUTPUT_FILE}': '/robot-systest/reports/output.xml', '${PASSWORD}': '', '${PREV_TEST_MESSAGE}': '\'+------------------+--------------------------------------+---------------------+----------+-------------------+------------------------------------------+\n| ns instance name | id | date | ns state | current operation | error details |\n+------------------+--------------------------------------+---------------------+----------+-------------------+------------------------------------------+\n| heal_01 | 9ce7f084-13c8-4e61-afdd-287cb2f838f2 | 2024-02-19T04:00:33 | BROKEN | IDLE (None) | Operation: INSTANTIATING.b50d7bf8-10da- |\n| | | | | | 4b40-a01d-720fb3b67d19, Stage 2/5: |\n| | | | | | deployment of KDUs, VMs and execution |\n| | | | | | environments. |\n| | | | | | Detail: Deploying at VIM: Error at |\n| | | | | | create vdu: \'NoneType\' object does not |\n| | | | | | support item assignment. Error at create |\n| | | | | | vdu: unknown |\n+------------------+--------------------------------------+---------------------+----------+-------------------+------------------------------------------+\nTo get the history of all operations over a NS, run "osm ns-op-list NS_ID"\nFor more details on the current operation, run "osm ns-op-show OPERATION_ID"\' contains \'BROKEN\'', '${PREV_TEST_NAME}': 'Network Service Instance Test', '${PREV_TEST_STATUS}': 'FAIL', '${PRIVATEKEY}': '/root/.ssh/id_rsa', '${PUBLICKEY}': '/root/.ssh/id_rsa.pub', '${REPORT_FILE}': '/robot-systest/reports/report.html', '${SPACE}': ' ', '${SUCCESS_RETURN_CODE}': '0', '${SUITE_DOCUMENTATION}': '[HEAL-01] Healing of a multi-volume VDU', '${SUITE_NAME}': 'Testsuite.Heal 01-Volume Vdu Healing', '${SUITE_SOURCE}': '/robot-systest/testsuite/heal_01-volume_vdu_healing.robot', '${TEMPDIR}': '/tmp', '${TEST_DOCUMENTATION}': 'Get NS identifier.', '${TEST_NAME}': 'Get NS Id', '${True}': True, '${USERNAME}': 'ubuntu', '${VDU_VOLUMES_NAME}': 'several_volumes-VM', '${VIM_TIMEOUT_MULTIPLIER}': '1.0', '${VNFD_DELETE_MAX_WAIT_TIME}': '1min', '${VNFD_DELETE_POL_TIME}': '15sec', '${VNFD_MANUALSCALE_NAME}': 'manual_scale-vnf', '${VNFD_MANUALSCALE_PKG}': 'manual_scale_vnf', '${VNFD_VOLUMES_NAME}': 'several_volumes-vnf', '${VNFD_VOLUMES_PKG}': 'several_volumes_vnf', '${VNF_SCALE_POL_TIME}': '15sec', '${VNF_SEVERAL_INDEX}': 'several_volumes_vnf', '&{OPTIONS}': {'include': ['daily'], 'exclude': [], 'skip': [], 'skip_on_failure': []}, '&{SUITE_METADATA}': Metadata(), '@{TEST_TAGS}': ['cleanup', 'cluster_heal', 'daily', 'heal_01', 'regression'], '@{VIM_VDUS}': [], '@{VIM_VOLUMES}': []}"' failed: SyntaxError: invalid syntax (<string>, line 1) Variables in the original expression 'not "\${ns_id}" in "${variables}"' were resolved before the expression was evaluated. Try using 'not "\${ns_id}" in "$variables"' syntax to avoid that. See Evaluating Expressions appendix in Robot Framework User Guide for more details. Get NS identifier. cleanup cluster_heal daily heal_01 regression Invalid IF condition: Evaluating expression 'not "${ns_id}" in "{'${/}': '/', '${:}': ':', '${\\n}': '\n', '${DEBUG_FILE}': 'NONE', '${EXECDIR}': '/robot-systest', '${FAILURE_RETURN_CODE}': '1', '${False}': False, '${HEALING_POL_TIME}': '15sec', '${LOG_FILE}': '/robot-systest/reports/log.html', '${LOG_LEVEL}': 'INFO', '${None}': None, '${NS_ACTION_MAX_WAIT_TIME}': '1min', '${NS_ACTION_POL_TIME}': '15sec', '${NS_CONFIG}': '{vld: [ {name: mgmtnet, vim-network-name: osm-ext} ] }', '${NSD_DELETE_MAX_WAIT_TIME}': '1min', '${NSD_DELETE_POL_TIME}': '15sec', '${NS_DELETE_POL_TIME}': '15sec', '${NSD_NAME}': 'volumes_healing-ns', '${NSD_PKG}': 'volumes_healing_ns', '${NS_LAUNCH_POL_TIME}': '30sec', '${NS_NAME}': 'heal_01', '${NS_TIMEOUT}': '6min', '${null}': None, '${OUTPUT_DIR}': '/robot-systest/reports', '${OUTPUT_FILE}': '/robot-systest/reports/output.xml', '${PASSWORD}': '', '${PREV_TEST_MESSAGE}': '\'+------------------+--------------------------------------+---------------------+----------+-------------------+------------------------------------------+\n| ns instance name | id | date | ns state | current operation | error details |\n+------------------+--------------------------------------+---------------------+----------+-------------------+------------------------------------------+\n| heal_01 | 9ce7f084-13c8-4e61-afdd-287cb2f838f2 | 2024-02-19T04:00:33 | BROKEN | IDLE (None) | Operation: INSTANTIATING.b50d7bf8-10da- |\n| |... [ Message content over the limit has been removed. ] ...ORT_FILE}': '/robot-systest/reports/report.html', '${SPACE}': ' ', '${SUCCESS_RETURN_CODE}': '0', '${SUITE_DOCUMENTATION}': '[HEAL-01] Healing of a multi-volume VDU', '${SUITE_NAME}': 'Testsuite.Heal 01-Volume Vdu Healing', '${SUITE_SOURCE}': '/robot-systest/testsuite/heal_01-volume_vdu_healing.robot', '${TEMPDIR}': '/tmp', '${TEST_DOCUMENTATION}': 'Get NS identifier.', '${TEST_NAME}': 'Get NS Id', '${True}': True, '${USERNAME}': 'ubuntu', '${VDU_VOLUMES_NAME}': 'several_volumes-VM', '${VIM_TIMEOUT_MULTIPLIER}': '1.0', '${VNFD_DELETE_MAX_WAIT_TIME}': '1min', '${VNFD_DELETE_POL_TIME}': '15sec', '${VNFD_MANUALSCALE_NAME}': 'manual_scale-vnf', '${VNFD_MANUALSCALE_PKG}': 'manual_scale_vnf', '${VNFD_VOLUMES_NAME}': 'several_volumes-vnf', '${VNFD_VOLUMES_PKG}': 'several_volumes_vnf', '${VNF_SCALE_POL_TIME}': '15sec', '${VNF_SEVERAL_INDEX}': 'several_volumes_vnf', '&{OPTIONS}': {'include': ['daily'], 'exclude': [], 'skip': [], 'skip_on_failure': []}, '&{SUITE_METADATA}': Metadata(), '@{TEST_TAGS}': ['cleanup', 'cluster_heal', 'daily', 'heal_01', 'regression'], '@{VIM_VDUS}': [], '@{VIM_VOLUMES}': []}"' failed: SyntaxError: invalid syntax (<string>, line 1) Variables in the original expression 'not "\${ns_id}" in "${variables}"' were resolved before the expression was evaluated. Try using 'not "\${ns_id}" in "$variables"' syntax to avoid that. See Evaluating Expressions appendix in Robot Framework User Guide for more details. ${NS_ID} msg=NS is not available Fails unless the given variable exists within the current scope. msg=NS is not available @{vnf_id_list} ${NS_ID} Get the list of VNF instances of a given NS instance id, and return it. ${vnf_id_list} Logs the given message with the given level. ${vnf_id} @{vnf_id_list} ${vnf_id} Logs the given message with the given level. ${id} ${vnf_id} Get the identifier of the first VDU of a VNF instance. Useful to get the id when a VNF has a single VDU. @{vdu_ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. ${VIM_VDUS} @{vdu_ids} Adds ``values`` to the end of ``list``. ${vdu_id} @{VIM_VDUS} ${volumes_attached} ${vdu_id} volumes_attached Get a field (flavor, image, volumes_attached, etc.) from a server. ${match} ${volumes_attached} '([0-9a-f\-]+)' 1 Returns a list of all non-overlapping matches in the given string. ${VIM_VOLUMES} ${match}[0] Adds ``values`` to the end of ``list``. @{VIM_VDUS} Logs the given messages as separate entries using the INFO level. @{VIM_VOLUMES} Logs the given messages as separate entries using the INFO level. Retrieve all VMs and volumes from the NS and stores them in VIM_VDUS and VIM_VOLUMES lists. cluster_heal daily heal_01 regression msg=NS is not available ${NS_ID} msg=NS is not available Fails unless the given variable exists within the current scope. msg=NS is not available ${ip_addr} ${NS_ID} ${VNF_SEVERAL_INDEX} Get the mgmt IP address of a member VNF in a NS instance, and return it. ${ip_addr} Logs the given message with the given level. ${VNF_VOLUMES_IP_ADDR} ${ip_addr} Makes a variable available everywhere within the scope of the current suite. ${vnf_id} ${NS_ID} ${VNF_SEVERAL_INDEX} Get the VNF instance ID of a member VNF in a NS instance, and return it. ${VNF_VOLUMES_ID} ${vnf_id} Makes a variable available everywhere within the scope of the current suite. ${id} ${vnf_id} Get the identifier of the first VDU of a VNF instance. Useful to get the id when a VNF has a single VDU. ${VDU_VOLUMES_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${VDU_VOLUMES_ID} Logs the given message with the given level. @{VOLUMES_IP_LIST} ${VNF_VOLUMES_ID} Return a list with the IP addresses of the VDU records of a VNF instance. @{VOLUMES_IP_LIST} @{VOLUMES_IP_LIST} Makes a variable available everywhere within the scope of the current suite. @{VOLUMES_IP_LIST} Logs the given message with the given level. Get VDU ID, IP addresses and volumes of the VNF and stores them in suite variables to be used later on. cluster_heal daily heal_01 regression msg=NS is not available ${rc} ${stdout} osm vnfpkg-show ${VNFD_VOLUMES_NAME} --literal | yq '.vdu[0]."virtual-storage-desc" | length' Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-show several_volumes-vnf --literal | yq '.vdu[0]."virtual-storage-desc" | length' 2>&1'. ${rc} = 0 ${stdout} = 3 ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${num_virtual_storage} ${stdout} Converts the given item to an integer number. ${num_virtual_storage} = 3 ${VNF_NUM_VOLUMES} ${num_virtual_storage} Makes a variable available everywhere within the scope of the current suite. ${VNF_NUM_VOLUMES} = 3 ${VNF_NUM_VOLUMES} Logs the given message with the given level. 3 ${volumes_attached} ${VDU_VOLUMES_ID} volumes_attached Get a field (flavor, image, volumes_attached, etc.) from a server. Variable '${VDU_VOLUMES_ID}' not found. ${match} ${volumes_attached} '([0-9a-f\-]+)' 1 Returns a list of all non-overlapping matches in the given string. ${VOLUME_ID} ${match}[0] Makes a variable available everywhere within the scope of the current suite. Get number of volumes from the VNF descriptor and get the attached volumes from the VDU instance. cluster_heal daily heal_01 regression Variable '${VDU_VOLUMES_ID}' not found. ${VNF_VOLUMES_IP_ADDR} msg=VNF is not available Fails unless the given variable exists within the current scope. msg=VNF is not available 20 seconds Wait for SSH daemon to be up Pauses the test executed for the given time. ${stdout} ${VNF_VOLUMES_IP_ADDR} ${USERNAME} ${PASSWORD} ${PRIVATEKEY} sudo lsblk -l Execute via SSH a command in a remote host and, if the command succeeds, return the output. ${stdout} Logs the given message with the given level. ${lines} ${stdout} disk Returns lines of the given ``string`` that contain the ``pattern``. ${num_lines} ${lines} Returns and logs the number of lines in the given string. msg=Number of disks (${num_lines}) is less than specified in VDU (${VNF_NUM_VOLUMES}) Fails the test with the given message and optionally alters its tags. Check that the number of disks in the VDU meets the expected one. cluster_heal daily heal_01 regression msg=VNF is not available ${VDU_VOLUMES_ID} msg=VDU is not available Fails unless the given variable exists within the current scope. msg=VDU is not available ${VDU_VOLUMES_ID} Delete a server 20 Pauses the test executed for the given time. Manually delete the VM in Openstack. cluster_heal daily heal_01 regression msg=VDU is not available ${VNF_VOLUMES_ID} msg=VNF is not available Fails unless the given variable exists within the current scope. msg=VNF is not available ${NS_ID} --vnf ${VNF_VOLUMES_ID} --cause "Heal VM of volumes_vnf" --vdu ${VDU_VOLUMES_NAME} Execute healing operation over one NS. Return the ID of the operation associated to the executed healing action. Manually heal the VNF in order to re-create the deleted VM. cluster_heal daily heal_01 regression msg=VNF is not available ${VNF_VOLUMES_ID} msg=VNF is not available Fails unless the given variable exists within the current scope. msg=VNF is not available @{ip_list} ${VNF_VOLUMES_ID} Return a list with the IP addresses of the VDU records of a VNF instance. @{ip_list} Logs the given message with the given level. ${ip_list} ${VOLUMES_IP_LIST} IP addresses have changed after healing Fails if the given objects are unequal. ${id} ${VNF_VOLUMES_ID} Get the identifier of the first VDU of a VNF instance. Useful to get the id when a VNF has a single VDU. ${id} Logs the given message with the given level. ${id} ${VDU_VOLUMES_ID} VDU id has not changed after healing Fails if the given objects are equal. ${volumes_attached} ${id} volumes_attached Get a field (flavor, image, volumes_attached, etc.) from a server. ${match} ${volumes_attached} '([0-9a-f\-]+)' 1 Returns a list of all non-overlapping matches in the given string. ${match}[0] ${VOLUME_ID} Volume id has changed after healing Fails if the given objects are unequal. 30 seconds Wait for SSH daemon to be up Pauses the test executed for the given time. ${stdout} ${VNF_VOLUMES_IP_ADDR} ${USERNAME} ${PASSWORD} ${PRIVATEKEY} sudo lsblk -l Execute via SSH a command in a remote host and, if the command succeeds, return the output. ${stdout} Logs the given message with the given level. ${lines} ${stdout} disk Returns lines of the given ``string`` that contain the ``pattern``. ${num_lines} ${lines} Returns and logs the number of lines in the given string. msg=Number of disks (${num_lines}) is less than specified in VDU (${VNF_NUM_VOLUMES}) Fails the test with the given message and optionally alters its tags. Check that the IDs of the VM and volumes have not changed after healing. cluster_heal daily heal_01 regression msg=VNF is not available ${NS_ID} msg=NS is not available Fails unless the given variable exists within the current scope. msg=NS is not available @{vdu_updated} Returns a list containing given items. @{vnf_id_list} ${NS_ID} Get the list of VNF instances of a given NS instance id, and return it. ${vnf_id} @{vnf_id_list} ${id} ${vnf_id} Get the identifier of the first VDU of a VNF instance. Useful to get the id when a VNF has a single VDU. @{vdu_ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. ${vdu_updated} @{vdu_ids} Adds ``values`` to the end of ``list``. ${id} @{vdu_ids} ${VIM_VDUS} ${id} Adds ``values`` to the end of ``list``. ${vdu_id} @{vdu_updated} ${volumes_attached} ${vdu_id} volumes_attached Get a field (flavor, image, volumes_attached, etc.) from a server. ${match} ${volumes_attached} '([0-9a-f\-]+)' 1 Returns a list of all non-overlapping matches in the given string. ${VIM_VOLUMES} ${match}[0] Adds ``values`` to the end of ``list``. @{VIM_VDUS} Logs the given messages as separate entries using the INFO level. @{VIM_VOLUMES} Logs the given messages as separate entries using the INFO level. Retrieve all VMs and volumes from the NS and stores them in VIM_VDUS and VIM_VOLUMES lists. This is done again to guarantee that all objects are cleaned in the VIM in case the heal operation added new objects. cluster_heal daily heal_01 regression msg=NS is not available ${NS_NAME} Delete a NS instance. ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} Logs the given message with the given level. 240.0 ${rc} ${stdout} osm ns-delete ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-delete heal_01 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${stdout} Logs the given message with the given level. Deletion in progress ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${ns_delete_max_wait_time} ${NS_DELETE_POL_TIME} Check For NS Instance To Be Deleted ${ns} Runs the specified keyword and retries if it fails. ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------+-------------+---------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------+-------------+---------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------+-------------+---------------------------+ | 11553140-d044-4f58-befe-747fa1785443 | basic_08_disable-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 2379e674-0a21-46a2-915d-c1eb3ade56fe | basic_08_disable-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | b801e2e1-7942-45e2-a14e-f2db0a3147de | basic_08_disable-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | c3fc3b72-8711-4dd0-a8c0-34a3588bfd89 | basic_08_disable-vnf1-mgmtVM-0 | ACTIVE | basic_08_disable-internal=192.168.122.182; osm-ext=172.21.249.219 | ubuntu20.04 | simple_requires-1-1-flv | | 6ea47f55-a662-4a3d-986a-0d00f899cf81 | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.222.233; osm-ext=172.21.248.206 | ubuntu18.04 | simple_requires-1-1-flv | | 55020b13-69b2-4aca-99b4-7e2f898376e2 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.222.124; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | 50631be6-cb99-4128-a906-50e4ebfae32a | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.53 | ubuntu20.04 | several_volumes-VM-flv | | 17ed9273-d317-4159-b130-bb872b029514 | heal_01-manual_scale_vnf-mgmtVM-1 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 35bb30f6-dcfd-4fc1-b22b-2746dde3cf4d | heal_01-manual_scale_vnf-mgmtVM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 7d7ee696-3f93-4106-b4b8-e26401cc46fd | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.204 | ubuntu20.04 | several_volumes-VM-flv | | 04028981-4f32-48dc-8079-d3ba19af59c9 | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | ERROR | | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 5f9d5d78-c3f6-4ea6-9291-447ebd5cdd2f | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.222.236; osm-ext=172.21.249.68 | ubuntu18.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------+-------------+---------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep heal_01 2>&1'. ${rc} = 0 ${stdout} = heal_01 ${rc},${stdout} Logs the given message with the given level. 0,heal_01 ${stdout} ${ns} Fails if objects are equal after converting them to strings. heal_01 == heal_01 ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------+-------------+---------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------+-------------+---------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------+-------------+---------------------------+ | 11553140-d044-4f58-befe-747fa1785443 | basic_08_disable-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 2379e674-0a21-46a2-915d-c1eb3ade56fe | basic_08_disable-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | b801e2e1-7942-45e2-a14e-f2db0a3147de | basic_08_disable-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | c3fc3b72-8711-4dd0-a8c0-34a3588bfd89 | basic_08_disable-vnf1-mgmtVM-0 | ACTIVE | basic_08_disable-internal=192.168.122.182; osm-ext=172.21.249.219 | ubuntu20.04 | simple_requires-1-1-flv | | 6ea47f55-a662-4a3d-986a-0d00f899cf81 | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.222.233; osm-ext=172.21.248.206 | ubuntu18.04 | simple_requires-1-1-flv | | 55020b13-69b2-4aca-99b4-7e2f898376e2 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.222.124; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | 50631be6-cb99-4128-a906-50e4ebfae32a | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.53 | ubuntu20.04 | several_volumes-VM-flv | | 04028981-4f32-48dc-8079-d3ba19af59c9 | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | ERROR | | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 5f9d5d78-c3f6-4ea6-9291-447ebd5cdd2f | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.222.236; osm-ext=172.21.249.68 | ubuntu18.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------+-------------+---------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep heal_01 2>&1'. ${rc} = 0 ${stdout} = heal_01 ${rc},${stdout} Logs the given message with the given level. 0,heal_01 ${stdout} ${ns} Fails if objects are equal after converting them to strings. heal_01 == heal_01 ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------+-------------+---------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------+-------------+---------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------+-------------+---------------------------+ | 11553140-d044-4f58-befe-747fa1785443 | basic_08_disable-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 2379e674-0a21-46a2-915d-c1eb3ade56fe | basic_08_disable-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | b801e2e1-7942-45e2-a14e-f2db0a3147de | basic_08_disable-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | c3fc3b72-8711-4dd0-a8c0-34a3588bfd89 | basic_08_disable-vnf1-mgmtVM-0 | ACTIVE | basic_08_disable-internal=192.168.122.182; osm-ext=172.21.249.219 | ubuntu20.04 | simple_requires-1-1-flv | | 6ea47f55-a662-4a3d-986a-0d00f899cf81 | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.222.233; osm-ext=172.21.248.206 | ubuntu18.04 | simple_requires-1-1-flv | | 55020b13-69b2-4aca-99b4-7e2f898376e2 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.222.124; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | 50631be6-cb99-4128-a906-50e4ebfae32a | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.53 | ubuntu20.04 | several_volumes-VM-flv | | 04028981-4f32-48dc-8079-d3ba19af59c9 | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | ERROR | | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 5f9d5d78-c3f6-4ea6-9291-447ebd5cdd2f | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.222.236; osm-ext=172.21.249.68 | ubuntu18.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------+-------------+---------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep heal_01 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${ns} Fails if objects are equal after converting them to strings. Delete NS instance. cleanup cluster_heal daily heal_01 regression ${NSD_NAME} Delete a NS package from OSM. ${rc} ${stdout} Run And Return Rc And Output osm nspkg-delete ${nsd_id} Runs the keyword and continues execution even if a failure occurs. osm nspkg-delete ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-delete volumes_healing-ns 2>&1'. ${rc} = 0 ${stdout} = Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Logs the given message with the given level. Deleted ${NSD_DELETE_MAX_WAIT_TIME} ${NSD_DELETE_POL_TIME} Check For NSD ${nsd_id} Runs the specified keyword and retries if it fails. ${nsd_id} Check that a NS package exists in OSM. ${rc} ${stdout} osm nspkg-list | awk '{print $2}' | grep ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-list | awk '{print $2}' | grep volumes_healing-ns 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. Delete NS package from OSM. cleanup cluster_heal daily heal_01 regression ${VNFD_VOLUMES_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete several_volumes-vnf 2>&1'. ${rc} = 0 ${stdout} = Deleted ${stdout} Logs the given message with the given level. Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep several_volumes-vnf 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. ${VNFD_MANUALSCALE_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete manual_scale-vnf 2>&1'. ${rc} = 0 ${stdout} = Deleted ${stdout} Logs the given message with the given level. Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep manual_scale-vnf 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. Delete VNF packages from OSM. cleanup cluster_heal daily heal_01 regression Clean up remaining VMs and volumes directly from the VIM. ${error} 0 Returns the given values which can then be assigned to a variables. ${error} = 0 ${vol_id} @{VIM_VOLUMES} Checking if volume ${vol_id} is still in VIM Logs the given message with the given level. ${exists} ${vol_id} Checks if a volume id exists ${error} 1 Returns the given values which can then be assigned to a variables. Deleting volume ${vol_id} Logs the given message with the given level. Delete Volume ${vol_id} Runs the given keyword with the given arguments and ignores possible error. ${vdu_id} @{VIM_VDUS} Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. ${status} Get Server Property ${vdu_id} id Runs the given keyword with the given arguments and ignores possible error. ${status}[0] Logs the given message with the given level. ${error} 1 Returns the given values which can then be assigned to a variables. Deleting server ${vdu_id} Logs the given message with the given level. Delete Server ${vdu_id} Runs the given keyword with the given arguments and ignores possible error. Some objects created by test were not deleted in VIM Fails the test with the given message and optionally alters its tags. Delete any remaining objects (volumes, VMs, etc.) in the VIM. cleanup cluster_heal daily heal_01 regression Suite Cleanup Runs the given keyword with the given arguments and ignores possible error. Test Suite Cleanup: Deleting Descriptor, instance and vim Delete NS ${NS_NAME} Runs the given keyword with the given arguments, if one or more tests failed. ${NS_NAME} Delete a NS instance. ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} Logs the given message with the given level. 240.0 ${rc} ${stdout} osm ns-delete ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-delete heal_01 2>&1'. ${rc} = 1 ${stdout} = ERROR: ns 'heal_01' not found ${stdout} Logs the given message with the given level. ERROR: ns 'heal_01' not found ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${ns_delete_max_wait_time} ${NS_DELETE_POL_TIME} Check For NS Instance To Be Deleted ${ns} Runs the specified keyword and retries if it fails. ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------+-------------+---------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------+-------------+---------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------+-------------+---------------------------+ | 11553140-d044-4f58-befe-747fa1785443 | basic_08_disable-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 2379e674-0a21-46a2-915d-c1eb3ade56fe | basic_08_disable-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | b801e2e1-7942-45e2-a14e-f2db0a3147de | basic_08_disable-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | c3fc3b72-8711-4dd0-a8c0-34a3588bfd89 | basic_08_disable-vnf1-mgmtVM-0 | ACTIVE | basic_08_disable-internal=192.168.122.182; osm-ext=172.21.249.219 | ubuntu20.04 | simple_requires-1-1-flv | | 6ea47f55-a662-4a3d-986a-0d00f899cf81 | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.222.233; osm-ext=172.21.248.206 | ubuntu18.04 | simple_requires-1-1-flv | | 55020b13-69b2-4aca-99b4-7e2f898376e2 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.222.124; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | 50631be6-cb99-4128-a906-50e4ebfae32a | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.53 | ubuntu20.04 | several_volumes-VM-flv | | 04028981-4f32-48dc-8079-d3ba19af59c9 | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | ERROR | | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 5f9d5d78-c3f6-4ea6-9291-447ebd5cdd2f | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.222.236; osm-ext=172.21.249.68 | ubuntu18.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------+-------------+---------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep heal_01 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${ns} Fails if objects are equal after converting them to strings. Delete NSD ${NSD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. ${NSD_NAME} Delete a NS package from OSM. ${rc} ${stdout} Run And Return Rc And Output osm nspkg-delete ${nsd_id} Runs the keyword and continues execution even if a failure occurs. osm nspkg-delete ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-delete volumes_healing-ns 2>&1'. ${rc} = 1 ${stdout} = ERROR: nsd volumes_healing-ns not found ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${stdout} Logs the given message with the given level. ERROR: nsd volumes_healing-ns not found ${NSD_DELETE_MAX_WAIT_TIME} ${NSD_DELETE_POL_TIME} Check For NSD ${nsd_id} Runs the specified keyword and retries if it fails. ${nsd_id} Check that a NS package exists in OSM. ${rc} ${stdout} osm nspkg-list | awk '{print $2}' | grep ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-list | awk '{print $2}' | grep volumes_healing-ns 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. Delete VNFD ${VNFD_VOLUMES_NAME} Runs the given keyword with the given arguments, if one or more tests failed. ${VNFD_VOLUMES_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete several_volumes-vnf 2>&1'. ${rc} = 1 ${stdout} = ERROR: vnfd several_volumes-vnf not found ${stdout} Logs the given message with the given level. ERROR: vnfd several_volumes-vnf not found ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep several_volumes-vnf 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. Delete VNFD ${VNFD_MANUALSCALE_NAME} Runs the given keyword with the given arguments, if one or more tests failed. ${VNFD_MANUALSCALE_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete manual_scale-vnf 2>&1'. ${rc} = 1 ${stdout} = ERROR: vnfd manual_scale-vnf not found ${stdout} Logs the given message with the given level. ERROR: vnfd manual_scale-vnf not found ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep manual_scale-vnf 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. Delete Objects In VIM Runs the given keyword with the given arguments, if one or more tests failed. Clean up remaining VMs and volumes directly from the VIM. ${error} 0 Returns the given values which can then be assigned to a variables. ${error} = 0 ${vol_id} @{VIM_VOLUMES} Checking if volume ${vol_id} is still in VIM Logs the given message with the given level. ${exists} ${vol_id} Checks if a volume id exists ${error} 1 Returns the given values which can then be assigned to a variables. Deleting volume ${vol_id} Logs the given message with the given level. Delete Volume ${vol_id} Runs the given keyword with the given arguments and ignores possible error. ${vdu_id} @{VIM_VDUS} Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. ${status} Get Server Property ${vdu_id} id Runs the given keyword with the given arguments and ignores possible error. ${status}[0] Logs the given message with the given level. ${error} 1 Returns the given values which can then be assigned to a variables. Deleting server ${vdu_id} Logs the given message with the given level. Delete Server ${vdu_id} Runs the given keyword with the given arguments and ignores possible error. Some objects created by test were not deleted in VIM Fails the test with the given message and optionally alters its tags. [HEAL-01] Healing of a multi-volume VDU '%{PACKAGES_FOLDER}/${VNFD_MANUALSCALE_PKG}' Onboards ("creates") a NF Package into OSM. - Parameters: - vnfd_pkg: Name (and location) of the NF Package - overrides (optional): String with options to override the EPA and/or interface properties of the Package. This is very useful to allow to deploy e.g. non-EPA packages in EPA VIMs (or vice-versa). Valid strings are the same as in the command. E.g.: - `--override-epa`: adds EPA attributes to all VDUs. - `--override-nonepa`: removes all EPA attributes from all VDUs. - `--override-paravirt`: converts all interfaces to `PARAVIRT`. This one can be combined with the others above (e.g. '--override-nonepa --override-paravirt'). - Relevant environment variables: - OVERRIDES: If the environment variable "OVERRIDES" exists, it prevails over the value in the argument. This is often more convenient to enforce the same behaviour for every test run in a given VIM. ${overrides} OVERRIDES default=${overrides} Returns the value of an environment variable with the given name. ${overrides} = ${rc} ${stdout} osm vnfpkg-create ${overrides} ${vnfd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-create '/robot-systest/osm-packages/manual_scale_vnf' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/manual_scale_vnf Validation OK List of charms in the descriptor: set() Adding File: manual_scale_vnf Package created: /robot-systest/osm-packages/manual_... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/manual_scale_vnf Validation OK List of charms in the descriptor: set() Adding File: manual_scale_vnf Package created: /robot-systest/osm-packages/manual_scale_vnf.tar.gz Uploading package /robot-systest/osm-packages/manual_scale_vnf.tar.gz b1bfd3db-933c-4691-a628-3037b7b61ad6 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 7 lines ${lines} = 7 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 6 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = b1bfd3db-933c-4691-a628-3037b7b61ad6 ${id} '%{PACKAGES_FOLDER}/${VNFD_VOLUMES_PKG}' Onboards ("creates") a NF Package into OSM. - Parameters: - vnfd_pkg: Name (and location) of the NF Package - overrides (optional): String with options to override the EPA and/or interface properties of the Package. This is very useful to allow to deploy e.g. non-EPA packages in EPA VIMs (or vice-versa). Valid strings are the same as in the command. E.g.: - `--override-epa`: adds EPA attributes to all VDUs. - `--override-nonepa`: removes all EPA attributes from all VDUs. - `--override-paravirt`: converts all interfaces to `PARAVIRT`. This one can be combined with the others above (e.g. '--override-nonepa --override-paravirt'). - Relevant environment variables: - OVERRIDES: If the environment variable "OVERRIDES" exists, it prevails over the value in the argument. This is often more convenient to enforce the same behaviour for every test run in a given VIM. ${overrides} OVERRIDES default=${overrides} Returns the value of an environment variable with the given name. ${overrides} = ${rc} ${stdout} osm vnfpkg-create ${overrides} ${vnfd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-create '/robot-systest/osm-packages/several_volumes_vnf' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/several_volumes_vnf Validation OK List of charms in the descriptor: set() Adding File: several_volumes_vnf Package created: /robot-systest/osm-packages/s... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/several_volumes_vnf Validation OK List of charms in the descriptor: set() Adding File: several_volumes_vnf Package created: /robot-systest/osm-packages/several_volumes_vnf.tar.gz Uploading package /robot-systest/osm-packages/several_volumes_vnf.tar.gz 25d671c7-7b8b-4ec5-9f0b-98ef7bcb2170 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 7 lines ${lines} = 7 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 6 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = 25d671c7-7b8b-4ec5-9f0b-98ef7bcb2170 ${id} Upload VNF packages for the testsuite. cluster_heal daily heal_02 regression '%{PACKAGES_FOLDER}/${NSD_PKG}' Upload a NS package to OSM and return the id. ${rc} ${stdout} osm nspkg-create ${nsd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-create '/robot-systest/osm-packages/volumes_healing_ns' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/volumes_healing_ns Validation OK List of charms in the descriptor: set() Adding File: volumes_healing_ns Package created: /robot-systest/osm-packages/vol... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/volumes_healing_ns Validation OK List of charms in the descriptor: set() Adding File: volumes_healing_ns Package created: /robot-systest/osm-packages/volumes_healing_ns.tar.gz b1d5a839-ce18-4b5c-bc61-de54be26f28c ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 6 lines ${lines} = 6 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 5 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = b1d5a839-ce18-4b5c-bc61-de54be26f28c ${id} Upload NS package for the testsuite. cluster_heal daily heal_02 regression ${rand} 6 [NUMBERS] Generates a string with a desired ``length`` from the given ``chars``. ${rand} = 684814 ${flavor_name} SEPARATOR=_ ${FLAVOR_NAME_PREFIX} ${rand} Catenates the given items together and returns the resulted string. ${flavor_name} = osm.heal02_684814 ${id} ${flavor_name} 1 1024 10 Create a Flavor ${flavor_name} Verifies that the given item is not empty. Length is 17 ${rc} ${flavor_id} openstack flavor create ${flavor_name} --ram ${ram} --disk ${disk} --vcpus ${cpu} -c id -f value Runs the given command in the system and returns the RC and output. Running command 'openstack flavor create osm.heal02_684814 --ram 1024 --disk 10 --vcpus 1 -c id -f value 2>&1'. ${rc} = 0 ${flavor_id} = fe12a210-6fa7-4868-9845-89c27cb3fbb1 ${flavor_id} Logs the given message with the given level. fe12a210-6fa7-4868-9845-89c27cb3fbb1 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${flavor_id} ${id} = fe12a210-6fa7-4868-9845-89c27cb3fbb1 ${FLAVOR_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${FLAVOR_ID} = fe12a210-6fa7-4868-9845-89c27cb3fbb1 Create a flavor that will be used at NS instantiation time and save it as FLAVOR_ID. cluster_heal daily heal_02 regression ${ns_config} {vld: [ {name: mgmtnet, vim-network-name: %{VIM_MGMT_NET}}],vnf: [ {member-vnf-index: manual_scale_vnf, vdu: [{ id: mgmtVM, vim-flavor-id: ${FLAVOR_ID}}]}] } Returns the given values which can then be assigned to a variables. ${ns_config} = {vld: [ {name: mgmtnet, vim-network-name: osm-ext}],vnf: [ {member-vnf-index: manual_scale_vnf, vdu: [{ id: mgmtVM, vim-flavor-id: fe12a210-6fa7-4868-9845-89c27cb3fbb1}]}] } ${id} ${NSD_NAME} %{VIM_TARGET} ${NS_NAME} ${ns_config} ${PUBLICKEY} ${NS_TIMEOUT} Launch the instantation of a NS and verify in a loop that the NS instance is successfully created in a given time, and return the NS instance id. ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_launch_max_wait_time} = 360.0 ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_launch_max_wait_time} = 360.0 ${ns_launch_max_wait_time} Logs the given message with the given level. 360.0 ${config_attr} '${ns_config}'!='${EMPTY}' --config '${ns_config}' ${EMPTY} Sets variable based on the given condition. ${config_attr} = --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext}],vnf: [ {member-vnf-index: manual_scale_vnf, vdu: [{ id: mgmtVM, vim-flavor-id: fe12a210-6fa7-4868-9845-89c27cb3fbb1}]}] }' ${sshkeys_attr} '${publickey}'!='${EMPTY}' --ssh_keys ${publickey} ${EMPTY} Sets variable based on the given condition. ${sshkeys_attr} = --ssh_keys /root/.ssh/id_rsa.pub ${config_file_attr} '${config_file}'!='${EMPTY}' --config_file '${config_file}' ${EMPTY} Sets variable based on the given condition. ${config_file_attr} = ${ns_id} ${ns_name} ${nsd} ${vim_name} ${config_attr} ${sshkeys_attr} ${config_file_attr} Launch the instantation of a NS, and return the NS instance id. ${rc} ${stdout} osm ns-create --ns_name ${ns_name} --nsd_name ${nsd} --vim_account ${vim_name} ${ns_extra_args} Runs the given command in the system and returns the RC and output. Running command 'osm ns-create --ns_name heal_02 --nsd_name volumes_healing-ns --vim_account osm --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext}],vnf: [ {member-vnf-index: manual_scale_vnf, vdu: [{ id: mgmtVM, vim-flavor-id: fe12a210-6fa7-4868-9845-89c27cb3fbb1}]}] }' --ssh_keys /root/.ssh/id_rsa.pub 2>&1'. ${rc} = 0 ${stdout} = 76cc9674-25e1-48aa-aa90-73399b0e9284 ${stdout} Logs the given message with the given level. 76cc9674-25e1-48aa-aa90-73399b0e9284 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 76cc9674-25e1-48aa-aa90-73399b0e9284 ${ns_id} Logs the given message with the given level. 76cc9674-25e1-48aa-aa90-73399b0e9284 ${ns_launch_max_wait_time} ${NS_LAUNCH_POL_TIME} Check For NS Instance To Configured ${ns_name} Runs the specified keyword and retries if it fails. ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+----------------------------------------+--------+-------------------------------------------------------------------+-------------+---------------------------+... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+----------------------------------------+--------+-------------------------------------------------------------------+-------------+---------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+----------------------------------------+--------+-------------------------------------------------------------------+-------------+---------------------------+ | 11553140-d044-4f58-befe-747fa1785443 | basic_08_disable-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 2379e674-0a21-46a2-915d-c1eb3ade56fe | basic_08_disable-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | b801e2e1-7942-45e2-a14e-f2db0a3147de | basic_08_disable-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | c3fc3b72-8711-4dd0-a8c0-34a3588bfd89 | basic_08_disable-vnf1-mgmtVM-0 | ACTIVE | basic_08_disable-internal=192.168.122.182; osm-ext=172.21.249.219 | ubuntu20.04 | simple_requires-1-1-flv | | 04028981-4f32-48dc-8079-d3ba19af59c9 | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | ERROR | | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+----------------------------------------+--------+-------------------------------------------------------------------+-------------+---------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="heal_02" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | heal_02 | 76cc9674-25e1-48aa-aa90-73399b0e9284 | 2024-02-19T04:08:02 | BUILDING | INSTANTIATING (ef23b8f5-d42e-40d5-84e8-f3ee7cca0044) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | heal_02 | 76cc9674-25e1-48aa-aa90-73399b0e9284 | 2024-02-19T04:08:02 | BUILDING | INSTANTIATING (ef23b8f5-d42e-40d5-84e8-f3ee7cca0044) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------+-------------+---------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------+-------------+---------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------+-------------+---------------------------+ | 7f6fda79-9e6d-4461-8410-9f51394bf961 | heal_02-manual_scale_vnf-mgmtVM-1 | BUILD | | ubuntu18.04 | osm.heal02_684814 | | faa91dcd-2ad0-4f2b-89a0-a2342380e295 | heal_02-manual_scale_vnf-mgmtVM-0 | BUILD | | ubuntu18.04 | osm.heal02_684814 | | fe98a550-56eb-45ba-b587-0ed02c06efb2 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.34 | ubuntu20.04 | several_volumes-VM-flv | | 11553140-d044-4f58-befe-747fa1785443 | basic_08_disable-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 2379e674-0a21-46a2-915d-c1eb3ade56fe | basic_08_disable-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | b801e2e1-7942-45e2-a14e-f2db0a3147de | basic_08_disable-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | c3fc3b72-8711-4dd0-a8c0-34a3588bfd89 | basic_08_disable-vnf1-mgmtVM-0 | ACTIVE | basic_08_disable-internal=192.168.122.182; osm-ext=172.21.249.219 | ubuntu20.04 | simple_requires-1-1-flv | | 04028981-4f32-48dc-8079-d3ba19af59c9 | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | ERROR | | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------+-------------+---------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="heal_02" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | heal_02 | 76cc9674-25e1-48aa-aa90-73399b0e9284 | 2024-02-19T04:08:02 | BUILDING | INSTANTIATING (ef23b8f5-d42e-40d5-84e8-f3ee7cca0044) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | heal_02 | 76cc9674-25e1-48aa-aa90-73399b0e9284 | 2024-02-19T04:08:02 | BUILDING | INSTANTIATING (ef23b8f5-d42e-40d5-84e8-f3ee7cca0044) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------+-------------+---------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------+-------------+-----------------------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------+-------------+-----------------------------------------+ | 38bfae3b-cf71-445f-a3aa-b809c91aac84 | heal_04-autoheal-basic-1-autoheal_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.245 | ubuntu20.04 | autoheal_vnfd-VM-autoheal-basic-1-1-flv | | 7f6fda79-9e6d-4461-8410-9f51394bf961 | heal_02-manual_scale_vnf-mgmtVM-1 | BUILD | | ubuntu18.04 | osm.heal02_684814 | | faa91dcd-2ad0-4f2b-89a0-a2342380e295 | heal_02-manual_scale_vnf-mgmtVM-0 | BUILD | | ubuntu18.04 | osm.heal02_684814 | | fe98a550-56eb-45ba-b587-0ed02c06efb2 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.34 | ubuntu20.04 | several_volumes-VM-flv | | 11553140-d044-4f58-befe-747fa1785443 | basic_08_disable-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 2379e674-0a21-46a2-915d-c1eb3ade56fe | basic_08_disable-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | b801e2e1-7942-45e2-a14e-f2db0a3147de | basic_08_disable-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | c3fc3b72-8711-4dd0-a8c0-34a3588bfd89 | basic_08_disable-vnf1-mgmtVM-0 | ACTIVE | basic_08_disable-internal=192.168.122.182; osm-ext=172.21.249.219 | ubuntu20.04 | simple_requires-1-1-flv | | 04028981-4f32-48dc-8079-d3ba19af59c9 | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | ERROR | | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------+-------------+-----------------------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="heal_02" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | heal_02 | 76cc9674-25e1-48aa-aa90-73399b0e9284 | 2024-02-19T04:08:02 | BUILDING | INSTANTIATING (ef23b8f5-d42e-40d5-84e8-f3ee7cca0044) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | heal_02 | 76cc9674-25e1-48aa-aa90-73399b0e9284 | 2024-02-19T04:08:02 | BUILDING | INSTANTIATING (ef23b8f5-d42e-40d5-84e8-f3ee7cca0044) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------+-------------+---------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------+-------------+-----------------------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------+-------------+-----------------------------------------+ | 38bfae3b-cf71-445f-a3aa-b809c91aac84 | heal_04-autoheal-basic-1-autoheal_vnfd-VM-0 | ERROR | osm-ext=172.21.248.245 | ubuntu20.04 | autoheal_vnfd-VM-autoheal-basic-1-1-flv | | 7f6fda79-9e6d-4461-8410-9f51394bf961 | heal_02-manual_scale_vnf-mgmtVM-1 | BUILD | | ubuntu18.04 | osm.heal02_684814 | | faa91dcd-2ad0-4f2b-89a0-a2342380e295 | heal_02-manual_scale_vnf-mgmtVM-0 | BUILD | | ubuntu18.04 | osm.heal02_684814 | | fe98a550-56eb-45ba-b587-0ed02c06efb2 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.34 | ubuntu20.04 | several_volumes-VM-flv | | 11553140-d044-4f58-befe-747fa1785443 | basic_08_disable-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 2379e674-0a21-46a2-915d-c1eb3ade56fe | basic_08_disable-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | b801e2e1-7942-45e2-a14e-f2db0a3147de | basic_08_disable-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | c3fc3b72-8711-4dd0-a8c0-34a3588bfd89 | basic_08_disable-vnf1-mgmtVM-0 | ACTIVE | basic_08_disable-internal=192.168.122.182; osm-ext=172.21.249.219 | ubuntu20.04 | simple_requires-1-1-flv | | 04028981-4f32-48dc-8079-d3ba19af59c9 | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | ERROR | | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------+-------------+-----------------------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="heal_02" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | heal_02 | 76cc9674-25e1-48aa-aa90-73399b0e9284 | 2024-02-19T04:08:02 | BUILDING | INSTANTIATING (ef23b8f5-d42e-40d5-84e8-f3ee7cca0044) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | heal_02 | 76cc9674-25e1-48aa-aa90-73399b0e9284 | 2024-02-19T04:08:02 | BUILDING | INSTANTIATING (ef23b8f5-d42e-40d5-84e8-f3ee7cca0044) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------+-------------+---------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------+-------------+-----------------------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------+-------------+-----------------------------------------+ | 38bfae3b-cf71-445f-a3aa-b809c91aac84 | heal_04-autoheal-basic-1-autoheal_vnfd-VM-0 | ERROR | osm-ext=172.21.248.245 | ubuntu20.04 | autoheal_vnfd-VM-autoheal-basic-1-1-flv | | 7f6fda79-9e6d-4461-8410-9f51394bf961 | heal_02-manual_scale_vnf-mgmtVM-1 | BUILD | | ubuntu18.04 | osm.heal02_684814 | | faa91dcd-2ad0-4f2b-89a0-a2342380e295 | heal_02-manual_scale_vnf-mgmtVM-0 | BUILD | | ubuntu18.04 | osm.heal02_684814 | | fe98a550-56eb-45ba-b587-0ed02c06efb2 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.34 | ubuntu20.04 | several_volumes-VM-flv | | 11553140-d044-4f58-befe-747fa1785443 | basic_08_disable-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 2379e674-0a21-46a2-915d-c1eb3ade56fe | basic_08_disable-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | b801e2e1-7942-45e2-a14e-f2db0a3147de | basic_08_disable-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | c3fc3b72-8711-4dd0-a8c0-34a3588bfd89 | basic_08_disable-vnf1-mgmtVM-0 | ACTIVE | basic_08_disable-internal=192.168.122.182; osm-ext=172.21.249.219 | ubuntu20.04 | simple_requires-1-1-flv | | 04028981-4f32-48dc-8079-d3ba19af59c9 | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | ERROR | | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------+-------------+-----------------------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="heal_02" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | heal_02 | 76cc9674-25e1-48aa-aa90-73399b0e9284 | 2024-02-19T04:08:02 | BUILDING | INSTANTIATING (ef23b8f5-d42e-40d5-84e8-f3ee7cca0044) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | heal_02 | 76cc9674-25e1-48aa-aa90-73399b0e9284 | 2024-02-19T04:08:02 | BUILDING | INSTANTIATING (ef23b8f5-d42e-40d5-84e8-f3ee7cca0044) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------+-------------+---------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------+-------------+-----------------------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------+-------------+-----------------------------------------+ | 38bfae3b-cf71-445f-a3aa-b809c91aac84 | heal_04-autoheal-basic-1-autoheal_vnfd-VM-0 | ERROR | osm-ext=172.21.248.245 | ubuntu20.04 | autoheal_vnfd-VM-autoheal-basic-1-1-flv | | 7f6fda79-9e6d-4461-8410-9f51394bf961 | heal_02-manual_scale_vnf-mgmtVM-1 | BUILD | | ubuntu18.04 | osm.heal02_684814 | | faa91dcd-2ad0-4f2b-89a0-a2342380e295 | heal_02-manual_scale_vnf-mgmtVM-0 | BUILD | | ubuntu18.04 | osm.heal02_684814 | | fe98a550-56eb-45ba-b587-0ed02c06efb2 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.34 | ubuntu20.04 | several_volumes-VM-flv | | 11553140-d044-4f58-befe-747fa1785443 | basic_08_disable-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 2379e674-0a21-46a2-915d-c1eb3ade56fe | basic_08_disable-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | b801e2e1-7942-45e2-a14e-f2db0a3147de | basic_08_disable-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | c3fc3b72-8711-4dd0-a8c0-34a3588bfd89 | basic_08_disable-vnf1-mgmtVM-0 | ACTIVE | basic_08_disable-internal=192.168.122.182; osm-ext=172.21.249.219 | ubuntu20.04 | simple_requires-1-1-flv | | 04028981-4f32-48dc-8079-d3ba19af59c9 | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | ERROR | | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------+-------------+-----------------------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="heal_02" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | heal_02 | 76cc9674-25e1-48aa-aa90-73399b0e9284 | 2024-02-19T04:08:02 | BUILDING | INSTANTIATING (ef23b8f5-d42e-40d5-84e8-f3ee7cca0044) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | heal_02 | 76cc9674-25e1-48aa-aa90-73399b0e9284 | 2024-02-19T04:08:02 | BUILDING | INSTANTIATING (ef23b8f5-d42e-40d5-84e8-f3ee7cca0044) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------+-------------+---------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------+-------------+-----------------------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------+-------------+-----------------------------------------+ | 38bfae3b-cf71-445f-a3aa-b809c91aac84 | heal_04-autoheal-basic-1-autoheal_vnfd-VM-0 | ERROR | osm-ext=172.21.248.245 | ubuntu20.04 | autoheal_vnfd-VM-autoheal-basic-1-1-flv | | 7f6fda79-9e6d-4461-8410-9f51394bf961 | heal_02-manual_scale_vnf-mgmtVM-1 | BUILD | | ubuntu18.04 | osm.heal02_684814 | | faa91dcd-2ad0-4f2b-89a0-a2342380e295 | heal_02-manual_scale_vnf-mgmtVM-0 | BUILD | | ubuntu18.04 | osm.heal02_684814 | | fe98a550-56eb-45ba-b587-0ed02c06efb2 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.34 | ubuntu20.04 | several_volumes-VM-flv | | 11553140-d044-4f58-befe-747fa1785443 | basic_08_disable-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 2379e674-0a21-46a2-915d-c1eb3ade56fe | basic_08_disable-vnf2-mgmtVM-0 | ERROR | | ubuntu20.04 | simple_requires-1-1-flv | | b801e2e1-7942-45e2-a14e-f2db0a3147de | basic_08_disable-vnf1-dataVM-0 | ERROR | | ubuntu20.04 | simple_requires-1-1-flv | | c3fc3b72-8711-4dd0-a8c0-34a3588bfd89 | basic_08_disable-vnf1-mgmtVM-0 | ACTIVE | basic_08_disable-internal=192.168.122.182; osm-ext=172.21.249.219 | ubuntu20.04 | simple_requires-1-1-flv | | 04028981-4f32-48dc-8079-d3ba19af59c9 | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | ERROR | | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------+-------------+-----------------------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="heal_02" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | heal_02 | 76cc9674-25e1-48aa-aa90-73399b0e9284 | 2024-02-19T04:08:02 | BUILDING | INSTANTIATING (ef23b8f5-d42e-40d5-84e8-f3ee7cca0044) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | heal_02 | 76cc9674-25e1-48aa-aa90-73399b0e9284 | 2024-02-19T04:08:02 | BUILDING | INSTANTIATING (ef23b8f5-d42e-40d5-84e8-f3ee7cca0044) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+------------------------+-------------+-----------------------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+------------------------+-------------+-----------------------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+------------------------+-------------+-----------------------------------------+ | 38bfae3b-cf71-445f-a3aa-b809c91aac84 | heal_04-autoheal-basic-1-autoheal_vnfd-VM-0 | ERROR | osm-ext=172.21.248.245 | ubuntu20.04 | autoheal_vnfd-VM-autoheal-basic-1-1-flv | | 7f6fda79-9e6d-4461-8410-9f51394bf961 | heal_02-manual_scale_vnf-mgmtVM-1 | BUILD | | ubuntu18.04 | osm.heal02_684814 | | faa91dcd-2ad0-4f2b-89a0-a2342380e295 | heal_02-manual_scale_vnf-mgmtVM-0 | BUILD | | ubuntu18.04 | osm.heal02_684814 | | fe98a550-56eb-45ba-b587-0ed02c06efb2 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.34 | ubuntu20.04 | several_volumes-VM-flv | | 11553140-d044-4f58-befe-747fa1785443 | basic_08_disable-vnf2-dataVM-0 | ERROR | | ubuntu20.04 | simple_requires-1-1-flv | | 2379e674-0a21-46a2-915d-c1eb3ade56fe | basic_08_disable-vnf2-mgmtVM-0 | ERROR | | ubuntu20.04 | simple_requires-1-1-flv | | 04028981-4f32-48dc-8079-d3ba19af59c9 | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | ERROR | | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+------------------------+-------------+-----------------------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="heal_02" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | heal_02 | 76cc9674-25e1-48aa-aa90-73399b0e9284 | 2024-02-19T04:08:02 | BUILDING | INSTANTIATING (ef23b8f5-d42e-40d5-84e8-f3ee7cca0044) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | heal_02 | 76cc9674-25e1-48aa-aa90-73399b0e9284 | 2024-02-19T04:08:02 | BUILDING | INSTANTIATING (ef23b8f5-d42e-40d5-84e8-f3ee7cca0044) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+------------------------+-------------+-----------------------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+------------------------+-------------+-----------------------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+------------------------+-------------+-----------------------------------------+ | 38bfae3b-cf71-445f-a3aa-b809c91aac84 | heal_04-autoheal-basic-1-autoheal_vnfd-VM-0 | ERROR | osm-ext=172.21.248.245 | ubuntu20.04 | autoheal_vnfd-VM-autoheal-basic-1-1-flv | | 7f6fda79-9e6d-4461-8410-9f51394bf961 | heal_02-manual_scale_vnf-mgmtVM-1 | BUILD | | ubuntu18.04 | osm.heal02_684814 | | faa91dcd-2ad0-4f2b-89a0-a2342380e295 | heal_02-manual_scale_vnf-mgmtVM-0 | BUILD | | ubuntu18.04 | osm.heal02_684814 | | fe98a550-56eb-45ba-b587-0ed02c06efb2 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.34 | ubuntu20.04 | several_volumes-VM-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+------------------------+-------------+-----------------------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="heal_02" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | heal_02 | 76cc9674-25e1-48aa-aa90-73399b0e9284 | 2024-02-19T04:08:02 | BUILDING | INSTANTIATING (ef23b8f5-d42e-40d5-84e8-f3ee7cca0044) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | heal_02 | 76cc9674-25e1-48aa-aa90-73399b0e9284 | 2024-02-19T04:08:02 | BUILDING | INSTANTIATING (ef23b8f5-d42e-40d5-84e8-f3ee7cca0044) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-----------------------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-----------------------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-----------------------------------------+ | c760ca7e-02ec-4474-bacd-1b0ec5ca82cf | slicebasic.slice-middle-ubuntu_slice-VM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 06d409db-e8f3-446e-b636-754421993068 | basic_09_manual_-vnf-hackfest_basic_metrics-VM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | ea2ad3ca-3a41-40ac-8d9f-324b76092d39 | slicebasic.slice-edge-ubuntu_slice-VM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | dfb6702a-6214-4397-a80f-4f1fdb1db906 | heal_04-autoheal-basic-1-autoheal_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.245 | ubuntu20.04 | autoheal_vnfd-VM-autoheal-basic-1-1-flv | | 7f6fda79-9e6d-4461-8410-9f51394bf961 | heal_02-manual_scale_vnf-mgmtVM-1 | BUILD | | ubuntu18.04 | osm.heal02_684814 | | faa91dcd-2ad0-4f2b-89a0-a2342380e295 | heal_02-manual_scale_vnf-mgmtVM-0 | BUILD | | ubuntu18.04 | osm.heal02_684814 | | fe98a550-56eb-45ba-b587-0ed02c06efb2 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.34 | ubuntu20.04 | several_volumes-VM-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-----------------------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="heal_02" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | heal_02 | 76cc9674-25e1-48aa-aa90-73399b0e9284 | 2024-02-19T04:08:02 | BUILDING | INSTANTIATING (ef23b8f5-d42e-40d5-84e8-f3ee7cca0044) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | heal_02 | 76cc9674-25e1-48aa-aa90-73399b0e9284 | 2024-02-19T04:08:02 | BUILDING | INSTANTIATING (ef23b8f5-d42e-40d5-84e8-f3ee7cca0044) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 26bf5165-ae85-41df-86ef-194293211983 | slicebasic.slice-edge-ubuntu_slice-VM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 06d409db-e8f3-446e-b636-754421993068 | basic_09_manual_-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.204 | ubuntu20.04 | simple_requires-1-1-flv | | c760ca7e-02ec-4474-bacd-1b0ec5ca82cf | slicebasic.slice-middle-ubuntu_slice-VM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | ea2ad3ca-3a41-40ac-8d9f-324b76092d39 | slicebasic.slice-edge-ubuntu_slice-VM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 7f6fda79-9e6d-4461-8410-9f51394bf961 | heal_02-manual_scale_vnf-mgmtVM-1 | ERROR | | ubuntu18.04 | osm.heal02_684814 | | faa91dcd-2ad0-4f2b-89a0-a2342380e295 | heal_02-manual_scale_vnf-mgmtVM-0 | ERROR | | ubuntu18.04 | osm.heal02_684814 | | fe98a550-56eb-45ba-b587-0ed02c06efb2 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.34 | ubuntu20.04 | several_volumes-VM-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="heal_02" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | heal_02 | 76cc9674-25e1-48aa-aa90-73399b0e9284 | 2024-02-19T04:08:02 | BUILDING | INSTANTIATING (ef23b8f5-d42e-40d5-84e8-f3ee7cca0044) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | heal_02 | 76cc9674-25e1-48aa-aa90-73399b0e9284 | 2024-02-19T04:08:02 | BUILDING | INSTANTIATING (ef23b8f5-d42e-40d5-84e8-f3ee7cca0044) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 26bf5165-ae85-41df-86ef-194293211983 | slicebasic.slice-edge-ubuntu_slice-VM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 06d409db-e8f3-446e-b636-754421993068 | basic_09_manual_-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.204 | ubuntu20.04 | simple_requires-1-1-flv | | c760ca7e-02ec-4474-bacd-1b0ec5ca82cf | slicebasic.slice-middle-ubuntu_slice-VM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | ea2ad3ca-3a41-40ac-8d9f-324b76092d39 | slicebasic.slice-edge-ubuntu_slice-VM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 7f6fda79-9e6d-4461-8410-9f51394bf961 | heal_02-manual_scale_vnf-mgmtVM-1 | ERROR | | ubuntu18.04 | osm.heal02_684814 | | faa91dcd-2ad0-4f2b-89a0-a2342380e295 | heal_02-manual_scale_vnf-mgmtVM-0 | ERROR | | ubuntu18.04 | osm.heal02_684814 | | fe98a550-56eb-45ba-b587-0ed02c06efb2 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.34 | ubuntu20.04 | several_volumes-VM-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="heal_02" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+-------------------+-----------------------------------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+-------------------+-----------------------------------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+-------------------+-----------------------------------------+ | heal_02 | 76cc9674-25e1-48aa-aa90-73399b0e9284 | 2024-02-19T04:08:02 | BROKEN | IDLE (None) | Operation: INSTANTIATING.ef23b8f5-d42e- | | | | | | | 40d5-84e8-f3ee7cca0044, Stage 2/5: | | | | | | | deployment of KDUs, VMs and execution | | | | | | | environments. | | | | | | | Detail: Deploying at VIM: Error at | | | | | | | create vdu: unknown | +------------------+--------------------------------------+---------------------+----------+-------------------+-----------------------------------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. ${ns_name} Check if a given NS instance has not failed in the instantiation (the status should not be BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 26bf5165-ae85-41df-86ef-194293211983 | slicebasic.slice-edge-ubuntu_slice-VM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 06d409db-e8f3-446e-b636-754421993068 | basic_09_manual_-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.204 | ubuntu20.04 | simple_requires-1-1-flv | | c760ca7e-02ec-4474-bacd-1b0ec5ca82cf | slicebasic.slice-middle-ubuntu_slice-VM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | ea2ad3ca-3a41-40ac-8d9f-324b76092d39 | slicebasic.slice-edge-ubuntu_slice-VM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 7f6fda79-9e6d-4461-8410-9f51394bf961 | heal_02-manual_scale_vnf-mgmtVM-1 | ERROR | | ubuntu18.04 | osm.heal02_684814 | | faa91dcd-2ad0-4f2b-89a0-a2342380e295 | heal_02-manual_scale_vnf-mgmtVM-0 | ERROR | | ubuntu18.04 | osm.heal02_684814 | | fe98a550-56eb-45ba-b587-0ed02c06efb2 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.34 | ubuntu20.04 | several_volumes-VM-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="heal_02" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+-------------------+-----------------------------------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+-------------------+-----------------------------------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+-------------------+-----------------------------------------+ | heal_02 | 76cc9674-25e1-48aa-aa90-73399b0e9284 | 2024-02-19T04:08:02 | BROKEN | IDLE (None) | Operation: INSTANTIATING.ef23b8f5-d42e- | | | | | | | 40d5-84e8-f3ee7cca0044, Stage 2/5: | | | | | | | deployment of KDUs, VMs and execution | | | | | | | environments. | | | | | | | Detail: Deploying at VIM: Error at | | | | | | | create vdu: unknown | +------------------+--------------------------------------+---------------------+----------+-------------------+-----------------------------------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} BROKEN Fails if ``container`` contains ``item`` one or more times. '+------------------+--------------------------------------+---------------------+----------+-------------------+-----------------------------------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+-------------------+-----------------------------------------+ | heal_02 | 76cc9674-25e1-48aa-aa90-73399b0e9284 | 2024-02-19T04:08:02 | BROKEN | IDLE (None) | Operation: INSTANTIATING.ef23b8f5-d42e- | | | | | | | 40d5-84e8-f3ee7cca0044, Stage 2/5: | | | | | | | deployment of KDUs, VMs and execution | | | | | | | environments. | | | | | | | Detail: Deploying at VIM: Error at | | | | | | | create vdu: unknown | +------------------+--------------------------------------+---------------------+----------+-------------------+-----------------------------------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' contains 'BROKEN' ${ns_id} ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. Instantiate NS for the testsuite using the previously created flavor. cluster_heal daily heal_02 regression '+------------------+--------------------------------------+---------------------+----------+-------------------+-----------------------------------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+-------------------+-----------------------------------------+ | heal_02 | 76cc9674-25e1-48aa-aa90-73399b0e9284 | 2024-02-19T04:08:02 | BROKEN | IDLE (None) | Operation: INSTANTIATING.ef23b8f5-d42e- | | | | | | | 40d5-84e8-f3ee7cca0044, Stage 2/5: | | | | | | | deployment of KDUs, VMs and execution | | | | | | | environments. | | | | | | | Detail: Deploying at VIM: Error at | | | | | | | create vdu: unknown | +------------------+--------------------------------------+---------------------+----------+-------------------+-----------------------------------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' contains 'BROKEN' ${variables} Returns a dictionary containing all variables in the current scope. ${variables} = {'${/}': '/', '${:}': ':', '${\\n}': '\n', '${DEBUG_FILE}': 'NONE', '${EXECDIR}': '/robot-systest', '${FAILURE_RETURN_CODE}': '1', '${False}': False, '${FLAVOR_ID}': 'fe12a210-6fa7-4868-9845-89c27cb3f... ${id} ${NS_NAME} Get the NS instance ID from a NS instance name passed as argument, and return it. ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. Invalid IF condition: Evaluating expression 'not "${ns_id}" in "{'${/}': '/', '${:}': ':', '${\\n}': '\n', '${DEBUG_FILE}': 'NONE', '${EXECDIR}': '/robot-systest', '${FAILURE_RETURN_CODE}': '1', '${False}': False, '${FLAVOR_ID}': 'fe12a210-6fa7-4868-9845-89c27cb3fbb1', '${FLAVOR_NAME_PREFIX}': 'osm.heal02', '${HEALING_POL_TIME}': '15sec', '${LOG_FILE}': '/robot-systest/reports/log.html', '${LOG_LEVEL}': 'INFO', '${None}': None, '${NS_ACTION_MAX_WAIT_TIME}': '1min', '${NS_ACTION_POL_TIME}': '15sec', '${NSD_DELETE_MAX_WAIT_TIME}': '1min', '${NSD_DELETE_POL_TIME}': '15sec', '${NS_DELETE_POL_TIME}': '15sec', '${NSD_NAME}': 'volumes_healing-ns', '${NSD_PKG}': 'volumes_healing_ns', '${NS_LAUNCH_POL_TIME}': '30sec', '${NS_NAME}': 'heal_02', '${NS_TIMEOUT}': '6min', '${null}': None, '${OUTPUT_DIR}': '/robot-systest/reports', '${OUTPUT_FILE}': '/robot-systest/reports/output.xml', '${PASSWORD}': '', '${PREV_TEST_MESSAGE}': '\'+------------------+--------------------------------------+---------------------+----------+-------------------+-----------------------------------------+\n| ns instance name | id | date | ns state | current operation | error details |\n+------------------+--------------------------------------+---------------------+----------+-------------------+-----------------------------------------+\n| heal_02 | 76cc9674-25e1-48aa-aa90-73399b0e9284 | 2024-02-19T04:08:02 | BROKEN | IDLE (None) | Operation: INSTANTIATING.ef23b8f5-d42e- |\n| | | | | | 40d5-84e8-f3ee7cca0044, Stage 2/5: |\n| | | | | | deployment of KDUs, VMs and execution |\n| | | | | | environments. |\n| | | | | | Detail: Deploying at VIM: Error at |\n| | | | | | create vdu: unknown |\n+------------------+--------------------------------------+---------------------+----------+-------------------+-----------------------------------------+\nTo get the history of all operations over a NS, run "osm ns-op-list NS_ID"\nFor more details on the current operation, run "osm ns-op-show OPERATION_ID"\' contains \'BROKEN\'', '${PREV_TEST_NAME}': 'Network Service Instance Test', '${PREV_TEST_STATUS}': 'FAIL', '${PRIVATEKEY}': '/root/.ssh/id_rsa', '${PUBLICKEY}': '/root/.ssh/id_rsa.pub', '${REPORT_FILE}': '/robot-systest/reports/report.html', '${SCALE_WAIT_TIME}': '5min', '${SPACE}': ' ', '${SUCCESS_RETURN_CODE}': '0', '${SUITE_DOCUMENTATION}': '[HEAL-02] Healing of scaled VDUs', '${SUITE_NAME}': 'Testsuite.Heal 02-Scale Vdu Healing', '${SUITE_SOURCE}': '/robot-systest/testsuite/heal_02-scale_vdu_healing.robot', '${TEMPDIR}': '/tmp', '${TEST_DOCUMENTATION}': 'Get NS identifier.', '${TEST_NAME}': 'Get NS Id', '${True}': True, '${USERNAME}': 'ubuntu', '${VDU_MANUALSCALE_NAME}': 'mgmtVM', '${VDU_VOLUMES_NAME}': 'several_volumes-VM', '${VIM_TIMEOUT_MULTIPLIER}': '1.0', '${VNFD_DELETE_MAX_WAIT_TIME}': '1min', '${VNFD_DELETE_POL_TIME}': '15sec', '${VNFD_MANUALSCALE_NAME}': 'manual_scale-vnf', '${VNFD_MANUALSCALE_PKG}': 'manual_scale_vnf', '${VNFD_VOLUMES_NAME}': 'several_volumes-vnf', '${VNFD_VOLUMES_PKG}': 'several_volumes_vnf', '${VNF_MANUALSCALE_CLOUDINIT_FILE}': '/root/helloworld.txt', '${VNF_MANUALSCALE_DAY1_FILE}': '/home/ubuntu/first-touch', '${VNF_MANUALSCALE_INDEX}': 'manual_scale_vnf', '${VNF_MANUALSCALE_SCALING_GROUP}': 'manual-scaling_mgmtVM', '${VNF_SCALE_POL_TIME}': '15sec', '${VNF_SEVERAL_INDEX}': 'several_volumes_vnf', '&{OPTIONS}': {'include': ['daily'], 'exclude': [], 'skip': [], 'skip_on_failure': []}, '&{SUITE_METADATA}': Metadata(), '@{TEST_TAGS}': ['cleanup', 'cluster_heal', 'daily', 'heal_02', 'regression'], '@{VIM_VDUS}': [], '@{VIM_VOLUMES}': []}"' failed: SyntaxError: invalid syntax (<string>, line 1) Variables in the original expression 'not "\${ns_id}" in "${variables}"' were resolved before the expression was evaluated. Try using 'not "\${ns_id}" in "$variables"' syntax to avoid that. See Evaluating Expressions appendix in Robot Framework User Guide for more details. Get NS identifier. cleanup cluster_heal daily heal_02 regression Invalid IF condition: Evaluating expression 'not "${ns_id}" in "{'${/}': '/', '${:}': ':', '${\\n}': '\n', '${DEBUG_FILE}': 'NONE', '${EXECDIR}': '/robot-systest', '${FAILURE_RETURN_CODE}': '1', '${False}': False, '${FLAVOR_ID}': 'fe12a210-6fa7-4868-9845-89c27cb3fbb1', '${FLAVOR_NAME_PREFIX}': 'osm.heal02', '${HEALING_POL_TIME}': '15sec', '${LOG_FILE}': '/robot-systest/reports/log.html', '${LOG_LEVEL}': 'INFO', '${None}': None, '${NS_ACTION_MAX_WAIT_TIME}': '1min', '${NS_ACTION_POL_TIME}': '15sec', '${NSD_DELETE_MAX_WAIT_TIME}': '1min', '${NSD_DELETE_POL_TIME}': '15sec', '${NS_DELETE_POL_TIME}': '15sec', '${NSD_NAME}': 'volumes_healing-ns', '${NSD_PKG}': 'volumes_healing_ns', '${NS_LAUNCH_POL_TIME}': '30sec', '${NS_NAME}': 'heal_02', '${NS_TIMEOUT}': '6min', '${null}': None, '${OUTPUT_DIR}': '/robot-systest/reports', '${OUTPUT_FILE}': '/robot-systest/reports/output.xml', '${PASSWORD}': '', '${PREV_TEST_MESSAGE}': '\'+------------------+--------------------------------------+---------------------+----------+-------------------+-----------------------------------------+\n| ns instance name | id | date | ns state | current operation | error details |\n+------------------+--------------------------------------+---------------------+----------+-------------------+-----------------------------------------+\n| heal_02 | 76cc9674-25e1-48aa-aa90-73399b0e9284 | 2024-02-19T04:08:02 | BROKEN | IDLE (None) | Operation: INSTANTIATING.ef23b8f5-d42e- |\n| ... [ Message content over the limit has been removed. ] ...te/heal_02-scale_vdu_healing.robot', '${TEMPDIR}': '/tmp', '${TEST_DOCUMENTATION}': 'Get NS identifier.', '${TEST_NAME}': 'Get NS Id', '${True}': True, '${USERNAME}': 'ubuntu', '${VDU_MANUALSCALE_NAME}': 'mgmtVM', '${VDU_VOLUMES_NAME}': 'several_volumes-VM', '${VIM_TIMEOUT_MULTIPLIER}': '1.0', '${VNFD_DELETE_MAX_WAIT_TIME}': '1min', '${VNFD_DELETE_POL_TIME}': '15sec', '${VNFD_MANUALSCALE_NAME}': 'manual_scale-vnf', '${VNFD_MANUALSCALE_PKG}': 'manual_scale_vnf', '${VNFD_VOLUMES_NAME}': 'several_volumes-vnf', '${VNFD_VOLUMES_PKG}': 'several_volumes_vnf', '${VNF_MANUALSCALE_CLOUDINIT_FILE}': '/root/helloworld.txt', '${VNF_MANUALSCALE_DAY1_FILE}': '/home/ubuntu/first-touch', '${VNF_MANUALSCALE_INDEX}': 'manual_scale_vnf', '${VNF_MANUALSCALE_SCALING_GROUP}': 'manual-scaling_mgmtVM', '${VNF_SCALE_POL_TIME}': '15sec', '${VNF_SEVERAL_INDEX}': 'several_volumes_vnf', '&{OPTIONS}': {'include': ['daily'], 'exclude': [], 'skip': [], 'skip_on_failure': []}, '&{SUITE_METADATA}': Metadata(), '@{TEST_TAGS}': ['cleanup', 'cluster_heal', 'daily', 'heal_02', 'regression'], '@{VIM_VDUS}': [], '@{VIM_VOLUMES}': []}"' failed: SyntaxError: invalid syntax (<string>, line 1) Variables in the original expression 'not "\${ns_id}" in "${variables}"' were resolved before the expression was evaluated. Try using 'not "\${ns_id}" in "$variables"' syntax to avoid that. See Evaluating Expressions appendix in Robot Framework User Guide for more details. ${vnf_id} ${NS_ID} ${VNF_MANUALSCALE_INDEX} Get the VNF instance ID of a member VNF in a NS instance, and return it. Variable '${NS_ID}' not found. ${VNF_MANUALSCALE_ID} ${vnf_id} Makes a variable available everywhere within the scope of the current suite. @{vdur_list} ${VNF_MANUALSCALE_ID} Return a list with the names of the VDU records of a VNF instance. ${vdurs} ${vdur_list} Returns and logs the length of the given item as an integer. ${INITIAL_VDUR_COUNT} ${vdurs} Makes a variable available everywhere within the scope of the current suite. ${NS_NAME} ${VNF_MANUALSCALE_INDEX} ${VNF_MANUALSCALE_SCALING_GROUP} SCALE_OUT ${SCALE_WAIT_TIME} Execute a manual VNF Scale action. The parameter 'scale_type' must be SCALE_IN or SCALE_OUT. Return the ID of the operation associated to the executed scale action. @{vdur_list} ${VNF_MANUALSCALE_ID} Return a list with the names of the VDU records of a VNF instance. ${vdurs} ${vdur_list} Returns and logs the length of the given item as an integer. msg=There is no new VDU records in the VNF after Scale Out Fails the test with the given message and optionally alters its tags. Perform a manual scale-out operation of the manual-scale VNF. cluster_heal daily heal_02 regression Variable '${NS_ID}' not found. ${NS_ID} msg=NS is not available Fails unless the given variable exists within the current scope. msg=NS is not available @{vnf_id_list} ${NS_ID} Get the list of VNF instances of a given NS instance id, and return it. ${vnf_id_list} Logs the given message with the given level. ${vnf_id} @{vnf_id_list} ${vnf_id} Logs the given message with the given level. ${id} ${vnf_id} Get the identifier of the first VDU of a VNF instance. Useful to get the id when a VNF has a single VDU. @{vdu_ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. ${VIM_VDUS} @{vdu_ids} Adds ``values`` to the end of ``list``. ${vdu_id} @{VIM_VDUS} ${volumes_attached} ${vdu_id} volumes_attached Get a field (flavor, image, volumes_attached, etc.) from a server. ${match} ${volumes_attached} '([0-9a-f\-]+)' 1 Returns a list of all non-overlapping matches in the given string. ${VIM_VOLUMES} ${match}[0] Adds ``values`` to the end of ``list``. @{VIM_VDUS} Logs the given messages as separate entries using the INFO level. @{VIM_VOLUMES} Logs the given messages as separate entries using the INFO level. Retrieve all VMs and volumes from the NS and stores them in VIM_VDUS and VIM_VOLUMES lists. cluster_heal daily heal_02 regression msg=NS is not available ${NS_ID} msg=NS is not available Fails unless the given variable exists within the current scope. msg=NS is not available ${variables} Returns a dictionary containing all variables in the current scope. ${vnf_id} ${NS_ID} ${VNF_MANUALSCALE_INDEX} Get the VNF instance ID of a member VNF in a NS instance, and return it. ${VNF_MANUALSCALE_ID} ${vnf_id} Makes a variable available everywhere within the scope of the current suite. ${id} ${VNF_MANUALSCALE_ID} Get the identifier of the first VDU of a VNF instance. Useful to get the id when a VNF has a single VDU. @{vdu_manualscale_ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{VDU_MANUALSCALE_IDS} @{vdu_manualscale_ids} Makes a variable available everywhere within the scope of the current suite. ${VDU_MANUALSCALE_IDS}[1] Logs the given message with the given level. @{manualscale_ip_list} ${VNF_MANUALSCALE_ID} Return a list with the IP addresses of the VDU records of a VNF instance. @{MANUALSCALE_IP_LIST} @{manualscale_ip_list} Makes a variable available everywhere within the scope of the current suite. Get VDU ID and IP addresses of the manual scale VNF and stores them in VDU_MANUALSCALE_IDS and MANUALSCALE_IP_LIST. cluster_heal daily heal_02 regression msg=NS is not available @{VDU_MANUALSCALE_IDS} msg=VDU is not available Fails unless the given variable exists within the current scope. msg=VDU is not available ${VDU_MANUALSCALE_IDS}[1] Reset a server 15 Pauses the test executed for the given time. Halt one of the VM of the Manual Scale VNF. cluster_heal daily heal_02 regression msg=VDU is not available ${VNF_MANUALSCALE_ID} msg=VNF is not available Fails unless the given variable exists within the current scope. msg=VNF is not available ${NS_ID} --vnf ${VNF_MANUALSCALE_ID} --cause "Heal VM of manual_scale_vnf" --vdu ${VDU_MANUALSCALE_NAME} --count-index 1 --run-day1 Execute healing operation over one NS. Return the ID of the operation associated to the executed healing action. Heal manually via OSM commands all stopped VMs . They should be started again. cluster_heal daily heal_02 regression msg=VNF is not available ${VNF_MANUALSCALE_ID} msg=VNF is not available Fails unless the given variable exists within the current scope. msg=VNF is not available @{ip_list} ${VNF_MANUALSCALE_ID} Return a list with the IP addresses of the VDU records of a VNF instance. ${ip_list} ${MANUALSCALE_IP_LIST} IP addresses have changed after healing Fails if the given objects are unequal. ${id} ${VNF_MANUALSCALE_ID} Get the identifier of the first VDU of a VNF instance. Useful to get the id when a VNF has a single VDU. @{ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. ${VDU_MANUALSCALE_IDS}[0] ${ids}[0] VDU[0] id has changed after healing Fails if the given objects are unequal. ${VDU_MANUALSCALE_IDS}[1] ${ids}[1] VDU[1] id has not changed after healing Fails if the given objects are equal. ${VDU_MANUALSCALE_IDS}[2] ${ids}[2] VDU[2] id has changed after healing Fails if the given objects are unequal. ${ip} ${VNF_MANUALSCALE_ID} ip-address 1 Return an attribute from VDU records selected by count_index of a VNF instance. ${stdout} ${ip} ${USERNAME} ${PASSWORD} ${PRIVATEKEY} sudo ls ${VNF_MANUALSCALE_CLOUDINIT_FILE} Execute via SSH a command in a remote host and, if the command succeeds, return the output. ${stdout} Logs the given message with the given level. ${ip} ${USERNAME} ${PASSWORD} ${PRIVATEKEY} ${VNF_MANUALSCALE_DAY1_FILE} Check via SSH if a file exists in in the remote host, using the user and credentials passed as arguments. ${vim_info} ${VNF_MANUALSCALE_ID} vim_info 1 Return an attribute from VDU records selected by count_index of a VNF instance. ${vim_info} id: ${FLAVOR_ID} msg=Flavor ID is incorrect Fails if ``container`` does not contain ``item`` one or more times. Check that the IDs of the VM and volumes have not changed after healing. cluster_heal daily heal_02 regression msg=VNF is not available ${NS_ID} msg=NS is not available Fails unless the given variable exists within the current scope. msg=NS is not available @{vdu_updated} Returns a list containing given items. @{vnf_id_list} ${NS_ID} Get the list of VNF instances of a given NS instance id, and return it. ${vnf_id} @{vnf_id_list} ${id} ${vnf_id} Get the identifier of the first VDU of a VNF instance. Useful to get the id when a VNF has a single VDU. @{vdu_ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. ${vdu_updated} @{vdu_ids} Adds ``values`` to the end of ``list``. ${id} @{vdu_ids} ${VIM_VDUS} ${id} Adds ``values`` to the end of ``list``. ${vdu_id} @{vdu_updated} ${volumes_attached} ${vdu_id} volumes_attached Get a field (flavor, image, volumes_attached, etc.) from a server. ${match} ${volumes_attached} '([0-9a-f\-]+)' 1 Returns a list of all non-overlapping matches in the given string. ${VIM_VOLUMES} ${match}[0] Adds ``values`` to the end of ``list``. @{VIM_VDUS} Logs the given messages as separate entries using the INFO level. @{VIM_VOLUMES} Logs the given messages as separate entries using the INFO level. Retrieve all VMs and volumes from the NS and stores them in VIM_VDUS and VIM_VOLUMES lists. This is done again to guarantee that all objects are cleaned in the VIM in case the heal operation added new objects. cluster_heal daily heal_02 regression msg=NS is not available ${NS_NAME} Delete a NS instance. ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} Logs the given message with the given level. 240.0 ${rc} ${stdout} osm ns-delete ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-delete heal_02 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${stdout} Logs the given message with the given level. Deletion in progress ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${ns_delete_max_wait_time} ${NS_DELETE_POL_TIME} Check For NS Instance To Be Deleted ${ns} Runs the specified keyword and retries if it fails. ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 60a80bfa-aa20-4885-9e09-38c805b43c4d | basic_09_manual_-vnf-hackfest_basic_metrics-VM-1 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 26bf5165-ae85-41df-86ef-194293211983 | slicebasic.slice-edge-ubuntu_slice-VM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 06d409db-e8f3-446e-b636-754421993068 | basic_09_manual_-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.204 | ubuntu20.04 | simple_requires-1-1-flv | | c760ca7e-02ec-4474-bacd-1b0ec5ca82cf | slicebasic.slice-middle-ubuntu_slice-VM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | ea2ad3ca-3a41-40ac-8d9f-324b76092d39 | slicebasic.slice-edge-ubuntu_slice-VM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 7f6fda79-9e6d-4461-8410-9f51394bf961 | heal_02-manual_scale_vnf-mgmtVM-1 | ERROR | | ubuntu18.04 | osm.heal02_684814 | | faa91dcd-2ad0-4f2b-89a0-a2342380e295 | heal_02-manual_scale_vnf-mgmtVM-0 | ERROR | | ubuntu18.04 | osm.heal02_684814 | | fe98a550-56eb-45ba-b587-0ed02c06efb2 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.34 | ubuntu20.04 | several_volumes-VM-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep heal_02 2>&1'. ${rc} = 0 ${stdout} = heal_02 ${rc},${stdout} Logs the given message with the given level. 0,heal_02 ${stdout} ${ns} Fails if objects are equal after converting them to strings. heal_02 == heal_02 ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 60a80bfa-aa20-4885-9e09-38c805b43c4d | basic_09_manual_-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.248.188 | ubuntu20.04 | simple_requires-1-1-flv | | 26bf5165-ae85-41df-86ef-194293211983 | slicebasic.slice-edge-ubuntu_slice-VM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 06d409db-e8f3-446e-b636-754421993068 | basic_09_manual_-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.204 | ubuntu20.04 | simple_requires-1-1-flv | | c760ca7e-02ec-4474-bacd-1b0ec5ca82cf | slicebasic.slice-middle-ubuntu_slice-VM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | ea2ad3ca-3a41-40ac-8d9f-324b76092d39 | slicebasic.slice-edge-ubuntu_slice-VM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep heal_02 2>&1'. ${rc} = 0 ${stdout} = heal_02 ${rc},${stdout} Logs the given message with the given level. 0,heal_02 ${stdout} ${ns} Fails if objects are equal after converting them to strings. heal_02 == heal_02 ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 60a80bfa-aa20-4885-9e09-38c805b43c4d | basic_09_manual_-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | | ubuntu20.04 | simple_requires-1-1-flv | | 26bf5165-ae85-41df-86ef-194293211983 | slicebasic.slice-edge-ubuntu_slice-VM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 06d409db-e8f3-446e-b636-754421993068 | basic_09_manual_-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.204 | ubuntu20.04 | simple_requires-1-1-flv | | c760ca7e-02ec-4474-bacd-1b0ec5ca82cf | slicebasic.slice-middle-ubuntu_slice-VM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | ea2ad3ca-3a41-40ac-8d9f-324b76092d39 | slicebasic.slice-edge-ubuntu_slice-VM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep heal_02 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${ns} Fails if objects are equal after converting them to strings. Delete NS instance. cleanup cluster_heal daily heal_02 regression ${NSD_NAME} Delete a NS package from OSM. ${rc} ${stdout} Run And Return Rc And Output osm nspkg-delete ${nsd_id} Runs the keyword and continues execution even if a failure occurs. osm nspkg-delete ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-delete volumes_healing-ns 2>&1'. ${rc} = 0 ${stdout} = Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Logs the given message with the given level. Deleted ${NSD_DELETE_MAX_WAIT_TIME} ${NSD_DELETE_POL_TIME} Check For NSD ${nsd_id} Runs the specified keyword and retries if it fails. ${nsd_id} Check that a NS package exists in OSM. ${rc} ${stdout} osm nspkg-list | awk '{print $2}' | grep ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-list | awk '{print $2}' | grep volumes_healing-ns 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. Delete NS package from OSM. cleanup cluster_heal daily heal_02 regression ${VNFD_VOLUMES_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete several_volumes-vnf 2>&1'. ${rc} = 0 ${stdout} = Deleted ${stdout} Logs the given message with the given level. Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep several_volumes-vnf 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. ${VNFD_MANUALSCALE_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete manual_scale-vnf 2>&1'. ${rc} = 0 ${stdout} = Deleted ${stdout} Logs the given message with the given level. Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep manual_scale-vnf 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. Delete VNF packages from OSM. cleanup cluster_heal daily heal_02 regression Clean up remaining VMs and volumes directly from the VIM. ${FLAVOR_ID} Delete a Flavor ${flavor_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} openstack flavor delete ${flavor_id} Runs the given command in the system and returns the RC and output. Running command 'openstack flavor delete fe12a210-6fa7-4868-9845-89c27cb3fbb1 2>&1'. ${rc} = 0 ${stdout} = ${stdout} Logs the given message with the given level. ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${error} 0 Returns the given values which can then be assigned to a variables. ${error} = 0 ${vol_id} @{VIM_VOLUMES} Checking if volume ${vol_id} is still in VIM Logs the given message with the given level. ${exists} ${vol_id} Checks if a volume id exists ${error} 1 Returns the given values which can then be assigned to a variables. Deleting volume ${vol_id} Logs the given message with the given level. Delete Volume ${vol_id} Runs the given keyword with the given arguments and ignores possible error. ${vdu_id} @{VIM_VDUS} Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. ${status} Get Server Property ${vdu_id} id Runs the given keyword with the given arguments and ignores possible error. ${status}[0] Logs the given message with the given level. ${error} 1 Returns the given values which can then be assigned to a variables. Deleting server ${vdu_id} Logs the given message with the given level. Delete Server ${vdu_id} Runs the given keyword with the given arguments and ignores possible error. Some objects created by test were not deleted in VIM Fails the test with the given message and optionally alters its tags. Delete any remaining objects (volumes, VMs, etc.) in the VIM. cleanup cluster_heal daily heal_02 regression Suite Cleanup Runs the given keyword with the given arguments and ignores possible error. Test Suit Cleanup: Deleting Descriptor, instance and vim Delete NS ${NS_NAME} Runs the given keyword with the given arguments, if one or more tests failed. ${NS_NAME} Delete a NS instance. ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} Logs the given message with the given level. 240.0 ${rc} ${stdout} osm ns-delete ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-delete heal_02 2>&1'. ${rc} = 1 ${stdout} = ERROR: ns 'heal_02' not found ${stdout} Logs the given message with the given level. ERROR: ns 'heal_02' not found ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${ns_delete_max_wait_time} ${NS_DELETE_POL_TIME} Check For NS Instance To Be Deleted ${ns} Runs the specified keyword and retries if it fails. ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 26bf5165-ae85-41df-86ef-194293211983 | slicebasic.slice-edge-ubuntu_slice-VM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 06d409db-e8f3-446e-b636-754421993068 | basic_09_manual_-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.204 | ubuntu20.04 | simple_requires-1-1-flv | | c760ca7e-02ec-4474-bacd-1b0ec5ca82cf | slicebasic.slice-middle-ubuntu_slice-VM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | ea2ad3ca-3a41-40ac-8d9f-324b76092d39 | slicebasic.slice-edge-ubuntu_slice-VM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep heal_02 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${ns} Fails if objects are equal after converting them to strings. Delete NSD ${NSD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. ${NSD_NAME} Delete a NS package from OSM. ${rc} ${stdout} Run And Return Rc And Output osm nspkg-delete ${nsd_id} Runs the keyword and continues execution even if a failure occurs. osm nspkg-delete ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-delete volumes_healing-ns 2>&1'. ${rc} = 1 ${stdout} = ERROR: nsd volumes_healing-ns not found ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${stdout} Logs the given message with the given level. ERROR: nsd volumes_healing-ns not found ${NSD_DELETE_MAX_WAIT_TIME} ${NSD_DELETE_POL_TIME} Check For NSD ${nsd_id} Runs the specified keyword and retries if it fails. ${nsd_id} Check that a NS package exists in OSM. ${rc} ${stdout} osm nspkg-list | awk '{print $2}' | grep ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-list | awk '{print $2}' | grep volumes_healing-ns 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. Delete VNFD ${VNFD_VOLUMES_NAME} Runs the given keyword with the given arguments, if one or more tests failed. ${VNFD_VOLUMES_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete several_volumes-vnf 2>&1'. ${rc} = 1 ${stdout} = ERROR: vnfd several_volumes-vnf not found ${stdout} Logs the given message with the given level. ERROR: vnfd several_volumes-vnf not found ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep several_volumes-vnf 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. Delete VNFD ${VNFD_MANUALSCALE_NAME} Runs the given keyword with the given arguments, if one or more tests failed. ${VNFD_MANUALSCALE_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete manual_scale-vnf 2>&1'. ${rc} = 1 ${stdout} = ERROR: vnfd manual_scale-vnf not found ${stdout} Logs the given message with the given level. ERROR: vnfd manual_scale-vnf not found ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep manual_scale-vnf 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. Delete Objects In VIM Runs the given keyword with the given arguments, if one or more tests failed. Clean up remaining VMs and volumes directly from the VIM. ${FLAVOR_ID} Delete a Flavor ${flavor_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} openstack flavor delete ${flavor_id} Runs the given command in the system and returns the RC and output. Running command 'openstack flavor delete fe12a210-6fa7-4868-9845-89c27cb3fbb1 2>&1'. ${rc} = 1 ${stdout} = Failed to delete flavor with name or ID 'fe12a210-6fa7-4868-9845-89c27cb3fbb1': No Flavor found for fe12a210-6fa7-4868-9845-89c27cb3fbb1 1 of 1 flavors failed to delete. ${stdout} Logs the given message with the given level. Failed to delete flavor with name or ID 'fe12a210-6fa7-4868-9845-89c27cb3fbb1': No Flavor found for fe12a210-6fa7-4868-9845-89c27cb3fbb1 1 of 1 flavors failed to delete. ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${stdout} ${error} 0 Returns the given values which can then be assigned to a variables. ${error} = 0 ${vol_id} @{VIM_VOLUMES} Checking if volume ${vol_id} is still in VIM Logs the given message with the given level. ${exists} ${vol_id} Checks if a volume id exists ${error} 1 Returns the given values which can then be assigned to a variables. Deleting volume ${vol_id} Logs the given message with the given level. Delete Volume ${vol_id} Runs the given keyword with the given arguments and ignores possible error. ${vdu_id} @{VIM_VDUS} Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. ${status} Get Server Property ${vdu_id} id Runs the given keyword with the given arguments and ignores possible error. ${status}[0] Logs the given message with the given level. ${error} 1 Returns the given values which can then be assigned to a variables. Deleting server ${vdu_id} Logs the given message with the given level. Delete Server ${vdu_id} Runs the given keyword with the given arguments and ignores possible error. Some objects created by test were not deleted in VIM Fails the test with the given message and optionally alters its tags. [HEAL-02] Healing of scaled VDUs '%{PACKAGES_FOLDER}/${VNFD_MANUALSCALE_PKG}' Onboards ("creates") a NF Package into OSM. - Parameters: - vnfd_pkg: Name (and location) of the NF Package - overrides (optional): String with options to override the EPA and/or interface properties of the Package. This is very useful to allow to deploy e.g. non-EPA packages in EPA VIMs (or vice-versa). Valid strings are the same as in the command. E.g.: - `--override-epa`: adds EPA attributes to all VDUs. - `--override-nonepa`: removes all EPA attributes from all VDUs. - `--override-paravirt`: converts all interfaces to `PARAVIRT`. This one can be combined with the others above (e.g. '--override-nonepa --override-paravirt'). - Relevant environment variables: - OVERRIDES: If the environment variable "OVERRIDES" exists, it prevails over the value in the argument. This is often more convenient to enforce the same behaviour for every test run in a given VIM. ${overrides} OVERRIDES default=${overrides} Returns the value of an environment variable with the given name. ${overrides} = ${rc} ${stdout} osm vnfpkg-create ${overrides} ${vnfd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-create '/robot-systest/osm-packages/manual_scale_vnf' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/manual_scale_vnf Validation OK List of charms in the descriptor: set() Adding File: manual_scale_vnf Package created: /robot-systest/osm-packages/manual_... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/manual_scale_vnf Validation OK List of charms in the descriptor: set() Adding File: manual_scale_vnf Package created: /robot-systest/osm-packages/manual_scale_vnf.tar.gz Uploading package /robot-systest/osm-packages/manual_scale_vnf.tar.gz 00a0977d-162a-4c9d-bb79-4046a87960e6 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 7 lines ${lines} = 7 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 6 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = 00a0977d-162a-4c9d-bb79-4046a87960e6 ${id} '%{PACKAGES_FOLDER}/${VNFD_VOLUMES_PKG}' Onboards ("creates") a NF Package into OSM. - Parameters: - vnfd_pkg: Name (and location) of the NF Package - overrides (optional): String with options to override the EPA and/or interface properties of the Package. This is very useful to allow to deploy e.g. non-EPA packages in EPA VIMs (or vice-versa). Valid strings are the same as in the command. E.g.: - `--override-epa`: adds EPA attributes to all VDUs. - `--override-nonepa`: removes all EPA attributes from all VDUs. - `--override-paravirt`: converts all interfaces to `PARAVIRT`. This one can be combined with the others above (e.g. '--override-nonepa --override-paravirt'). - Relevant environment variables: - OVERRIDES: If the environment variable "OVERRIDES" exists, it prevails over the value in the argument. This is often more convenient to enforce the same behaviour for every test run in a given VIM. ${overrides} OVERRIDES default=${overrides} Returns the value of an environment variable with the given name. ${overrides} = ${rc} ${stdout} osm vnfpkg-create ${overrides} ${vnfd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-create '/robot-systest/osm-packages/several_volumes_vnf' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/several_volumes_vnf Validation OK List of charms in the descriptor: set() Adding File: several_volumes_vnf Package created: /robot-systest/osm-packages/s... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/several_volumes_vnf Validation OK List of charms in the descriptor: set() Adding File: several_volumes_vnf Package created: /robot-systest/osm-packages/several_volumes_vnf.tar.gz Uploading package /robot-systest/osm-packages/several_volumes_vnf.tar.gz 0def2e12-8b12-419f-b9a5-cc4f97a860da ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 7 lines ${lines} = 7 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 6 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = 0def2e12-8b12-419f-b9a5-cc4f97a860da ${id} Upload VNF packages for the testsuite. cluster_heal daily heal_03 regression '%{PACKAGES_FOLDER}/${NSD_PKG}' Upload a NS package to OSM and return the id. ${rc} ${stdout} osm nspkg-create ${nsd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-create '/robot-systest/osm-packages/volumes_healing_ns' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/volumes_healing_ns Validation OK List of charms in the descriptor: set() Adding File: volumes_healing_ns Package created: /robot-systest/osm-packages/vol... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/volumes_healing_ns Validation OK List of charms in the descriptor: set() Adding File: volumes_healing_ns Package created: /robot-systest/osm-packages/volumes_healing_ns.tar.gz 41e9ca68-7e11-45b6-b4f4-848c443b5ce4 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 6 lines ${lines} = 6 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 5 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = 41e9ca68-7e11-45b6-b4f4-848c443b5ce4 ${id} Upload NS package for the testsuite. cluster_heal daily heal_03 regression ${id} ${NSD_NAME} %{VIM_TARGET} ${NS_NAME} ${NS_CONFIG} ${PUBLICKEY} ${NS_TIMEOUT} Launch the instantation of a NS and verify in a loop that the NS instance is successfully created in a given time, and return the NS instance id. ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_launch_max_wait_time} = 360.0 ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_launch_max_wait_time} = 360.0 ${ns_launch_max_wait_time} Logs the given message with the given level. 360.0 ${config_attr} '${ns_config}'!='${EMPTY}' --config '${ns_config}' ${EMPTY} Sets variable based on the given condition. ${config_attr} = --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext} ] }' ${sshkeys_attr} '${publickey}'!='${EMPTY}' --ssh_keys ${publickey} ${EMPTY} Sets variable based on the given condition. ${sshkeys_attr} = --ssh_keys /root/.ssh/id_rsa.pub ${config_file_attr} '${config_file}'!='${EMPTY}' --config_file '${config_file}' ${EMPTY} Sets variable based on the given condition. ${config_file_attr} = ${ns_id} ${ns_name} ${nsd} ${vim_name} ${config_attr} ${sshkeys_attr} ${config_file_attr} Launch the instantation of a NS, and return the NS instance id. ${rc} ${stdout} osm ns-create --ns_name ${ns_name} --nsd_name ${nsd} --vim_account ${vim_name} ${ns_extra_args} Runs the given command in the system and returns the RC and output. Running command 'osm ns-create --ns_name heal_03 --nsd_name volumes_healing-ns --vim_account osm --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext} ] }' --ssh_keys /root/.ssh/id_rsa.pub 2>&1'. ${rc} = 0 ${stdout} = 5d0e3c62-2cfb-40c7-b616-55a63c5ca472 ${stdout} Logs the given message with the given level. 5d0e3c62-2cfb-40c7-b616-55a63c5ca472 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 5d0e3c62-2cfb-40c7-b616-55a63c5ca472 ${ns_id} Logs the given message with the given level. 5d0e3c62-2cfb-40c7-b616-55a63c5ca472 ${ns_launch_max_wait_time} ${NS_LAUNCH_POL_TIME} Check For NS Instance To Configured ${ns_name} Runs the specified keyword and retries if it fails. ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-------------------------------------------+--------+------------------------+-------------+-------------------------+ | 26bf5165-ae85-41df-86ef-194293211983 | slicebasic.slice-edge-ubuntu_slice-VM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | c760ca7e-02ec-4474-bacd-1b0ec5ca82cf | slicebasic.slice-middle-ubuntu_slice-VM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | ea2ad3ca-3a41-40ac-8d9f-324b76092d39 | slicebasic.slice-edge-ubuntu_slice-VM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="heal_03" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | heal_03 | 5d0e3c62-2cfb-40c7-b616-55a63c5ca472 | 2024-02-19T04:15:30 | BUILDING | INSTANTIATING (c2bfe9bd-a1db-4f48-8cf6-e319c3716424) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | heal_03 | 5d0e3c62-2cfb-40c7-b616-55a63c5ca472 | 2024-02-19T04:15:30 | BUILDING | INSTANTIATING (c2bfe9bd-a1db-4f48-8cf6-e319c3716424) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+------------------------+-------------+-------------------------+ | 4d1c8f87-13a7-4deb-974c-a21ed123c19d | heal_03-manual_scale_vnf-mgmtVM-1 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 013bf829-73b2-4869-aeae-af9f76641742 | heal_03-manual_scale_vnf-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | c31f3fa2-da07-4f54-911c-79bbc3076885 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.53 | ubuntu20.04 | several_volumes-VM-flv | | 26bf5165-ae85-41df-86ef-194293211983 | slicebasic.slice-edge-ubuntu_slice-VM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | c760ca7e-02ec-4474-bacd-1b0ec5ca82cf | slicebasic.slice-middle-ubuntu_slice-VM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | ea2ad3ca-3a41-40ac-8d9f-324b76092d39 | slicebasic.slice-edge-ubuntu_slice-VM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="heal_03" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | heal_03 | 5d0e3c62-2cfb-40c7-b616-55a63c5ca472 | 2024-02-19T04:15:30 | BUILDING | INSTANTIATING (c2bfe9bd-a1db-4f48-8cf6-e319c3716424) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | heal_03 | 5d0e3c62-2cfb-40c7-b616-55a63c5ca472 | 2024-02-19T04:15:30 | BUILDING | INSTANTIATING (c2bfe9bd-a1db-4f48-8cf6-e319c3716424) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | 92d7936c-56c6-4c1e-985f-07358410b5e9 | basic_16-vnf-hackfest_basic_metrics-VM-2 | ACTIVE | osm-ext=172.21.249.29 | ubuntu20.04 | simple_requires-1-1-flv | | 5037080d-aff9-4422-bea5-bb1ed21187ce | basic_16-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.249.65 | ubuntu20.04 | simple_requires-1-1-flv | | e817cc71-8877-478f-a6e2-5e4fb0771854 | basic_16-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.125 | ubuntu20.04 | simple_requires-1-1-flv | | 4d1c8f87-13a7-4deb-974c-a21ed123c19d | heal_03-manual_scale_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.77.168; osm-ext=172.21.248.34 | ubuntu18.04 | simple_requires-1-1-flv | | 013bf829-73b2-4869-aeae-af9f76641742 | heal_03-manual_scale_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.77.68; osm-ext=172.21.249.106 | ubuntu18.04 | simple_requires-1-1-flv | | c31f3fa2-da07-4f54-911c-79bbc3076885 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.53 | ubuntu20.04 | several_volumes-VM-flv | | 26bf5165-ae85-41df-86ef-194293211983 | slicebasic.slice-edge-ubuntu_slice-VM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | c760ca7e-02ec-4474-bacd-1b0ec5ca82cf | slicebasic.slice-middle-ubuntu_slice-VM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | ea2ad3ca-3a41-40ac-8d9f-324b76092d39 | slicebasic.slice-edge-ubuntu_slice-VM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="heal_03" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | heal_03 | 5d0e3c62-2cfb-40c7-b616-55a63c5ca472 | 2024-02-19T04:15:30 | READY | IDLE (None) | N/A | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. ${ns_name} Check if a given NS instance has not failed in the instantiation (the status should not be BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | 92d7936c-56c6-4c1e-985f-07358410b5e9 | basic_16-vnf-hackfest_basic_metrics-VM-2 | ACTIVE | osm-ext=172.21.249.29 | ubuntu20.04 | simple_requires-1-1-flv | | 5037080d-aff9-4422-bea5-bb1ed21187ce | basic_16-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.249.65 | ubuntu20.04 | simple_requires-1-1-flv | | e817cc71-8877-478f-a6e2-5e4fb0771854 | basic_16-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.125 | ubuntu20.04 | simple_requires-1-1-flv | | 4d1c8f87-13a7-4deb-974c-a21ed123c19d | heal_03-manual_scale_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.77.168; osm-ext=172.21.248.34 | ubuntu18.04 | simple_requires-1-1-flv | | 013bf829-73b2-4869-aeae-af9f76641742 | heal_03-manual_scale_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.77.68; osm-ext=172.21.249.106 | ubuntu18.04 | simple_requires-1-1-flv | | c31f3fa2-da07-4f54-911c-79bbc3076885 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.53 | ubuntu20.04 | several_volumes-VM-flv | | 26bf5165-ae85-41df-86ef-194293211983 | slicebasic.slice-edge-ubuntu_slice-VM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | c760ca7e-02ec-4474-bacd-1b0ec5ca82cf | slicebasic.slice-middle-ubuntu_slice-VM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | ea2ad3ca-3a41-40ac-8d9f-324b76092d39 | slicebasic.slice-edge-ubuntu_slice-VM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="heal_03" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | heal_03 | 5d0e3c62-2cfb-40c7-b616-55a63c5ca472 | 2024-02-19T04:15:30 | READY | IDLE (None) | N/A | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} BROKEN Fails if ``container`` contains ``item`` one or more times. ${ns_id} ${id} = 5d0e3c62-2cfb-40c7-b616-55a63c5ca472 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 5d0e3c62-2cfb-40c7-b616-55a63c5ca472 Instantiate NS for the testsuite. cluster_heal daily heal_03 regression ${variables} Returns a dictionary containing all variables in the current scope. ${variables} = {'${/}': '/', '${:}': ':', '${\\n}': '\n', '${DEBUG_FILE}': 'NONE', '${EXECDIR}': '/robot-systest', '${FAILURE_RETURN_CODE}': '1', '${False}': False, '${HEALING_POL_TIME}': '15sec', '${LOG_FILE}': '/r... ${id} ${NS_NAME} Get the NS instance ID from a NS instance name passed as argument, and return it. ${ns_name} Verifies that the given item is not empty. Length is 7 ${rc} ${stdout} osm ns-list | grep ${ns_name} | awk '{print $4}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | grep heal_03 | awk '{print $4}' 2>&1'. ${rc} = 0 ${stdout} = 5d0e3c62-2cfb-40c7-b616-55a63c5ca472 ${stdout} Logs the given message with the given level. 5d0e3c62-2cfb-40c7-b616-55a63c5ca472 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Verifies that the given item is not empty. Length is 36 ${stdout} ${id} = 5d0e3c62-2cfb-40c7-b616-55a63c5ca472 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 5d0e3c62-2cfb-40c7-b616-55a63c5ca472 Get NS identifier and stores as suite variable to be used later on. cleanup cluster_heal daily heal_03 regression ${vnf_id} ${NS_ID} ${VNF_MANUALSCALE_INDEX} Get the VNF instance ID of a member VNF in a NS instance, and return it. ${ns_id} Verifies that the given item is not empty. Length is 36 ${vnf_member_index} Verifies that the given item is not empty. Length is 16 ${rc} ${stdout} osm vnf-list --filter member-vnf-index-ref=${vnf_member_index} | grep ${ns_id} | awk '{print $2}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm vnf-list --filter member-vnf-index-ref=manual_scale_vnf | grep 5d0e3c62-2cfb-40c7-b616-55a63c5ca472 | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = 741bfbad-bedc-4c72-8007-eb345d60f862 ${stdout} Logs the given message with the given level. 741bfbad-bedc-4c72-8007-eb345d60f862 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${vnf_id} = 741bfbad-bedc-4c72-8007-eb345d60f862 ${VNF_MANUALSCALE_ID} ${vnf_id} Makes a variable available everywhere within the scope of the current suite. ${VNF_MANUALSCALE_ID} = 741bfbad-bedc-4c72-8007-eb345d60f862 @{vdur_list} ${VNF_MANUALSCALE_ID} Return a list with the names of the VDU records of a VNF instance. ${vnf_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm vnf-show ${vnf_id} --literal | yq -r .vdur[].name Runs the given command in the system and returns the RC and output. Running command 'osm vnf-show 741bfbad-bedc-4c72-8007-eb345d60f862 --literal | yq -r .vdur[].name 2>&1'. ${rc} = 0 ${stdout} = heal_03-manual_scale_vnf-mgmtVM-0 heal_03-manual_scale_vnf-mgmtVM-1 ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> @{vdur} ${stdout} Splits the ``string`` using ``separator`` as a delimiter string. @{vdur} = [ heal_03-manual_scale_vnf-mgmtVM-0 | heal_03-manual_scale_vnf-mgmtVM-1 ] @{vdur} @{vdur_list} = [ heal_03-manual_scale_vnf-mgmtVM-0 | heal_03-manual_scale_vnf-mgmtVM-1 ] ${vdurs} ${vdur_list} Returns and logs the length of the given item as an integer. Length is 2 ${vdurs} = 2 ${INITIAL_VDUR_COUNT} ${vdurs} Makes a variable available everywhere within the scope of the current suite. ${INITIAL_VDUR_COUNT} = 2 ${NS_NAME} ${VNF_MANUALSCALE_INDEX} ${VNF_MANUALSCALE_SCALING_GROUP} SCALE_OUT ${SCALE_WAIT_TIME} Execute a manual VNF Scale action. The parameter 'scale_type' must be SCALE_IN or SCALE_OUT. Return the ID of the operation associated to the executed scale action. ${vnf_scale_max_wait_time} ${vnf_scale_max_wait_time} result_format=number Converts between supported `time formats`. ${vnf_scale_max_wait_time} = 300.0 ${vnf_scale_max_wait_time} ${vnf_scale_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${vnf_scale_max_wait_time} = 300.0 ${scale_type} SCALE_IN SCALE_OUT msg=Unknown scale type: ${scale_type} values=False Fails if ``container`` does not contain any of the ``*items``. ${osm_vnf_scale_command} osm vnf-scale --scaling-group ${scaling_group} Returns the given values which can then be assigned to a variables. ${osm_vnf_scale_command} = osm vnf-scale --scaling-group manual-scaling_mgmtVM ${osm_vnf_scale_command} ${osm_vnf_scale_command} --scale-in Catenates the given items together and returns the resulted string. ${osm_vnf_scale_command} ${osm_vnf_scale_command} --scale-out Catenates the given items together and returns the resulted string. ${osm_vnf_scale_command} = osm vnf-scale --scaling-group manual-scaling_mgmtVM --scale-out ${osm_vnf_scale_command} ${osm_vnf_scale_command} ${ns_name} ${vnf_member_index} Catenates the given items together and returns the resulted string. ${osm_vnf_scale_command} = osm vnf-scale --scaling-group manual-scaling_mgmtVM --scale-out heal_03 manual_scale_vnf ${rc} ${stdout} ${osm_vnf_scale_command} Runs the given command in the system and returns the RC and output. Running command 'osm vnf-scale --scaling-group manual-scaling_mgmtVM --scale-out heal_03 manual_scale_vnf 2>&1'. ${rc} = 0 ${stdout} = eec45818-acda-44c0-8647-4e3acea3f186 ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${vnf_scale_max_wait_time} ${VNF_SCALE_POL_TIME} Check For NS Operation Ended ${stdout} Runs the specified keyword and retries if it fails. ${stdout} Check wheter the status of the desired operation is "FAILED" or "COMPLETED". ${ns_operation_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm ns-op-show ${ns_operation_id} --literal | yq -r .operationState Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-show eec45818-acda-44c0-8647-4e3acea3f186 --literal | yq -r .operationState 2>&1'. ${rc} = 0 ${stdout} = PROCESSING ${stdout} Logs the given message with the given level. PROCESSING ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} FAILED COMPLETED msg=Timeout waiting for ns-action with id ${ns_operation_id} values=False Fails if ``container`` does not contain any of the ``*items``. Timeout waiting for ns-action with id eec45818-acda-44c0-8647-4e3acea3f186 ${stdout} Check wheter the status of the desired operation is "FAILED" or "COMPLETED". ${ns_operation_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm ns-op-show ${ns_operation_id} --literal | yq -r .operationState Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-show eec45818-acda-44c0-8647-4e3acea3f186 --literal | yq -r .operationState 2>&1'. ${rc} = 0 ${stdout} = PROCESSING ${stdout} Logs the given message with the given level. PROCESSING ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} FAILED COMPLETED msg=Timeout waiting for ns-action with id ${ns_operation_id} values=False Fails if ``container`` does not contain any of the ``*items``. Timeout waiting for ns-action with id eec45818-acda-44c0-8647-4e3acea3f186 ${stdout} Check wheter the status of the desired operation is "FAILED" or "COMPLETED". ${ns_operation_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm ns-op-show ${ns_operation_id} --literal | yq -r .operationState Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-show eec45818-acda-44c0-8647-4e3acea3f186 --literal | yq -r .operationState 2>&1'. ${rc} = 0 ${stdout} = COMPLETED ${stdout} Logs the given message with the given level. COMPLETED ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} FAILED COMPLETED msg=Timeout waiting for ns-action with id ${ns_operation_id} values=False Fails if ``container`` does not contain any of the ``*items``. ${stdout} Check wheter the status of the desired operation is "COMPLETED" or not. ${ns_operation_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm ns-op-show ${ns_operation_id} --literal | yq -r .operationState Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-show eec45818-acda-44c0-8647-4e3acea3f186 --literal | yq -r .operationState 2>&1'. ${rc} = 0 ${stdout} = COMPLETED ${stdout} Logs the given message with the given level. COMPLETED ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} COMPLETED msg=The ns-action with id ${ns_operation_id} was not completed values=False Fails if ``container`` does not contain ``item`` one or more times. ${stdout} @{vdur_list} ${VNF_MANUALSCALE_ID} Return a list with the names of the VDU records of a VNF instance. ${vnf_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm vnf-show ${vnf_id} --literal | yq -r .vdur[].name Runs the given command in the system and returns the RC and output. Running command 'osm vnf-show 741bfbad-bedc-4c72-8007-eb345d60f862 --literal | yq -r .vdur[].name 2>&1'. ${rc} = 0 ${stdout} = heal_03-manual_scale_vnf-mgmtVM-0 heal_03-manual_scale_vnf-mgmtVM-1 heal_03-manual_scale_vnf-mgmtVM-2 ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> @{vdur} ${stdout} Splits the ``string`` using ``separator`` as a delimiter string. @{vdur} = [ heal_03-manual_scale_vnf-mgmtVM-0 | heal_03-manual_scale_vnf-mgmtVM-1 | heal_03-manual_scale_vnf-mgmtVM-2 ] @{vdur} @{vdur_list} = [ heal_03-manual_scale_vnf-mgmtVM-0 | heal_03-manual_scale_vnf-mgmtVM-1 | heal_03-manual_scale_vnf-mgmtVM-2 ] ${vdurs} ${vdur_list} Returns and logs the length of the given item as an integer. Length is 3 ${vdurs} = 3 msg=There is no new VDU records in the VNF after Scale Out Fails the test with the given message and optionally alters its tags. Perform a manual scale-out operation of the manual scale VNF. cluster_heal daily heal_03 regression ${NS_ID} msg=NS is not available Fails unless the given variable exists within the current scope. @{vnf_id_list} ${NS_ID} Get the list of VNF instances of a given NS instance id, and return it. ${ns_id} Verifies that the given item is not empty. Length is 36 @{vnf_list_string} osm vnf-list --ns ${ns_id} | grep ${ns_id} | awk '{print $2}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm vnf-list --ns 5d0e3c62-2cfb-40c7-b616-55a63c5ca472 | grep 5d0e3c62-2cfb-40c7-b616-55a63c5ca472 | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | 5a08088e-b7cf-4243-92a0-054c91ebb6d6 741bfbad-bedc-4c72-8007-eb345d60f862 ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ 5a08088e-b7cf-4243-92a0-054c91ebb6d6 | 741bfbad-bedc-4c72-8007-eb345d60f862 ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List length is 2 and it contains following items: 0: 5a08088e-b7cf-4243-92a0-054c91ebb6d6 1: 741bfbad-bedc-4c72-8007-eb345d60f862 @{vnf_list} @{vnf_id_list} = [ 5a08088e-b7cf-4243-92a0-054c91ebb6d6 | 741bfbad-bedc-4c72-8007-eb345d60f862 ] ${vnf_id_list} Logs the given message with the given level. ['5a08088e-b7cf-4243-92a0-054c91ebb6d6', '741bfbad-bedc-4c72-8007-eb345d60f862'] ${vnf_id} @{vnf_id_list} 5a08088e-b7cf-4243-92a0-054c91ebb6d6 ${vnf_id} Logs the given message with the given level. 5a08088e-b7cf-4243-92a0-054c91ebb6d6 ${id} ${vnf_id} Get the identifier of the first VDU of a VNF instance. Useful to get the id when a VNF has a single VDU. ${vnf_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm vnf-show ${vnf_id} --literal | yq -r '.vdur[]."vim-id"' Runs the given command in the system and returns the RC and output. Running command 'osm vnf-show 5a08088e-b7cf-4243-92a0-054c91ebb6d6 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = c31f3fa2-da07-4f54-911c-79bbc3076885 ${stdout} Logs the given message with the given level. c31f3fa2-da07-4f54-911c-79bbc3076885 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = c31f3fa2-da07-4f54-911c-79bbc3076885 @{vdu_ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{vdu_ids} = [ c31f3fa2-da07-4f54-911c-79bbc3076885 ] ${VIM_VDUS} @{vdu_ids} Adds ``values`` to the end of ``list``. 741bfbad-bedc-4c72-8007-eb345d60f862 ${vnf_id} Logs the given message with the given level. 741bfbad-bedc-4c72-8007-eb345d60f862 ${id} ${vnf_id} Get the identifier of the first VDU of a VNF instance. Useful to get the id when a VNF has a single VDU. ${vnf_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm vnf-show ${vnf_id} --literal | yq -r '.vdur[]."vim-id"' Runs the given command in the system and returns the RC and output. Running command 'osm vnf-show 741bfbad-bedc-4c72-8007-eb345d60f862 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 013bf829-73b2-4869-aeae-af9f76641742 4d1c8f87-13a7-4deb-974c-a21ed123c19d db3fdf17-2062-48f7-a787-02f6751bb644 ${stdout} Logs the given message with the given level. 013bf829-73b2-4869-aeae-af9f76641742 4d1c8f87-13a7-4deb-974c-a21ed123c19d db3fdf17-2062-48f7-a787-02f6751bb644 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 013bf829-73b2-4869-aeae-af9f76641742 4d1c8f87-13a7-4deb-974c-a21ed123c19d db3fdf17-2062-48f7-a787-02f6751bb644 @{vdu_ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{vdu_ids} = [ 013bf829-73b2-4869-aeae-af9f76641742 | 4d1c8f87-13a7-4deb-974c-a21ed123c19d | db3fdf17-2062-48f7-a787-02f6751bb644 ] ${VIM_VDUS} @{vdu_ids} Adds ``values`` to the end of ``list``. ${vdu_id} @{VIM_VDUS} c31f3fa2-da07-4f54-911c-79bbc3076885 ${volumes_attached} ${vdu_id} volumes_attached Get a field (flavor, image, volumes_attached, etc.) from a server. ${server_id} Verifies that the given item is not empty. Length is 36 ${field} Verifies that the given item is not empty. Length is 16 ${rc} ${stdout} openstack server show ${server_id} -c ${field} -f value Runs the given command in the system and returns the RC and output. Running command 'openstack server show c31f3fa2-da07-4f54-911c-79bbc3076885 -c volumes_attached -f value 2>&1'. ${rc} = 0 ${stdout} = [{'device': None, 'id': 'd8bf18f2-806d-48da-9533-09b100c93877', 'volume_id': None, 'attachment_id': None, 'bdm_id': None, 'tag': None, 'delete_on_termination': False, 'name': None, 'location': None}] ${stdout} Logs the given message with the given level. [{'device': None, 'id': 'd8bf18f2-806d-48da-9533-09b100c93877', 'volume_id': None, 'attachment_id': None, 'bdm_id': None, 'tag': None, 'delete_on_termination': False, 'name': None, 'location': None}] ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${volumes_attached} = [{'device': None, 'id': 'd8bf18f2-806d-48da-9533-09b100c93877', 'volume_id': None, 'attachment_id': None, 'bdm_id': None, 'tag': None, 'delete_on_termination': False, 'name': None, 'location': None}] ${match} ${volumes_attached} '([0-9a-f\-]+)' 1 Returns a list of all non-overlapping matches in the given string. ${match} = ['d8bf18f2-806d-48da-9533-09b100c93877'] ${VIM_VOLUMES} ${match}[0] Adds ``values`` to the end of ``list``. 013bf829-73b2-4869-aeae-af9f76641742 ${volumes_attached} ${vdu_id} volumes_attached Get a field (flavor, image, volumes_attached, etc.) from a server. ${server_id} Verifies that the given item is not empty. Length is 36 ${field} Verifies that the given item is not empty. Length is 16 ${rc} ${stdout} openstack server show ${server_id} -c ${field} -f value Runs the given command in the system and returns the RC and output. Running command 'openstack server show 013bf829-73b2-4869-aeae-af9f76641742 -c volumes_attached -f value 2>&1'. ${rc} = 0 ${stdout} = [] ${stdout} Logs the given message with the given level. [] ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${volumes_attached} = [] ${match} ${volumes_attached} '([0-9a-f\-]+)' 1 Returns a list of all non-overlapping matches in the given string. ${match} = [] ${VIM_VOLUMES} ${match}[0] Adds ``values`` to the end of ``list``. 4d1c8f87-13a7-4deb-974c-a21ed123c19d ${volumes_attached} ${vdu_id} volumes_attached Get a field (flavor, image, volumes_attached, etc.) from a server. ${server_id} Verifies that the given item is not empty. Length is 36 ${field} Verifies that the given item is not empty. Length is 16 ${rc} ${stdout} openstack server show ${server_id} -c ${field} -f value Runs the given command in the system and returns the RC and output. Running command 'openstack server show 4d1c8f87-13a7-4deb-974c-a21ed123c19d -c volumes_attached -f value 2>&1'. ${rc} = 0 ${stdout} = [] ${stdout} Logs the given message with the given level. [] ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${volumes_attached} = [] ${match} ${volumes_attached} '([0-9a-f\-]+)' 1 Returns a list of all non-overlapping matches in the given string. ${match} = [] ${VIM_VOLUMES} ${match}[0] Adds ``values`` to the end of ``list``. db3fdf17-2062-48f7-a787-02f6751bb644 ${volumes_attached} ${vdu_id} volumes_attached Get a field (flavor, image, volumes_attached, etc.) from a server. ${server_id} Verifies that the given item is not empty. Length is 36 ${field} Verifies that the given item is not empty. Length is 16 ${rc} ${stdout} openstack server show ${server_id} -c ${field} -f value Runs the given command in the system and returns the RC and output. Running command 'openstack server show db3fdf17-2062-48f7-a787-02f6751bb644 -c volumes_attached -f value 2>&1'. ${rc} = 0 ${stdout} = [] ${stdout} Logs the given message with the given level. [] ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${volumes_attached} = [] ${match} ${volumes_attached} '([0-9a-f\-]+)' 1 Returns a list of all non-overlapping matches in the given string. ${match} = [] ${VIM_VOLUMES} ${match}[0] Adds ``values`` to the end of ``list``. @{VIM_VDUS} Logs the given messages as separate entries using the INFO level. c31f3fa2-da07-4f54-911c-79bbc3076885 013bf829-73b2-4869-aeae-af9f76641742 4d1c8f87-13a7-4deb-974c-a21ed123c19d db3fdf17-2062-48f7-a787-02f6751bb644 @{VIM_VOLUMES} Logs the given messages as separate entries using the INFO level. d8bf18f2-806d-48da-9533-09b100c93877 Retrieve all VMs and volumes from the NS and stores them in VIM_VDUS and VIM_VOLUMES lists. cluster_heal daily heal_03 regression ${NS_ID} msg=NS is not available Fails unless the given variable exists within the current scope. ${variables} Returns a dictionary containing all variables in the current scope. ${variables} = {'${/}': '/', '${:}': ':', '${\\n}': '\n', '${DEBUG_FILE}': 'NONE', '${EXECDIR}': '/robot-systest', '${FAILURE_RETURN_CODE}': '1', '${False}': False, '${HEALING_POL_TIME}': '15sec', '${INITIAL_VDUR_CO... ${vnf_id} ${NS_ID} ${VNF_MANUALSCALE_INDEX} Get the VNF instance ID of a member VNF in a NS instance, and return it. ${VNF_MANUALSCALE_ID} ${vnf_id} Makes a variable available everywhere within the scope of the current suite. ${id} ${VNF_MANUALSCALE_ID} Get the identifier of the first VDU of a VNF instance. Useful to get the id when a VNF has a single VDU. ${vnf_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm vnf-show ${vnf_id} --literal | yq -r '.vdur[]."vim-id"' Runs the given command in the system and returns the RC and output. Running command 'osm vnf-show 741bfbad-bedc-4c72-8007-eb345d60f862 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 013bf829-73b2-4869-aeae-af9f76641742 4d1c8f87-13a7-4deb-974c-a21ed123c19d db3fdf17-2062-48f7-a787-02f6751bb644 ${stdout} Logs the given message with the given level. 013bf829-73b2-4869-aeae-af9f76641742 4d1c8f87-13a7-4deb-974c-a21ed123c19d db3fdf17-2062-48f7-a787-02f6751bb644 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 013bf829-73b2-4869-aeae-af9f76641742 4d1c8f87-13a7-4deb-974c-a21ed123c19d db3fdf17-2062-48f7-a787-02f6751bb644 @{vdu_manualscale_ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{vdu_manualscale_ids} = [ 013bf829-73b2-4869-aeae-af9f76641742 | 4d1c8f87-13a7-4deb-974c-a21ed123c19d | db3fdf17-2062-48f7-a787-02f6751bb644 ] @{VDU_MANUALSCALE_IDS} @{vdu_manualscale_ids} Makes a variable available everywhere within the scope of the current suite. @{VDU_MANUALSCALE_IDS} = [ 013bf829-73b2-4869-aeae-af9f76641742 | 4d1c8f87-13a7-4deb-974c-a21ed123c19d | db3fdf17-2062-48f7-a787-02f6751bb644 ] ${VDU_MANUALSCALE_IDS}[1] Logs the given message with the given level. 4d1c8f87-13a7-4deb-974c-a21ed123c19d @{manualscale_ip_list} ${VNF_MANUALSCALE_ID} Return a list with the IP addresses of the VDU records of a VNF instance. ${vnf_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm vnf-show ${vnf_id} --literal | yq -r '.vdur[].interfaces[]."ip-address"' Runs the given command in the system and returns the RC and output. Running command 'osm vnf-show 741bfbad-bedc-4c72-8007-eb345d60f862 --literal | yq -r '.vdur[].interfaces[]."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 172.21.249.106 192.168.77.68 172.21.248.34 192.168.77.168 172.21.249.149 192.168.77.15 ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> @{ip} ${stdout} Splits the ``string`` using ``separator`` as a delimiter string. @{ip} = [ 172.21.249.106 | 192.168.77.68 | 172.21.248.34 | 192.168.77.168 | 172.21.249.149 | 192.168.77.15 ] @{ip} @{manualscale_ip_list} = [ 172.21.249.106 | 192.168.77.68 | 172.21.248.34 | 192.168.77.168 | 172.21.249.149 | 192.168.77.15 ] @{MANUALSCALE_IP_LIST} @{manualscale_ip_list} Makes a variable available everywhere within the scope of the current suite. @{MANUALSCALE_IP_LIST} = [ 172.21.249.106 | 192.168.77.68 | 172.21.248.34 | 192.168.77.168 | 172.21.249.149 | 192.168.77.15 ] Get VDU ID and IP addresses of the manual scale VNF and stores them in VDU_MANUALSCALE_IDS and MANUALSCALE_IP_LIST. cluster_heal daily heal_03 regression ${NS_ID} msg=NS is not available Fails unless the given variable exists within the current scope. ${ip_addr} ${NS_ID} ${VNF_SEVERAL_INDEX} Get the mgmt IP address of a member VNF in a NS instance, and return it. ${ns_id} Verifies that the given item is not empty. Length is 36 ${vnf_member_index} Verifies that the given item is not empty. Length is 19 ${rc} ${stdout} osm vnf-list --filter member-vnf-index-ref=${vnf_member_index} | grep ${ns_id} | awk '{print $14}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm vnf-list --filter member-vnf-index-ref=several_volumes_vnf | grep 5d0e3c62-2cfb-40c7-b616-55a63c5ca472 | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.249.53 ${stdout} Logs the given message with the given level. 172.21.249.53 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ip_addr} = 172.21.249.53 ${ip_addr} Logs the given message with the given level. 172.21.249.53 ${VNF_VOLUMES_IP_ADDR} ${ip_addr} Makes a variable available everywhere within the scope of the current suite. ${VNF_VOLUMES_IP_ADDR} = 172.21.249.53 ${vnf_id} ${NS_ID} ${VNF_SEVERAL_INDEX} Get the VNF instance ID of a member VNF in a NS instance, and return it. ${ns_id} Verifies that the given item is not empty. Length is 36 ${vnf_member_index} Verifies that the given item is not empty. Length is 19 ${rc} ${stdout} osm vnf-list --filter member-vnf-index-ref=${vnf_member_index} | grep ${ns_id} | awk '{print $2}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm vnf-list --filter member-vnf-index-ref=several_volumes_vnf | grep 5d0e3c62-2cfb-40c7-b616-55a63c5ca472 | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = 5a08088e-b7cf-4243-92a0-054c91ebb6d6 ${stdout} Logs the given message with the given level. 5a08088e-b7cf-4243-92a0-054c91ebb6d6 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${vnf_id} = 5a08088e-b7cf-4243-92a0-054c91ebb6d6 ${VNF_VOLUMES_ID} ${vnf_id} Makes a variable available everywhere within the scope of the current suite. ${VNF_VOLUMES_ID} = 5a08088e-b7cf-4243-92a0-054c91ebb6d6 ${id} ${vnf_id} Get the identifier of the first VDU of a VNF instance. Useful to get the id when a VNF has a single VDU. ${vnf_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm vnf-show ${vnf_id} --literal | yq -r '.vdur[]."vim-id"' Runs the given command in the system and returns the RC and output. Running command 'osm vnf-show 5a08088e-b7cf-4243-92a0-054c91ebb6d6 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = c31f3fa2-da07-4f54-911c-79bbc3076885 ${stdout} Logs the given message with the given level. c31f3fa2-da07-4f54-911c-79bbc3076885 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = c31f3fa2-da07-4f54-911c-79bbc3076885 ${VDU_VOLUMES_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${VDU_VOLUMES_ID} = c31f3fa2-da07-4f54-911c-79bbc3076885 ${VDU_VOLUMES_ID} Logs the given message with the given level. c31f3fa2-da07-4f54-911c-79bbc3076885 @{volumes_ip_list} ${VNF_VOLUMES_ID} Return a list with the IP addresses of the VDU records of a VNF instance. ${vnf_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm vnf-show ${vnf_id} --literal | yq -r '.vdur[].interfaces[]."ip-address"' Runs the given command in the system and returns the RC and output. Running command 'osm vnf-show 5a08088e-b7cf-4243-92a0-054c91ebb6d6 --literal | yq -r '.vdur[].interfaces[]."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 172.21.249.53 ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> @{ip} ${stdout} Splits the ``string`` using ``separator`` as a delimiter string. @{ip} = [ 172.21.249.53 ] @{ip} @{volumes_ip_list} = [ 172.21.249.53 ] @{VOLUMES_IP_LIST} @{volumes_ip_list} Makes a variable available everywhere within the scope of the current suite. @{VOLUMES_IP_LIST} = [ 172.21.249.53 ] @{VOLUMES_IP_LIST} Logs the given message with the given level. 172.21.249.53 Get info about volumes and VM of the VNF with several volumes and stores them in suite variables. cluster_heal daily heal_03 regression @{VDU_MANUALSCALE_IDS} msg=Manual Scale VDUs are not available Fails unless the given variable exists within the current scope. ${VDU_VOLUMES_ID} msg=Volume VDU is not available Fails unless the given variable exists within the current scope. ${VDU_MANUALSCALE_IDS}[1] Stop a server ${server_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} openstack server stop ${server_id} Runs the given command in the system and returns the RC and output. Running command 'openstack server stop 4d1c8f87-13a7-4deb-974c-a21ed123c19d 2>&1'. ${rc} = 0 ${stdout} = ${stdout} Logs the given message with the given level. ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${VDU_MANUALSCALE_IDS}[2] Stop a server ${server_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} openstack server stop ${server_id} Runs the given command in the system and returns the RC and output. Running command 'openstack server stop db3fdf17-2062-48f7-a787-02f6751bb644 2>&1'. ${rc} = 0 ${stdout} = ${stdout} Logs the given message with the given level. ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${VDU_VOLUMES_ID} Stop a server ${server_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} openstack server stop ${server_id} Runs the given command in the system and returns the RC and output. Running command 'openstack server stop c31f3fa2-da07-4f54-911c-79bbc3076885 2>&1'. ${rc} = 0 ${stdout} = ${stdout} Logs the given message with the given level. ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} 30 Pauses the test executed for the given time. Slept 30 seconds Stop all VMs. cluster_heal daily heal_03 regression ${VNF_MANUALSCALE_ID} msg=Manual Scale VNF is not available Fails unless the given variable exists within the current scope. ${VNF_VOLUMES_ID} msg=Volume VNF is not available Fails unless the given variable exists within the current scope. ${NS_ID} --vnf ${VNF_VOLUMES_ID} --cause "Heal myvdu1 of several_volumes_vnf" --vdu several_volumes-VM --vnf ${VNF_MANUALSCALE_ID} --cause "Heal two VMs of manual_scale_vnf" --vdu mgmtVM --count-index 1 --run-day1 --vdu mgmtVM --count-index 2 Execute healing operation over one NS. Return the ID of the operation associated to the executed healing action. ${ns_name} Verifies that the given item is not empty. Length is 36 ${params} Verifies that the given item is not empty. Length is 267 ${healing_max_wait_time} ${healing_max_wait_time} result_format=number Converts between supported `time formats`. ${healing_max_wait_time} = 600.0 ${healing_max_wait_time} ${healing_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${healing_max_wait_time} = 600.0 ${rc} ${stdout} osm ns-heal ${ns_name} ${params} Runs the given command in the system and returns the RC and output. Running command 'osm ns-heal 5d0e3c62-2cfb-40c7-b616-55a63c5ca472 --vnf 5a08088e-b7cf-4243-92a0-054c91ebb6d6 --cause "Heal myvdu1 of several_volumes_vnf" --vdu several_volumes-VM --vnf 741bfbad-bedc-4c72-8007-eb345d60f862 --cause "Heal two VMs of manual_scale_vnf" --vdu mgmtVM --count-index 1 --run-day1 --vdu mgmtVM --count-index 2 2>&1'. ${rc} = 0 ${stdout} = fff66a09-1bee-439e-9db2-894e0b06b662 ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${healing_max_wait_time} ${HEALING_POL_TIME} Check For NS Operation Ended ${stdout} Runs the specified keyword and retries if it fails. ${stdout} Check wheter the status of the desired operation is "FAILED" or "COMPLETED". ${ns_operation_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm ns-op-show ${ns_operation_id} --literal | yq -r .operationState Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-show fff66a09-1bee-439e-9db2-894e0b06b662 --literal | yq -r .operationState 2>&1'. ${rc} = 0 ${stdout} = PROCESSING ${stdout} Logs the given message with the given level. PROCESSING ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} FAILED COMPLETED msg=Timeout waiting for ns-action with id ${ns_operation_id} values=False Fails if ``container`` does not contain any of the ``*items``. Timeout waiting for ns-action with id fff66a09-1bee-439e-9db2-894e0b06b662 ${stdout} Check wheter the status of the desired operation is "FAILED" or "COMPLETED". ${ns_operation_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm ns-op-show ${ns_operation_id} --literal | yq -r .operationState Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-show fff66a09-1bee-439e-9db2-894e0b06b662 --literal | yq -r .operationState 2>&1'. ${rc} = 0 ${stdout} = PROCESSING ${stdout} Logs the given message with the given level. PROCESSING ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} FAILED COMPLETED msg=Timeout waiting for ns-action with id ${ns_operation_id} values=False Fails if ``container`` does not contain any of the ``*items``. Timeout waiting for ns-action with id fff66a09-1bee-439e-9db2-894e0b06b662 ${stdout} Check wheter the status of the desired operation is "FAILED" or "COMPLETED". ${ns_operation_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm ns-op-show ${ns_operation_id} --literal | yq -r .operationState Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-show fff66a09-1bee-439e-9db2-894e0b06b662 --literal | yq -r .operationState 2>&1'. ${rc} = 0 ${stdout} = PROCESSING ${stdout} Logs the given message with the given level. PROCESSING ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} FAILED COMPLETED msg=Timeout waiting for ns-action with id ${ns_operation_id} values=False Fails if ``container`` does not contain any of the ``*items``. Timeout waiting for ns-action with id fff66a09-1bee-439e-9db2-894e0b06b662 ${stdout} Check wheter the status of the desired operation is "FAILED" or "COMPLETED". ${ns_operation_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm ns-op-show ${ns_operation_id} --literal | yq -r .operationState Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-show fff66a09-1bee-439e-9db2-894e0b06b662 --literal | yq -r .operationState 2>&1'. ${rc} = 0 ${stdout} = COMPLETED ${stdout} Logs the given message with the given level. COMPLETED ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} FAILED COMPLETED msg=Timeout waiting for ns-action with id ${ns_operation_id} values=False Fails if ``container`` does not contain any of the ``*items``. ${stdout} Check wheter the status of the desired operation is "COMPLETED" or not. ${ns_operation_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm ns-op-show ${ns_operation_id} --literal | yq -r .operationState Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-show fff66a09-1bee-439e-9db2-894e0b06b662 --literal | yq -r .operationState 2>&1'. ${rc} = 0 ${stdout} = COMPLETED ${stdout} Logs the given message with the given level. COMPLETED ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} COMPLETED msg=The ns-action with id ${ns_operation_id} was not completed values=False Fails if ``container`` does not contain ``item`` one or more times. ${stdout} Heal manually via OSM commands all stopped VMs . They should be started again. cluster_heal daily heal_03 regression ${VNF_MANUALSCALE_ID} msg=Manual scale VNF is not available Fails unless the given variable exists within the current scope. ${VNF_VOLUMES_ID} msg=Volume VNF is not available Fails unless the given variable exists within the current scope. ${id} ${VNF_MANUALSCALE_ID} Get the identifier of the first VDU of a VNF instance. Useful to get the id when a VNF has a single VDU. ${vnf_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm vnf-show ${vnf_id} --literal | yq -r '.vdur[]."vim-id"' Runs the given command in the system and returns the RC and output. Running command 'osm vnf-show 741bfbad-bedc-4c72-8007-eb345d60f862 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 013bf829-73b2-4869-aeae-af9f76641742 aa71cda7-cf9f-446b-9509-11b3f2bee7e1 13425e2b-c35c-4c1b-ad4d-59d154684048 ${stdout} Logs the given message with the given level. 013bf829-73b2-4869-aeae-af9f76641742 aa71cda7-cf9f-446b-9509-11b3f2bee7e1 13425e2b-c35c-4c1b-ad4d-59d154684048 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 013bf829-73b2-4869-aeae-af9f76641742 aa71cda7-cf9f-446b-9509-11b3f2bee7e1 13425e2b-c35c-4c1b-ad4d-59d154684048 @{ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{ids} = [ 013bf829-73b2-4869-aeae-af9f76641742 | aa71cda7-cf9f-446b-9509-11b3f2bee7e1 | 13425e2b-c35c-4c1b-ad4d-59d154684048 ] ${VDU_MANUALSCALE_IDS}[0] ${ids}[0] VDU[0] id has changed after healing Fails if the given objects are unequal. ${VDU_MANUALSCALE_IDS}[1] ${ids}[1] VDU[1] id has not changed after healing Fails if the given objects are equal. ${VDU_MANUALSCALE_IDS}[2] ${ids}[2] VDU[2] id has not changed after healing Fails if the given objects are equal. ${id} ${VNF_VOLUMES_ID} Get the identifier of the first VDU of a VNF instance. Useful to get the id when a VNF has a single VDU. ${vnf_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm vnf-show ${vnf_id} --literal | yq -r '.vdur[]."vim-id"' Runs the given command in the system and returns the RC and output. Running command 'osm vnf-show 5a08088e-b7cf-4243-92a0-054c91ebb6d6 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = fc532e78-c896-4694-b643-85bdcf0773fb ${stdout} Logs the given message with the given level. fc532e78-c896-4694-b643-85bdcf0773fb ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = fc532e78-c896-4694-b643-85bdcf0773fb ${id} ${VDU_VOLUMES_ID} VDU id has not changed after healing Fails if the given objects are equal. ${ip} ${VNF_MANUALSCALE_ID} ip-address 1 Return an attribute from VDU records selected by count_index of a VNF instance. ${vnf_id} Verifies that the given item is not empty. Length is 36 ${attribute} Verifies that the given item is not empty. Length is 10 ${rc} ${stdout} osm vnf-show ${vnf_id} --literal | yq '.vdur[] | select(."count-index" == ${count_index})' | yq -r '."${attribute}"' Runs the given command in the system and returns the RC and output. Running command 'osm vnf-show 741bfbad-bedc-4c72-8007-eb345d60f862 --literal | yq '.vdur[] | select(."count-index" == 1)' | yq -r '."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 172.21.248.34 ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ip} = 172.21.248.34 ${stdout} ${ip} ${USERNAME} ${PASSWORD} ${PRIVATEKEY} sudo ls ${VNF_MANUALSCALE_CLOUDINIT_FILE} Execute via SSH a command in a remote host and, if the command succeeds, return the output. ${host} Opens a new SSH connection to the given ``host`` and ``port``. ${username} ${password} Logs into the SSH server with the given ``username`` and ``password``. ${username} ${privatekey} Logs into the SSH server using key-based authentication. Logging into '172.21.248.34:22' as 'ubuntu'. Read output: Welcome to Ubuntu 18.04.6 LTS (GNU/Linux 4.15.0-180-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Mon Feb 19 04:19:21 UTC 2024 System load: 0.29 Processes: 90 Usage of /: 11.5% of 9.52GB Users logged in: 0 Memory usage: 12% IP address for ens3: 172.21.248.34 Swap usage: 0% 0 updates can be applied immediately. The programs included with the Ubuntu system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. ubuntu@heal-03-manual-scale-vnf-mgmtvm-1:~$ ${stdout} ${rc} ${command} return_rc=True return_stdout=True Executes ``command`` on the remote machine and returns its outputs. Executing command 'sudo ls /root/helloworld.txt'. Command exited with return code 0. ${stdout} = /root/helloworld.txt ${rc} = 0 ${rc} Logs the given message with the given level. 0 ${stdout} Logs the given message with the given level. /root/helloworld.txt Closes all open connections. ${rc} 0 Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${stdout} = /root/helloworld.txt ${stdout} Logs the given message with the given level. /root/helloworld.txt ${ip} ${USERNAME} ${PASSWORD} ${PRIVATEKEY} ${VNF_MANUALSCALE_DAY1_FILE} Check via SSH if a file exists in in the remote host, using the user and credentials passed as arguments. ${host} Opens a new SSH connection to the given ``host`` and ``port``. ${username} ${password} Logs into the SSH server with the given ``username`` and ``password``. ${username} ${privatekey} Logs into the SSH server using key-based authentication. Logging into '172.21.248.34:22' as 'ubuntu'. Read output: Welcome to Ubuntu 18.04.6 LTS (GNU/Linux 4.15.0-180-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Mon Feb 19 04:19:23 UTC 2024 System load: 0.35 Processes: 90 Usage of /: 11.8% of 9.52GB Users logged in: 0 Memory usage: 12% IP address for ens3: 172.21.248.34 Swap usage: 0% 0 updates can be applied immediately. New release '20.04.6 LTS' available. Run 'do-release-upgrade' to upgrade to it. Last login: Mon Feb 19 04:19:22 2024 from 172.21.249.4 ubuntu@heal-03-manual-scale-vnf-mgmtvm-1:~$ ${rc} ls ${file} >& /dev/null return_stdout=False return_rc=True Executes ``command`` on the remote machine and returns its outputs. Executing command 'ls /home/ubuntu/first-touch >& /dev/null'. Command exited with return code 2. ${rc} = 2 Closes all open connections. ${rc} 0 Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 2 != 0 Check that the IDs of the VM and volumes have not changed after healing. cluster_heal daily heal_03 regression 2 != 0 ${NS_ID} msg=NS is not available Fails unless the given variable exists within the current scope. @{vdu_updated} Returns a list containing given items. @{vdu_updated} = [ ] @{vnf_id_list} ${NS_ID} Get the list of VNF instances of a given NS instance id, and return it. ${ns_id} Verifies that the given item is not empty. Length is 36 @{vnf_list_string} osm vnf-list --ns ${ns_id} | grep ${ns_id} | awk '{print $2}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm vnf-list --ns 5d0e3c62-2cfb-40c7-b616-55a63c5ca472 | grep 5d0e3c62-2cfb-40c7-b616-55a63c5ca472 | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | 5a08088e-b7cf-4243-92a0-054c91ebb6d6 741bfbad-bedc-4c72-8007-eb345d60f862 ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ 5a08088e-b7cf-4243-92a0-054c91ebb6d6 | 741bfbad-bedc-4c72-8007-eb345d60f862 ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List length is 2 and it contains following items: 0: 5a08088e-b7cf-4243-92a0-054c91ebb6d6 1: 741bfbad-bedc-4c72-8007-eb345d60f862 @{vnf_list} @{vnf_id_list} = [ 5a08088e-b7cf-4243-92a0-054c91ebb6d6 | 741bfbad-bedc-4c72-8007-eb345d60f862 ] ${vnf_id} @{vnf_id_list} 5a08088e-b7cf-4243-92a0-054c91ebb6d6 ${id} ${vnf_id} Get the identifier of the first VDU of a VNF instance. Useful to get the id when a VNF has a single VDU. ${vnf_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm vnf-show ${vnf_id} --literal | yq -r '.vdur[]."vim-id"' Runs the given command in the system and returns the RC and output. Running command 'osm vnf-show 5a08088e-b7cf-4243-92a0-054c91ebb6d6 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = fc532e78-c896-4694-b643-85bdcf0773fb ${stdout} Logs the given message with the given level. fc532e78-c896-4694-b643-85bdcf0773fb ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = fc532e78-c896-4694-b643-85bdcf0773fb @{vdu_ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{vdu_ids} = [ fc532e78-c896-4694-b643-85bdcf0773fb ] ${vdu_updated} @{vdu_ids} Adds ``values`` to the end of ``list``. ${id} @{vdu_ids} fc532e78-c896-4694-b643-85bdcf0773fb ${VIM_VDUS} ${id} Adds ``values`` to the end of ``list``. 741bfbad-bedc-4c72-8007-eb345d60f862 ${id} ${vnf_id} Get the identifier of the first VDU of a VNF instance. Useful to get the id when a VNF has a single VDU. ${vnf_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm vnf-show ${vnf_id} --literal | yq -r '.vdur[]."vim-id"' Runs the given command in the system and returns the RC and output. Running command 'osm vnf-show 741bfbad-bedc-4c72-8007-eb345d60f862 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 013bf829-73b2-4869-aeae-af9f76641742 aa71cda7-cf9f-446b-9509-11b3f2bee7e1 13425e2b-c35c-4c1b-ad4d-59d154684048 ${stdout} Logs the given message with the given level. 013bf829-73b2-4869-aeae-af9f76641742 aa71cda7-cf9f-446b-9509-11b3f2bee7e1 13425e2b-c35c-4c1b-ad4d-59d154684048 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 013bf829-73b2-4869-aeae-af9f76641742 aa71cda7-cf9f-446b-9509-11b3f2bee7e1 13425e2b-c35c-4c1b-ad4d-59d154684048 @{vdu_ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{vdu_ids} = [ 013bf829-73b2-4869-aeae-af9f76641742 | aa71cda7-cf9f-446b-9509-11b3f2bee7e1 | 13425e2b-c35c-4c1b-ad4d-59d154684048 ] ${vdu_updated} @{vdu_ids} Adds ``values`` to the end of ``list``. ${id} @{vdu_ids} 013bf829-73b2-4869-aeae-af9f76641742 ${VIM_VDUS} ${id} Adds ``values`` to the end of ``list``. aa71cda7-cf9f-446b-9509-11b3f2bee7e1 ${VIM_VDUS} ${id} Adds ``values`` to the end of ``list``. 13425e2b-c35c-4c1b-ad4d-59d154684048 ${VIM_VDUS} ${id} Adds ``values`` to the end of ``list``. ${vdu_id} @{vdu_updated} fc532e78-c896-4694-b643-85bdcf0773fb ${volumes_attached} ${vdu_id} volumes_attached Get a field (flavor, image, volumes_attached, etc.) from a server. ${server_id} Verifies that the given item is not empty. Length is 36 ${field} Verifies that the given item is not empty. Length is 16 ${rc} ${stdout} openstack server show ${server_id} -c ${field} -f value Runs the given command in the system and returns the RC and output. Running command 'openstack server show fc532e78-c896-4694-b643-85bdcf0773fb -c volumes_attached -f value 2>&1'. ${rc} = 0 ${stdout} = [{'device': None, 'id': 'd8bf18f2-806d-48da-9533-09b100c93877', 'volume_id': None, 'attachment_id': None, 'bdm_id': None, 'tag': None, 'delete_on_termination': False, 'name': None, 'location': None}] ${stdout} Logs the given message with the given level. [{'device': None, 'id': 'd8bf18f2-806d-48da-9533-09b100c93877', 'volume_id': None, 'attachment_id': None, 'bdm_id': None, 'tag': None, 'delete_on_termination': False, 'name': None, 'location': None}] ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${volumes_attached} = [{'device': None, 'id': 'd8bf18f2-806d-48da-9533-09b100c93877', 'volume_id': None, 'attachment_id': None, 'bdm_id': None, 'tag': None, 'delete_on_termination': False, 'name': None, 'location': None}] ${match} ${volumes_attached} '([0-9a-f\-]+)' 1 Returns a list of all non-overlapping matches in the given string. ${match} = ['d8bf18f2-806d-48da-9533-09b100c93877'] ${VIM_VOLUMES} ${match}[0] Adds ``values`` to the end of ``list``. 013bf829-73b2-4869-aeae-af9f76641742 ${volumes_attached} ${vdu_id} volumes_attached Get a field (flavor, image, volumes_attached, etc.) from a server. ${server_id} Verifies that the given item is not empty. Length is 36 ${field} Verifies that the given item is not empty. Length is 16 ${rc} ${stdout} openstack server show ${server_id} -c ${field} -f value Runs the given command in the system and returns the RC and output. Running command 'openstack server show 013bf829-73b2-4869-aeae-af9f76641742 -c volumes_attached -f value 2>&1'. ${rc} = 0 ${stdout} = [] ${stdout} Logs the given message with the given level. [] ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${volumes_attached} = [] ${match} ${volumes_attached} '([0-9a-f\-]+)' 1 Returns a list of all non-overlapping matches in the given string. ${match} = [] ${VIM_VOLUMES} ${match}[0] Adds ``values`` to the end of ``list``. aa71cda7-cf9f-446b-9509-11b3f2bee7e1 ${volumes_attached} ${vdu_id} volumes_attached Get a field (flavor, image, volumes_attached, etc.) from a server. ${server_id} Verifies that the given item is not empty. Length is 36 ${field} Verifies that the given item is not empty. Length is 16 ${rc} ${stdout} openstack server show ${server_id} -c ${field} -f value Runs the given command in the system and returns the RC and output. Running command 'openstack server show aa71cda7-cf9f-446b-9509-11b3f2bee7e1 -c volumes_attached -f value 2>&1'. ${rc} = 0 ${stdout} = [] ${stdout} Logs the given message with the given level. [] ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${volumes_attached} = [] ${match} ${volumes_attached} '([0-9a-f\-]+)' 1 Returns a list of all non-overlapping matches in the given string. ${match} = [] ${VIM_VOLUMES} ${match}[0] Adds ``values`` to the end of ``list``. 13425e2b-c35c-4c1b-ad4d-59d154684048 ${volumes_attached} ${vdu_id} volumes_attached Get a field (flavor, image, volumes_attached, etc.) from a server. ${server_id} Verifies that the given item is not empty. Length is 36 ${field} Verifies that the given item is not empty. Length is 16 ${rc} ${stdout} openstack server show ${server_id} -c ${field} -f value Runs the given command in the system and returns the RC and output. Running command 'openstack server show 13425e2b-c35c-4c1b-ad4d-59d154684048 -c volumes_attached -f value 2>&1'. ${rc} = 0 ${stdout} = [] ${stdout} Logs the given message with the given level. [] ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${volumes_attached} = [] ${match} ${volumes_attached} '([0-9a-f\-]+)' 1 Returns a list of all non-overlapping matches in the given string. ${match} = [] ${VIM_VOLUMES} ${match}[0] Adds ``values`` to the end of ``list``. @{VIM_VDUS} Logs the given messages as separate entries using the INFO level. c31f3fa2-da07-4f54-911c-79bbc3076885 013bf829-73b2-4869-aeae-af9f76641742 4d1c8f87-13a7-4deb-974c-a21ed123c19d db3fdf17-2062-48f7-a787-02f6751bb644 fc532e78-c896-4694-b643-85bdcf0773fb aa71cda7-cf9f-446b-9509-11b3f2bee7e1 13425e2b-c35c-4c1b-ad4d-59d154684048 @{VIM_VOLUMES} Logs the given messages as separate entries using the INFO level. d8bf18f2-806d-48da-9533-09b100c93877 Retrieve all VMs and volumes from the NS and stores them in VIM_VDUS and VIM_VOLUMES lists. This is done again to guarantee that all objects are cleaned in the VIM in case the heal operation added new objects. cluster_heal daily heal_03 regression ${NS_NAME} Delete a NS instance. ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} Logs the given message with the given level. 240.0 ${rc} ${stdout} osm ns-delete ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-delete heal_03 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${stdout} Logs the given message with the given level. Deletion in progress ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${ns_delete_max_wait_time} ${NS_DELETE_POL_TIME} Check For NS Instance To Be Deleted ${ns} Runs the specified keyword and retries if it fails. ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------------------------------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+----------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+----------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------+ | 62cfe29d-a94f-49aa-b13f-42430be89ddc | basic_18-vnf2-dataVM-0 | ACTIVE | basic_18-datanet1=192.168.10.177; basic_18-datanet2=192.168.20.78; basic_18-datanet3=192.168.30.11; osm-ext=172.21.248.142 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 7841f94c-c07b-4bfe-a4ab-b7ca72dd5632 | basic_18-vnf1-dataVM-0 | ACTIVE | basic_18-datanet1=192.168.10.75; basic_18-datanet2=192.168.20.87; basic_18-datanet3=192.168.30.94; osm-ext=172.21.248.31 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 13425e2b-c35c-4c1b-ad4d-59d154684048 | heal_03-manual_scale_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.77.15; osm-ext=172.21.249.149 | ubuntu18.04 | simple_requires-1-1-flv | | aa71cda7-cf9f-446b-9509-11b3f2bee7e1 | heal_03-manual_scale_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.77.168; osm-ext=172.21.248.34 | ubuntu18.04 | simple_requires-1-1-flv | | fc532e78-c896-4694-b643-85bdcf0773fb | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.53 | ubuntu20.04 | several_volumes-VM-flv | | 013bf829-73b2-4869-aeae-af9f76641742 | heal_03-manual_scale_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.77.68; osm-ext=172.21.249.106 | ubuntu18.04 | simple_requires-1-1-flv | | 26bf5165-ae85-41df-86ef-194293211983 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | c760ca7e-02ec-4474-bacd-1b0ec5ca82cf | slicebasic.slice-middle-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | ea2ad3ca-3a41-40ac-8d9f-324b76092d39 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+----------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep heal_03 2>&1'. ${rc} = 0 ${stdout} = heal_03 ${rc},${stdout} Logs the given message with the given level. 0,heal_03 ${stdout} ${ns} Fails if objects are equal after converting them to strings. heal_03 == heal_03 ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-------------------------------------------+--------+-----------------------------------------------------------------------------------------------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-------------------------------------------+--------+----------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-------------------------------------------+--------+----------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------+ | 62cfe29d-a94f-49aa-b13f-42430be89ddc | basic_18-vnf2-dataVM-0 | ACTIVE | basic_18-datanet1=192.168.10.177; basic_18-datanet2=192.168.20.78; basic_18-datanet3=192.168.30.11; osm-ext=172.21.248.142 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 7841f94c-c07b-4bfe-a4ab-b7ca72dd5632 | basic_18-vnf1-dataVM-0 | ACTIVE | basic_18-datanet1=192.168.10.75; basic_18-datanet2=192.168.20.87; basic_18-datanet3=192.168.30.94; osm-ext=172.21.248.31 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 13425e2b-c35c-4c1b-ad4d-59d154684048 | heal_03-manual_scale_vnf-mgmtVM-2 | ACTIVE | osm-ext=172.21.249.149 | ubuntu18.04 | simple_requires-1-1-flv | | aa71cda7-cf9f-446b-9509-11b3f2bee7e1 | heal_03-manual_scale_vnf-mgmtVM-1 | ACTIVE | osm-ext=172.21.248.34 | ubuntu18.04 | simple_requires-1-1-flv | | 26bf5165-ae85-41df-86ef-194293211983 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | c760ca7e-02ec-4474-bacd-1b0ec5ca82cf | slicebasic.slice-middle-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | ea2ad3ca-3a41-40ac-8d9f-324b76092d39 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-------------------------------------------+--------+----------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep heal_03 2>&1'. ${rc} = 0 ${stdout} = heal_03 ${rc},${stdout} Logs the given message with the given level. 0,heal_03 ${stdout} ${ns} Fails if objects are equal after converting them to strings. heal_03 == heal_03 ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-------------------------------------------+--------+-----------------------------------------------------------------------------------------------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-------------------------------------------+--------+----------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-------------------------------------------+--------+----------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------+ | 62cfe29d-a94f-49aa-b13f-42430be89ddc | basic_18-vnf2-dataVM-0 | ACTIVE | basic_18-datanet1=192.168.10.177; basic_18-datanet2=192.168.20.78; basic_18-datanet3=192.168.30.11; osm-ext=172.21.248.142 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 7841f94c-c07b-4bfe-a4ab-b7ca72dd5632 | basic_18-vnf1-dataVM-0 | ACTIVE | basic_18-datanet1=192.168.10.75; basic_18-datanet2=192.168.20.87; basic_18-datanet3=192.168.30.94; osm-ext=172.21.248.31 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 26bf5165-ae85-41df-86ef-194293211983 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | c760ca7e-02ec-4474-bacd-1b0ec5ca82cf | slicebasic.slice-middle-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | ea2ad3ca-3a41-40ac-8d9f-324b76092d39 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-------------------------------------------+--------+----------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep heal_03 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${ns} Fails if objects are equal after converting them to strings. Delete NS instance. cleanup cluster_heal daily heal_03 regression ${NSD_NAME} Delete a NS package from OSM. ${rc} ${stdout} Run And Return Rc And Output osm nspkg-delete ${nsd_id} Runs the keyword and continues execution even if a failure occurs. osm nspkg-delete ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-delete volumes_healing-ns 2>&1'. ${rc} = 0 ${stdout} = Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Logs the given message with the given level. Deleted ${NSD_DELETE_MAX_WAIT_TIME} ${NSD_DELETE_POL_TIME} Check For NSD ${nsd_id} Runs the specified keyword and retries if it fails. ${nsd_id} Check that a NS package exists in OSM. ${rc} ${stdout} osm nspkg-list | awk '{print $2}' | grep ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-list | awk '{print $2}' | grep volumes_healing-ns 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. Delete NS package from OSM. cleanup cluster_heal daily heal_03 regression ${VNFD_VOLUMES_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete several_volumes-vnf 2>&1'. ${rc} = 0 ${stdout} = Deleted ${stdout} Logs the given message with the given level. Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep several_volumes-vnf 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. ${VNFD_MANUALSCALE_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete manual_scale-vnf 2>&1'. ${rc} = 0 ${stdout} = Deleted ${stdout} Logs the given message with the given level. Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep manual_scale-vnf 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. Delete VNF packages from OSM. cleanup cluster_heal daily heal_03 regression ${error} 0 Returns the given values which can then be assigned to a variables. ${error} = 0 ${vol_id} @{VIM_VOLUMES} d8bf18f2-806d-48da-9533-09b100c93877 Checking if volume ${vol_id} is still in VIM Logs the given message with the given level. Checking if volume d8bf18f2-806d-48da-9533-09b100c93877 is still in VIM ${exists} ${vol_id} Checks if a volume id exists ${volume_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} openstack volume list | grep ${volume_id} | wc -l Runs the given command in the system and returns the RC and output. Running command 'openstack volume list | grep d8bf18f2-806d-48da-9533-09b100c93877 | wc -l 2>&1'. ${rc} = 0 ${stdout} = 0 ${stdout} Logs the given message with the given level. 0 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${exists} = 0 ${error} 1 Returns the given values which can then be assigned to a variables. Deleting volume ${vol_id} Logs the given message with the given level. Delete Volume ${vol_id} Runs the given keyword with the given arguments and ignores possible error. ${vdu_id} @{VIM_VDUS} c31f3fa2-da07-4f54-911c-79bbc3076885 Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server c31f3fa2-da07-4f54-911c-79bbc3076885 is still in VIM ${status} Get Server Property ${vdu_id} id Runs the given keyword with the given arguments and ignores possible error. ${vdu_id} id Get a field (flavor, image, volumes_attached, etc.) from a server. ${server_id} Verifies that the given item is not empty. Length is 36 ${field} Verifies that the given item is not empty. Length is 2 ${rc} ${stdout} openstack server show ${server_id} -c ${field} -f value Runs the given command in the system and returns the RC and output. Running command 'openstack server show c31f3fa2-da07-4f54-911c-79bbc3076885 -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for c31f3fa2-da07-4f54-911c-79bbc3076885 ${stdout} Logs the given message with the given level. No Server found for c31f3fa2-da07-4f54-911c-79bbc3076885 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${stdout} ${status} = ('FAIL', '1 != 0') ${status}[0] Logs the given message with the given level. FAIL ${error} 1 Returns the given values which can then be assigned to a variables. Deleting server ${vdu_id} Logs the given message with the given level. Delete Server ${vdu_id} Runs the given keyword with the given arguments and ignores possible error. 013bf829-73b2-4869-aeae-af9f76641742 Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server 013bf829-73b2-4869-aeae-af9f76641742 is still in VIM ${status} Get Server Property ${vdu_id} id Runs the given keyword with the given arguments and ignores possible error. ${vdu_id} id Get a field (flavor, image, volumes_attached, etc.) from a server. ${server_id} Verifies that the given item is not empty. Length is 36 ${field} Verifies that the given item is not empty. Length is 2 ${rc} ${stdout} openstack server show ${server_id} -c ${field} -f value Runs the given command in the system and returns the RC and output. Running command 'openstack server show 013bf829-73b2-4869-aeae-af9f76641742 -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for 013bf829-73b2-4869-aeae-af9f76641742 ${stdout} Logs the given message with the given level. No Server found for 013bf829-73b2-4869-aeae-af9f76641742 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${stdout} ${status} = ('FAIL', '1 != 0') ${status}[0] Logs the given message with the given level. FAIL ${error} 1 Returns the given values which can then be assigned to a variables. Deleting server ${vdu_id} Logs the given message with the given level. Delete Server ${vdu_id} Runs the given keyword with the given arguments and ignores possible error. 4d1c8f87-13a7-4deb-974c-a21ed123c19d Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server 4d1c8f87-13a7-4deb-974c-a21ed123c19d is still in VIM ${status} Get Server Property ${vdu_id} id Runs the given keyword with the given arguments and ignores possible error. ${vdu_id} id Get a field (flavor, image, volumes_attached, etc.) from a server. ${server_id} Verifies that the given item is not empty. Length is 36 ${field} Verifies that the given item is not empty. Length is 2 ${rc} ${stdout} openstack server show ${server_id} -c ${field} -f value Runs the given command in the system and returns the RC and output. Running command 'openstack server show 4d1c8f87-13a7-4deb-974c-a21ed123c19d -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for 4d1c8f87-13a7-4deb-974c-a21ed123c19d ${stdout} Logs the given message with the given level. No Server found for 4d1c8f87-13a7-4deb-974c-a21ed123c19d ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${stdout} ${status} = ('FAIL', '1 != 0') ${status}[0] Logs the given message with the given level. FAIL ${error} 1 Returns the given values which can then be assigned to a variables. Deleting server ${vdu_id} Logs the given message with the given level. Delete Server ${vdu_id} Runs the given keyword with the given arguments and ignores possible error. db3fdf17-2062-48f7-a787-02f6751bb644 Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server db3fdf17-2062-48f7-a787-02f6751bb644 is still in VIM ${status} Get Server Property ${vdu_id} id Runs the given keyword with the given arguments and ignores possible error. ${vdu_id} id Get a field (flavor, image, volumes_attached, etc.) from a server. ${server_id} Verifies that the given item is not empty. Length is 36 ${field} Verifies that the given item is not empty. Length is 2 ${rc} ${stdout} openstack server show ${server_id} -c ${field} -f value Runs the given command in the system and returns the RC and output. Running command 'openstack server show db3fdf17-2062-48f7-a787-02f6751bb644 -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for db3fdf17-2062-48f7-a787-02f6751bb644 ${stdout} Logs the given message with the given level. No Server found for db3fdf17-2062-48f7-a787-02f6751bb644 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${stdout} ${status} = ('FAIL', '1 != 0') ${status}[0] Logs the given message with the given level. FAIL ${error} 1 Returns the given values which can then be assigned to a variables. Deleting server ${vdu_id} Logs the given message with the given level. Delete Server ${vdu_id} Runs the given keyword with the given arguments and ignores possible error. fc532e78-c896-4694-b643-85bdcf0773fb Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server fc532e78-c896-4694-b643-85bdcf0773fb is still in VIM ${status} Get Server Property ${vdu_id} id Runs the given keyword with the given arguments and ignores possible error. ${vdu_id} id Get a field (flavor, image, volumes_attached, etc.) from a server. ${server_id} Verifies that the given item is not empty. Length is 36 ${field} Verifies that the given item is not empty. Length is 2 ${rc} ${stdout} openstack server show ${server_id} -c ${field} -f value Runs the given command in the system and returns the RC and output. Running command 'openstack server show fc532e78-c896-4694-b643-85bdcf0773fb -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for fc532e78-c896-4694-b643-85bdcf0773fb ${stdout} Logs the given message with the given level. No Server found for fc532e78-c896-4694-b643-85bdcf0773fb ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${stdout} ${status} = ('FAIL', '1 != 0') ${status}[0] Logs the given message with the given level. FAIL ${error} 1 Returns the given values which can then be assigned to a variables. Deleting server ${vdu_id} Logs the given message with the given level. Delete Server ${vdu_id} Runs the given keyword with the given arguments and ignores possible error. aa71cda7-cf9f-446b-9509-11b3f2bee7e1 Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server aa71cda7-cf9f-446b-9509-11b3f2bee7e1 is still in VIM ${status} Get Server Property ${vdu_id} id Runs the given keyword with the given arguments and ignores possible error. ${vdu_id} id Get a field (flavor, image, volumes_attached, etc.) from a server. ${server_id} Verifies that the given item is not empty. Length is 36 ${field} Verifies that the given item is not empty. Length is 2 ${rc} ${stdout} openstack server show ${server_id} -c ${field} -f value Runs the given command in the system and returns the RC and output. Running command 'openstack server show aa71cda7-cf9f-446b-9509-11b3f2bee7e1 -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for aa71cda7-cf9f-446b-9509-11b3f2bee7e1 ${stdout} Logs the given message with the given level. No Server found for aa71cda7-cf9f-446b-9509-11b3f2bee7e1 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${stdout} ${status} = ('FAIL', '1 != 0') ${status}[0] Logs the given message with the given level. FAIL ${error} 1 Returns the given values which can then be assigned to a variables. Deleting server ${vdu_id} Logs the given message with the given level. Delete Server ${vdu_id} Runs the given keyword with the given arguments and ignores possible error. 13425e2b-c35c-4c1b-ad4d-59d154684048 Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server 13425e2b-c35c-4c1b-ad4d-59d154684048 is still in VIM ${status} Get Server Property ${vdu_id} id Runs the given keyword with the given arguments and ignores possible error. ${vdu_id} id Get a field (flavor, image, volumes_attached, etc.) from a server. ${server_id} Verifies that the given item is not empty. Length is 36 ${field} Verifies that the given item is not empty. Length is 2 ${rc} ${stdout} openstack server show ${server_id} -c ${field} -f value Runs the given command in the system and returns the RC and output. Running command 'openstack server show 13425e2b-c35c-4c1b-ad4d-59d154684048 -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for 13425e2b-c35c-4c1b-ad4d-59d154684048 ${stdout} Logs the given message with the given level. No Server found for 13425e2b-c35c-4c1b-ad4d-59d154684048 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${stdout} ${status} = ('FAIL', '1 != 0') ${status}[0] Logs the given message with the given level. FAIL ${error} 1 Returns the given values which can then be assigned to a variables. Deleting server ${vdu_id} Logs the given message with the given level. Delete Server ${vdu_id} Runs the given keyword with the given arguments and ignores possible error. Some objects created by test were not deleted in VIM Fails the test with the given message and optionally alters its tags. Delete any remaining objects (volumes, VMs, etc.) in the VIM. cleanup cluster_heal daily heal_03 regression Suite Cleanup Runs the given keyword with the given arguments and ignores possible error. Test Suit Cleanup: Deleting Descriptor, instance and vim Delete NS ${NS_NAME} Runs the given keyword with the given arguments, if one or more tests failed. ${NS_NAME} Delete a NS instance. ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} Logs the given message with the given level. 240.0 ${rc} ${stdout} osm ns-delete ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-delete heal_03 2>&1'. ${rc} = 1 ${stdout} = ERROR: ns 'heal_03' not found ${stdout} Logs the given message with the given level. ERROR: ns 'heal_03' not found ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${ns_delete_max_wait_time} ${NS_DELETE_POL_TIME} Check For NS Instance To Be Deleted ${ns} Runs the specified keyword and retries if it fails. ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-------------------------------------------+--------+-----------------------------------------------------------------------------------------------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-------------------------------------------+--------+----------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-------------------------------------------+--------+----------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------+ | 62cfe29d-a94f-49aa-b13f-42430be89ddc | basic_18-vnf2-dataVM-0 | ACTIVE | basic_18-datanet1=192.168.10.177; basic_18-datanet2=192.168.20.78; basic_18-datanet3=192.168.30.11; osm-ext=172.21.248.142 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 7841f94c-c07b-4bfe-a4ab-b7ca72dd5632 | basic_18-vnf1-dataVM-0 | ACTIVE | basic_18-datanet1=192.168.10.75; basic_18-datanet2=192.168.20.87; basic_18-datanet3=192.168.30.94; osm-ext=172.21.248.31 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 26bf5165-ae85-41df-86ef-194293211983 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | c760ca7e-02ec-4474-bacd-1b0ec5ca82cf | slicebasic.slice-middle-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | ea2ad3ca-3a41-40ac-8d9f-324b76092d39 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-------------------------------------------+--------+----------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep heal_03 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${ns} Fails if objects are equal after converting them to strings. Delete NSD ${NSD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. ${NSD_NAME} Delete a NS package from OSM. ${rc} ${stdout} Run And Return Rc And Output osm nspkg-delete ${nsd_id} Runs the keyword and continues execution even if a failure occurs. osm nspkg-delete ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-delete volumes_healing-ns 2>&1'. ${rc} = 1 ${stdout} = ERROR: nsd volumes_healing-ns not found ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${stdout} Logs the given message with the given level. ERROR: nsd volumes_healing-ns not found ${NSD_DELETE_MAX_WAIT_TIME} ${NSD_DELETE_POL_TIME} Check For NSD ${nsd_id} Runs the specified keyword and retries if it fails. ${nsd_id} Check that a NS package exists in OSM. ${rc} ${stdout} osm nspkg-list | awk '{print $2}' | grep ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-list | awk '{print $2}' | grep volumes_healing-ns 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. Delete VNFD ${VNFD_VOLUMES_NAME} Runs the given keyword with the given arguments, if one or more tests failed. ${VNFD_VOLUMES_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete several_volumes-vnf 2>&1'. ${rc} = 1 ${stdout} = ERROR: vnfd several_volumes-vnf not found ${stdout} Logs the given message with the given level. ERROR: vnfd several_volumes-vnf not found ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep several_volumes-vnf 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. Delete VNFD ${VNFD_MANUALSCALE_NAME} Runs the given keyword with the given arguments, if one or more tests failed. ${VNFD_MANUALSCALE_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete manual_scale-vnf 2>&1'. ${rc} = 1 ${stdout} = ERROR: vnfd manual_scale-vnf not found ${stdout} Logs the given message with the given level. ERROR: vnfd manual_scale-vnf not found ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep manual_scale-vnf 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. [HEAL-03] Healing of multiple VDUs '%{PACKAGES_FOLDER}/${VNFD_PKG}' Onboards ("creates") a NF Package into OSM. - Parameters: - vnfd_pkg: Name (and location) of the NF Package - overrides (optional): String with options to override the EPA and/or interface properties of the Package. This is very useful to allow to deploy e.g. non-EPA packages in EPA VIMs (or vice-versa). Valid strings are the same as in the command. E.g.: - `--override-epa`: adds EPA attributes to all VDUs. - `--override-nonepa`: removes all EPA attributes from all VDUs. - `--override-paravirt`: converts all interfaces to `PARAVIRT`. This one can be combined with the others above (e.g. '--override-nonepa --override-paravirt'). - Relevant environment variables: - OVERRIDES: If the environment variable "OVERRIDES" exists, it prevails over the value in the argument. This is often more convenient to enforce the same behaviour for every test run in a given VIM. ${overrides} OVERRIDES default=${overrides} Returns the value of an environment variable with the given name. ${overrides} = ${rc} ${stdout} osm vnfpkg-create ${overrides} ${vnfd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-create '/robot-systest/osm-packages/autoheal_vnf' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/autoheal_vnf Validation OK List of charms in the descriptor: set() Adding File: autoheal_vnf Package created: /robot-systest/osm-packages/autoheal_vnf.ta... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/autoheal_vnf Validation OK List of charms in the descriptor: set() Adding File: autoheal_vnf Package created: /robot-systest/osm-packages/autoheal_vnf.tar.gz Uploading package /robot-systest/osm-packages/autoheal_vnf.tar.gz e457ef2b-df57-4392-9587-f8595bc928c0 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 7 lines ${lines} = 7 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 6 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = e457ef2b-df57-4392-9587-f8595bc928c0 ${id} Upload VNF package for the testsuite. cluster_heal daily heal_04 regression '%{PACKAGES_FOLDER}/${NSD_PKG}' Upload a NS package to OSM and return the id. ${rc} ${stdout} osm nspkg-create ${nsd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-create '/robot-systest/osm-packages/autoheal_ns' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/autoheal_ns Validation OK List of charms in the descriptor: set() Adding File: autoheal_ns Package created: /robot-systest/osm-packages/autoheal_ns.tar.g... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/autoheal_ns Validation OK List of charms in the descriptor: set() Adding File: autoheal_ns Package created: /robot-systest/osm-packages/autoheal_ns.tar.gz e576b864-8f3a-490a-8a0c-08cc9a531a3e ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 6 lines ${lines} = 6 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 5 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = e576b864-8f3a-490a-8a0c-08cc9a531a3e ${id} Upload NS package for the testsuite. cluster_heal daily heal_04 regression ${id} ${NSD_NAME} %{VIM_TARGET} ${NS_NAME} ${NS_CONFIG} ${PUBLICKEY} Launch the instantation of a NS and verify in a loop that the NS instance is successfully created in a given time, and return the NS instance id. ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_launch_max_wait_time} = 300.0 ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_launch_max_wait_time} = 300.0 ${ns_launch_max_wait_time} Logs the given message with the given level. 300.0 ${config_attr} '${ns_config}'!='${EMPTY}' --config '${ns_config}' ${EMPTY} Sets variable based on the given condition. ${config_attr} = --config '{vld: [ {name: mgmt, vim-network-name: osm-ext} ] }' ${sshkeys_attr} '${publickey}'!='${EMPTY}' --ssh_keys ${publickey} ${EMPTY} Sets variable based on the given condition. ${sshkeys_attr} = --ssh_keys /root/.ssh/id_rsa.pub ${config_file_attr} '${config_file}'!='${EMPTY}' --config_file '${config_file}' ${EMPTY} Sets variable based on the given condition. ${config_file_attr} = ${ns_id} ${ns_name} ${nsd} ${vim_name} ${config_attr} ${sshkeys_attr} ${config_file_attr} Launch the instantation of a NS, and return the NS instance id. ${rc} ${stdout} osm ns-create --ns_name ${ns_name} --nsd_name ${nsd} --vim_account ${vim_name} ${ns_extra_args} Runs the given command in the system and returns the RC and output. Running command 'osm ns-create --ns_name heal_04 --nsd_name autoheal_nsd --vim_account osm --config '{vld: [ {name: mgmt, vim-network-name: osm-ext} ] }' --ssh_keys /root/.ssh/id_rsa.pub 2>&1'. ${rc} = 0 ${stdout} = dad23f2a-5ed1-48ff-be6e-ae09d6e8a3c1 ${stdout} Logs the given message with the given level. dad23f2a-5ed1-48ff-be6e-ae09d6e8a3c1 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = dad23f2a-5ed1-48ff-be6e-ae09d6e8a3c1 ${ns_id} Logs the given message with the given level. dad23f2a-5ed1-48ff-be6e-ae09d6e8a3c1 ${ns_launch_max_wait_time} ${NS_LAUNCH_POL_TIME} Check For NS Instance To Configured ${ns_name} Runs the specified keyword and retries if it fails. ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-------------------------------------------+--------+-----------------------------------------------------------------------------------------------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-------------------------------------------+--------+----------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-------------------------------------------+--------+----------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------+ | 62cfe29d-a94f-49aa-b13f-42430be89ddc | basic_18-vnf2-dataVM-0 | ACTIVE | basic_18-datanet1=192.168.10.177; basic_18-datanet2=192.168.20.78; basic_18-datanet3=192.168.30.11; osm-ext=172.21.248.142 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 7841f94c-c07b-4bfe-a4ab-b7ca72dd5632 | basic_18-vnf1-dataVM-0 | ACTIVE | basic_18-datanet1=192.168.10.75; basic_18-datanet2=192.168.20.87; basic_18-datanet3=192.168.30.94; osm-ext=172.21.248.31 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 26bf5165-ae85-41df-86ef-194293211983 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | c760ca7e-02ec-4474-bacd-1b0ec5ca82cf | slicebasic.slice-middle-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | ea2ad3ca-3a41-40ac-8d9f-324b76092d39 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-------------------------------------------+--------+----------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="heal_04" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | heal_04 | dad23f2a-5ed1-48ff-be6e-ae09d6e8a3c1 | 2024-02-19T04:20:58 | BUILDING | INSTANTIATING (298b01c5-6d36-4bf8-a055-d91773270a1b) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | heal_04 | dad23f2a-5ed1-48ff-be6e-ae09d6e8a3c1 | 2024-02-19T04:20:58 | BUILDING | INSTANTIATING (298b01c5-6d36-4bf8-a055-d91773270a1b) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+---------------------------------------------+--------+---------------------------------------------------------------------------------------------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+---------------------------------------------+--------+----------------------------------------------------------------------------------------------------------------------------+-------------+-----------------------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+---------------------------------------------+--------+----------------------------------------------------------------------------------------------------------------------------+-------------+-----------------------------------------+ | d08c3a09-3cf2-41a2-aa58-c73e50bab78f | heal_04-autoheal-basic-1-autoheal_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.233 | ubuntu20.04 | autoheal_vnfd-VM-autoheal-basic-1-1-flv | | 62cfe29d-a94f-49aa-b13f-42430be89ddc | basic_18-vnf2-dataVM-0 | ACTIVE | basic_18-datanet1=192.168.10.177; basic_18-datanet2=192.168.20.78; basic_18-datanet3=192.168.30.11; osm-ext=172.21.248.142 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 7841f94c-c07b-4bfe-a4ab-b7ca72dd5632 | basic_18-vnf1-dataVM-0 | ACTIVE | basic_18-datanet1=192.168.10.75; basic_18-datanet2=192.168.20.87; basic_18-datanet3=192.168.30.94; osm-ext=172.21.248.31 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 26bf5165-ae85-41df-86ef-194293211983 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+---------------------------------------------+--------+----------------------------------------------------------------------------------------------------------------------------+-------------+-----------------------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="heal_04" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | heal_04 | dad23f2a-5ed1-48ff-be6e-ae09d6e8a3c1 | 2024-02-19T04:20:58 | READY | IDLE (None) | N/A | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. ${ns_name} Check if a given NS instance has not failed in the instantiation (the status should not be BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+---------------------------------------------+--------+---------------------------------------------------------------------------------------------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+---------------------------------------------+--------+----------------------------------------------------------------------------------------------------------------------------+-------------+-----------------------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+---------------------------------------------+--------+----------------------------------------------------------------------------------------------------------------------------+-------------+-----------------------------------------+ | d08c3a09-3cf2-41a2-aa58-c73e50bab78f | heal_04-autoheal-basic-1-autoheal_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.233 | ubuntu20.04 | autoheal_vnfd-VM-autoheal-basic-1-1-flv | | 62cfe29d-a94f-49aa-b13f-42430be89ddc | basic_18-vnf2-dataVM-0 | ACTIVE | basic_18-datanet1=192.168.10.177; basic_18-datanet2=192.168.20.78; basic_18-datanet3=192.168.30.11; osm-ext=172.21.248.142 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 7841f94c-c07b-4bfe-a4ab-b7ca72dd5632 | basic_18-vnf1-dataVM-0 | ACTIVE | basic_18-datanet1=192.168.10.75; basic_18-datanet2=192.168.20.87; basic_18-datanet3=192.168.30.94; osm-ext=172.21.248.31 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+---------------------------------------------+--------+----------------------------------------------------------------------------------------------------------------------------+-------------+-----------------------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="heal_04" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | heal_04 | dad23f2a-5ed1-48ff-be6e-ae09d6e8a3c1 | 2024-02-19T04:20:58 | READY | IDLE (None) | N/A | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} BROKEN Fails if ``container`` contains ``item`` one or more times. ${ns_id} ${id} = dad23f2a-5ed1-48ff-be6e-ae09d6e8a3c1 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = dad23f2a-5ed1-48ff-be6e-ae09d6e8a3c1 Instantiate NS for the testsuite. cluster_heal daily heal_04 regression ${variables} Returns a dictionary containing all variables in the current scope. ${variables} = {'${/}': '/', '${:}': ':', '${\\n}': '\n', '${DEBUG_FILE}': 'NONE', '${EXECDIR}': '/robot-systest', '${FAILURE_RETURN_CODE}': '1', '${False}': False, '${HEALING_MAX_WAIT_TIME}': '10m', '${HEALING_POL_... ${id} ${NS_NAME} Get the NS instance ID from a NS instance name passed as argument, and return it. ${ns_name} Verifies that the given item is not empty. Length is 7 ${rc} ${stdout} osm ns-list | grep ${ns_name} | awk '{print $4}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | grep heal_04 | awk '{print $4}' 2>&1'. ${rc} = 0 ${stdout} = dad23f2a-5ed1-48ff-be6e-ae09d6e8a3c1 ${stdout} Logs the given message with the given level. dad23f2a-5ed1-48ff-be6e-ae09d6e8a3c1 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Verifies that the given item is not empty. Length is 36 ${stdout} ${id} = dad23f2a-5ed1-48ff-be6e-ae09d6e8a3c1 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = dad23f2a-5ed1-48ff-be6e-ae09d6e8a3c1 Get NS identifier and stores as suite variable to be used later on. cleanup cluster_heal daily heal_04 regression ${NS_ID} msg=NS is not available Fails unless the given variable exists within the current scope. @{vnf_id_list} ${NS_ID} Get the list of VNF instances of a given NS instance id, and return it. ${ns_id} Verifies that the given item is not empty. Length is 36 @{vnf_list_string} osm vnf-list --ns ${ns_id} | grep ${ns_id} | awk '{print $2}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm vnf-list --ns dad23f2a-5ed1-48ff-be6e-ae09d6e8a3c1 | grep dad23f2a-5ed1-48ff-be6e-ae09d6e8a3c1 | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | ac6ec96e-11c6-4870-936d-50e2b36be466 ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ ac6ec96e-11c6-4870-936d-50e2b36be466 ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: ac6ec96e-11c6-4870-936d-50e2b36be466 @{vnf_list} @{vnf_id_list} = [ ac6ec96e-11c6-4870-936d-50e2b36be466 ] ${vnf_id_list} Logs the given message with the given level. ['ac6ec96e-11c6-4870-936d-50e2b36be466'] ${vnf_id} @{vnf_id_list} ac6ec96e-11c6-4870-936d-50e2b36be466 ${vnf_id} Logs the given message with the given level. ac6ec96e-11c6-4870-936d-50e2b36be466 ${id} ${vnf_id} Get the identifier of the first VDU of a VNF instance. Useful to get the id when a VNF has a single VDU. ${vnf_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm vnf-show ${vnf_id} --literal | yq -r '.vdur[]."vim-id"' Runs the given command in the system and returns the RC and output. Running command 'osm vnf-show ac6ec96e-11c6-4870-936d-50e2b36be466 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = d08c3a09-3cf2-41a2-aa58-c73e50bab78f ${stdout} Logs the given message with the given level. d08c3a09-3cf2-41a2-aa58-c73e50bab78f ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = d08c3a09-3cf2-41a2-aa58-c73e50bab78f @{vdu_ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{vdu_ids} = [ d08c3a09-3cf2-41a2-aa58-c73e50bab78f ] ${VIM_VDUS} @{vdu_ids} Adds ``values`` to the end of ``list``. @{VIM_VDUS} Logs the given messages as separate entries using the INFO level. d08c3a09-3cf2-41a2-aa58-c73e50bab78f Retrieve all VMs and volumes from the NS and stores them in VIM_VDUS and VIM_VOLUMES lists. cluster_heal daily heal_04 regression ${NS_ID} msg=NS is not available Fails unless the given variable exists within the current scope. ${ip_addr} ${NS_ID} ${VNF_INDEX} Get the mgmt IP address of a member VNF in a NS instance, and return it. ${ns_id} Verifies that the given item is not empty. Length is 36 ${vnf_member_index} Verifies that the given item is not empty. Length is 16 ${rc} ${stdout} osm vnf-list --filter member-vnf-index-ref=${vnf_member_index} | grep ${ns_id} | awk '{print $14}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm vnf-list --filter member-vnf-index-ref=autoheal-basic-1 | grep dad23f2a-5ed1-48ff-be6e-ae09d6e8a3c1 | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.249.233 ${stdout} Logs the given message with the given level. 172.21.249.233 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ip_addr} = 172.21.249.233 ${ip_addr} Logs the given message with the given level. 172.21.249.233 ${VNF_IP_ADDR} ${ip_addr} Makes a variable available everywhere within the scope of the current suite. ${VNF_IP_ADDR} = 172.21.249.233 ${vnf_id} ${NS_ID} ${VNF_INDEX} Get the VNF instance ID of a member VNF in a NS instance, and return it. ${ns_id} Verifies that the given item is not empty. Length is 36 ${vnf_member_index} Verifies that the given item is not empty. Length is 16 ${rc} ${stdout} osm vnf-list --filter member-vnf-index-ref=${vnf_member_index} | grep ${ns_id} | awk '{print $2}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm vnf-list --filter member-vnf-index-ref=autoheal-basic-1 | grep dad23f2a-5ed1-48ff-be6e-ae09d6e8a3c1 | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = ac6ec96e-11c6-4870-936d-50e2b36be466 ${stdout} Logs the given message with the given level. ac6ec96e-11c6-4870-936d-50e2b36be466 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${vnf_id} = ac6ec96e-11c6-4870-936d-50e2b36be466 ${VNF_AUTOHEAL_ID} ${vnf_id} Makes a variable available everywhere within the scope of the current suite. ${VNF_AUTOHEAL_ID} = ac6ec96e-11c6-4870-936d-50e2b36be466 ${id} ${vnf_id} Get the identifier of the first VDU of a VNF instance. Useful to get the id when a VNF has a single VDU. ${vnf_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm vnf-show ${vnf_id} --literal | yq -r '.vdur[]."vim-id"' Runs the given command in the system and returns the RC and output. Running command 'osm vnf-show ac6ec96e-11c6-4870-936d-50e2b36be466 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = d08c3a09-3cf2-41a2-aa58-c73e50bab78f ${stdout} Logs the given message with the given level. d08c3a09-3cf2-41a2-aa58-c73e50bab78f ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = d08c3a09-3cf2-41a2-aa58-c73e50bab78f ${VDU_AUTOHEAL_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${VDU_AUTOHEAL_ID} = d08c3a09-3cf2-41a2-aa58-c73e50bab78f ${VDU_AUTOHEAL_ID} Logs the given message with the given level. d08c3a09-3cf2-41a2-aa58-c73e50bab78f @{AUTOHEAL_IP_LIST} ${VNF_AUTOHEAL_ID} Return a list with the IP addresses of the VDU records of a VNF instance. ${vnf_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm vnf-show ${vnf_id} --literal | yq -r '.vdur[].interfaces[]."ip-address"' Runs the given command in the system and returns the RC and output. Running command 'osm vnf-show ac6ec96e-11c6-4870-936d-50e2b36be466 --literal | yq -r '.vdur[].interfaces[]."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 172.21.249.233 ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> @{ip} ${stdout} Splits the ``string`` using ``separator`` as a delimiter string. @{ip} = [ 172.21.249.233 ] @{ip} @{AUTOHEAL_IP_LIST} = [ 172.21.249.233 ] @{AUTOHEAL_IP_LIST} @{AUTOHEAL_IP_LIST} Makes a variable available everywhere within the scope of the current suite. @{AUTOHEAL_IP_LIST} = [ 172.21.249.233 ] @{AUTOHEAL_IP_LIST} Logs the given message with the given level. 172.21.249.233 Get VDU ID and IP addresses of the VNF and stores them to be used later on. cluster_heal daily heal_04 regression ${VDU_AUTOHEAL_ID} msg=VDU is not available Fails unless the given variable exists within the current scope. ${VDU_AUTOHEAL_ID} Reset a server ${server_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} openstack server set --state error ${server_id} Runs the given command in the system and returns the RC and output. Running command 'openstack server set --state error d08c3a09-3cf2-41a2-aa58-c73e50bab78f 2>&1'. ${rc} = 0 ${stdout} = ${stdout} Logs the given message with the given level. ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} 30 Pauses the test executed for the given time. Slept 30 seconds Stop one VM of the VNF. cluster_heal daily heal_04 regression ${healing_max_wait_time} ${HEALING_MAX_WAIT_TIME} result_format=number Converts between supported `time formats`. ${healing_max_wait_time} = 600.0 ${healing_max_wait_time} ${healing_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${healing_max_wait_time} = 600.0 ${healing_max_wait_time} ${HEALING_POL_TIME} Get Operations By Type ${NS_ID} heal Runs the specified keyword and retries if it fails. ${NS_ID} heal Keyword to get the operation by type ${ns_id} Verifies that the given item is not empty. Length is 36 ${type} Verifies that the given item is not empty. Length is 4 ${rc} ${stdout} osm ns-op-list ${ns_id} | grep ${type} | awk '{print $2}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-list dad23f2a-5ed1-48ff-be6e-ae09d6e8a3c1 | grep heal | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = ${stdout} Logs the given message with the given level. ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Verifies that the given item is not empty. Length is 0 '' should not be empty. ${stdout} ${NS_ID} heal Keyword to get the operation by type ${ns_id} Verifies that the given item is not empty. Length is 36 ${type} Verifies that the given item is not empty. Length is 4 ${rc} ${stdout} osm ns-op-list ${ns_id} | grep ${type} | awk '{print $2}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-list dad23f2a-5ed1-48ff-be6e-ae09d6e8a3c1 | grep heal | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = ${stdout} Logs the given message with the given level. ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Verifies that the given item is not empty. Length is 0 '' should not be empty. ${stdout} ${NS_ID} heal Keyword to get the operation by type ${ns_id} Verifies that the given item is not empty. Length is 36 ${type} Verifies that the given item is not empty. Length is 4 ${rc} ${stdout} osm ns-op-list ${ns_id} | grep ${type} | awk '{print $2}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-list dad23f2a-5ed1-48ff-be6e-ae09d6e8a3c1 | grep heal | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = ${stdout} Logs the given message with the given level. ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Verifies that the given item is not empty. Length is 0 '' should not be empty. ${stdout} ${NS_ID} heal Keyword to get the operation by type ${ns_id} Verifies that the given item is not empty. Length is 36 ${type} Verifies that the given item is not empty. Length is 4 ${rc} ${stdout} osm ns-op-list ${ns_id} | grep ${type} | awk '{print $2}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-list dad23f2a-5ed1-48ff-be6e-ae09d6e8a3c1 | grep heal | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = ${stdout} Logs the given message with the given level. ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Verifies that the given item is not empty. Length is 0 '' should not be empty. ${stdout} ${NS_ID} heal Keyword to get the operation by type ${ns_id} Verifies that the given item is not empty. Length is 36 ${type} Verifies that the given item is not empty. Length is 4 ${rc} ${stdout} osm ns-op-list ${ns_id} | grep ${type} | awk '{print $2}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-list dad23f2a-5ed1-48ff-be6e-ae09d6e8a3c1 | grep heal | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = ${stdout} Logs the given message with the given level. ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Verifies that the given item is not empty. Length is 0 '' should not be empty. ${stdout} ${NS_ID} heal Keyword to get the operation by type ${ns_id} Verifies that the given item is not empty. Length is 36 ${type} Verifies that the given item is not empty. Length is 4 ${rc} ${stdout} osm ns-op-list ${ns_id} | grep ${type} | awk '{print $2}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-list dad23f2a-5ed1-48ff-be6e-ae09d6e8a3c1 | grep heal | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = ${stdout} Logs the given message with the given level. ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Verifies that the given item is not empty. Length is 0 '' should not be empty. ${stdout} ${NS_ID} heal Keyword to get the operation by type ${ns_id} Verifies that the given item is not empty. Length is 36 ${type} Verifies that the given item is not empty. Length is 4 ${rc} ${stdout} osm ns-op-list ${ns_id} | grep ${type} | awk '{print $2}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-list dad23f2a-5ed1-48ff-be6e-ae09d6e8a3c1 | grep heal | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = ${stdout} Logs the given message with the given level. ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Verifies that the given item is not empty. Length is 0 '' should not be empty. ${stdout} ${NS_ID} heal Keyword to get the operation by type ${ns_id} Verifies that the given item is not empty. Length is 36 ${type} Verifies that the given item is not empty. Length is 4 ${rc} ${stdout} osm ns-op-list ${ns_id} | grep ${type} | awk '{print $2}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-list dad23f2a-5ed1-48ff-be6e-ae09d6e8a3c1 | grep heal | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = ${stdout} Logs the given message with the given level. ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Verifies that the given item is not empty. Length is 0 '' should not be empty. ${stdout} ${NS_ID} heal Keyword to get the operation by type ${ns_id} Verifies that the given item is not empty. Length is 36 ${type} Verifies that the given item is not empty. Length is 4 ${rc} ${stdout} osm ns-op-list ${ns_id} | grep ${type} | awk '{print $2}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-list dad23f2a-5ed1-48ff-be6e-ae09d6e8a3c1 | grep heal | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = ${stdout} Logs the given message with the given level. ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Verifies that the given item is not empty. Length is 0 '' should not be empty. ${stdout} ${NS_ID} heal Keyword to get the operation by type ${ns_id} Verifies that the given item is not empty. Length is 36 ${type} Verifies that the given item is not empty. Length is 4 ${rc} ${stdout} osm ns-op-list ${ns_id} | grep ${type} | awk '{print $2}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-list dad23f2a-5ed1-48ff-be6e-ae09d6e8a3c1 | grep heal | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = ${stdout} Logs the given message with the given level. ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Verifies that the given item is not empty. Length is 0 '' should not be empty. ${stdout} ${NS_ID} heal Keyword to get the operation by type ${ns_id} Verifies that the given item is not empty. Length is 36 ${type} Verifies that the given item is not empty. Length is 4 ${rc} ${stdout} osm ns-op-list ${ns_id} | grep ${type} | awk '{print $2}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-list dad23f2a-5ed1-48ff-be6e-ae09d6e8a3c1 | grep heal | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = ${stdout} Logs the given message with the given level. ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Verifies that the given item is not empty. Length is 0 '' should not be empty. ${stdout} ${NS_ID} heal Keyword to get the operation by type ${ns_id} Verifies that the given item is not empty. Length is 36 ${type} Verifies that the given item is not empty. Length is 4 ${rc} ${stdout} osm ns-op-list ${ns_id} | grep ${type} | awk '{print $2}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-list dad23f2a-5ed1-48ff-be6e-ae09d6e8a3c1 | grep heal | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = ${stdout} Logs the given message with the given level. ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Verifies that the given item is not empty. Length is 0 '' should not be empty. ${stdout} ${NS_ID} heal Keyword to get the operation by type ${ns_id} Verifies that the given item is not empty. Length is 36 ${type} Verifies that the given item is not empty. Length is 4 ${rc} ${stdout} osm ns-op-list ${ns_id} | grep ${type} | awk '{print $2}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-list dad23f2a-5ed1-48ff-be6e-ae09d6e8a3c1 | grep heal | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = ${stdout} Logs the given message with the given level. ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Verifies that the given item is not empty. Length is 0 '' should not be empty. ${stdout} ${NS_ID} heal Keyword to get the operation by type ${ns_id} Verifies that the given item is not empty. Length is 36 ${type} Verifies that the given item is not empty. Length is 4 ${rc} ${stdout} osm ns-op-list ${ns_id} | grep ${type} | awk '{print $2}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-list dad23f2a-5ed1-48ff-be6e-ae09d6e8a3c1 | grep heal | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = ${stdout} Logs the given message with the given level. ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Verifies that the given item is not empty. Length is 0 '' should not be empty. ${stdout} ${NS_ID} heal Keyword to get the operation by type ${ns_id} Verifies that the given item is not empty. Length is 36 ${type} Verifies that the given item is not empty. Length is 4 ${rc} ${stdout} osm ns-op-list ${ns_id} | grep ${type} | awk '{print $2}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-list dad23f2a-5ed1-48ff-be6e-ae09d6e8a3c1 | grep heal | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = 70b1054a-5f35-4e49-8d43-757e853c5b33 ${stdout} Logs the given message with the given level. 70b1054a-5f35-4e49-8d43-757e853c5b33 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Verifies that the given item is not empty. Length is 36 ${stdout} ${stdout} ${NS_ID} heal Keyword to get the operation by type ${ns_id} Verifies that the given item is not empty. Length is 36 ${type} Verifies that the given item is not empty. Length is 4 ${rc} ${stdout} osm ns-op-list ${ns_id} | grep ${type} | awk '{print $2}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-list dad23f2a-5ed1-48ff-be6e-ae09d6e8a3c1 | grep heal | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = 70b1054a-5f35-4e49-8d43-757e853c5b33 ${stdout} Logs the given message with the given level. 70b1054a-5f35-4e49-8d43-757e853c5b33 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Verifies that the given item is not empty. Length is 36 ${stdout} ${stdout} = 70b1054a-5f35-4e49-8d43-757e853c5b33 ${healing_max_wait_time} ${HEALING_POL_TIME} Check For NS Operation Ended ${stdout} Runs the specified keyword and retries if it fails. ${stdout} Check wheter the status of the desired operation is "FAILED" or "COMPLETED". ${ns_operation_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm ns-op-show ${ns_operation_id} --literal | yq -r .operationState Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-show 70b1054a-5f35-4e49-8d43-757e853c5b33 --literal | yq -r .operationState 2>&1'. ${rc} = 0 ${stdout} = PROCESSING ${stdout} Logs the given message with the given level. PROCESSING ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} FAILED COMPLETED msg=Timeout waiting for ns-action with id ${ns_operation_id} values=False Fails if ``container`` does not contain any of the ``*items``. Timeout waiting for ns-action with id 70b1054a-5f35-4e49-8d43-757e853c5b33 ${stdout} Check wheter the status of the desired operation is "FAILED" or "COMPLETED". ${ns_operation_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm ns-op-show ${ns_operation_id} --literal | yq -r .operationState Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-show 70b1054a-5f35-4e49-8d43-757e853c5b33 --literal | yq -r .operationState 2>&1'. ${rc} = 0 ${stdout} = PROCESSING ${stdout} Logs the given message with the given level. PROCESSING ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} FAILED COMPLETED msg=Timeout waiting for ns-action with id ${ns_operation_id} values=False Fails if ``container`` does not contain any of the ``*items``. Timeout waiting for ns-action with id 70b1054a-5f35-4e49-8d43-757e853c5b33 ${stdout} Check wheter the status of the desired operation is "FAILED" or "COMPLETED". ${ns_operation_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm ns-op-show ${ns_operation_id} --literal | yq -r .operationState Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-show 70b1054a-5f35-4e49-8d43-757e853c5b33 --literal | yq -r .operationState 2>&1'. ${rc} = 0 ${stdout} = COMPLETED ${stdout} Logs the given message with the given level. COMPLETED ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} FAILED COMPLETED msg=Timeout waiting for ns-action with id ${ns_operation_id} values=False Fails if ``container`` does not contain any of the ``*items``. ${stdout} Check wheter the status of the desired operation is "COMPLETED" or not. ${ns_operation_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm ns-op-show ${ns_operation_id} --literal | yq -r .operationState Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-show 70b1054a-5f35-4e49-8d43-757e853c5b33 --literal | yq -r .operationState 2>&1'. ${rc} = 0 ${stdout} = COMPLETED ${stdout} Logs the given message with the given level. COMPLETED ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} COMPLETED msg=The ns-action with id ${ns_operation_id} was not completed values=False Fails if ``container`` does not contain ``item`` one or more times. Wait for auto-healing to be completed. OSM will detect that the VM is down and will re-create it. cluster_heal daily heal_04 regression ${VNF_AUTOHEAL_ID} msg=VNF is not available Fails unless the given variable exists within the current scope. @{ip_list} ${VNF_AUTOHEAL_ID} Return a list with the IP addresses of the VDU records of a VNF instance. ${vnf_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm vnf-show ${vnf_id} --literal | yq -r '.vdur[].interfaces[]."ip-address"' Runs the given command in the system and returns the RC and output. Running command 'osm vnf-show ac6ec96e-11c6-4870-936d-50e2b36be466 --literal | yq -r '.vdur[].interfaces[]."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 172.21.249.233 ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> @{ip} ${stdout} Splits the ``string`` using ``separator`` as a delimiter string. @{ip} = [ 172.21.249.233 ] @{ip} @{ip_list} = [ 172.21.249.233 ] @{ip_list} Logs the given message with the given level. 172.21.249.233 ${ip_list} ${AUTOHEAL_IP_LIST} IP addresses have changed after healing Fails if the given objects are unequal. ${id} ${VNF_AUTOHEAL_ID} Get the identifier of the first VDU of a VNF instance. Useful to get the id when a VNF has a single VDU. ${vnf_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm vnf-show ${vnf_id} --literal | yq -r '.vdur[]."vim-id"' Runs the given command in the system and returns the RC and output. Running command 'osm vnf-show ac6ec96e-11c6-4870-936d-50e2b36be466 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 104ff6b3-3527-45b0-9c2d-5ba67511a4ec ${stdout} Logs the given message with the given level. 104ff6b3-3527-45b0-9c2d-5ba67511a4ec ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 104ff6b3-3527-45b0-9c2d-5ba67511a4ec ${id} Logs the given message with the given level. 104ff6b3-3527-45b0-9c2d-5ba67511a4ec ${id} ${VDU_AUTOHEAL_ID} VDU id has not changed after healing Fails if the given objects are equal. Check that the ID of the VM and the IP addresses have not changed after healing. cluster_heal daily heal_04 regression ${NS_ID} msg=NS is not available Fails unless the given variable exists within the current scope. @{vnf_id_list} ${NS_ID} Get the list of VNF instances of a given NS instance id, and return it. ${ns_id} Verifies that the given item is not empty. Length is 36 @{vnf_list_string} osm vnf-list --ns ${ns_id} | grep ${ns_id} | awk '{print $2}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm vnf-list --ns dad23f2a-5ed1-48ff-be6e-ae09d6e8a3c1 | grep dad23f2a-5ed1-48ff-be6e-ae09d6e8a3c1 | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | ac6ec96e-11c6-4870-936d-50e2b36be466 ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ ac6ec96e-11c6-4870-936d-50e2b36be466 ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: ac6ec96e-11c6-4870-936d-50e2b36be466 @{vnf_list} @{vnf_id_list} = [ ac6ec96e-11c6-4870-936d-50e2b36be466 ] ${vnf_id} @{vnf_id_list} ac6ec96e-11c6-4870-936d-50e2b36be466 ${id} ${vnf_id} Get the identifier of the first VDU of a VNF instance. Useful to get the id when a VNF has a single VDU. ${vnf_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm vnf-show ${vnf_id} --literal | yq -r '.vdur[]."vim-id"' Runs the given command in the system and returns the RC and output. Running command 'osm vnf-show ac6ec96e-11c6-4870-936d-50e2b36be466 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 104ff6b3-3527-45b0-9c2d-5ba67511a4ec ${stdout} Logs the given message with the given level. 104ff6b3-3527-45b0-9c2d-5ba67511a4ec ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 104ff6b3-3527-45b0-9c2d-5ba67511a4ec @{vdu_ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{vdu_ids} = [ 104ff6b3-3527-45b0-9c2d-5ba67511a4ec ] ${id} @{vdu_ids} 104ff6b3-3527-45b0-9c2d-5ba67511a4ec ${VIM_VDUS} ${id} Adds ``values`` to the end of ``list``. @{VIM_VDUS} Logs the given messages as separate entries using the INFO level. d08c3a09-3cf2-41a2-aa58-c73e50bab78f 104ff6b3-3527-45b0-9c2d-5ba67511a4ec Retrieve all VMs from the NS and stores them in VIM_VDUS. This is done again to guarantee that all objects are cleaned in the VIM in case the heal operation added new objects. cluster_heal daily heal_04 regression ${NS_NAME} Delete a NS instance. ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} Logs the given message with the given level. 240.0 ${rc} ${stdout} osm ns-delete ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-delete heal_04 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${stdout} Logs the given message with the given level. Deletion in progress ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${ns_delete_max_wait_time} ${NS_DELETE_POL_TIME} Check For NS Instance To Be Deleted ${ns} Runs the specified keyword and retries if it fails. ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+---------------------------------------------+--------+------------------------+-------------+-----------------------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+---------------------------------------------+--------+------------------------+-------------+-----------------------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+---------------------------------------------+--------+------------------------+-------------+-----------------------------------------+ | 104ff6b3-3527-45b0-9c2d-5ba67511a4ec | heal_04-autoheal-basic-1-autoheal_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.233 | ubuntu20.04 | autoheal_vnfd-VM-autoheal-basic-1-1-flv | | aabc5a4f-4305-4d76-8948-75114c018517 | k8s_05-k8s_proxy-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 6f90b415-a711-4276-b670-08cae48b0add | k8s_05-k8s_proxy-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 2f14ed09-454a-487d-b25a-b3ee53daf714 | slicebasic.slice-edge-ubuntu_slice-VM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 99a6b4cd-58a1-4970-9ff3-97f2a4e2f0f1 | slicebasic.slice-middle-ubuntu_slice-VM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 1484a0da-7213-409d-95d3-5d9584bee6d3 | slicebasic.slice-edge-ubuntu_slice-VM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+---------------------------------------------+--------+------------------------+-------------+-----------------------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep heal_04 2>&1'. ${rc} = 0 ${stdout} = heal_04 ${rc},${stdout} Logs the given message with the given level. 0,heal_04 ${stdout} ${ns} Fails if objects are equal after converting them to strings. heal_04 == heal_04 ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-------------------------------------------+--------+------------------------+-------------+-------------------------+ | aabc5a4f-4305-4d76-8948-75114c018517 | k8s_05-k8s_proxy-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 6f90b415-a711-4276-b670-08cae48b0add | k8s_05-k8s_proxy-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 2f14ed09-454a-487d-b25a-b3ee53daf714 | slicebasic.slice-edge-ubuntu_slice-VM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 99a6b4cd-58a1-4970-9ff3-97f2a4e2f0f1 | slicebasic.slice-middle-ubuntu_slice-VM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 1484a0da-7213-409d-95d3-5d9584bee6d3 | slicebasic.slice-edge-ubuntu_slice-VM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep heal_04 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${ns} Fails if objects are equal after converting them to strings. Delete NS instance. cleanup cluster_heal daily heal_04 regression ${NSD_NAME} Delete a NS package from OSM. ${rc} ${stdout} Run And Return Rc And Output osm nspkg-delete ${nsd_id} Runs the keyword and continues execution even if a failure occurs. osm nspkg-delete ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-delete autoheal_nsd 2>&1'. ${rc} = 0 ${stdout} = Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Logs the given message with the given level. Deleted ${NSD_DELETE_MAX_WAIT_TIME} ${NSD_DELETE_POL_TIME} Check For NSD ${nsd_id} Runs the specified keyword and retries if it fails. ${nsd_id} Check that a NS package exists in OSM. ${rc} ${stdout} osm nspkg-list | awk '{print $2}' | grep ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-list | awk '{print $2}' | grep autoheal_nsd 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. Delete NS package from OSM. cleanup cluster_heal daily heal_04 regression ${VNFD_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete autoheal_vnfd 2>&1'. ${rc} = 0 ${stdout} = Deleted ${stdout} Logs the given message with the given level. Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep autoheal_vnfd 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. Delete VNF package from OSM. cleanup cluster_heal daily heal_04 regression ${error} 0 Returns the given values which can then be assigned to a variables. ${error} = 0 ${vdu_id} @{VIM_VDUS} d08c3a09-3cf2-41a2-aa58-c73e50bab78f Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server d08c3a09-3cf2-41a2-aa58-c73e50bab78f is still in VIM ${status} Get Server Property ${vdu_id} id Runs the given keyword with the given arguments and ignores possible error. ${vdu_id} id Get a field (flavor, image, volumes_attached, etc.) from a server. ${server_id} Verifies that the given item is not empty. Length is 36 ${field} Verifies that the given item is not empty. Length is 2 ${rc} ${stdout} openstack server show ${server_id} -c ${field} -f value Runs the given command in the system and returns the RC and output. Running command 'openstack server show d08c3a09-3cf2-41a2-aa58-c73e50bab78f -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for d08c3a09-3cf2-41a2-aa58-c73e50bab78f ${stdout} Logs the given message with the given level. No Server found for d08c3a09-3cf2-41a2-aa58-c73e50bab78f ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${stdout} ${status} = ('FAIL', '1 != 0') ${status}[0] Logs the given message with the given level. FAIL ${error} 1 Returns the given values which can then be assigned to a variables. Deleting server ${vdu_id} Logs the given message with the given level. Delete Server ${vdu_id} Runs the given keyword with the given arguments and ignores possible error. 104ff6b3-3527-45b0-9c2d-5ba67511a4ec Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server 104ff6b3-3527-45b0-9c2d-5ba67511a4ec is still in VIM ${status} Get Server Property ${vdu_id} id Runs the given keyword with the given arguments and ignores possible error. ${vdu_id} id Get a field (flavor, image, volumes_attached, etc.) from a server. ${server_id} Verifies that the given item is not empty. Length is 36 ${field} Verifies that the given item is not empty. Length is 2 ${rc} ${stdout} openstack server show ${server_id} -c ${field} -f value Runs the given command in the system and returns the RC and output. Running command 'openstack server show 104ff6b3-3527-45b0-9c2d-5ba67511a4ec -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for 104ff6b3-3527-45b0-9c2d-5ba67511a4ec ${stdout} Logs the given message with the given level. No Server found for 104ff6b3-3527-45b0-9c2d-5ba67511a4ec ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${stdout} ${status} = ('FAIL', '1 != 0') ${status}[0] Logs the given message with the given level. FAIL ${error} 1 Returns the given values which can then be assigned to a variables. Deleting server ${vdu_id} Logs the given message with the given level. Delete Server ${vdu_id} Runs the given keyword with the given arguments and ignores possible error. Some objects created by test were not deleted in VIM Fails the test with the given message and optionally alters its tags. Delete any remaining objects (volumes, VMs, etc.) in the VIM. cleanup cluster_heal daily heal_04 regression Suite Cleanup Runs the given keyword with the given arguments and ignores possible error. Test Suit Cleanup: Deleting Descriptor, instance and vim Delete NS ${NS_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete NSD ${NSD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete VNFD ${VNFD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. [HEAL-04] Autohealing of NS ${rand} 6 [NUMBERS] Generates a string with a desired ``length`` from the given ``chars``. ${rand} = 857877 ${VIM_NAME} SEPARATOR=_ ${vim_name_prefix} ${rand} Catenates the given items together and returns the resulted string. ${VIM_NAME} = basic01_857877 ${VIM_NAME} Makes a variable available everywhere within the scope of the current suite. ${VIM_NAME} = basic01_857877 ${CREATED_VIM_ACCOUNT_ID} ${VIM_NAME} ${VIM_USER} ${VIM_PASSWORD} ${VIM_AUTH_URL} ${VIM_TENANT} ${VIM_ACCOUNT_TYPE} Register a VIM account in OSM and return the id. The optional parameters (such as 'config' or 'sdn_controller') are given to this function in name=value format. These parameters will be appended to the 'osm vim-create' command with the next syntax: --param_name=param_value Return the ID of the created VIM Target. Example of execution: ${vim_account_id}= Create VIM Target ${vim_name} ${vim_user} ${vim_password} ${vim_auth_url} ${vim_tenant} ${vim_account_type} config='{...}' ${osm_vim_create_command} osm vim-create --name ${vim_name} --user ${vim_user} --password ${vim_password} --auth_url ${vim_auth_url} --tenant ${vim_tenant} --account_type ${vim_account_type} Returns the given values which can then be assigned to a variables. ${osm_vim_create_command} = osm vim-create --name basic01_857877 --user osm_jenkins --password R8NtPgyodpgKjhmJoQBs --auth_url http://172.21.247.1:5000/v3 --tenant osm_jenkins --account_type openstack ${param} @{optional_parameters} ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in optional parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match},${param_name},${param_value} Logs the given message with the given level. ${osm_vim_create_command} ${osm_vim_create_command} --${param_name}=${param_value} Catenates the given items together and returns the resulted string. ${rc} ${stdout} ${osm_vim_create_command} Runs the given command in the system and returns the RC and output. Running command 'osm vim-create --name basic01_857877 --user osm_jenkins --password R8NtPgyodpgKjhmJoQBs --auth_url http://172.21.247.1:5000/v3 --tenant osm_jenkins --account_type openstack 2>&1'. ${rc} = 0 ${stdout} = 97c65868-b311-411c-a7e1-9a7f7d84378d ${stdout} Logs the given message with the given level. 97c65868-b311-411c-a7e1-9a7f7d84378d ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${CREATED_VIM_ACCOUNT_ID} = 97c65868-b311-411c-a7e1-9a7f7d84378d ${CREATED_VIM_ACCOUNT_ID} Makes a variable available everywhere within the scope of the current suite. ${CREATED_VIM_ACCOUNT_ID} = 97c65868-b311-411c-a7e1-9a7f7d84378d Creates a VIM for the K8s cluster to be anchored against azure cluster_k8s daily k8s_02 regression %{K8S_CREDENTIALS} ${K8SCLUSTER_VERSION} ${VIM_NAME} %{VIM_MGMT_NET} ${K8SCLUSTER_NAME} Register a Kubernetes cluster in OSM using the name, version and credentials passed as arguments. ${rc} ${stdout} osm k8scluster-add --creds ${k8scluster_creds} --version ${k8scluster_version} --vim ${k8scluster_vim} --k8s-nets '{"net1": "${k8scluster_net}"}' ${k8scluster_name} --description "Robot cluster" Runs the given command in the system and returns the RC and output. Running command 'osm k8scluster-add --creds /root/.kube/config --version v1 --vim basic01_857877 --k8s-nets '{"net1": "osm-ext"}' k8s02 --description "Robot cluster" 2>&1'. ${rc} = 0 ${stdout} = 653eb10f-6113-46fc-9afb-3b170034bf1a ${stdout} Logs the given message with the given level. 653eb10f-6113-46fc-9afb-3b170034bf1a ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${K8SCLUSTER_LAUNCH_MAX_WAIT_TIME} ${K8SCLUSTER_LAUNCH_POL_TIME} Check For K8s Cluster To Be Ready ${k8scluster_name} Runs the specified keyword and retries if it fails. ${k8scluster_name} Check if a Kubernetes cluster registered in OSM is ready (the state must be ENABLED or DEGRADED). ${rc} ${stdout} osm k8scluster-list --filter name="${k8scluster_name}" --filter _admin.operationalState="ENABLED,DEGRADED" Runs the given command in the system and returns the RC and output. Running command 'osm k8scluster-list --filter name="k8s02" --filter _admin.operationalState="ENABLED,DEGRADED" 2>&1'. ${rc} = 0 ${stdout} = +------+----+-----+-------------------+-------------------+ | Name | Id | VIM | Operational State | Op. state details | +------+----+-----+-------------------+-------------------+ +------+----+-----+-... ${rc},${stdout} Logs the given message with the given level. 0,+------+----+-----+-------------------+-------------------+ | Name | Id | VIM | Operational State | Op. state details | +------+----+-----+-------------------+-------------------+ +------+----+-----+-------------------+-------------------+ ${rc} ${stdout} echo "${stdout}" | awk '{print $2}' | grep ${k8scluster_name} Runs the given command in the system and returns the RC and output. Running command 'echo "+------+----+-----+-------------------+-------------------+ | Name | Id | VIM | Operational State | Op. state details | +------+----+-----+-------------------+-------------------+ +------+----+-----+-------------------+-------------------+" | awk '{print $2}' | grep k8s02 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${stdout} ${k8scluster_name} Fails if objects are unequal after converting them to strings. ${k8scluster_name} Check if a Kubernetes cluster registered in OSM is ready (the state must be ENABLED or DEGRADED). ${rc} ${stdout} osm k8scluster-list --filter name="${k8scluster_name}" --filter _admin.operationalState="ENABLED,DEGRADED" Runs the given command in the system and returns the RC and output. Running command 'osm k8scluster-list --filter name="k8s02" --filter _admin.operationalState="ENABLED,DEGRADED" 2>&1'. ${rc} = 0 ${stdout} = +-------+--------------------------------------+----------------+-------------------+-------------------+ | Name | Id | VIM | Operational State | Op. stat... ${rc},${stdout} Logs the given message with the given level. 0,+-------+--------------------------------------+----------------+-------------------+-------------------+ | Name | Id | VIM | Operational State | Op. state details | +-------+--------------------------------------+----------------+-------------------+-------------------+ | k8s02 | 653eb10f-6113-46fc-9afb-3b170034bf1a | basic01_857877 | ENABLED | Helm: - | | | | | | Juju: ENABLED | +-------+--------------------------------------+----------------+-------------------+-------------------+ ${rc} ${stdout} echo "${stdout}" | awk '{print $2}' | grep ${k8scluster_name} Runs the given command in the system and returns the RC and output. Running command 'echo "+-------+--------------------------------------+----------------+-------------------+-------------------+ | Name | Id | VIM | Operational State | Op. state details | +-------+--------------------------------------+----------------+-------------------+-------------------+ | k8s02 | 653eb10f-6113-46fc-9afb-3b170034bf1a | basic01_857877 | ENABLED | Helm: - | | | | | | Juju: ENABLED | +-------+--------------------------------------+----------------+-------------------+-------------------+" | awk '{print $2}' | grep k8s02 2>&1'. ${rc} = 0 ${stdout} = k8s02 ${rc},${stdout} Logs the given message with the given level. 0,k8s02 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${k8scluster_name} Fails if objects are unequal after converting them to strings. ${stdout} ${K8SCLUSTER_NAME} Check if a Kubernetes cluster registered in OSM is ready (the state must be ENABLED or DEGRADED). ${rc} ${stdout} osm k8scluster-list --filter name="${k8scluster_name}" --filter _admin.operationalState="ENABLED,DEGRADED" Runs the given command in the system and returns the RC and output. Running command 'osm k8scluster-list --filter name="k8s02" --filter _admin.operationalState="ENABLED,DEGRADED" 2>&1'. ${rc} = 0 ${stdout} = +-------+--------------------------------------+----------------+-------------------+-------------------+ | Name | Id | VIM | Operational State | Op. stat... ${rc},${stdout} Logs the given message with the given level. 0,+-------+--------------------------------------+----------------+-------------------+-------------------+ | Name | Id | VIM | Operational State | Op. state details | +-------+--------------------------------------+----------------+-------------------+-------------------+ | k8s02 | 653eb10f-6113-46fc-9afb-3b170034bf1a | basic01_857877 | ENABLED | Helm: - | | | | | | Juju: ENABLED | +-------+--------------------------------------+----------------+-------------------+-------------------+ ${rc} ${stdout} echo "${stdout}" | awk '{print $2}' | grep ${k8scluster_name} Runs the given command in the system and returns the RC and output. Running command 'echo "+-------+--------------------------------------+----------------+-------------------+-------------------+ | Name | Id | VIM | Operational State | Op. state details | +-------+--------------------------------------+----------------+-------------------+-------------------+ | k8s02 | 653eb10f-6113-46fc-9afb-3b170034bf1a | basic01_857877 | ENABLED | Helm: - | | | | | | Juju: ENABLED | +-------+--------------------------------------+----------------+-------------------+-------------------+" | awk '{print $2}' | grep k8s02 2>&1'. ${rc} = 0 ${stdout} = k8s02 ${rc},${stdout} Logs the given message with the given level. 0,k8s02 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${k8scluster_name} Fails if objects are unequal after converting them to strings. Creates a VIM for the K8s cluster to be anchored against azure cluster_k8s daily k8s_02 regression ${K8SCLUSTER_NAME} Unregister/delete a Kubernetes cluster from OSM. ${rc} ${stdout} osm k8scluster-delete ${k8scluster_name} Runs the given command in the system and returns the RC and output. Running command 'osm k8scluster-delete k8s02 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${stdout} Logs the given message with the given level. Deletion in progress ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${K8SCLUSTER_DELETE_MAX_WAIT_TIME} ${K8SCLUSTER_DELETE_POL_TIME} Check For K8s Cluster To Be Deleted ${k8scluster_name} Runs the specified keyword and retries if it fails. ${k8scluster_name} Check if a Kubernetes cluster identified by name is not present in OSM. ${rc} ${stdout} osm k8scluster-list --filter name="${k8scluster_name}" | awk '{print $2}' | grep ${k8scluster_name} Runs the given command in the system and returns the RC and output. Running command 'osm k8scluster-list --filter name="k8s02" | awk '{print $2}' | grep k8s02 2>&1'. ${rc} = 0 ${stdout} = k8s02 ${rc},${stdout} Logs the given message with the given level. 0,k8s02 ${stdout} Verifies that the given item is empty. Length is 5 'k8s02' should be empty. ${k8scluster_name} Check if a Kubernetes cluster identified by name is not present in OSM. ${rc} ${stdout} osm k8scluster-list --filter name="${k8scluster_name}" | awk '{print $2}' | grep ${k8scluster_name} Runs the given command in the system and returns the RC and output. Running command 'osm k8scluster-list --filter name="k8s02" | awk '{print $2}' | grep k8s02 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} Verifies that the given item is empty. Length is 0 Delete K8s cluster. azure cleanup cluster_k8s daily k8s_02 regression ${vim_account_id} ${VIM_NAME} Get from OSM the VIM account id associated to the VIM account name passed as parameter. ${rc} ${stdout} osm vim-list | grep " ${vim_name} " | awk '{print $4}' Runs the given command in the system and returns the RC and output. Running command 'osm vim-list | grep " basic01_857877 " | awk '{print $4}' 2>&1'. ${rc} = 0 ${stdout} = 97c65868-b311-411c-a7e1-9a7f7d84378d ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${EMPTY} msg=VIM Target '${vim_name}' not found values=false Fails if objects are equal after converting them to strings. ${stdout} ${vim_account_id} = 97c65868-b311-411c-a7e1-9a7f7d84378d ${vim_account_id} ${CREATED_VIM_ACCOUNT_ID} Fails if objects are unequal after converting them to strings. ${vim_account_id} Unregister/delete a VIM account from OSM. ${rc} ${stdout} Run And Return Rc And Output osm vim-delete ${vim_name} Runs the keyword and continues execution even if a failure occurs. osm vim-delete ${vim_name} Runs the given command in the system and returns the RC and output. Running command 'osm vim-delete 97c65868-b311-411c-a7e1-9a7f7d84378d 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${rc},${stdout} Logs the given message with the given level. 0,Deletion in progress ${VIM_DELETE_MAX_WAIT_TIME} ${VIM_DELETE_POL_TIME} Check For VIM Target ${vim_name} Runs the specified keyword and retries if it fails. ${vim_name} Check if a VIM account has been registered in OSM. ${rc} ${stdout} osm vim-list | awk '{print $2}' | grep ${vim_name} Runs the given command in the system and returns the RC and output. Running command 'osm vim-list | awk '{print $2}' | grep 97c65868-b311-411c-a7e1-9a7f7d84378d 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vim_name} Fails if objects are equal after converting them to strings. Delete the VIM Target created in previous test-case by its ID. Checks whether the VIM Target was created or not before perform the deletion. azure cleanup cluster_k8s daily k8s_02 regression Suite Cleanup Runs the given keyword with the given arguments and ignores possible error. Test Suit Cleanup: Deleting K8s Cluster Delete K8s Cluster ${K8SCLUSTER_NAME} Runs the given keyword with the given arguments, if one or more tests failed. [K8s-02] K8s cluster addition. '%{PACKAGES_FOLDER}/${VNFD_PKG}' Onboards ("creates") a NF Package into OSM. - Parameters: - vnfd_pkg: Name (and location) of the NF Package - overrides (optional): String with options to override the EPA and/or interface properties of the Package. This is very useful to allow to deploy e.g. non-EPA packages in EPA VIMs (or vice-versa). Valid strings are the same as in the command. E.g.: - `--override-epa`: adds EPA attributes to all VDUs. - `--override-nonepa`: removes all EPA attributes from all VDUs. - `--override-paravirt`: converts all interfaces to `PARAVIRT`. This one can be combined with the others above (e.g. '--override-nonepa --override-paravirt'). - Relevant environment variables: - OVERRIDES: If the environment variable "OVERRIDES" exists, it prevails over the value in the argument. This is often more convenient to enforce the same behaviour for every test run in a given VIM. ${overrides} OVERRIDES default=${overrides} Returns the value of an environment variable with the given name. ${overrides} = ${rc} ${stdout} osm vnfpkg-create ${overrides} ${vnfd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-create '/robot-systest/osm-packages/openldap_knf' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/openldap_knf Validation OK List of charms in the descriptor: set() Adding File: openldap_knf Package created: /robot-systest/osm-packages/openldap_knf.ta... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/openldap_knf Validation OK List of charms in the descriptor: set() Adding File: openldap_knf Package created: /robot-systest/osm-packages/openldap_knf.tar.gz Uploading package /robot-systest/osm-packages/openldap_knf.tar.gz 0d451289-7ccf-436d-b715-db4735ca6188 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 7 lines ${lines} = 7 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 6 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = 0d451289-7ccf-436d-b715-db4735ca6188 ${id} Upload NF package for the testsuite. azure cluster_k8s daily k8s_04 prepare regression sanity '%{PACKAGES_FOLDER}/${NSD_PKG}' Upload a NS package to OSM and return the id. ${rc} ${stdout} osm nspkg-create ${nsd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-create '/robot-systest/osm-packages/openldap_ns' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/openldap_ns Validation OK List of charms in the descriptor: set() Adding File: openldap_ns Package created: /robot-systest/osm-packages/openldap_ns.tar.g... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/openldap_ns Validation OK List of charms in the descriptor: set() Adding File: openldap_ns Package created: /robot-systest/osm-packages/openldap_ns.tar.gz 4faaa407-b22a-4e2f-b68e-68d1df91b89b ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 6 lines ${lines} = 6 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 5 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = 4faaa407-b22a-4e2f-b68e-68d1df91b89b ${id} Upload NS package for the testsuite. azure cluster_k8s daily k8s_04 prepare regression sanity ${id} ${NSD_NAME} %{VIM_TARGET} ${NS_NAME} ${NS_CONFIG} ${PUBLICKEY} Launch the instantation of a NS and verify in a loop that the NS instance is successfully created in a given time, and return the NS instance id. ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_launch_max_wait_time} = 300.0 ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_launch_max_wait_time} = 300.0 ${ns_launch_max_wait_time} Logs the given message with the given level. 300.0 ${config_attr} '${ns_config}'!='${EMPTY}' --config '${ns_config}' ${EMPTY} Sets variable based on the given condition. ${config_attr} = --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext}], additionalParamsForVnf: [ {member-vnf-index: openldap, additionalParamsForKdu: [ {kdu_name: ldap, additionalParams: {service: {type: Load... ${sshkeys_attr} '${publickey}'!='${EMPTY}' --ssh_keys ${publickey} ${EMPTY} Sets variable based on the given condition. ${sshkeys_attr} = ${config_file_attr} '${config_file}'!='${EMPTY}' --config_file '${config_file}' ${EMPTY} Sets variable based on the given condition. ${config_file_attr} = ${ns_id} ${ns_name} ${nsd} ${vim_name} ${config_attr} ${sshkeys_attr} ${config_file_attr} Launch the instantation of a NS, and return the NS instance id. ${rc} ${stdout} osm ns-create --ns_name ${ns_name} --nsd_name ${nsd} --vim_account ${vim_name} ${ns_extra_args} Runs the given command in the system and returns the RC and output. Running command 'osm ns-create --ns_name ldap --nsd_name openldap_ns --vim_account osm --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext}], additionalParamsForVnf: [ {member-vnf-index: openldap, additionalParamsForKdu: [ {kdu_name: ldap, additionalParams: {service: {type: LoadBalancer }, adminPassword: admin}} ] } ] }' 2>&1'. ${rc} = 0 ${stdout} = ba77dabe-dae1-4687-af93-6890fcb4a45c ${stdout} Logs the given message with the given level. ba77dabe-dae1-4687-af93-6890fcb4a45c ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = ba77dabe-dae1-4687-af93-6890fcb4a45c ${ns_id} Logs the given message with the given level. ba77dabe-dae1-4687-af93-6890fcb4a45c ${ns_launch_max_wait_time} ${NS_LAUNCH_POL_TIME} Check For NS Instance To Configured ${ns_name} Runs the specified keyword and retries if it fails. ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 432ef643-238b-452a-9bbe-171608c3f402 | basic_24-affinity-basic-1-affinity_basic-VM-2-0 | ACTIVE | osm-ext=172.21.249.5 | ubuntu20.04 | simple_requires-1-1-flv | | 6b84315c-8b82-4709-8e45-58cffb5676e8 | basic_24-affinity-basic-1-affinity_basic-VM-1-0 | ACTIVE | osm-ext=172.21.249.23 | ubuntu20.04 | simple_requires-1-1-flv | | aabc5a4f-4305-4d76-8948-75114c018517 | k8s_05-k8s_proxy-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 6f90b415-a711-4276-b670-08cae48b0add | k8s_05-k8s_proxy-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 2f14ed09-454a-487d-b25a-b3ee53daf714 | slicebasic.slice-edge-ubuntu_slice-VM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 99a6b4cd-58a1-4970-9ff3-97f2a4e2f0f1 | slicebasic.slice-middle-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 1484a0da-7213-409d-95d3-5d9584bee6d3 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="ldap" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ldap | ba77dabe-dae1-4687-af93-6890fcb4a45c | 2024-02-19T04:28:20 | BUILDING | INSTANTIATING (b0c89845-56ef-4493-a001-d074e112f972) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ldap | ba77dabe-dae1-4687-af93-6890fcb4a45c | 2024-02-19T04:28:20 | BUILDING | INSTANTIATING (b0c89845-56ef-4493-a001-d074e112f972) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-------------------------------------------+--------+------------------------+-------------+-------------------------+ | aabc5a4f-4305-4d76-8948-75114c018517 | k8s_05-k8s_proxy-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 6f90b415-a711-4276-b670-08cae48b0add | k8s_05-k8s_proxy-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 2f14ed09-454a-487d-b25a-b3ee53daf714 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 99a6b4cd-58a1-4970-9ff3-97f2a4e2f0f1 | slicebasic.slice-middle-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 1484a0da-7213-409d-95d3-5d9584bee6d3 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="ldap" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ldap | ba77dabe-dae1-4687-af93-6890fcb4a45c | 2024-02-19T04:28:20 | BUILDING | INSTANTIATING (b0c89845-56ef-4493-a001-d074e112f972) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ldap | ba77dabe-dae1-4687-af93-6890fcb4a45c | 2024-02-19T04:28:20 | BUILDING | INSTANTIATING (b0c89845-56ef-4493-a001-d074e112f972) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-------------------------------------------+--------+------------------------+-------------+-------------------------+ | 713d74e7-4c6a-4b40-a67a-7a90a6255f5d | basic_27_helm_ee-simple-mgmtVM-0 | ACTIVE | osm-ext=172.21.249.127 | ubuntu18.04 | mgmtVM-simple-1-flv-51 | | 6d85f0e6-13f4-4929-bd07-635ddfa54757 | sliceshared.slic-edge-ubuntu_slice-VM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | aabc5a4f-4305-4d76-8948-75114c018517 | k8s_05-k8s_proxy-vnf2-mgmtVM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 6f90b415-a711-4276-b670-08cae48b0add | k8s_05-k8s_proxy-vnf1-mgmtVM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 2f14ed09-454a-487d-b25a-b3ee53daf714 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 99a6b4cd-58a1-4970-9ff3-97f2a4e2f0f1 | slicebasic.slice-middle-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 1484a0da-7213-409d-95d3-5d9584bee6d3 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="ldap" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ldap | ba77dabe-dae1-4687-af93-6890fcb4a45c | 2024-02-19T04:28:20 | READY | IDLE (None) | N/A | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. ${ns_name} Check if a given NS instance has not failed in the instantiation (the status should not be BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-------------------------------------------+--------+------------------------+-------------+-------------------------+ | 713d74e7-4c6a-4b40-a67a-7a90a6255f5d | basic_27_helm_ee-simple-mgmtVM-0 | ACTIVE | osm-ext=172.21.249.127 | ubuntu18.04 | mgmtVM-simple-1-flv-51 | | 6d85f0e6-13f4-4929-bd07-635ddfa54757 | sliceshared.slic-edge-ubuntu_slice-VM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | aabc5a4f-4305-4d76-8948-75114c018517 | k8s_05-k8s_proxy-vnf2-mgmtVM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 6f90b415-a711-4276-b670-08cae48b0add | k8s_05-k8s_proxy-vnf1-mgmtVM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 2f14ed09-454a-487d-b25a-b3ee53daf714 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 99a6b4cd-58a1-4970-9ff3-97f2a4e2f0f1 | slicebasic.slice-middle-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 1484a0da-7213-409d-95d3-5d9584bee6d3 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="ldap" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ldap | ba77dabe-dae1-4687-af93-6890fcb4a45c | 2024-02-19T04:28:20 | READY | IDLE (None) | N/A | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} BROKEN Fails if ``container`` contains ``item`` one or more times. ${ns_id} ${id} = ba77dabe-dae1-4687-af93-6890fcb4a45c ${id} Logs the given message with the given level. ba77dabe-dae1-4687-af93-6890fcb4a45c Instantiate NS for the testsuite. azure cluster_k8s daily k8s_04 prepare regression sanity ${id} ${NS_NAME} Get the NS instance ID from a NS instance name passed as argument, and return it. ${ns_name} Verifies that the given item is not empty. Length is 4 ${rc} ${stdout} osm ns-list | grep ${ns_name} | awk '{print $4}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | grep ldap | awk '{print $4}' 2>&1'. ${rc} = 0 ${stdout} = ba77dabe-dae1-4687-af93-6890fcb4a45c ${stdout} Logs the given message with the given level. ba77dabe-dae1-4687-af93-6890fcb4a45c ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Verifies that the given item is not empty. Length is 36 ${stdout} ${id} = ba77dabe-dae1-4687-af93-6890fcb4a45c ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = ba77dabe-dae1-4687-af93-6890fcb4a45c Retrieve NS instance id to be used later on. azure cluster_k8s daily k8s_04 regression sanity verify ${NS_ID} msg=Network service instance is not available Fails unless the given variable exists within the current scope. @{vnfr_list} ${NS_ID} Return a list with the IDs of the VNF records of a NS instance. ${ns_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm vnf-list --ns ${ns_id} | grep ${ns_id} | awk '{print $2}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm vnf-list --ns ba77dabe-dae1-4687-af93-6890fcb4a45c | grep ba77dabe-dae1-4687-af93-6890fcb4a45c | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = 31b1be68-a13e-4be1-a6d3-b18e42a553de ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> @{vdur} ${stdout} Splits the ``string`` using ``separator`` as a delimiter string. @{vdur} = [ 31b1be68-a13e-4be1-a6d3-b18e42a553de ] @{vdur} @{vnfr_list} = [ 31b1be68-a13e-4be1-a6d3-b18e42a553de ] ${vnfr_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: 31b1be68-a13e-4be1-a6d3-b18e42a553de ${VNF_ID} ${vnfr_list}[0] Makes a variable available everywhere within the scope of the current suite. ${VNF_ID} = 31b1be68-a13e-4be1-a6d3-b18e42a553de Retrieve NF instance id to be used later on. azure cluster_k8s daily k8s_04 regression sanity verify ${NS_ID} msg=Network service instance is not available Fails unless the given variable exists within the current scope. ${ns_op_id} ${NS_NAME} ${UPGRADE_ACTION} ${VNF_MEMBER_INDEX} ${KDU_NAME} replicaCount=${REPLICA_COUNT} Execute an action over the desired K8s NS. Parameters are given to this function in key=value format (one argument per key/value pair). Return the ID of the operation associated to the executed action. Examples of execution: ${ns_op_id}= Execute NS Action ${ns_name} ${ns_action} ${vnf_member_index} ${ns_op_id}= Execute NS Action ${ns_name} ${ns_action} ${vnf_member_index} ${param1}=${value1} ${param2}=${value2} ${params} ${EMPTY} Returns the given values which can then be assigned to a variables. ${params} = ${param} @{action_params} replicaCount=3 ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = replicaCount=3 ${param_name} = replicaCount ${param_value} = 3 ${match},${param_name},${param_value} Logs the given message with the given level. replicaCount=3,replicaCount,3 ${params} SEPARATOR= ${params} "${param_name}":"${param_value}", Catenates the given items together and returns the resulted string. ${params} = "replicaCount":"3", ${osm_ns_action_command} osm ns-action --action_name ${ns_action} --vnf_name ${vnf_member_index} --kdu_name ${kdu_name} Returns the given values which can then be assigned to a variables. ${osm_ns_action_command} = osm ns-action --action_name upgrade --vnf_name openldap --kdu_name ldap ${osm_ns_action_command} ${osm_ns_action_command} --params '{${params}}' Catenates the given items together and returns the resulted string. ${osm_ns_action_command} = osm ns-action --action_name upgrade --vnf_name openldap --kdu_name ldap --params '{"replicaCount":"3",}' ${osm_ns_action_command} ${osm_ns_action_command} Returns the given values which can then be assigned to a variables. ${osm_ns_action_command} ${osm_ns_action_command} ${ns_name} Catenates the given items together and returns the resulted string. ${osm_ns_action_command} = osm ns-action --action_name upgrade --vnf_name openldap --kdu_name ldap --params '{"replicaCount":"3",}' ldap ${rc} ${stdout} ${osm_ns_action_command} Runs the given command in the system and returns the RC and output. Running command 'osm ns-action --action_name upgrade --vnf_name openldap --kdu_name ldap --params '{"replicaCount":"3",}' ldap 2>&1'. ${rc} = 0 ${stdout} = 6e8424e9-f287-478c-b78b-2532e2876d66 ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${NS_ACTION_MAX_WAIT_TIME} ${NS_ACTION_POL_TIME} Check For NS Operation Ended ${stdout} Runs the specified keyword and retries if it fails. ${stdout} Check wheter the status of the desired operation is "FAILED" or "COMPLETED". ${ns_operation_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm ns-op-show ${ns_operation_id} --literal | yq -r .operationState Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-show 6e8424e9-f287-478c-b78b-2532e2876d66 --literal | yq -r .operationState 2>&1'. ${rc} = 0 ${stdout} = PROCESSING ${stdout} Logs the given message with the given level. PROCESSING ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} FAILED COMPLETED msg=Timeout waiting for ns-action with id ${ns_operation_id} values=False Fails if ``container`` does not contain any of the ``*items``. Timeout waiting for ns-action with id 6e8424e9-f287-478c-b78b-2532e2876d66 ${stdout} Check wheter the status of the desired operation is "FAILED" or "COMPLETED". ${ns_operation_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm ns-op-show ${ns_operation_id} --literal | yq -r .operationState Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-show 6e8424e9-f287-478c-b78b-2532e2876d66 --literal | yq -r .operationState 2>&1'. ${rc} = 0 ${stdout} = PROCESSING ${stdout} Logs the given message with the given level. PROCESSING ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} FAILED COMPLETED msg=Timeout waiting for ns-action with id ${ns_operation_id} values=False Fails if ``container`` does not contain any of the ``*items``. Timeout waiting for ns-action with id 6e8424e9-f287-478c-b78b-2532e2876d66 ${stdout} Check wheter the status of the desired operation is "FAILED" or "COMPLETED". ${ns_operation_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm ns-op-show ${ns_operation_id} --literal | yq -r .operationState Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-show 6e8424e9-f287-478c-b78b-2532e2876d66 --literal | yq -r .operationState 2>&1'. ${rc} = 0 ${stdout} = PROCESSING ${stdout} Logs the given message with the given level. PROCESSING ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} FAILED COMPLETED msg=Timeout waiting for ns-action with id ${ns_operation_id} values=False Fails if ``container`` does not contain any of the ``*items``. Timeout waiting for ns-action with id 6e8424e9-f287-478c-b78b-2532e2876d66 ${stdout} Check wheter the status of the desired operation is "FAILED" or "COMPLETED". ${ns_operation_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm ns-op-show ${ns_operation_id} --literal | yq -r .operationState Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-show 6e8424e9-f287-478c-b78b-2532e2876d66 --literal | yq -r .operationState 2>&1'. ${rc} = 0 ${stdout} = COMPLETED ${stdout} Logs the given message with the given level. COMPLETED ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} FAILED COMPLETED msg=Timeout waiting for ns-action with id ${ns_operation_id} values=False Fails if ``container`` does not contain any of the ``*items``. ${stdout} Check wheter the status of the desired operation is "COMPLETED" or not. ${ns_operation_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm ns-op-show ${ns_operation_id} --literal | yq -r .operationState Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-show 6e8424e9-f287-478c-b78b-2532e2876d66 --literal | yq -r .operationState 2>&1'. ${rc} = 0 ${stdout} = COMPLETED ${stdout} Logs the given message with the given level. COMPLETED ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} COMPLETED msg=The ns-action with id ${ns_operation_id} was not completed values=False Fails if ``container`` does not contain ``item`` one or more times. ${stdout} ${ns_op_id} = 6e8424e9-f287-478c-b78b-2532e2876d66 ${ns_op_id} Logs the given message with the given level. 6e8424e9-f287-478c-b78b-2532e2876d66 Perform OSM action to upgrade the number of replicas of a deployment in the CNF. azure cluster_k8s daily k8s_04 regression sanity verify ${NS_ID} msg=Network service instance is not available Fails unless the given variable exists within the current scope. ${count} ${VNF_ID} ${KDU_NAME} Return the number of KDU replicas (empty if none) of a VNF instance. ${vnf_id} Verifies that the given item is not empty. Length is 36 ${kdu_name} Verifies that the given item is not empty. Length is 4 ${rc} ${stdout} osm vnf-show ${vnf_id} --kdu ${kdu_name} | yq -r .config.replicaCount Runs the given command in the system and returns the RC and output. Running command 'osm vnf-show 31b1be68-a13e-4be1-a6d3-b18e42a553de --kdu ldap | yq -r .config.replicaCount 2>&1'. ${rc} = 0 ${stdout} = 3 ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${return} '${stdout}' == 'null' ${EMPTY} ${stdout} Sets variable based on the given condition. ${return} = 3 ${return} ${count} = 3 ${count} Logs the given message with the given level. 3 ${count} ${REPLICA_COUNT} Fails if objects are unequal after converting them to integers. Check that the number of replicas after the upgrade is the expected one. azure cluster_k8s daily k8s_04 regression sanity verify ${NS_ID} msg=Network service instance is not available Fails unless the given variable exists within the current scope. ${ns_op_id} ${NS_NAME} ${ROLLBACK_ACTION} ${VNF_MEMBER_INDEX} ${KDU_NAME} Execute an action over the desired K8s NS. Parameters are given to this function in key=value format (one argument per key/value pair). Return the ID of the operation associated to the executed action. Examples of execution: ${ns_op_id}= Execute NS Action ${ns_name} ${ns_action} ${vnf_member_index} ${ns_op_id}= Execute NS Action ${ns_name} ${ns_action} ${vnf_member_index} ${param1}=${value1} ${param2}=${value2} ${params} ${EMPTY} Returns the given values which can then be assigned to a variables. ${params} = ${param} @{action_params} ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match},${param_name},${param_value} Logs the given message with the given level. ${params} SEPARATOR= ${params} "${param_name}":"${param_value}", Catenates the given items together and returns the resulted string. ${osm_ns_action_command} osm ns-action --action_name ${ns_action} --vnf_name ${vnf_member_index} --kdu_name ${kdu_name} Returns the given values which can then be assigned to a variables. ${osm_ns_action_command} = osm ns-action --action_name rollback --vnf_name openldap --kdu_name ldap ${osm_ns_action_command} ${osm_ns_action_command} --params '{${params}}' Catenates the given items together and returns the resulted string. ${osm_ns_action_command} ${osm_ns_action_command} Returns the given values which can then be assigned to a variables. ${osm_ns_action_command} = osm ns-action --action_name rollback --vnf_name openldap --kdu_name ldap ${osm_ns_action_command} ${osm_ns_action_command} ${ns_name} Catenates the given items together and returns the resulted string. ${osm_ns_action_command} = osm ns-action --action_name rollback --vnf_name openldap --kdu_name ldap ldap ${rc} ${stdout} ${osm_ns_action_command} Runs the given command in the system and returns the RC and output. Running command 'osm ns-action --action_name rollback --vnf_name openldap --kdu_name ldap ldap 2>&1'. ${rc} = 0 ${stdout} = 0936c2fd-91e3-4a4f-845c-acdc93acdd9a ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${NS_ACTION_MAX_WAIT_TIME} ${NS_ACTION_POL_TIME} Check For NS Operation Ended ${stdout} Runs the specified keyword and retries if it fails. ${stdout} Check wheter the status of the desired operation is "FAILED" or "COMPLETED". ${ns_operation_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm ns-op-show ${ns_operation_id} --literal | yq -r .operationState Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-show 0936c2fd-91e3-4a4f-845c-acdc93acdd9a --literal | yq -r .operationState 2>&1'. ${rc} = 0 ${stdout} = PROCESSING ${stdout} Logs the given message with the given level. PROCESSING ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} FAILED COMPLETED msg=Timeout waiting for ns-action with id ${ns_operation_id} values=False Fails if ``container`` does not contain any of the ``*items``. Timeout waiting for ns-action with id 0936c2fd-91e3-4a4f-845c-acdc93acdd9a ${stdout} Check wheter the status of the desired operation is "FAILED" or "COMPLETED". ${ns_operation_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm ns-op-show ${ns_operation_id} --literal | yq -r .operationState Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-show 0936c2fd-91e3-4a4f-845c-acdc93acdd9a --literal | yq -r .operationState 2>&1'. ${rc} = 0 ${stdout} = COMPLETED ${stdout} Logs the given message with the given level. COMPLETED ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} FAILED COMPLETED msg=Timeout waiting for ns-action with id ${ns_operation_id} values=False Fails if ``container`` does not contain any of the ``*items``. ${stdout} Check wheter the status of the desired operation is "COMPLETED" or not. ${ns_operation_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm ns-op-show ${ns_operation_id} --literal | yq -r .operationState Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-show 0936c2fd-91e3-4a4f-845c-acdc93acdd9a --literal | yq -r .operationState 2>&1'. ${rc} = 0 ${stdout} = COMPLETED ${stdout} Logs the given message with the given level. COMPLETED ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} COMPLETED msg=The ns-action with id ${ns_operation_id} was not completed values=False Fails if ``container`` does not contain ``item`` one or more times. ${stdout} ${ns_op_id} = 0936c2fd-91e3-4a4f-845c-acdc93acdd9a ${ns_op_id} Logs the given message with the given level. 0936c2fd-91e3-4a4f-845c-acdc93acdd9a Perform OSM action to rollback the previous upgrade of the CNF. azure cluster_k8s daily k8s_04 regression sanity verify ${NS_ID} msg=Network service instance is not available Fails unless the given variable exists within the current scope. ${count} ${VNF_ID} ${KDU_NAME} Return the number of KDU replicas (empty if none) of a VNF instance. ${vnf_id} Verifies that the given item is not empty. Length is 36 ${kdu_name} Verifies that the given item is not empty. Length is 4 ${rc} ${stdout} osm vnf-show ${vnf_id} --kdu ${kdu_name} | yq -r .config.replicaCount Runs the given command in the system and returns the RC and output. Running command 'osm vnf-show 31b1be68-a13e-4be1-a6d3-b18e42a553de --kdu ldap | yq -r .config.replicaCount 2>&1'. ${rc} = 0 ${stdout} = null ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${return} '${stdout}' == 'null' ${EMPTY} ${stdout} Sets variable based on the given condition. ${return} = ${return} ${count} = ${count} Logs the given message with the given level. ${count} Verifies that the given item is empty. Length is 0 Check that the number of replcias after the rollback is the expected one. azure cluster_k8s daily k8s_04 regression sanity verify ${NS_NAME} Delete a NS instance. ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} Logs the given message with the given level. 240.0 ${rc} ${stdout} osm ns-delete ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-delete ldap 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${stdout} Logs the given message with the given level. Deletion in progress ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${ns_delete_max_wait_time} ${NS_DELETE_POL_TIME} Check For NS Instance To Be Deleted ${ns} Runs the specified keyword and retries if it fails. ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-------------------------------------------+--------+------------------------+-------------+-------------------------+ | 713d74e7-4c6a-4b40-a67a-7a90a6255f5d | basic_27_helm_ee-simple-mgmtVM-0 | ACTIVE | osm-ext=172.21.249.127 | ubuntu18.04 | mgmtVM-simple-1-flv-51 | | 6d85f0e6-13f4-4929-bd07-635ddfa54757 | sliceshared.slic-edge-ubuntu_slice-VM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 2f14ed09-454a-487d-b25a-b3ee53daf714 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 99a6b4cd-58a1-4970-9ff3-97f2a4e2f0f1 | slicebasic.slice-middle-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 1484a0da-7213-409d-95d3-5d9584bee6d3 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep ldap 2>&1'. ${rc} = 0 ${stdout} = ldap ${rc},${stdout} Logs the given message with the given level. 0,ldap ${stdout} ${ns} Fails if objects are equal after converting them to strings. ldap == ldap ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-------------------------------------------+--------+------------------------+-------------+-------------------------+ | 713d74e7-4c6a-4b40-a67a-7a90a6255f5d | basic_27_helm_ee-simple-mgmtVM-0 | ACTIVE | osm-ext=172.21.249.127 | ubuntu18.04 | mgmtVM-simple-1-flv-51 | | 6d85f0e6-13f4-4929-bd07-635ddfa54757 | sliceshared.slic-edge-ubuntu_slice-VM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 2f14ed09-454a-487d-b25a-b3ee53daf714 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 99a6b4cd-58a1-4970-9ff3-97f2a4e2f0f1 | slicebasic.slice-middle-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 1484a0da-7213-409d-95d3-5d9584bee6d3 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep ldap 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${ns} Fails if objects are equal after converting them to strings. Delete NS instance. azure cleanup cluster_k8s daily k8s_04 regression sanity ${NSD_NAME} Delete a NS package from OSM. ${rc} ${stdout} Run And Return Rc And Output osm nspkg-delete ${nsd_id} Runs the keyword and continues execution even if a failure occurs. osm nspkg-delete ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-delete openldap_ns 2>&1'. ${rc} = 0 ${stdout} = Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Logs the given message with the given level. Deleted ${NSD_DELETE_MAX_WAIT_TIME} ${NSD_DELETE_POL_TIME} Check For NSD ${nsd_id} Runs the specified keyword and retries if it fails. ${nsd_id} Check that a NS package exists in OSM. ${rc} ${stdout} osm nspkg-list | awk '{print $2}' | grep ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-list | awk '{print $2}' | grep openldap_ns 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. Delete NS package from OSM. azure cleanup cluster_k8s daily k8s_04 regression sanity ${VNFD_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete openldap_knf 2>&1'. ${rc} = 0 ${stdout} = Deleted ${stdout} Logs the given message with the given level. Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep openldap_knf 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. Delete NF package from OSM. azure cleanup cluster_k8s daily k8s_04 regression sanity Suite Cleanup Runs the given keyword with the given arguments and ignores possible error. Test Suit Cleanup: Deleting Descriptor, instance and vim Delete NS ${NS_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete NSD ${NSD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete VNFD ${VNFD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. [K8s-04] Openldap Helm chart. '%{PACKAGES_FOLDER}/${VNFD_PKG}' Onboards ("creates") a NF Package into OSM. - Parameters: - vnfd_pkg: Name (and location) of the NF Package - overrides (optional): String with options to override the EPA and/or interface properties of the Package. This is very useful to allow to deploy e.g. non-EPA packages in EPA VIMs (or vice-versa). Valid strings are the same as in the command. E.g.: - `--override-epa`: adds EPA attributes to all VDUs. - `--override-nonepa`: removes all EPA attributes from all VDUs. - `--override-paravirt`: converts all interfaces to `PARAVIRT`. This one can be combined with the others above (e.g. '--override-nonepa --override-paravirt'). - Relevant environment variables: - OVERRIDES: If the environment variable "OVERRIDES" exists, it prevails over the value in the argument. This is often more convenient to enforce the same behaviour for every test run in a given VIM. ${overrides} OVERRIDES default=${overrides} Returns the value of an environment variable with the given name. ${overrides} = ${rc} ${stdout} osm vnfpkg-create ${overrides} ${vnfd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-create '/robot-systest/osm-packages/openldap_knf' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/openldap_knf Validation OK List of charms in the descriptor: set() Adding File: openldap_knf Package created: /robot-systest/osm-packages/openldap_knf.ta... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/openldap_knf Validation OK List of charms in the descriptor: set() Adding File: openldap_knf Package created: /robot-systest/osm-packages/openldap_knf.tar.gz Uploading package /robot-systest/osm-packages/openldap_knf.tar.gz 6de7cd87-4fe0-493c-8e1c-46acc8c23d0a ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 7 lines ${lines} = 7 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 6 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = 6de7cd87-4fe0-493c-8e1c-46acc8c23d0a ${id} Upload NF package for the testsuite. azure cluster_k8s daily k8s_07 regression '%{PACKAGES_FOLDER}/${NSD_PKG}' Upload a NS package to OSM and return the id. ${rc} ${stdout} osm nspkg-create ${nsd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-create '/robot-systest/osm-packages/openldap_ns' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/openldap_ns Validation OK List of charms in the descriptor: set() Adding File: openldap_ns Package created: /robot-systest/osm-packages/openldap_ns.tar.g... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/openldap_ns Validation OK List of charms in the descriptor: set() Adding File: openldap_ns Package created: /robot-systest/osm-packages/openldap_ns.tar.gz afd5aefe-1f8a-4e32-90e8-8c7a1221234c ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 6 lines ${lines} = 6 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 5 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = afd5aefe-1f8a-4e32-90e8-8c7a1221234c ${id} Upload NS package for the testsuite. azure cluster_k8s daily k8s_07 regression ${created_vim_account_id} ${VIM_NAME} ${VIM_USER} ${VIM_PASSWORD} ${VIM_AUTH_URL} ${VIM_TENANT} ${VIM_ACCOUNT_TYPE} Register a VIM account in OSM and return the id. The optional parameters (such as 'config' or 'sdn_controller') are given to this function in name=value format. These parameters will be appended to the 'osm vim-create' command with the next syntax: --param_name=param_value Return the ID of the created VIM Target. Example of execution: ${vim_account_id}= Create VIM Target ${vim_name} ${vim_user} ${vim_password} ${vim_auth_url} ${vim_tenant} ${vim_account_type} config='{...}' ${osm_vim_create_command} osm vim-create --name ${vim_name} --user ${vim_user} --password ${vim_password} --auth_url ${vim_auth_url} --tenant ${vim_tenant} --account_type ${vim_account_type} Returns the given values which can then be assigned to a variables. ${osm_vim_create_command} = osm vim-create --name k8s07_dummy --user user --password pass --auth_url http://localhost/dummy --tenant tenant --account_type dummy ${param} @{optional_parameters} ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in optional parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match},${param_name},${param_value} Logs the given message with the given level. ${osm_vim_create_command} ${osm_vim_create_command} --${param_name}=${param_value} Catenates the given items together and returns the resulted string. ${rc} ${stdout} ${osm_vim_create_command} Runs the given command in the system and returns the RC and output. Running command 'osm vim-create --name k8s07_dummy --user user --password pass --auth_url http://localhost/dummy --tenant tenant --account_type dummy 2>&1'. ${rc} = 0 ${stdout} = 7aec7a87-7356-42f9-bc86-3e9060ac4d34 ${stdout} Logs the given message with the given level. 7aec7a87-7356-42f9-bc86-3e9060ac4d34 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${created_vim_account_id} = 7aec7a87-7356-42f9-bc86-3e9060ac4d34 ${created_vim_account_id} Logs the given message with the given level. 7aec7a87-7356-42f9-bc86-3e9060ac4d34 Register a VIM of type dummy in OSM. azure cluster_k8s daily k8s_07 regression %{K8S_CREDENTIALS} ${K8SCLUSTER_VERSION} ${VIM_NAME} ${K8SCLUSTER_NET} ${K8SCLUSTER_NAME} Register a Kubernetes cluster in OSM using the name, version and credentials passed as arguments. ${rc} ${stdout} osm k8scluster-add --creds ${k8scluster_creds} --version ${k8scluster_version} --vim ${k8scluster_vim} --k8s-nets '{"net1": "${k8scluster_net}"}' ${k8scluster_name} --description "Robot cluster" Runs the given command in the system and returns the RC and output. Running command 'osm k8scluster-add --creds /root/.kube/config --version v1 --vim k8s07_dummy --k8s-nets '{"net1": "null"}' k8s07 --description "Robot cluster" 2>&1'. ${rc} = 0 ${stdout} = d4c1f401-6ed5-4fc4-824e-dd18d5782c5c ${stdout} Logs the given message with the given level. d4c1f401-6ed5-4fc4-824e-dd18d5782c5c ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${K8SCLUSTER_LAUNCH_MAX_WAIT_TIME} ${K8SCLUSTER_LAUNCH_POL_TIME} Check For K8s Cluster To Be Ready ${k8scluster_name} Runs the specified keyword and retries if it fails. ${k8scluster_name} Check if a Kubernetes cluster registered in OSM is ready (the state must be ENABLED or DEGRADED). ${rc} ${stdout} osm k8scluster-list --filter name="${k8scluster_name}" --filter _admin.operationalState="ENABLED,DEGRADED" Runs the given command in the system and returns the RC and output. Running command 'osm k8scluster-list --filter name="k8s07" --filter _admin.operationalState="ENABLED,DEGRADED" 2>&1'. ${rc} = 0 ${stdout} = +------+----+-----+-------------------+-------------------+ | Name | Id | VIM | Operational State | Op. state details | +------+----+-----+-------------------+-------------------+ +------+----+-----+-... ${rc},${stdout} Logs the given message with the given level. 0,+------+----+-----+-------------------+-------------------+ | Name | Id | VIM | Operational State | Op. state details | +------+----+-----+-------------------+-------------------+ +------+----+-----+-------------------+-------------------+ ${rc} ${stdout} echo "${stdout}" | awk '{print $2}' | grep ${k8scluster_name} Runs the given command in the system and returns the RC and output. Running command 'echo "+------+----+-----+-------------------+-------------------+ | Name | Id | VIM | Operational State | Op. state details | +------+----+-----+-------------------+-------------------+ +------+----+-----+-------------------+-------------------+" | awk '{print $2}' | grep k8s07 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${stdout} ${k8scluster_name} Fails if objects are unequal after converting them to strings. ${k8scluster_name} Check if a Kubernetes cluster registered in OSM is ready (the state must be ENABLED or DEGRADED). ${rc} ${stdout} osm k8scluster-list --filter name="${k8scluster_name}" --filter _admin.operationalState="ENABLED,DEGRADED" Runs the given command in the system and returns the RC and output. Running command 'osm k8scluster-list --filter name="k8s07" --filter _admin.operationalState="ENABLED,DEGRADED" 2>&1'. ${rc} = 0 ${stdout} = +-------+--------------------------------------+-------------+-------------------+-------------------+ | Name | Id | VIM | Operational State | Op. state deta... ${rc},${stdout} Logs the given message with the given level. 0,+-------+--------------------------------------+-------------+-------------------+-------------------+ | Name | Id | VIM | Operational State | Op. state details | +-------+--------------------------------------+-------------+-------------------+-------------------+ | k8s07 | d4c1f401-6ed5-4fc4-824e-dd18d5782c5c | k8s07_dummy | ENABLED | Helm: - | | | | | | Juju: ENABLED | +-------+--------------------------------------+-------------+-------------------+-------------------+ ${rc} ${stdout} echo "${stdout}" | awk '{print $2}' | grep ${k8scluster_name} Runs the given command in the system and returns the RC and output. Running command 'echo "+-------+--------------------------------------+-------------+-------------------+-------------------+ | Name | Id | VIM | Operational State | Op. state details | +-------+--------------------------------------+-------------+-------------------+-------------------+ | k8s07 | d4c1f401-6ed5-4fc4-824e-dd18d5782c5c | k8s07_dummy | ENABLED | Helm: - | | | | | | Juju: ENABLED | +-------+--------------------------------------+-------------+-------------------+-------------------+" | awk '{print $2}' | grep k8s07 2>&1'. ${rc} = 0 ${stdout} = k8s07 ${rc},${stdout} Logs the given message with the given level. 0,k8s07 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${k8scluster_name} Fails if objects are unequal after converting them to strings. ${stdout} ${K8SCLUSTER_NAME} Check if a Kubernetes cluster registered in OSM is ready (the state must be ENABLED or DEGRADED). ${rc} ${stdout} osm k8scluster-list --filter name="${k8scluster_name}" --filter _admin.operationalState="ENABLED,DEGRADED" Runs the given command in the system and returns the RC and output. Running command 'osm k8scluster-list --filter name="k8s07" --filter _admin.operationalState="ENABLED,DEGRADED" 2>&1'. ${rc} = 0 ${stdout} = +-------+--------------------------------------+-------------+-------------------+-------------------+ | Name | Id | VIM | Operational State | Op. state deta... ${rc},${stdout} Logs the given message with the given level. 0,+-------+--------------------------------------+-------------+-------------------+-------------------+ | Name | Id | VIM | Operational State | Op. state details | +-------+--------------------------------------+-------------+-------------------+-------------------+ | k8s07 | d4c1f401-6ed5-4fc4-824e-dd18d5782c5c | k8s07_dummy | ENABLED | Helm: - | | | | | | Juju: ENABLED | +-------+--------------------------------------+-------------+-------------------+-------------------+ ${rc} ${stdout} echo "${stdout}" | awk '{print $2}' | grep ${k8scluster_name} Runs the given command in the system and returns the RC and output. Running command 'echo "+-------+--------------------------------------+-------------+-------------------+-------------------+ | Name | Id | VIM | Operational State | Op. state details | +-------+--------------------------------------+-------------+-------------------+-------------------+ | k8s07 | d4c1f401-6ed5-4fc4-824e-dd18d5782c5c | k8s07_dummy | ENABLED | Helm: - | | | | | | Juju: ENABLED | +-------+--------------------------------------+-------------+-------------------+-------------------+" | awk '{print $2}' | grep k8s07 2>&1'. ${rc} = 0 ${stdout} = k8s07 ${rc},${stdout} Logs the given message with the given level. 0,k8s07 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${k8scluster_name} Fails if objects are unequal after converting them to strings. Register a K8s cluster associated to the dummy VIM. azure cluster_k8s daily k8s_07 regression ${id} ${NSD_NAME} ${VIM_NAME} ${NS_NAME} ${NS_CONFIG} ${PUBLICKEY} Launch the instantation of a NS and verify in a loop that the NS instance is successfully created in a given time, and return the NS instance id. ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_launch_max_wait_time} = 300.0 ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_launch_max_wait_time} = 300.0 ${ns_launch_max_wait_time} Logs the given message with the given level. 300.0 ${config_attr} '${ns_config}'!='${EMPTY}' --config '${ns_config}' ${EMPTY} Sets variable based on the given condition. ${config_attr} = ${sshkeys_attr} '${publickey}'!='${EMPTY}' --ssh_keys ${publickey} ${EMPTY} Sets variable based on the given condition. ${sshkeys_attr} = ${config_file_attr} '${config_file}'!='${EMPTY}' --config_file '${config_file}' ${EMPTY} Sets variable based on the given condition. ${config_file_attr} = ${ns_id} ${ns_name} ${nsd} ${vim_name} ${config_attr} ${sshkeys_attr} ${config_file_attr} Launch the instantation of a NS, and return the NS instance id. ${rc} ${stdout} osm ns-create --ns_name ${ns_name} --nsd_name ${nsd} --vim_account ${vim_name} ${ns_extra_args} Runs the given command in the system and returns the RC and output. Running command 'osm ns-create --ns_name ldap --nsd_name openldap_ns --vim_account k8s07_dummy 2>&1'. ${rc} = 0 ${stdout} = a741b672-a282-4a8a-b706-b7d63d7bb1d2 ${stdout} Logs the given message with the given level. a741b672-a282-4a8a-b706-b7d63d7bb1d2 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = a741b672-a282-4a8a-b706-b7d63d7bb1d2 ${ns_id} Logs the given message with the given level. a741b672-a282-4a8a-b706-b7d63d7bb1d2 ${ns_launch_max_wait_time} ${NS_LAUNCH_POL_TIME} Check For NS Instance To Configured ${ns_name} Runs the specified keyword and retries if it fails. ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-------------------------------------------+--------+------------------------+-------------+-------------------------+ | e3ea5729-77a2-4899-b8cd-9f3c6e309f4d | k8s_06-nopasswd_-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | ee6e13fd-f298-4cdf-b6c8-a2f870d19d9a | k8s_06-nopasswd_-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 713d74e7-4c6a-4b40-a67a-7a90a6255f5d | basic_27_helm_ee-simple-mgmtVM-0 | ACTIVE | osm-ext=172.21.249.127 | ubuntu18.04 | mgmtVM-simple-1-flv-51 | | 6d85f0e6-13f4-4929-bd07-635ddfa54757 | sliceshared.slic-edge-ubuntu_slice-VM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 2f14ed09-454a-487d-b25a-b3ee53daf714 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 99a6b4cd-58a1-4970-9ff3-97f2a4e2f0f1 | slicebasic.slice-middle-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 1484a0da-7213-409d-95d3-5d9584bee6d3 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="ldap" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ldap | a741b672-a282-4a8a-b706-b7d63d7bb1d2 | 2024-02-19T04:32:14 | BUILDING | INSTANTIATING (630e7da1-9cf6-46a9-a5d6-e0db81a36b36) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ldap | a741b672-a282-4a8a-b706-b7d63d7bb1d2 | 2024-02-19T04:32:14 | BUILDING | INSTANTIATING (630e7da1-9cf6-46a9-a5d6-e0db81a36b36) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-------------------------------------------+--------+------------------------+-------------+-------------------------+ | e3ea5729-77a2-4899-b8cd-9f3c6e309f4d | k8s_06-nopasswd_-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | ee6e13fd-f298-4cdf-b6c8-a2f870d19d9a | k8s_06-nopasswd_-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 6d85f0e6-13f4-4929-bd07-635ddfa54757 | sliceshared.slic-edge-ubuntu_slice-VM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 2f14ed09-454a-487d-b25a-b3ee53daf714 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 99a6b4cd-58a1-4970-9ff3-97f2a4e2f0f1 | slicebasic.slice-middle-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 1484a0da-7213-409d-95d3-5d9584bee6d3 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="ldap" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ldap | a741b672-a282-4a8a-b706-b7d63d7bb1d2 | 2024-02-19T04:32:14 | BUILDING | INSTANTIATING (630e7da1-9cf6-46a9-a5d6-e0db81a36b36) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ldap | a741b672-a282-4a8a-b706-b7d63d7bb1d2 | 2024-02-19T04:32:14 | BUILDING | INSTANTIATING (630e7da1-9cf6-46a9-a5d6-e0db81a36b36) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-------------------------------------------+--------+------------------------+-------------+-------------------------+ | e3ea5729-77a2-4899-b8cd-9f3c6e309f4d | k8s_06-nopasswd_-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | ee6e13fd-f298-4cdf-b6c8-a2f870d19d9a | k8s_06-nopasswd_-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 6d85f0e6-13f4-4929-bd07-635ddfa54757 | sliceshared.slic-edge-ubuntu_slice-VM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 2f14ed09-454a-487d-b25a-b3ee53daf714 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 99a6b4cd-58a1-4970-9ff3-97f2a4e2f0f1 | slicebasic.slice-middle-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 1484a0da-7213-409d-95d3-5d9584bee6d3 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="ldap" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ldap | a741b672-a282-4a8a-b706-b7d63d7bb1d2 | 2024-02-19T04:32:14 | READY | IDLE (None) | N/A | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. ${ns_name} Check if a given NS instance has not failed in the instantiation (the status should not be BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-------------------------------------------+--------+------------------------+-------------+-------------------------+ | e3ea5729-77a2-4899-b8cd-9f3c6e309f4d | k8s_06-nopasswd_-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | ee6e13fd-f298-4cdf-b6c8-a2f870d19d9a | k8s_06-nopasswd_-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 6d85f0e6-13f4-4929-bd07-635ddfa54757 | sliceshared.slic-edge-ubuntu_slice-VM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 2f14ed09-454a-487d-b25a-b3ee53daf714 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 99a6b4cd-58a1-4970-9ff3-97f2a4e2f0f1 | slicebasic.slice-middle-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 1484a0da-7213-409d-95d3-5d9584bee6d3 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="ldap" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ldap | a741b672-a282-4a8a-b706-b7d63d7bb1d2 | 2024-02-19T04:32:14 | READY | IDLE (None) | N/A | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} BROKEN Fails if ``container`` contains ``item`` one or more times. ${ns_id} ${id} = a741b672-a282-4a8a-b706-b7d63d7bb1d2 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = a741b672-a282-4a8a-b706-b7d63d7bb1d2 Instantiate NS for the testsuite. azure cluster_k8s daily k8s_07 regression ${NS_NAME} Delete a NS instance. ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} Logs the given message with the given level. 240.0 ${rc} ${stdout} osm ns-delete ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-delete ldap 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${stdout} Logs the given message with the given level. Deletion in progress ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${ns_delete_max_wait_time} ${NS_DELETE_POL_TIME} Check For NS Instance To Be Deleted ${ns} Runs the specified keyword and retries if it fails. ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-------------------------------------------+--------+------------------------+-------------+-------------------------+ | e3ea5729-77a2-4899-b8cd-9f3c6e309f4d | k8s_06-nopasswd_-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | ee6e13fd-f298-4cdf-b6c8-a2f870d19d9a | k8s_06-nopasswd_-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 6d85f0e6-13f4-4929-bd07-635ddfa54757 | sliceshared.slic-edge-ubuntu_slice-VM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 2f14ed09-454a-487d-b25a-b3ee53daf714 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 99a6b4cd-58a1-4970-9ff3-97f2a4e2f0f1 | slicebasic.slice-middle-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 1484a0da-7213-409d-95d3-5d9584bee6d3 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep ldap 2>&1'. ${rc} = 0 ${stdout} = ldap ${rc},${stdout} Logs the given message with the given level. 0,ldap ${stdout} ${ns} Fails if objects are equal after converting them to strings. ldap == ldap ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ | ID... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ | aa51a03f-0228-4dd9-9239-66f1910a817d | basic_28-vnf-persistent-v-keep-persistent-vol-VM-0 | ACTIVE | osm-ext=172.21.248.162 | ubuntu20.04 | keep-persistent-vol-VM-vnf-persistent-volumes-1-flv | | e3ea5729-77a2-4899-b8cd-9f3c6e309f4d | k8s_06-nopasswd_-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | ee6e13fd-f298-4cdf-b6c8-a2f870d19d9a | k8s_06-nopasswd_-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 6d85f0e6-13f4-4929-bd07-635ddfa54757 | sliceshared.slic-edge-ubuntu_slice-VM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 2f14ed09-454a-487d-b25a-b3ee53daf714 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 99a6b4cd-58a1-4970-9ff3-97f2a4e2f0f1 | slicebasic.slice-middle-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 1484a0da-7213-409d-95d3-5d9584bee6d3 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep ldap 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${ns} Fails if objects are equal after converting them to strings. Delete NS instance. azure cleanup cluster_k8s daily k8s_07 regression ${K8SCLUSTER_NAME} Unregister/delete a Kubernetes cluster from OSM. ${rc} ${stdout} osm k8scluster-delete ${k8scluster_name} Runs the given command in the system and returns the RC and output. Running command 'osm k8scluster-delete k8s07 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${stdout} Logs the given message with the given level. Deletion in progress ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${K8SCLUSTER_DELETE_MAX_WAIT_TIME} ${K8SCLUSTER_DELETE_POL_TIME} Check For K8s Cluster To Be Deleted ${k8scluster_name} Runs the specified keyword and retries if it fails. ${k8scluster_name} Check if a Kubernetes cluster identified by name is not present in OSM. ${rc} ${stdout} osm k8scluster-list --filter name="${k8scluster_name}" | awk '{print $2}' | grep ${k8scluster_name} Runs the given command in the system and returns the RC and output. Running command 'osm k8scluster-list --filter name="k8s07" | awk '{print $2}' | grep k8s07 2>&1'. ${rc} = 0 ${stdout} = k8s07 ${rc},${stdout} Logs the given message with the given level. 0,k8s07 ${stdout} Verifies that the given item is empty. Length is 5 'k8s07' should be empty. ${k8scluster_name} Check if a Kubernetes cluster identified by name is not present in OSM. ${rc} ${stdout} osm k8scluster-list --filter name="${k8scluster_name}" | awk '{print $2}' | grep ${k8scluster_name} Runs the given command in the system and returns the RC and output. Running command 'osm k8scluster-list --filter name="k8s07" | awk '{print $2}' | grep k8s07 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} Verifies that the given item is empty. Length is 0 Remove K8s cluster from OSM. azure cleanup cluster_k8s daily k8s_07 regression ${VIM_NAME} Unregister/delete a VIM account from OSM. ${rc} ${stdout} Run And Return Rc And Output osm vim-delete ${vim_name} Runs the keyword and continues execution even if a failure occurs. osm vim-delete ${vim_name} Runs the given command in the system and returns the RC and output. Running command 'osm vim-delete k8s07_dummy 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${rc},${stdout} Logs the given message with the given level. 0,Deletion in progress ${VIM_DELETE_MAX_WAIT_TIME} ${VIM_DELETE_POL_TIME} Check For VIM Target ${vim_name} Runs the specified keyword and retries if it fails. ${vim_name} Check if a VIM account has been registered in OSM. ${rc} ${stdout} osm vim-list | awk '{print $2}' | grep ${vim_name} Runs the given command in the system and returns the RC and output. Running command 'osm vim-list | awk '{print $2}' | grep k8s07_dummy 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vim_name} Fails if objects are equal after converting them to strings. Remove VIM from OSM. azure cleanup cluster_k8s daily k8s_07 regression ${NSD_NAME} Delete a NS package from OSM. ${rc} ${stdout} Run And Return Rc And Output osm nspkg-delete ${nsd_id} Runs the keyword and continues execution even if a failure occurs. osm nspkg-delete ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-delete openldap_ns 2>&1'. ${rc} = 0 ${stdout} = Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Logs the given message with the given level. Deleted ${NSD_DELETE_MAX_WAIT_TIME} ${NSD_DELETE_POL_TIME} Check For NSD ${nsd_id} Runs the specified keyword and retries if it fails. ${nsd_id} Check that a NS package exists in OSM. ${rc} ${stdout} osm nspkg-list | awk '{print $2}' | grep ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-list | awk '{print $2}' | grep openldap_ns 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. Delete NS package from OSM. azure cleanup cluster_k8s daily k8s_07 regression ${VNFD_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete openldap_knf 2>&1'. ${rc} = 0 ${stdout} = Deleted ${stdout} Logs the given message with the given level. Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep openldap_knf 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. Delete NF package from OSM. azure cleanup cluster_k8s daily k8s_07 regression Suite Cleanup Runs the given keyword with the given arguments and ignores possible error. Test Suit Cleanup: Deleting Descriptor, instance, cluster and vim Delete NS ${NS_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete NSD ${NSD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete VNFD ${VNFD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete K8s Cluster ${K8SCLUSTER_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete VIM Target ${VIM_NAME} Runs the given keyword with the given arguments, if one or more tests failed. [K8s-07] Openldap Helm in isolated cluster with dummy VIM. '%{PACKAGES_FOLDER}/${VNFD_PKG}' Onboards ("creates") a NF Package into OSM. - Parameters: - vnfd_pkg: Name (and location) of the NF Package - overrides (optional): String with options to override the EPA and/or interface properties of the Package. This is very useful to allow to deploy e.g. non-EPA packages in EPA VIMs (or vice-versa). Valid strings are the same as in the command. E.g.: - `--override-epa`: adds EPA attributes to all VDUs. - `--override-nonepa`: removes all EPA attributes from all VDUs. - `--override-paravirt`: converts all interfaces to `PARAVIRT`. This one can be combined with the others above (e.g. '--override-nonepa --override-paravirt'). - Relevant environment variables: - OVERRIDES: If the environment variable "OVERRIDES" exists, it prevails over the value in the argument. This is often more convenient to enforce the same behaviour for every test run in a given VIM. ${overrides} OVERRIDES default=${overrides} Returns the value of an environment variable with the given name. ${overrides} = ${rc} ${stdout} osm vnfpkg-create ${overrides} ${vnfd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-create '/robot-systest/osm-packages/two_helm_oci_knf' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/two_helm_oci_knf Validation OK List of charms in the descriptor: set() Adding File: two_helm_oci_knf Package created: /robot-systest/osm-packages/two_hel... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/two_helm_oci_knf Validation OK List of charms in the descriptor: set() Adding File: two_helm_oci_knf Package created: /robot-systest/osm-packages/two_helm_oci_knf.tar.gz Uploading package /robot-systest/osm-packages/two_helm_oci_knf.tar.gz 479c4184-ae34-4a2e-9b4e-6dbc400b1816 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 7 lines ${lines} = 7 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 6 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = 479c4184-ae34-4a2e-9b4e-6dbc400b1816 ${id} Create Package For CNF azure cluster_k8s daily k8s_13 prepare '%{PACKAGES_FOLDER}/${NSD_PKG}' Upload a NS package to OSM and return the id. ${rc} ${stdout} osm nspkg-create ${nsd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-create '/robot-systest/osm-packages/two_helm_oci_ns' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/two_helm_oci_ns Validation OK List of charms in the descriptor: set() Adding File: two_helm_oci_ns Package created: /robot-systest/osm-packages/two_helm_... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/two_helm_oci_ns Validation OK List of charms in the descriptor: set() Adding File: two_helm_oci_ns Package created: /robot-systest/osm-packages/two_helm_oci_ns.tar.gz 3e768dc7-933b-4892-9af9-f46d73319474 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 6 lines ${lines} = 6 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 5 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = 3e768dc7-933b-4892-9af9-f46d73319474 ${id} Create Package For NS azure cluster_k8s daily k8s_13 prepare ${REPO_NAME} ${REPO_URI} helm-chart ${REPO_USER} ${REPO_PASSWORD} --oci Create a repository in OSM with the name and options passed as arguments, and return the repo id. ${user_attr} '${user}'!='${EMPTY}' --user ${user} \ Sets variable based on the given condition. ${user_attr} = --user osmsupport ${password_attr} '${password}'!='${EMPTY}' --password ${password} \ Sets variable based on the given condition. ${password_attr} = --password password4OSM ${rc} ${stdout} osm repo-add --type ${repo_type} ${user_attr} ${password_attr} ${additional_options} ${repo_name} ${repo_uri} Runs the given command in the system and returns the RC and output. Running command 'osm repo-add --type helm-chart --user osmsupport --password password4OSM --oci osm-gitlab oci://osm.etsi.org:5050/devops/test 2>&1'. ${rc} = 0 ${stdout} = c7586e38-cc31-49ef-a9a6-2bfdb0fa2c53 ${rc},${stdout} Logs the given message with the given level. 0,c7586e38-cc31-49ef-a9a6-2bfdb0fa2c53 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Create Helm OCI Repo for openldap kdu azure cluster_k8s daily k8s_13 prepare ${id} ${NSD_NAME} %{VIM_TARGET} ${NS_NAME} ${NS_CONFIG} ${PUBLICKEY} Launch the instantation of a NS and verify in a loop that the NS instance is successfully created in a given time, and return the NS instance id. ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_launch_max_wait_time} = 300.0 ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_launch_max_wait_time} = 300.0 ${ns_launch_max_wait_time} Logs the given message with the given level. 300.0 ${config_attr} '${ns_config}'!='${EMPTY}' --config '${ns_config}' ${EMPTY} Sets variable based on the given condition. ${config_attr} = --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext}], additionalParamsForVnf: [ {member-vnf-index: two_helm_oci, additionalParamsForKdu: [ {kdu_name: haproxy, additionalParams: {service: {typ... ${sshkeys_attr} '${publickey}'!='${EMPTY}' --ssh_keys ${publickey} ${EMPTY} Sets variable based on the given condition. ${sshkeys_attr} = ${config_file_attr} '${config_file}'!='${EMPTY}' --config_file '${config_file}' ${EMPTY} Sets variable based on the given condition. ${config_file_attr} = ${ns_id} ${ns_name} ${nsd} ${vim_name} ${config_attr} ${sshkeys_attr} ${config_file_attr} Launch the instantation of a NS, and return the NS instance id. ${rc} ${stdout} osm ns-create --ns_name ${ns_name} --nsd_name ${nsd} --vim_account ${vim_name} ${ns_extra_args} Runs the given command in the system and returns the RC and output. Running command 'osm ns-create --ns_name ldap --nsd_name two_helm_oci_ns --vim_account osm --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext}], additionalParamsForVnf: [ {member-vnf-index: two_helm_oci, additionalParamsForKdu: [ {kdu_name: haproxy, additionalParams: {service: {type: LoadBalancer }, adminPassword: admin}}, {kdu_name: ldap, additionalParams: {service: {type: LoadBalancer }, adminPassword: admin}} ] } ] }' 2>&1'. ${rc} = 0 ${stdout} = 92b74c4c-46e8-43ce-8635-1739be8d2123 ${stdout} Logs the given message with the given level. 92b74c4c-46e8-43ce-8635-1739be8d2123 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 92b74c4c-46e8-43ce-8635-1739be8d2123 ${ns_id} Logs the given message with the given level. 92b74c4c-46e8-43ce-8635-1739be8d2123 ${ns_launch_max_wait_time} ${NS_LAUNCH_POL_TIME} Check For NS Instance To Configured ${ns_name} Runs the specified keyword and retries if it fails. ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ | ID... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ | aa51a03f-0228-4dd9-9239-66f1910a817d | basic_28-vnf-persistent-v-keep-persistent-vol-VM-0 | ACTIVE | osm-ext=172.21.248.162 | ubuntu20.04 | keep-persistent-vol-VM-vnf-persistent-volumes-1-flv | | e3ea5729-77a2-4899-b8cd-9f3c6e309f4d | k8s_06-nopasswd_-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | ee6e13fd-f298-4cdf-b6c8-a2f870d19d9a | k8s_06-nopasswd_-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 6d85f0e6-13f4-4929-bd07-635ddfa54757 | sliceshared.slic-edge-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 2f14ed09-454a-487d-b25a-b3ee53daf714 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 99a6b4cd-58a1-4970-9ff3-97f2a4e2f0f1 | slicebasic.slice-middle-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 1484a0da-7213-409d-95d3-5d9584bee6d3 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="ldap" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ldap | 92b74c4c-46e8-43ce-8635-1739be8d2123 | 2024-02-19T04:34:25 | BUILDING | INSTANTIATING (7b4a52d1-9538-479b-8dd9-fce904ac11c0) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ldap | 92b74c4c-46e8-43ce-8635-1739be8d2123 | 2024-02-19T04:34:25 | BUILDING | INSTANTIATING (7b4a52d1-9538-479b-8dd9-fce904ac11c0) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ | ID... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ | 93ac8c64-fbea-40c3-bd88-0046dbcfd00f | basic_28-vnf-persistent-v-keep-persistent-vol-VM-0 | BUILD | | ubuntu20.04 | keep-persistent-vol-VM-vnf-persistent-volumes-1-flv | | e3ea5729-77a2-4899-b8cd-9f3c6e309f4d | k8s_06-nopasswd_-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | ee6e13fd-f298-4cdf-b6c8-a2f870d19d9a | k8s_06-nopasswd_-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 6d85f0e6-13f4-4929-bd07-635ddfa54757 | sliceshared.slic-edge-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 2f14ed09-454a-487d-b25a-b3ee53daf714 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 99a6b4cd-58a1-4970-9ff3-97f2a4e2f0f1 | slicebasic.slice-middle-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 1484a0da-7213-409d-95d3-5d9584bee6d3 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="ldap" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ldap | 92b74c4c-46e8-43ce-8635-1739be8d2123 | 2024-02-19T04:34:25 | BUILDING | INSTANTIATING (7b4a52d1-9538-479b-8dd9-fce904ac11c0) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ldap | 92b74c4c-46e8-43ce-8635-1739be8d2123 | 2024-02-19T04:34:25 | BUILDING | INSTANTIATING (7b4a52d1-9538-479b-8dd9-fce904ac11c0) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ | ID... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ | 93ac8c64-fbea-40c3-bd88-0046dbcfd00f | basic_28-vnf-persistent-v-keep-persistent-vol-VM-0 | ACTIVE | osm-ext=172.21.248.139 | ubuntu20.04 | keep-persistent-vol-VM-vnf-persistent-volumes-1-flv | | e3ea5729-77a2-4899-b8cd-9f3c6e309f4d | k8s_06-nopasswd_-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | ee6e13fd-f298-4cdf-b6c8-a2f870d19d9a | k8s_06-nopasswd_-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 6d85f0e6-13f4-4929-bd07-635ddfa54757 | sliceshared.slic-edge-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 2f14ed09-454a-487d-b25a-b3ee53daf714 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 99a6b4cd-58a1-4970-9ff3-97f2a4e2f0f1 | slicebasic.slice-middle-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 1484a0da-7213-409d-95d3-5d9584bee6d3 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="ldap" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ldap | 92b74c4c-46e8-43ce-8635-1739be8d2123 | 2024-02-19T04:34:25 | BUILDING | INSTANTIATING (7b4a52d1-9538-479b-8dd9-fce904ac11c0) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ldap | 92b74c4c-46e8-43ce-8635-1739be8d2123 | 2024-02-19T04:34:25 | BUILDING | INSTANTIATING (7b4a52d1-9538-479b-8dd9-fce904ac11c0) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ | ID... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ | 93ac8c64-fbea-40c3-bd88-0046dbcfd00f | basic_28-vnf-persistent-v-keep-persistent-vol-VM-0 | ACTIVE | osm-ext=172.21.248.139 | ubuntu20.04 | keep-persistent-vol-VM-vnf-persistent-volumes-1-flv | | e3ea5729-77a2-4899-b8cd-9f3c6e309f4d | k8s_06-nopasswd_-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | ee6e13fd-f298-4cdf-b6c8-a2f870d19d9a | k8s_06-nopasswd_-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 6d85f0e6-13f4-4929-bd07-635ddfa54757 | sliceshared.slic-edge-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 2f14ed09-454a-487d-b25a-b3ee53daf714 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 99a6b4cd-58a1-4970-9ff3-97f2a4e2f0f1 | slicebasic.slice-middle-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 1484a0da-7213-409d-95d3-5d9584bee6d3 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="ldap" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ldap | 92b74c4c-46e8-43ce-8635-1739be8d2123 | 2024-02-19T04:34:25 | READY | IDLE (None) | N/A | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. ${ns_name} Check if a given NS instance has not failed in the instantiation (the status should not be BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ | ID... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ | 93ac8c64-fbea-40c3-bd88-0046dbcfd00f | basic_28-vnf-persistent-v-keep-persistent-vol-VM-0 | ACTIVE | osm-ext=172.21.248.139 | ubuntu20.04 | keep-persistent-vol-VM-vnf-persistent-volumes-1-flv | | e3ea5729-77a2-4899-b8cd-9f3c6e309f4d | k8s_06-nopasswd_-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | ee6e13fd-f298-4cdf-b6c8-a2f870d19d9a | k8s_06-nopasswd_-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 6d85f0e6-13f4-4929-bd07-635ddfa54757 | sliceshared.slic-edge-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 2f14ed09-454a-487d-b25a-b3ee53daf714 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 99a6b4cd-58a1-4970-9ff3-97f2a4e2f0f1 | slicebasic.slice-middle-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 1484a0da-7213-409d-95d3-5d9584bee6d3 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="ldap" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ldap | 92b74c4c-46e8-43ce-8635-1739be8d2123 | 2024-02-19T04:34:25 | READY | IDLE (None) | N/A | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} BROKEN Fails if ``container`` contains ``item`` one or more times. ${ns_id} ${id} = 92b74c4c-46e8-43ce-8635-1739be8d2123 ${id} Logs the given message with the given level. 92b74c4c-46e8-43ce-8635-1739be8d2123 Create Network Service Instance azure cluster_k8s daily k8s_13 prepare ${id} ${NS_NAME} Get the NS instance ID from a NS instance name passed as argument, and return it. ${ns_name} Verifies that the given item is not empty. Length is 4 ${rc} ${stdout} osm ns-list | grep ${ns_name} | awk '{print $4}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | grep ldap | awk '{print $4}' 2>&1'. ${rc} = 0 ${stdout} = 92b74c4c-46e8-43ce-8635-1739be8d2123 ${stdout} Logs the given message with the given level. 92b74c4c-46e8-43ce-8635-1739be8d2123 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Verifies that the given item is not empty. Length is 36 ${stdout} ${id} = 92b74c4c-46e8-43ce-8635-1739be8d2123 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 92b74c4c-46e8-43ce-8635-1739be8d2123 Get ID of NS instance azure cluster_k8s daily k8s_13 verify ${NS_ID} msg=Network service instance is not available Fails unless the given variable exists within the current scope. @{vnfr_list} ${NS_ID} Return a list with the IDs of the VNF records of a NS instance. ${ns_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm vnf-list --ns ${ns_id} | grep ${ns_id} | awk '{print $2}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm vnf-list --ns 92b74c4c-46e8-43ce-8635-1739be8d2123 | grep 92b74c4c-46e8-43ce-8635-1739be8d2123 | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = 8013374b-828d-484a-afe0-08255d1c16ea ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> @{vdur} ${stdout} Splits the ``string`` using ``separator`` as a delimiter string. @{vdur} = [ 8013374b-828d-484a-afe0-08255d1c16ea ] @{vdur} @{vnfr_list} = [ 8013374b-828d-484a-afe0-08255d1c16ea ] ${vnfr_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: 8013374b-828d-484a-afe0-08255d1c16ea ${VNF_ID} ${vnfr_list}[0] Makes a variable available everywhere within the scope of the current suite. ${VNF_ID} = 8013374b-828d-484a-afe0-08255d1c16ea Get ID of VNF azure cluster_k8s daily k8s_13 verify ${NS_ID} msg=Network service instance is not available Fails unless the given variable exists within the current scope. ${ns_op_id} ${NS_NAME} ${UPGRADE_ACTION} ${VNF_MEMBER_INDEX} ${KDU1_NAME} replicaCount=${REPLICA_COUNT} Execute an action over the desired K8s NS. Parameters are given to this function in key=value format (one argument per key/value pair). Return the ID of the operation associated to the executed action. Examples of execution: ${ns_op_id}= Execute NS Action ${ns_name} ${ns_action} ${vnf_member_index} ${ns_op_id}= Execute NS Action ${ns_name} ${ns_action} ${vnf_member_index} ${param1}=${value1} ${param2}=${value2} ${params} ${EMPTY} Returns the given values which can then be assigned to a variables. ${params} = ${param} @{action_params} replicaCount=3 ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = replicaCount=3 ${param_name} = replicaCount ${param_value} = 3 ${match},${param_name},${param_value} Logs the given message with the given level. replicaCount=3,replicaCount,3 ${params} SEPARATOR= ${params} "${param_name}":"${param_value}", Catenates the given items together and returns the resulted string. ${params} = "replicaCount":"3", ${osm_ns_action_command} osm ns-action --action_name ${ns_action} --vnf_name ${vnf_member_index} --kdu_name ${kdu_name} Returns the given values which can then be assigned to a variables. ${osm_ns_action_command} = osm ns-action --action_name upgrade --vnf_name two_helm_oci --kdu_name haproxy ${osm_ns_action_command} ${osm_ns_action_command} --params '{${params}}' Catenates the given items together and returns the resulted string. ${osm_ns_action_command} = osm ns-action --action_name upgrade --vnf_name two_helm_oci --kdu_name haproxy --params '{"replicaCount":"3",}' ${osm_ns_action_command} ${osm_ns_action_command} Returns the given values which can then be assigned to a variables. ${osm_ns_action_command} ${osm_ns_action_command} ${ns_name} Catenates the given items together and returns the resulted string. ${osm_ns_action_command} = osm ns-action --action_name upgrade --vnf_name two_helm_oci --kdu_name haproxy --params '{"replicaCount":"3",}' ldap ${rc} ${stdout} ${osm_ns_action_command} Runs the given command in the system and returns the RC and output. Running command 'osm ns-action --action_name upgrade --vnf_name two_helm_oci --kdu_name haproxy --params '{"replicaCount":"3",}' ldap 2>&1'. ${rc} = 0 ${stdout} = a0f5262a-ae10-4ec9-9b11-c938f8dcd495 ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${NS_ACTION_MAX_WAIT_TIME} ${NS_ACTION_POL_TIME} Check For NS Operation Ended ${stdout} Runs the specified keyword and retries if it fails. ${stdout} Check wheter the status of the desired operation is "FAILED" or "COMPLETED". ${ns_operation_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm ns-op-show ${ns_operation_id} --literal | yq -r .operationState Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-show a0f5262a-ae10-4ec9-9b11-c938f8dcd495 --literal | yq -r .operationState 2>&1'. ${rc} = 0 ${stdout} = PROCESSING ${stdout} Logs the given message with the given level. PROCESSING ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} FAILED COMPLETED msg=Timeout waiting for ns-action with id ${ns_operation_id} values=False Fails if ``container`` does not contain any of the ``*items``. Timeout waiting for ns-action with id a0f5262a-ae10-4ec9-9b11-c938f8dcd495 ${stdout} Check wheter the status of the desired operation is "FAILED" or "COMPLETED". ${ns_operation_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm ns-op-show ${ns_operation_id} --literal | yq -r .operationState Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-show a0f5262a-ae10-4ec9-9b11-c938f8dcd495 --literal | yq -r .operationState 2>&1'. ${rc} = 0 ${stdout} = PROCESSING ${stdout} Logs the given message with the given level. PROCESSING ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} FAILED COMPLETED msg=Timeout waiting for ns-action with id ${ns_operation_id} values=False Fails if ``container`` does not contain any of the ``*items``. Timeout waiting for ns-action with id a0f5262a-ae10-4ec9-9b11-c938f8dcd495 ${stdout} Check wheter the status of the desired operation is "FAILED" or "COMPLETED". ${ns_operation_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm ns-op-show ${ns_operation_id} --literal | yq -r .operationState Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-show a0f5262a-ae10-4ec9-9b11-c938f8dcd495 --literal | yq -r .operationState 2>&1'. ${rc} = 0 ${stdout} = COMPLETED ${stdout} Logs the given message with the given level. COMPLETED ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} FAILED COMPLETED msg=Timeout waiting for ns-action with id ${ns_operation_id} values=False Fails if ``container`` does not contain any of the ``*items``. ${stdout} Check wheter the status of the desired operation is "COMPLETED" or not. ${ns_operation_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm ns-op-show ${ns_operation_id} --literal | yq -r .operationState Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-show a0f5262a-ae10-4ec9-9b11-c938f8dcd495 --literal | yq -r .operationState 2>&1'. ${rc} = 0 ${stdout} = COMPLETED ${stdout} Logs the given message with the given level. COMPLETED ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} COMPLETED msg=The ns-action with id ${ns_operation_id} was not completed values=False Fails if ``container`` does not contain ``item`` one or more times. ${stdout} ${ns_op_id} = a0f5262a-ae10-4ec9-9b11-c938f8dcd495 ${ns_op_id} Logs the given message with the given level. a0f5262a-ae10-4ec9-9b11-c938f8dcd495 Execute Upgrade Operation over first KDU azure cluster_k8s daily k8s_13 verify ${NS_ID} msg=Network service instance is not available Fails unless the given variable exists within the current scope. ${count} ${VNF_ID} ${KDU1_NAME} Return the number of KDU replicas (empty if none) of a VNF instance. ${vnf_id} Verifies that the given item is not empty. Length is 36 ${kdu_name} Verifies that the given item is not empty. Length is 7 ${rc} ${stdout} osm vnf-show ${vnf_id} --kdu ${kdu_name} | yq -r .config.replicaCount Runs the given command in the system and returns the RC and output. Running command 'osm vnf-show 8013374b-828d-484a-afe0-08255d1c16ea --kdu haproxy | yq -r .config.replicaCount 2>&1'. ${rc} = 0 ${stdout} = 3 ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${return} '${stdout}' == 'null' ${EMPTY} ${stdout} Sets variable based on the given condition. ${return} = 3 ${return} ${count} = 3 ${count} Logs the given message with the given level. 3 ${count} ${REPLICA_COUNT} Fails if objects are unequal after converting them to integers. Check Replicas After Upgrade Operation over first KDU azure cluster_k8s daily k8s_13 verify ${NS_ID} msg=Network service instance is not available Fails unless the given variable exists within the current scope. ${ns_op_id} ${NS_NAME} ${ROLLBACK_ACTION} ${VNF_MEMBER_INDEX} ${KDU1_NAME} Execute an action over the desired K8s NS. Parameters are given to this function in key=value format (one argument per key/value pair). Return the ID of the operation associated to the executed action. Examples of execution: ${ns_op_id}= Execute NS Action ${ns_name} ${ns_action} ${vnf_member_index} ${ns_op_id}= Execute NS Action ${ns_name} ${ns_action} ${vnf_member_index} ${param1}=${value1} ${param2}=${value2} ${params} ${EMPTY} Returns the given values which can then be assigned to a variables. ${params} = ${param} @{action_params} ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match},${param_name},${param_value} Logs the given message with the given level. ${params} SEPARATOR= ${params} "${param_name}":"${param_value}", Catenates the given items together and returns the resulted string. ${osm_ns_action_command} osm ns-action --action_name ${ns_action} --vnf_name ${vnf_member_index} --kdu_name ${kdu_name} Returns the given values which can then be assigned to a variables. ${osm_ns_action_command} = osm ns-action --action_name rollback --vnf_name two_helm_oci --kdu_name haproxy ${osm_ns_action_command} ${osm_ns_action_command} --params '{${params}}' Catenates the given items together and returns the resulted string. ${osm_ns_action_command} ${osm_ns_action_command} Returns the given values which can then be assigned to a variables. ${osm_ns_action_command} = osm ns-action --action_name rollback --vnf_name two_helm_oci --kdu_name haproxy ${osm_ns_action_command} ${osm_ns_action_command} ${ns_name} Catenates the given items together and returns the resulted string. ${osm_ns_action_command} = osm ns-action --action_name rollback --vnf_name two_helm_oci --kdu_name haproxy ldap ${rc} ${stdout} ${osm_ns_action_command} Runs the given command in the system and returns the RC and output. Running command 'osm ns-action --action_name rollback --vnf_name two_helm_oci --kdu_name haproxy ldap 2>&1'. ${rc} = 0 ${stdout} = 3f7f2b62-9b78-4f5d-b626-588580f3b114 ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${NS_ACTION_MAX_WAIT_TIME} ${NS_ACTION_POL_TIME} Check For NS Operation Ended ${stdout} Runs the specified keyword and retries if it fails. ${stdout} Check wheter the status of the desired operation is "FAILED" or "COMPLETED". ${ns_operation_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm ns-op-show ${ns_operation_id} --literal | yq -r .operationState Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-show 3f7f2b62-9b78-4f5d-b626-588580f3b114 --literal | yq -r .operationState 2>&1'. ${rc} = 0 ${stdout} = PROCESSING ${stdout} Logs the given message with the given level. PROCESSING ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} FAILED COMPLETED msg=Timeout waiting for ns-action with id ${ns_operation_id} values=False Fails if ``container`` does not contain any of the ``*items``. Timeout waiting for ns-action with id 3f7f2b62-9b78-4f5d-b626-588580f3b114 ${stdout} Check wheter the status of the desired operation is "FAILED" or "COMPLETED". ${ns_operation_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm ns-op-show ${ns_operation_id} --literal | yq -r .operationState Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-show 3f7f2b62-9b78-4f5d-b626-588580f3b114 --literal | yq -r .operationState 2>&1'. ${rc} = 0 ${stdout} = COMPLETED ${stdout} Logs the given message with the given level. COMPLETED ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} FAILED COMPLETED msg=Timeout waiting for ns-action with id ${ns_operation_id} values=False Fails if ``container`` does not contain any of the ``*items``. ${stdout} Check wheter the status of the desired operation is "COMPLETED" or not. ${ns_operation_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm ns-op-show ${ns_operation_id} --literal | yq -r .operationState Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-show 3f7f2b62-9b78-4f5d-b626-588580f3b114 --literal | yq -r .operationState 2>&1'. ${rc} = 0 ${stdout} = COMPLETED ${stdout} Logs the given message with the given level. COMPLETED ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} COMPLETED msg=The ns-action with id ${ns_operation_id} was not completed values=False Fails if ``container`` does not contain ``item`` one or more times. ${stdout} ${ns_op_id} = 3f7f2b62-9b78-4f5d-b626-588580f3b114 ${ns_op_id} Logs the given message with the given level. 3f7f2b62-9b78-4f5d-b626-588580f3b114 Execute Rollback Operation over first KDU azure cluster_k8s daily k8s_13 verify ${NS_ID} msg=Network service instance is not available Fails unless the given variable exists within the current scope. ${count} ${VNF_ID} ${KDU1_NAME} Return the number of KDU replicas (empty if none) of a VNF instance. ${vnf_id} Verifies that the given item is not empty. Length is 36 ${kdu_name} Verifies that the given item is not empty. Length is 7 ${rc} ${stdout} osm vnf-show ${vnf_id} --kdu ${kdu_name} | yq -r .config.replicaCount Runs the given command in the system and returns the RC and output. Running command 'osm vnf-show 8013374b-828d-484a-afe0-08255d1c16ea --kdu haproxy | yq -r .config.replicaCount 2>&1'. ${rc} = 0 ${stdout} = null ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${return} '${stdout}' == 'null' ${EMPTY} ${stdout} Sets variable based on the given condition. ${return} = ${return} ${count} = ${count} Logs the given message with the given level. ${count} Verifies that the given item is empty. Length is 0 Check Replicas After Rollback Operation over first KDU azure cluster_k8s daily k8s_13 verify ${NS_ID} msg=Network service instance is not available Fails unless the given variable exists within the current scope. ${ns_op_id} ${NS_NAME} ${UPGRADE_ACTION} ${VNF_MEMBER_INDEX} ${KDU2_NAME} replicaCount=${REPLICA_COUNT} Execute an action over the desired K8s NS. Parameters are given to this function in key=value format (one argument per key/value pair). Return the ID of the operation associated to the executed action. Examples of execution: ${ns_op_id}= Execute NS Action ${ns_name} ${ns_action} ${vnf_member_index} ${ns_op_id}= Execute NS Action ${ns_name} ${ns_action} ${vnf_member_index} ${param1}=${value1} ${param2}=${value2} ${params} ${EMPTY} Returns the given values which can then be assigned to a variables. ${params} = ${param} @{action_params} replicaCount=3 ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = replicaCount=3 ${param_name} = replicaCount ${param_value} = 3 ${match},${param_name},${param_value} Logs the given message with the given level. replicaCount=3,replicaCount,3 ${params} SEPARATOR= ${params} "${param_name}":"${param_value}", Catenates the given items together and returns the resulted string. ${params} = "replicaCount":"3", ${osm_ns_action_command} osm ns-action --action_name ${ns_action} --vnf_name ${vnf_member_index} --kdu_name ${kdu_name} Returns the given values which can then be assigned to a variables. ${osm_ns_action_command} = osm ns-action --action_name upgrade --vnf_name two_helm_oci --kdu_name ldap ${osm_ns_action_command} ${osm_ns_action_command} --params '{${params}}' Catenates the given items together and returns the resulted string. ${osm_ns_action_command} = osm ns-action --action_name upgrade --vnf_name two_helm_oci --kdu_name ldap --params '{"replicaCount":"3",}' ${osm_ns_action_command} ${osm_ns_action_command} Returns the given values which can then be assigned to a variables. ${osm_ns_action_command} ${osm_ns_action_command} ${ns_name} Catenates the given items together and returns the resulted string. ${osm_ns_action_command} = osm ns-action --action_name upgrade --vnf_name two_helm_oci --kdu_name ldap --params '{"replicaCount":"3",}' ldap ${rc} ${stdout} ${osm_ns_action_command} Runs the given command in the system and returns the RC and output. Running command 'osm ns-action --action_name upgrade --vnf_name two_helm_oci --kdu_name ldap --params '{"replicaCount":"3",}' ldap 2>&1'. ${rc} = 0 ${stdout} = 616fe4e0-0613-4242-a976-5c39530f1db0 ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${NS_ACTION_MAX_WAIT_TIME} ${NS_ACTION_POL_TIME} Check For NS Operation Ended ${stdout} Runs the specified keyword and retries if it fails. ${stdout} Check wheter the status of the desired operation is "FAILED" or "COMPLETED". ${ns_operation_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm ns-op-show ${ns_operation_id} --literal | yq -r .operationState Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-show 616fe4e0-0613-4242-a976-5c39530f1db0 --literal | yq -r .operationState 2>&1'. ${rc} = 0 ${stdout} = PROCESSING ${stdout} Logs the given message with the given level. PROCESSING ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} FAILED COMPLETED msg=Timeout waiting for ns-action with id ${ns_operation_id} values=False Fails if ``container`` does not contain any of the ``*items``. Timeout waiting for ns-action with id 616fe4e0-0613-4242-a976-5c39530f1db0 ${stdout} Check wheter the status of the desired operation is "FAILED" or "COMPLETED". ${ns_operation_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm ns-op-show ${ns_operation_id} --literal | yq -r .operationState Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-show 616fe4e0-0613-4242-a976-5c39530f1db0 --literal | yq -r .operationState 2>&1'. ${rc} = 0 ${stdout} = PROCESSING ${stdout} Logs the given message with the given level. PROCESSING ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} FAILED COMPLETED msg=Timeout waiting for ns-action with id ${ns_operation_id} values=False Fails if ``container`` does not contain any of the ``*items``. Timeout waiting for ns-action with id 616fe4e0-0613-4242-a976-5c39530f1db0 ${stdout} Check wheter the status of the desired operation is "FAILED" or "COMPLETED". ${ns_operation_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm ns-op-show ${ns_operation_id} --literal | yq -r .operationState Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-show 616fe4e0-0613-4242-a976-5c39530f1db0 --literal | yq -r .operationState 2>&1'. ${rc} = 0 ${stdout} = PROCESSING ${stdout} Logs the given message with the given level. PROCESSING ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} FAILED COMPLETED msg=Timeout waiting for ns-action with id ${ns_operation_id} values=False Fails if ``container`` does not contain any of the ``*items``. Timeout waiting for ns-action with id 616fe4e0-0613-4242-a976-5c39530f1db0 ${stdout} Check wheter the status of the desired operation is "FAILED" or "COMPLETED". ${ns_operation_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm ns-op-show ${ns_operation_id} --literal | yq -r .operationState Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-show 616fe4e0-0613-4242-a976-5c39530f1db0 --literal | yq -r .operationState 2>&1'. ${rc} = 0 ${stdout} = COMPLETED ${stdout} Logs the given message with the given level. COMPLETED ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} FAILED COMPLETED msg=Timeout waiting for ns-action with id ${ns_operation_id} values=False Fails if ``container`` does not contain any of the ``*items``. ${stdout} Check wheter the status of the desired operation is "COMPLETED" or not. ${ns_operation_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm ns-op-show ${ns_operation_id} --literal | yq -r .operationState Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-show 616fe4e0-0613-4242-a976-5c39530f1db0 --literal | yq -r .operationState 2>&1'. ${rc} = 0 ${stdout} = COMPLETED ${stdout} Logs the given message with the given level. COMPLETED ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} COMPLETED msg=The ns-action with id ${ns_operation_id} was not completed values=False Fails if ``container`` does not contain ``item`` one or more times. ${stdout} ${ns_op_id} = 616fe4e0-0613-4242-a976-5c39530f1db0 ${ns_op_id} Logs the given message with the given level. 616fe4e0-0613-4242-a976-5c39530f1db0 Execute Upgrade Operation over second KDU azure cluster_k8s daily k8s_13 verify ${NS_ID} msg=Network service instance is not available Fails unless the given variable exists within the current scope. ${count} ${VNF_ID} ${KDU2_NAME} Return the number of KDU replicas (empty if none) of a VNF instance. ${vnf_id} Verifies that the given item is not empty. Length is 36 ${kdu_name} Verifies that the given item is not empty. Length is 4 ${rc} ${stdout} osm vnf-show ${vnf_id} --kdu ${kdu_name} | yq -r .config.replicaCount Runs the given command in the system and returns the RC and output. Running command 'osm vnf-show 8013374b-828d-484a-afe0-08255d1c16ea --kdu ldap | yq -r .config.replicaCount 2>&1'. ${rc} = 0 ${stdout} = 3 ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${return} '${stdout}' == 'null' ${EMPTY} ${stdout} Sets variable based on the given condition. ${return} = 3 ${return} ${count} = 3 ${count} Logs the given message with the given level. 3 ${count} ${REPLICA_COUNT} Fails if objects are unequal after converting them to integers. Check Replicas After Upgrade Operation over second KDU azure cluster_k8s daily k8s_13 verify ${NS_ID} msg=Network service instance is not available Fails unless the given variable exists within the current scope. ${ns_op_id} ${NS_NAME} ${ROLLBACK_ACTION} ${VNF_MEMBER_INDEX} ${KDU2_NAME} Execute an action over the desired K8s NS. Parameters are given to this function in key=value format (one argument per key/value pair). Return the ID of the operation associated to the executed action. Examples of execution: ${ns_op_id}= Execute NS Action ${ns_name} ${ns_action} ${vnf_member_index} ${ns_op_id}= Execute NS Action ${ns_name} ${ns_action} ${vnf_member_index} ${param1}=${value1} ${param2}=${value2} ${params} ${EMPTY} Returns the given values which can then be assigned to a variables. ${params} = ${param} @{action_params} ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match},${param_name},${param_value} Logs the given message with the given level. ${params} SEPARATOR= ${params} "${param_name}":"${param_value}", Catenates the given items together and returns the resulted string. ${osm_ns_action_command} osm ns-action --action_name ${ns_action} --vnf_name ${vnf_member_index} --kdu_name ${kdu_name} Returns the given values which can then be assigned to a variables. ${osm_ns_action_command} = osm ns-action --action_name rollback --vnf_name two_helm_oci --kdu_name ldap ${osm_ns_action_command} ${osm_ns_action_command} --params '{${params}}' Catenates the given items together and returns the resulted string. ${osm_ns_action_command} ${osm_ns_action_command} Returns the given values which can then be assigned to a variables. ${osm_ns_action_command} = osm ns-action --action_name rollback --vnf_name two_helm_oci --kdu_name ldap ${osm_ns_action_command} ${osm_ns_action_command} ${ns_name} Catenates the given items together and returns the resulted string. ${osm_ns_action_command} = osm ns-action --action_name rollback --vnf_name two_helm_oci --kdu_name ldap ldap ${rc} ${stdout} ${osm_ns_action_command} Runs the given command in the system and returns the RC and output. Running command 'osm ns-action --action_name rollback --vnf_name two_helm_oci --kdu_name ldap ldap 2>&1'. ${rc} = 0 ${stdout} = a66a963c-8e55-4450-940d-9e7bd3052ce0 ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${NS_ACTION_MAX_WAIT_TIME} ${NS_ACTION_POL_TIME} Check For NS Operation Ended ${stdout} Runs the specified keyword and retries if it fails. ${stdout} Check wheter the status of the desired operation is "FAILED" or "COMPLETED". ${ns_operation_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm ns-op-show ${ns_operation_id} --literal | yq -r .operationState Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-show a66a963c-8e55-4450-940d-9e7bd3052ce0 --literal | yq -r .operationState 2>&1'. ${rc} = 0 ${stdout} = PROCESSING ${stdout} Logs the given message with the given level. PROCESSING ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} FAILED COMPLETED msg=Timeout waiting for ns-action with id ${ns_operation_id} values=False Fails if ``container`` does not contain any of the ``*items``. Timeout waiting for ns-action with id a66a963c-8e55-4450-940d-9e7bd3052ce0 ${stdout} Check wheter the status of the desired operation is "FAILED" or "COMPLETED". ${ns_operation_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm ns-op-show ${ns_operation_id} --literal | yq -r .operationState Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-show a66a963c-8e55-4450-940d-9e7bd3052ce0 --literal | yq -r .operationState 2>&1'. ${rc} = 0 ${stdout} = COMPLETED ${stdout} Logs the given message with the given level. COMPLETED ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} FAILED COMPLETED msg=Timeout waiting for ns-action with id ${ns_operation_id} values=False Fails if ``container`` does not contain any of the ``*items``. ${stdout} Check wheter the status of the desired operation is "COMPLETED" or not. ${ns_operation_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm ns-op-show ${ns_operation_id} --literal | yq -r .operationState Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-show a66a963c-8e55-4450-940d-9e7bd3052ce0 --literal | yq -r .operationState 2>&1'. ${rc} = 0 ${stdout} = COMPLETED ${stdout} Logs the given message with the given level. COMPLETED ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} COMPLETED msg=The ns-action with id ${ns_operation_id} was not completed values=False Fails if ``container`` does not contain ``item`` one or more times. ${stdout} ${ns_op_id} = a66a963c-8e55-4450-940d-9e7bd3052ce0 ${ns_op_id} Logs the given message with the given level. a66a963c-8e55-4450-940d-9e7bd3052ce0 Execute Rollback Operation over second KDU azure cluster_k8s daily k8s_13 verify ${NS_ID} msg=Network service instance is not available Fails unless the given variable exists within the current scope. ${count} ${VNF_ID} ${KDU2_NAME} Return the number of KDU replicas (empty if none) of a VNF instance. ${vnf_id} Verifies that the given item is not empty. Length is 36 ${kdu_name} Verifies that the given item is not empty. Length is 4 ${rc} ${stdout} osm vnf-show ${vnf_id} --kdu ${kdu_name} | yq -r .config.replicaCount Runs the given command in the system and returns the RC and output. Running command 'osm vnf-show 8013374b-828d-484a-afe0-08255d1c16ea --kdu ldap | yq -r .config.replicaCount 2>&1'. ${rc} = 0 ${stdout} = null ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${return} '${stdout}' == 'null' ${EMPTY} ${stdout} Sets variable based on the given condition. ${return} = ${return} ${count} = ${count} Logs the given message with the given level. ${count} Verifies that the given item is empty. Length is 0 Check Replicas After Rollback Operation over second KDU azure cluster_k8s daily k8s_13 verify ${NS_NAME} Delete a NS instance. ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} Logs the given message with the given level. 240.0 ${rc} ${stdout} osm ns-delete ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-delete ldap 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${stdout} Logs the given message with the given level. Deletion in progress ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${ns_delete_max_wait_time} ${NS_DELETE_POL_TIME} Check For NS Instance To Be Deleted ${ns} Runs the specified keyword and retries if it fails. ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ | a7d5afea-2afa-4cf2-abf3-36d730d49360 | basic_29-vnf-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 6dbafa5a-889f-4f4b-9da5-3ea24039e6c1 | basic_29-vnf-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | e3ea5729-77a2-4899-b8cd-9f3c6e309f4d | k8s_06-nopasswd_-vnf2-mgmtVM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | ee6e13fd-f298-4cdf-b6c8-a2f870d19d9a | k8s_06-nopasswd_-vnf1-mgmtVM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep ldap 2>&1'. ${rc} = 0 ${stdout} = ldap ${rc},${stdout} Logs the given message with the given level. 0,ldap ${stdout} ${ns} Fails if objects are equal after converting them to strings. ldap == ldap ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------+--------+------------------------+-------------+-------------------------+ | a7d5afea-2afa-4cf2-abf3-36d730d49360 | basic_29-vnf-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 6dbafa5a-889f-4f4b-9da5-3ea24039e6c1 | basic_29-vnf-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep ldap 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${ns} Fails if objects are equal after converting them to strings. Delete Network Service Instance azure cleanup cluster_k8s daily k8s_13 ${REPO_NAME} Delete from OSM the repo passed as argument. ${rc} ${stdout} Run And Return RC And Output osm repo-delete ${repo_id} Runs the keyword and continues execution even if a failure occurs. osm repo-delete ${repo_id} Runs the given command in the system and returns the RC and output. Running command 'osm repo-delete osm-gitlab 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Logs the given message with the given level. Deletion in progress ${REPO_DELETE_MAX_WAIT_TIME} ${REPO_DELETE_POL_TIME} Check For NSD ${repo_id} Runs the specified keyword and retries if it fails. ${repo_id} Check that a NS package exists in OSM. ${rc} ${stdout} osm nspkg-list | awk '{print $2}' | grep ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-list | awk '{print $2}' | grep osm-gitlab 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. Delete Helm OCI Repo azure cluster_k8s daily k8s_13 prepare ${NSD_NAME} Delete a NS package from OSM. ${rc} ${stdout} Run And Return Rc And Output osm nspkg-delete ${nsd_id} Runs the keyword and continues execution even if a failure occurs. osm nspkg-delete ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-delete two_helm_oci_ns 2>&1'. ${rc} = 0 ${stdout} = Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Logs the given message with the given level. Deleted ${NSD_DELETE_MAX_WAIT_TIME} ${NSD_DELETE_POL_TIME} Check For NSD ${nsd_id} Runs the specified keyword and retries if it fails. ${nsd_id} Check that a NS package exists in OSM. ${rc} ${stdout} osm nspkg-list | awk '{print $2}' | grep ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-list | awk '{print $2}' | grep two_helm_oci_ns 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. Delete NS Descriptor Test azure cleanup cluster_k8s daily k8s_13 ${VNFD_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete two_helm_oci_knf 2>&1'. ${rc} = 0 ${stdout} = Deleted ${stdout} Logs the given message with the given level. Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep two_helm_oci_knf 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. Delete VNF Descriptor Test azure cleanup cluster_k8s daily k8s_13 Suite Cleanup Runs the given keyword with the given arguments and ignores possible error. Test Suit Cleanup: Deleting Descriptor, instance and vim Delete NS ${NS_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete NSD ${NSD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete VNFD ${VNFD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. [K8s-13] Two Helm-based KDU stored in public and private OCI repositories. '%{PACKAGES_FOLDER}/${VNFD_PKG}' Onboards ("creates") a NF Package into OSM. - Parameters: - vnfd_pkg: Name (and location) of the NF Package - overrides (optional): String with options to override the EPA and/or interface properties of the Package. This is very useful to allow to deploy e.g. non-EPA packages in EPA VIMs (or vice-versa). Valid strings are the same as in the command. E.g.: - `--override-epa`: adds EPA attributes to all VDUs. - `--override-nonepa`: removes all EPA attributes from all VDUs. - `--override-paravirt`: converts all interfaces to `PARAVIRT`. This one can be combined with the others above (e.g. '--override-nonepa --override-paravirt'). - Relevant environment variables: - OVERRIDES: If the environment variable "OVERRIDES" exists, it prevails over the value in the argument. This is often more convenient to enforce the same behaviour for every test run in a given VIM. ${overrides} OVERRIDES default=${overrides} Returns the value of an environment variable with the given name. ${overrides} = ${rc} ${stdout} osm vnfpkg-create ${overrides} ${vnfd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-create '/robot-systest/osm-packages/simple_ee_vnf' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/simple_ee_vnf Validation OK List of charms in the descriptor: set() Adding File: simple_ee_vnf Package created: /robot-systest/osm-packages/simple_ee_vnf... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/simple_ee_vnf Validation OK List of charms in the descriptor: set() Adding File: simple_ee_vnf Package created: /robot-systest/osm-packages/simple_ee_vnf.tar.gz Uploading package /robot-systest/osm-packages/simple_ee_vnf.tar.gz 06967f4a-6613-4c44-9328-931796f05c4f ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 7 lines ${lines} = 7 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 6 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = 06967f4a-6613-4c44-9328-931796f05c4f ${id} Create the VNF descriptor cluster_lcmop daily lcmop_01 '%{PACKAGES_FOLDER}/${NSD_PKG}' Upload a NS package to OSM and return the id. ${rc} ${stdout} osm nspkg-create ${nsd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-create '/robot-systest/osm-packages/simple_ee_ns' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/simple_ee_ns Validation OK List of charms in the descriptor: set() Adding File: simple_ee_ns Package created: /robot-systest/osm-packages/simple_ee_ns.ta... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/simple_ee_ns Validation OK List of charms in the descriptor: set() Adding File: simple_ee_ns Package created: /robot-systest/osm-packages/simple_ee_ns.tar.gz afebf881-11a6-4321-b13c-8e6975f4e955 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 6 lines ${lines} = 6 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 5 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = afebf881-11a6-4321-b13c-8e6975f4e955 ${id} Create the NS descriptor cluster_lcmop daily lcmop_01 ${id} ${NS_NAME} ${NSD_NAME} %{VIM_TARGET} --config '${NS_CONFIG}' Launch the instantation of a NS, and return the NS instance id. ${rc} ${stdout} osm ns-create --ns_name ${ns_name} --nsd_name ${nsd} --vim_account ${vim_name} ${ns_extra_args} Runs the given command in the system and returns the RC and output. Running command 'osm ns-create --ns_name lcmop_01_cancel_operation_basic --nsd_name simple_ee-ns --vim_account osm --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext} ] }' 2>&1'. ${rc} = 0 ${stdout} = ad0bb8bf-e9a2-4064-8f44-5d6ec4eedcd9 ${stdout} Logs the given message with the given level. ad0bb8bf-e9a2-4064-8f44-5d6ec4eedcd9 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = ad0bb8bf-e9a2-4064-8f44-5d6ec4eedcd9 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = ad0bb8bf-e9a2-4064-8f44-5d6ec4eedcd9 Instantiate the Network service cluster_lcmop daily lcmop_01 ${id} ${NS_ID} instantiate Keyword to get the operation by type ${ns_id} Verifies that the given item is not empty. Length is 36 ${type} Verifies that the given item is not empty. Length is 11 ${rc} ${stdout} osm ns-op-list ${ns_id} | grep ${type} | awk '{print $2}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-list ad0bb8bf-e9a2-4064-8f44-5d6ec4eedcd9 | grep instantiate | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = cfc0817a-d548-418b-a23d-09274a1e68d9 ${stdout} Logs the given message with the given level. cfc0817a-d548-418b-a23d-09274a1e68d9 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Verifies that the given item is not empty. Length is 36 ${stdout} ${id} = cfc0817a-d548-418b-a23d-09274a1e68d9 ${OP_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${OP_ID} = cfc0817a-d548-418b-a23d-09274a1e68d9 Obtain the operation ID of the NS instantiation cluster_lcmop daily lcmop_01 5s Waiting before cancelling the operation Pauses the test executed for the given time. Slept 5 seconds Waiting before cancelling the operation ${OP_ID} Cancels an ongoing operation by operation ID ${op_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm ns-op-cancel ${op_id} --cancel_mode ${cancel_mode} --wait Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-cancel cfc0817a-d548-418b-a23d-09274a1e68d9 --cancel_mode GRACEFUL --wait 2>&1'. ${rc} = 0 ${stdout} = detailed-status: Stage 2/5: deployment of KDUs, VMs and execution environments. 0/2. VIM: (progress 0/4) detailed-status: Cancelled ${stdout} Logs the given message with the given level. detailed-status: Stage 2/5: deployment of KDUs, VMs and execution environments. 0/2. VIM: (progress 0/4) detailed-status: Cancelled ${rc} ${success_return_code} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Cancel the ongoing NS instantiation cluster_lcmop daily lcmop_01 ${OP_ID} Check whether the operation was cancelled or not. ${ns_operation_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm ns-op-show ${ns_operation_id} --literal | yq -r '.operationState, .isCancelPending' Runs the given command in the system and returns the RC and output. Running command 'osm ns-op-show cfc0817a-d548-418b-a23d-09274a1e68d9 --literal | yq -r '.operationState, .isCancelPending' 2>&1'. ${rc} = 0 ${stdout} = FAILED_TEMP false ${stdout} Logs the given message with the given level. FAILED_TEMP false ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} FAILED_TEMP\nfalse msg=Timeout waiting for ns-action with id ${ns_operation_id} values=False Fails if ``container`` does not contain ``item`` one or more times. Check that the operation is succesfully cancelled cluster_lcmop daily lcmop_01 ${NS_NAME} Delete a NS instance. ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} Logs the given message with the given level. 240.0 ${rc} ${stdout} osm ns-delete ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-delete lcmop_01_cancel_operation_basic 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${stdout} Logs the given message with the given level. Deletion in progress ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${ns_delete_max_wait_time} ${NS_DELETE_POL_TIME} Check For NS Instance To Be Deleted ${ns} Runs the specified keyword and retries if it fails. ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+----------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+----------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+----------------------------------+--------+------------------------+-------------+-------------------------+ | 32fd0ee8-f3a9-45ed-9b61-355e815e6eec | lcmop_01_cancel_-simple-mgmtVM-0 | BUILD | | ubuntu18.04 | mgmtVM-simple-1-flv-51 | | a7d5afea-2afa-4cf2-abf3-36d730d49360 | basic_29-vnf-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 6dbafa5a-889f-4f4b-9da5-3ea24039e6c1 | basic_29-vnf-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+----------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep lcmop_01_cancel_operation_basic 2>&1'. ${rc} = 0 ${stdout} = lcmop_01_cancel_operation_basic ${rc},${stdout} Logs the given message with the given level. 0,lcmop_01_cancel_operation_basic ${stdout} ${ns} Fails if objects are equal after converting them to strings. lcmop_01_cancel_operation_basic == lcmop_01_cancel_operation_basic ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 40622b0a-6faf-42ca-822c-f3725f6aa9af | sol003-instance--1-hackfest_basic_metrics-VM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | a7d5afea-2afa-4cf2-abf3-36d730d49360 | basic_29-vnf-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 6dbafa5a-889f-4f4b-9da5-3ea24039e6c1 | basic_29-vnf-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep lcmop_01_cancel_operation_basic 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${ns} Fails if objects are equal after converting them to strings. Delete the cancelled NS instance cleanup cluster_lcmop daily lcmop_01 ${NSD_NAME} Delete a NS package from OSM. ${rc} ${stdout} Run And Return Rc And Output osm nspkg-delete ${nsd_id} Runs the keyword and continues execution even if a failure occurs. osm nspkg-delete ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-delete simple_ee-ns 2>&1'. ${rc} = 0 ${stdout} = Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Logs the given message with the given level. Deleted ${NSD_DELETE_MAX_WAIT_TIME} ${NSD_DELETE_POL_TIME} Check For NSD ${nsd_id} Runs the specified keyword and retries if it fails. ${nsd_id} Check that a NS package exists in OSM. ${rc} ${stdout} osm nspkg-list | awk '{print $2}' | grep ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-list | awk '{print $2}' | grep simple_ee-ns 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. Delete the NS descriptor cleanup cluster_lcmop daily lcmop_01 ${VNFD_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete simple_ee-vnf 2>&1'. ${rc} = 0 ${stdout} = Deleted ${stdout} Logs the given message with the given level. Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep simple_ee-vnf 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. Delete the VNF descriptor cleanup cluster_lcmop daily lcmop_01 Suite Cleanup Runs the given keyword with the given arguments and ignores possible error. Test Suit Cleanup: Deleting Descriptor, instance and vim Delete NS ${NS_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete NSD ${NSD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete VNFD ${VNFD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. [LCMOP_01] Cancel an ongoing NS operation ${PROJECT_1_NAME} ${PROJECT_1_QUOTAS} Create a project in OSM with the name and quotas passed as arguments, and return the project id. ${project_name} Verifies that the given item is not empty. Length is 16 ${project_quotas} Verifies that the given item is not empty. Length is 29 ${rc} ${stdout} osm project-create ${project_name} --quotas ${project_quotas} Runs the given command in the system and returns the RC and output. Running command 'osm project-create quotas_01_proj_1 --quotas vnfds=1,nsds=2,ns_instances=3 2>&1'. ${rc} = 0 ${stdout} = e35fa879-9d37-4683-b89b-2cc9b99ffbe9 ${stdout} Logs the given message with the given level. e35fa879-9d37-4683-b89b-2cc9b99ffbe9 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${project_1_vnfds} ${PROJECT_1_NAME} vnfds Get from OSM a specific quota parameter from the project passed as argument. ${project_name} Verifies that the given item is not empty. Length is 16 ${quotas_name} Verifies that the given item is not empty. Length is 5 ${rc} ${stdout} osm project-show ${project_name} | grep '${quotas_name}' | awk -F ',|: ' '{print $2}' | awk '{print $1}' Runs the given command in the system and returns the RC and output. Running command 'osm project-show quotas_01_proj_1 | grep 'vnfds' | awk -F ',|: ' '{print $2}' | awk '{print $1}' 2>&1'. ${rc} = 0 ${stdout} = 1 ${stdout} Logs the given message with the given level. 1 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${project_1_vnfds} = 1 1 ${project_1_vnfds} Fails if objects are unequal after converting them to integers. ${project_1_nsds} ${PROJECT_1_NAME} nsds Get from OSM a specific quota parameter from the project passed as argument. ${project_name} Verifies that the given item is not empty. Length is 16 ${quotas_name} Verifies that the given item is not empty. Length is 4 ${rc} ${stdout} osm project-show ${project_name} | grep '${quotas_name}' | awk -F ',|: ' '{print $2}' | awk '{print $1}' Runs the given command in the system and returns the RC and output. Running command 'osm project-show quotas_01_proj_1 | grep 'nsds' | awk -F ',|: ' '{print $2}' | awk '{print $1}' 2>&1'. ${rc} = 0 ${stdout} = 2 ${stdout} Logs the given message with the given level. 2 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${project_1_nsds} = 2 2 ${project_1_nsds} Fails if objects are unequal after converting them to integers. ${project_1_ns_instances} ${PROJECT_1_NAME} ns_instances Get from OSM a specific quota parameter from the project passed as argument. ${project_name} Verifies that the given item is not empty. Length is 16 ${quotas_name} Verifies that the given item is not empty. Length is 12 ${rc} ${stdout} osm project-show ${project_name} | grep '${quotas_name}' | awk -F ',|: ' '{print $2}' | awk '{print $1}' Runs the given command in the system and returns the RC and output. Running command 'osm project-show quotas_01_proj_1 | grep 'ns_instances' | awk -F ',|: ' '{print $2}' | awk '{print $1}' 2>&1'. ${rc} = 0 ${stdout} = 3 ${stdout} Logs the given message with the given level. 3 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${project_1_ns_instances} = 3 3 ${project_1_ns_instances} Fails if objects are unequal after converting them to integers. Create a first project with quotas, then get the project quotas and check that they are correct. cluster_main daily quotas_01 regression ${PROJECT_2_NAME} ${PROJECT_2_QUOTAS} Create a project in OSM with the name and quotas passed as arguments, and return the project id. ${project_name} Verifies that the given item is not empty. Length is 16 ${project_quotas} Verifies that the given item is not empty. Length is 29 ${rc} ${stdout} osm project-create ${project_name} --quotas ${project_quotas} Runs the given command in the system and returns the RC and output. Running command 'osm project-create quotas_01_proj_2 --quotas vnfds=1,nsds=1,ns_instances=1 2>&1'. ${rc} = 0 ${stdout} = 8b494f42-3c7e-473d-aba1-b7ebc152eae6 ${stdout} Logs the given message with the given level. 8b494f42-3c7e-473d-aba1-b7ebc152eae6 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${project_2_vnfds} ${PROJECT_2_NAME} vnfds Get from OSM a specific quota parameter from the project passed as argument. ${project_name} Verifies that the given item is not empty. Length is 16 ${quotas_name} Verifies that the given item is not empty. Length is 5 ${rc} ${stdout} osm project-show ${project_name} | grep '${quotas_name}' | awk -F ',|: ' '{print $2}' | awk '{print $1}' Runs the given command in the system and returns the RC and output. Running command 'osm project-show quotas_01_proj_2 | grep 'vnfds' | awk -F ',|: ' '{print $2}' | awk '{print $1}' 2>&1'. ${rc} = 0 ${stdout} = 1 ${stdout} Logs the given message with the given level. 1 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${project_2_vnfds} = 1 1 ${project_2_vnfds} Fails if objects are unequal after converting them to integers. ${project_2_nsds} ${PROJECT_2_NAME} nsds Get from OSM a specific quota parameter from the project passed as argument. ${project_name} Verifies that the given item is not empty. Length is 16 ${quotas_name} Verifies that the given item is not empty. Length is 4 ${rc} ${stdout} osm project-show ${project_name} | grep '${quotas_name}' | awk -F ',|: ' '{print $2}' | awk '{print $1}' Runs the given command in the system and returns the RC and output. Running command 'osm project-show quotas_01_proj_2 | grep 'nsds' | awk -F ',|: ' '{print $2}' | awk '{print $1}' 2>&1'. ${rc} = 0 ${stdout} = 1 ${stdout} Logs the given message with the given level. 1 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${project_2_nsds} = 1 1 ${project_2_nsds} Fails if objects are unequal after converting them to integers. ${project_2_ns_instances} ${PROJECT_2_NAME} ns_instances Get from OSM a specific quota parameter from the project passed as argument. ${project_name} Verifies that the given item is not empty. Length is 16 ${quotas_name} Verifies that the given item is not empty. Length is 12 ${rc} ${stdout} osm project-show ${project_name} | grep '${quotas_name}' | awk -F ',|: ' '{print $2}' | awk '{print $1}' Runs the given command in the system and returns the RC and output. Running command 'osm project-show quotas_01_proj_2 | grep 'ns_instances' | awk -F ',|: ' '{print $2}' | awk '{print $1}' 2>&1'. ${rc} = 0 ${stdout} = 1 ${stdout} Logs the given message with the given level. 1 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${project_2_ns_instances} = 1 1 ${project_2_ns_instances} Fails if objects are unequal after converting them to integers. Create a second project with quotas, then get the project quotas and check that they are correct. cluster_main daily quotas_01 regression ${rc} ${stdout} osm user-create ${USERNAME} --password ${USER_PASSWORD} --project-role-mappings ${PROJECT_1_NAME},project_admin --project-role-mappings ${PROJECT_2_NAME},project_admin Runs the given command in the system and returns the RC and output. Running command 'osm user-create quotas_01_user --password Quotas_01_pass --project-role-mappings quotas_01_proj_1,project_admin --project-role-mappings quotas_01_proj_2,project_admin 2>&1'. ${rc} = 0 ${stdout} = 4b92fc1e-f504-4e1d-b006-caf213eccda3 ${rc},${stdout} Logs the given message with the given level. 0,4b92fc1e-f504-4e1d-b006-caf213eccda3 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${USERNAME} ${PROJECT_1_NAME} Check in OSM if a user exists in a project passed as argument. ${user_name} Verifies that the given item is not empty. Length is 14 ${project_name} Verifies that the given item is not empty. Length is 16 ${rc} ${stdout} osm user-show ${user_name} | grep "project_name" | grep "${project_name}" Runs the given command in the system and returns the RC and output. Running command 'osm user-show quotas_01_user | grep "project_name" | grep "quotas_01_proj_1" 2>&1'. ${rc} = 0 ${stdout} = | | "project_name": "quotas_01_proj_1", | ${stdout} Logs the given message with the given level. | | "project_name": "quotas_01_proj_1", | ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${USERNAME} ${PROJECT_2_NAME} Check in OSM if a user exists in a project passed as argument. ${user_name} Verifies that the given item is not empty. Length is 14 ${project_name} Verifies that the given item is not empty. Length is 16 ${rc} ${stdout} osm user-show ${user_name} | grep "project_name" | grep "${project_name}" Runs the given command in the system and returns the RC and output. Running command 'osm user-show quotas_01_user | grep "project_name" | grep "quotas_01_proj_2" 2>&1'. ${rc} = 0 ${stdout} = | | "project_name": "quotas_01_proj_2", | ${stdout} Logs the given message with the given level. | | "project_name": "quotas_01_proj_2", | ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${USERNAME} ${USER_PASSWORD} ${USER_NEW_PASSWORD} Update the password of a user in OSM. ${user_name} Verifies that the given item is not empty. Length is 14 ${user_password} Verifies that the given item is not empty. Length is 14 ${user_new_password} Verifies that the given item is not empty. Length is 18 ${rc} ${stdout} osm user-update ${user_name} --current-password ${user_password} --new-password ${user_new_password} Runs the given command in the system and returns the RC and output. Running command 'osm user-update quotas_01_user --current-password Quotas_01_pass --new-password Quotas_01_new_pass 2>&1'. ${rc} = 0 ${stdout} = Updated ${stdout} Logs the given message with the given level. Updated ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> Create a user with role project_admin in both projects. cluster_main daily quotas_01 regression ${PROJECT_1_NAME} ${PROJECT_3_NAME} Update in OSM the name of a project with the new name passed as argument. ${project_name} Verifies that the given item is not empty. Length is 16 ${new_name} Verifies that the given item is not empty. Length is 16 ${rc} ${stdout} osm project-update ${project_name} --name ${new_name} Runs the given command in the system and returns the RC and output. Running command 'osm project-update quotas_01_proj_1 --name quotas_01_proj_3 2>&1'. ${rc} = 0 ${stdout} = Updated ${stdout} Logs the given message with the given level. Updated ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${project_3_vnfds} ${PROJECT_3_NAME} vnfds Get from OSM a specific quota parameter from the project passed as argument. ${project_name} Verifies that the given item is not empty. Length is 16 ${quotas_name} Verifies that the given item is not empty. Length is 5 ${rc} ${stdout} osm project-show ${project_name} | grep '${quotas_name}' | awk -F ',|: ' '{print $2}' | awk '{print $1}' Runs the given command in the system and returns the RC and output. Running command 'osm project-show quotas_01_proj_3 | grep 'vnfds' | awk -F ',|: ' '{print $2}' | awk '{print $1}' 2>&1'. ${rc} = 0 ${stdout} = 1 ${stdout} Logs the given message with the given level. 1 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${project_3_vnfds} = 1 1 ${project_3_vnfds} Fails if objects are unequal after converting them to integers. ${project_3_nsds} ${PROJECT_3_NAME} nsds Get from OSM a specific quota parameter from the project passed as argument. ${project_name} Verifies that the given item is not empty. Length is 16 ${quotas_name} Verifies that the given item is not empty. Length is 4 ${rc} ${stdout} osm project-show ${project_name} | grep '${quotas_name}' | awk -F ',|: ' '{print $2}' | awk '{print $1}' Runs the given command in the system and returns the RC and output. Running command 'osm project-show quotas_01_proj_3 | grep 'nsds' | awk -F ',|: ' '{print $2}' | awk '{print $1}' 2>&1'. ${rc} = 0 ${stdout} = 2 ${stdout} Logs the given message with the given level. 2 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${project_3_nsds} = 2 2 ${project_3_nsds} Fails if objects are unequal after converting them to integers. ${project_3_ns_instances} ${PROJECT_3_NAME} ns_instances Get from OSM a specific quota parameter from the project passed as argument. ${project_name} Verifies that the given item is not empty. Length is 16 ${quotas_name} Verifies that the given item is not empty. Length is 12 ${rc} ${stdout} osm project-show ${project_name} | grep '${quotas_name}' | awk -F ',|: ' '{print $2}' | awk '{print $1}' Runs the given command in the system and returns the RC and output. Running command 'osm project-show quotas_01_proj_3 | grep 'ns_instances' | awk -F ',|: ' '{print $2}' | awk '{print $1}' 2>&1'. ${rc} = 0 ${stdout} = 3 ${stdout} Logs the given message with the given level. 3 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${project_3_ns_instances} = 3 3 ${project_3_ns_instances} Fails if objects are unequal after converting them to integers. ${USERNAME} ${PROJECT_3_NAME} Check in OSM if a user exists in a project passed as argument. ${user_name} Verifies that the given item is not empty. Length is 14 ${project_name} Verifies that the given item is not empty. Length is 16 ${rc} ${stdout} osm user-show ${user_name} | grep "project_name" | grep "${project_name}" Runs the given command in the system and returns the RC and output. Running command 'osm user-show quotas_01_user | grep "project_name" | grep "quotas_01_proj_3" 2>&1'. ${rc} = 0 ${stdout} = | | "project_name": "quotas_01_proj_3", | ${stdout} Logs the given message with the given level. | | "project_name": "quotas_01_proj_3", | ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> Rename first project. From now on, the project will be considered for the tests a third project. cluster_main daily quotas_01 regression ${PROJECT_3_NAME} '%{PACKAGES_FOLDER}/${VNFD_PKG}' ${USERNAME} ${USER_NEW_PASSWORD} override='id=v1;product-name=v1' Onboards a VNF package into an OSM project. Extra parameters (such as 'override') are given to this function in name=value format. These parameters will be appended to the 'osm vnfpkg-create' command with the next syntax: --param_name=param_value ${project_name} Verifies that the given item is not empty. Length is 16 ${vnfd_pkg} Verifies that the given item is not empty. Length is 48 ${project_user} Verifies that the given item is not empty. Length is 14 ${user_password} Verifies that the given item is not empty. Length is 18 ${osm_pkg_create_command} osm --project ${project_name} --user ${project_user} --password ${user_password} vnfpkg-create ${vnfd_pkg} Returns the given values which can then be assigned to a variables. ${osm_pkg_create_command} = osm --project quotas_01_proj_3 --user quotas_01_user --password Quotas_01_new_pass vnfpkg-create '/robot-systest/osm-packages/hackfest_basic_vnf' ${param} @{optional_parameters} override='id=v1;product-name=v1' ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in optional parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = override='id=v1;product-name=v1' ${param_name} = override='id=v1;product-name ${param_value} = v1' ${match},${param_name},${param_value} Logs the given message with the given level. override='id=v1;product-name=v1',override='id=v1;product-name,v1' ${osm_pkg_create_command} ${osm_pkg_create_command} --${param_name}=${param_value} Catenates the given items together and returns the resulted string. ${osm_pkg_create_command} = osm --project quotas_01_proj_3 --user quotas_01_user --password Quotas_01_new_pass vnfpkg-create '/robot-systest/osm-packages/hackfest_basic_vnf' --override='id=v1;product-name=v1' ${rc} ${stdout} ${osm_pkg_create_command} Runs the given command in the system and returns the RC and output. Running command 'osm --project quotas_01_proj_3 --user quotas_01_user --password Quotas_01_new_pass vnfpkg-create '/robot-systest/osm-packages/hackfest_basic_vnf' --override='id=v1;product-name=v1' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/hackfest_basic_vnf Validation OK List of charms in the descriptor: set() Adding File: hackfest_basic_vnf Package created: /robot-systest/osm-packages/hac... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/hackfest_basic_vnf Validation OK List of charms in the descriptor: set() Adding File: hackfest_basic_vnf Package created: /robot-systest/osm-packages/hackfest_basic_vnf.tar.gz Uploading package /robot-systest/osm-packages/hackfest_basic_vnf.tar.gz 46481e0b-a6e5-40e8-8dcf-937e42a5002b ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} * Create VNFD In Project ${PROJECT_3_NAME} '%{PACKAGES_FOLDER}/${VNFD_PKG}' ${USERNAME} ${USER_NEW_PASSWORD} override='id=v2;product-name=v2' Runs the keyword and checks that the expected error occurred. ${PROJECT_3_NAME} '%{PACKAGES_FOLDER}/${VNFD_PKG}' ${USERNAME} ${USER_NEW_PASSWORD} override='id=v2;product-name=v2' Onboards a VNF package into an OSM project. Extra parameters (such as 'override') are given to this function in name=value format. These parameters will be appended to the 'osm vnfpkg-create' command with the next syntax: --param_name=param_value ${project_name} Verifies that the given item is not empty. Length is 16 ${vnfd_pkg} Verifies that the given item is not empty. Length is 48 ${project_user} Verifies that the given item is not empty. Length is 14 ${user_password} Verifies that the given item is not empty. Length is 18 ${osm_pkg_create_command} osm --project ${project_name} --user ${project_user} --password ${user_password} vnfpkg-create ${vnfd_pkg} Returns the given values which can then be assigned to a variables. ${osm_pkg_create_command} = osm --project quotas_01_proj_3 --user quotas_01_user --password Quotas_01_new_pass vnfpkg-create '/robot-systest/osm-packages/hackfest_basic_vnf' ${param} @{optional_parameters} override='id=v2;product-name=v2' ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in optional parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = override='id=v2;product-name=v2' ${param_name} = override='id=v2;product-name ${param_value} = v2' ${match},${param_name},${param_value} Logs the given message with the given level. override='id=v2;product-name=v2',override='id=v2;product-name,v2' ${osm_pkg_create_command} ${osm_pkg_create_command} --${param_name}=${param_value} Catenates the given items together and returns the resulted string. ${osm_pkg_create_command} = osm --project quotas_01_proj_3 --user quotas_01_user --password Quotas_01_new_pass vnfpkg-create '/robot-systest/osm-packages/hackfest_basic_vnf' --override='id=v2;product-name=v2' ${rc} ${stdout} ${osm_pkg_create_command} Runs the given command in the system and returns the RC and output. Running command 'osm --project quotas_01_proj_3 --user quotas_01_user --password Quotas_01_new_pass vnfpkg-create '/robot-systest/osm-packages/hackfest_basic_vnf' --override='id=v2;product-name=v2' 2>&1'. ${rc} = 1 ${stdout} = Validating package /robot-systest/osm-packages/hackfest_basic_vnf Validation OK List of charms in the descriptor: set() Adding File: hackfest_basic_vnf Package created: /robot-systest/osm-packages/hac... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/hackfest_basic_vnf Validation OK List of charms in the descriptor: set() Adding File: hackfest_basic_vnf Package created: /robot-systest/osm-packages/hackfest_basic_vnf.tar.gz Uploading package /robot-systest/osm-packages/hackfest_basic_vnf.tar.gz ERROR: Error 422: { "code": "UNPROCESSABLE_ENTITY", "status": 422, "detail": "quota (vnfds=1) exceeded for project quotas_01_proj_3 (e35fa879-9d37-4683-b89b-2cc9b99ffbe9)" } ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${stdout} Upload VNF packages in the third project. cluster_main daily quotas_01 regression ${PROJECT_3_NAME} ${PROJECT_3_QUOTAS} Update in OSM the quotas of a project with the new quotas passed as arguments. ${project_name} Verifies that the given item is not empty. Length is 16 ${project_quotas} Verifies that the given item is not empty. Length is 27 ${rc} ${stdout} osm project-update ${project_name} --quotas ${project_quotas} Runs the given command in the system and returns the RC and output. Running command 'osm project-update quotas_01_proj_3 --quotas vnfds=5,nsds=,ns_instances= 2>&1'. ${rc} = 0 ${stdout} = Updated ${stdout} Logs the given message with the given level. Updated ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${project_3_vnfds} ${PROJECT_3_NAME} vnfds Get from OSM a specific quota parameter from the project passed as argument. ${project_name} Verifies that the given item is not empty. Length is 16 ${quotas_name} Verifies that the given item is not empty. Length is 5 ${rc} ${stdout} osm project-show ${project_name} | grep '${quotas_name}' | awk -F ',|: ' '{print $2}' | awk '{print $1}' Runs the given command in the system and returns the RC and output. Running command 'osm project-show quotas_01_proj_3 | grep 'vnfds' | awk -F ',|: ' '{print $2}' | awk '{print $1}' 2>&1'. ${rc} = 0 ${stdout} = 5 ${stdout} Logs the given message with the given level. 5 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${project_3_vnfds} = 5 5 ${project_3_vnfds} Fails if objects are unequal after converting them to integers. Update the quotas of the third project. cluster_main daily quotas_01 regression ${PROJECT_3_NAME} '%{PACKAGES_FOLDER}/${VNFD_PKG}' ${USERNAME} ${USER_NEW_PASSWORD} override='id=v2;product-name=v2' Onboards a VNF package into an OSM project. Extra parameters (such as 'override') are given to this function in name=value format. These parameters will be appended to the 'osm vnfpkg-create' command with the next syntax: --param_name=param_value ${project_name} Verifies that the given item is not empty. Length is 16 ${vnfd_pkg} Verifies that the given item is not empty. Length is 48 ${project_user} Verifies that the given item is not empty. Length is 14 ${user_password} Verifies that the given item is not empty. Length is 18 ${osm_pkg_create_command} osm --project ${project_name} --user ${project_user} --password ${user_password} vnfpkg-create ${vnfd_pkg} Returns the given values which can then be assigned to a variables. ${osm_pkg_create_command} = osm --project quotas_01_proj_3 --user quotas_01_user --password Quotas_01_new_pass vnfpkg-create '/robot-systest/osm-packages/hackfest_basic_vnf' ${param} @{optional_parameters} override='id=v2;product-name=v2' ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in optional parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = override='id=v2;product-name=v2' ${param_name} = override='id=v2;product-name ${param_value} = v2' ${match},${param_name},${param_value} Logs the given message with the given level. override='id=v2;product-name=v2',override='id=v2;product-name,v2' ${osm_pkg_create_command} ${osm_pkg_create_command} --${param_name}=${param_value} Catenates the given items together and returns the resulted string. ${osm_pkg_create_command} = osm --project quotas_01_proj_3 --user quotas_01_user --password Quotas_01_new_pass vnfpkg-create '/robot-systest/osm-packages/hackfest_basic_vnf' --override='id=v2;product-name=v2' ${rc} ${stdout} ${osm_pkg_create_command} Runs the given command in the system and returns the RC and output. Running command 'osm --project quotas_01_proj_3 --user quotas_01_user --password Quotas_01_new_pass vnfpkg-create '/robot-systest/osm-packages/hackfest_basic_vnf' --override='id=v2;product-name=v2' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/hackfest_basic_vnf Validation OK List of charms in the descriptor: set() Adding File: hackfest_basic_vnf Package created: /robot-systest/osm-packages/hac... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/hackfest_basic_vnf Validation OK List of charms in the descriptor: set() Adding File: hackfest_basic_vnf Package created: /robot-systest/osm-packages/hackfest_basic_vnf.tar.gz Uploading package /robot-systest/osm-packages/hackfest_basic_vnf.tar.gz 8ece1d4b-6cf9-4eed-ae57-e1192db337f5 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${PROJECT_3_NAME} '%{PACKAGES_FOLDER}/${VNFD_PKG}' ${USERNAME} ${USER_NEW_PASSWORD} override='id=v3;product-name=v3' Onboards a VNF package into an OSM project. Extra parameters (such as 'override') are given to this function in name=value format. These parameters will be appended to the 'osm vnfpkg-create' command with the next syntax: --param_name=param_value ${project_name} Verifies that the given item is not empty. Length is 16 ${vnfd_pkg} Verifies that the given item is not empty. Length is 48 ${project_user} Verifies that the given item is not empty. Length is 14 ${user_password} Verifies that the given item is not empty. Length is 18 ${osm_pkg_create_command} osm --project ${project_name} --user ${project_user} --password ${user_password} vnfpkg-create ${vnfd_pkg} Returns the given values which can then be assigned to a variables. ${osm_pkg_create_command} = osm --project quotas_01_proj_3 --user quotas_01_user --password Quotas_01_new_pass vnfpkg-create '/robot-systest/osm-packages/hackfest_basic_vnf' ${param} @{optional_parameters} override='id=v3;product-name=v3' ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in optional parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = override='id=v3;product-name=v3' ${param_name} = override='id=v3;product-name ${param_value} = v3' ${match},${param_name},${param_value} Logs the given message with the given level. override='id=v3;product-name=v3',override='id=v3;product-name,v3' ${osm_pkg_create_command} ${osm_pkg_create_command} --${param_name}=${param_value} Catenates the given items together and returns the resulted string. ${osm_pkg_create_command} = osm --project quotas_01_proj_3 --user quotas_01_user --password Quotas_01_new_pass vnfpkg-create '/robot-systest/osm-packages/hackfest_basic_vnf' --override='id=v3;product-name=v3' ${rc} ${stdout} ${osm_pkg_create_command} Runs the given command in the system and returns the RC and output. Running command 'osm --project quotas_01_proj_3 --user quotas_01_user --password Quotas_01_new_pass vnfpkg-create '/robot-systest/osm-packages/hackfest_basic_vnf' --override='id=v3;product-name=v3' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/hackfest_basic_vnf Validation OK List of charms in the descriptor: set() Adding File: hackfest_basic_vnf Package created: /robot-systest/osm-packages/hac... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/hackfest_basic_vnf Validation OK List of charms in the descriptor: set() Adding File: hackfest_basic_vnf Package created: /robot-systest/osm-packages/hackfest_basic_vnf.tar.gz Uploading package /robot-systest/osm-packages/hackfest_basic_vnf.tar.gz 1cb04ab7-f709-46ba-800e-2262826f45e5 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${PROJECT_3_NAME} '%{PACKAGES_FOLDER}/${VNFD_PKG}' ${USERNAME} ${USER_NEW_PASSWORD} override='id=v4;product-name=v4' Onboards a VNF package into an OSM project. Extra parameters (such as 'override') are given to this function in name=value format. These parameters will be appended to the 'osm vnfpkg-create' command with the next syntax: --param_name=param_value ${project_name} Verifies that the given item is not empty. Length is 16 ${vnfd_pkg} Verifies that the given item is not empty. Length is 48 ${project_user} Verifies that the given item is not empty. Length is 14 ${user_password} Verifies that the given item is not empty. Length is 18 ${osm_pkg_create_command} osm --project ${project_name} --user ${project_user} --password ${user_password} vnfpkg-create ${vnfd_pkg} Returns the given values which can then be assigned to a variables. ${osm_pkg_create_command} = osm --project quotas_01_proj_3 --user quotas_01_user --password Quotas_01_new_pass vnfpkg-create '/robot-systest/osm-packages/hackfest_basic_vnf' ${param} @{optional_parameters} override='id=v4;product-name=v4' ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in optional parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = override='id=v4;product-name=v4' ${param_name} = override='id=v4;product-name ${param_value} = v4' ${match},${param_name},${param_value} Logs the given message with the given level. override='id=v4;product-name=v4',override='id=v4;product-name,v4' ${osm_pkg_create_command} ${osm_pkg_create_command} --${param_name}=${param_value} Catenates the given items together and returns the resulted string. ${osm_pkg_create_command} = osm --project quotas_01_proj_3 --user quotas_01_user --password Quotas_01_new_pass vnfpkg-create '/robot-systest/osm-packages/hackfest_basic_vnf' --override='id=v4;product-name=v4' ${rc} ${stdout} ${osm_pkg_create_command} Runs the given command in the system and returns the RC and output. Running command 'osm --project quotas_01_proj_3 --user quotas_01_user --password Quotas_01_new_pass vnfpkg-create '/robot-systest/osm-packages/hackfest_basic_vnf' --override='id=v4;product-name=v4' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/hackfest_basic_vnf Validation OK List of charms in the descriptor: set() Adding File: hackfest_basic_vnf Package created: /robot-systest/osm-packages/hac... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/hackfest_basic_vnf Validation OK List of charms in the descriptor: set() Adding File: hackfest_basic_vnf Package created: /robot-systest/osm-packages/hackfest_basic_vnf.tar.gz Uploading package /robot-systest/osm-packages/hackfest_basic_vnf.tar.gz 8946d7e3-86a7-4b8d-9db4-53aee6970d90 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${PROJECT_3_NAME} '%{PACKAGES_FOLDER}/${VNFD_PKG}' ${USERNAME} ${USER_NEW_PASSWORD} override='id=v5;product-name=v5' Onboards a VNF package into an OSM project. Extra parameters (such as 'override') are given to this function in name=value format. These parameters will be appended to the 'osm vnfpkg-create' command with the next syntax: --param_name=param_value ${project_name} Verifies that the given item is not empty. Length is 16 ${vnfd_pkg} Verifies that the given item is not empty. Length is 48 ${project_user} Verifies that the given item is not empty. Length is 14 ${user_password} Verifies that the given item is not empty. Length is 18 ${osm_pkg_create_command} osm --project ${project_name} --user ${project_user} --password ${user_password} vnfpkg-create ${vnfd_pkg} Returns the given values which can then be assigned to a variables. ${osm_pkg_create_command} = osm --project quotas_01_proj_3 --user quotas_01_user --password Quotas_01_new_pass vnfpkg-create '/robot-systest/osm-packages/hackfest_basic_vnf' ${param} @{optional_parameters} override='id=v5;product-name=v5' ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in optional parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = override='id=v5;product-name=v5' ${param_name} = override='id=v5;product-name ${param_value} = v5' ${match},${param_name},${param_value} Logs the given message with the given level. override='id=v5;product-name=v5',override='id=v5;product-name,v5' ${osm_pkg_create_command} ${osm_pkg_create_command} --${param_name}=${param_value} Catenates the given items together and returns the resulted string. ${osm_pkg_create_command} = osm --project quotas_01_proj_3 --user quotas_01_user --password Quotas_01_new_pass vnfpkg-create '/robot-systest/osm-packages/hackfest_basic_vnf' --override='id=v5;product-name=v5' ${rc} ${stdout} ${osm_pkg_create_command} Runs the given command in the system and returns the RC and output. Running command 'osm --project quotas_01_proj_3 --user quotas_01_user --password Quotas_01_new_pass vnfpkg-create '/robot-systest/osm-packages/hackfest_basic_vnf' --override='id=v5;product-name=v5' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/hackfest_basic_vnf Validation OK List of charms in the descriptor: set() Adding File: hackfest_basic_vnf Package created: /robot-systest/osm-packages/hac... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/hackfest_basic_vnf Validation OK List of charms in the descriptor: set() Adding File: hackfest_basic_vnf Package created: /robot-systest/osm-packages/hackfest_basic_vnf.tar.gz Uploading package /robot-systest/osm-packages/hackfest_basic_vnf.tar.gz af47de86-327d-4f54-a5e1-9df0d18ed862 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} * Create VNFD In Project ${PROJECT_3_NAME} '%{PACKAGES_FOLDER}/${VNFD_PKG}' ${USERNAME} ${USER_NEW_PASSWORD} override='id=v6;product-name=v6' Runs the keyword and checks that the expected error occurred. ${PROJECT_3_NAME} '%{PACKAGES_FOLDER}/${VNFD_PKG}' ${USERNAME} ${USER_NEW_PASSWORD} override='id=v6;product-name=v6' Onboards a VNF package into an OSM project. Extra parameters (such as 'override') are given to this function in name=value format. These parameters will be appended to the 'osm vnfpkg-create' command with the next syntax: --param_name=param_value ${project_name} Verifies that the given item is not empty. Length is 16 ${vnfd_pkg} Verifies that the given item is not empty. Length is 48 ${project_user} Verifies that the given item is not empty. Length is 14 ${user_password} Verifies that the given item is not empty. Length is 18 ${osm_pkg_create_command} osm --project ${project_name} --user ${project_user} --password ${user_password} vnfpkg-create ${vnfd_pkg} Returns the given values which can then be assigned to a variables. ${osm_pkg_create_command} = osm --project quotas_01_proj_3 --user quotas_01_user --password Quotas_01_new_pass vnfpkg-create '/robot-systest/osm-packages/hackfest_basic_vnf' ${param} @{optional_parameters} override='id=v6;product-name=v6' ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in optional parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = override='id=v6;product-name=v6' ${param_name} = override='id=v6;product-name ${param_value} = v6' ${match},${param_name},${param_value} Logs the given message with the given level. override='id=v6;product-name=v6',override='id=v6;product-name,v6' ${osm_pkg_create_command} ${osm_pkg_create_command} --${param_name}=${param_value} Catenates the given items together and returns the resulted string. ${osm_pkg_create_command} = osm --project quotas_01_proj_3 --user quotas_01_user --password Quotas_01_new_pass vnfpkg-create '/robot-systest/osm-packages/hackfest_basic_vnf' --override='id=v6;product-name=v6' ${rc} ${stdout} ${osm_pkg_create_command} Runs the given command in the system and returns the RC and output. Running command 'osm --project quotas_01_proj_3 --user quotas_01_user --password Quotas_01_new_pass vnfpkg-create '/robot-systest/osm-packages/hackfest_basic_vnf' --override='id=v6;product-name=v6' 2>&1'. ${rc} = 1 ${stdout} = Validating package /robot-systest/osm-packages/hackfest_basic_vnf Validation OK List of charms in the descriptor: set() Adding File: hackfest_basic_vnf Package created: /robot-systest/osm-packages/hac... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/hackfest_basic_vnf Validation OK List of charms in the descriptor: set() Adding File: hackfest_basic_vnf Package created: /robot-systest/osm-packages/hackfest_basic_vnf.tar.gz Uploading package /robot-systest/osm-packages/hackfest_basic_vnf.tar.gz ERROR: Error 422: { "code": "UNPROCESSABLE_ENTITY", "status": 422, "detail": "quota (vnfds=5) exceeded for project quotas_01_proj_3 (e35fa879-9d37-4683-b89b-2cc9b99ffbe9)" } ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${stdout} Upload VNF packages in the third project until the quota is reached, so that an error is obtained. cluster_main daily quotas_01 regression ${PROJECT_2_NAME} '%{PACKAGES_FOLDER}/${VNFD_PKG}' ${USERNAME} ${USER_NEW_PASSWORD} override='id=vp2_1;product-name=vp2_1' Onboards a VNF package into an OSM project. Extra parameters (such as 'override') are given to this function in name=value format. These parameters will be appended to the 'osm vnfpkg-create' command with the next syntax: --param_name=param_value ${project_name} Verifies that the given item is not empty. Length is 16 ${vnfd_pkg} Verifies that the given item is not empty. Length is 48 ${project_user} Verifies that the given item is not empty. Length is 14 ${user_password} Verifies that the given item is not empty. Length is 18 ${osm_pkg_create_command} osm --project ${project_name} --user ${project_user} --password ${user_password} vnfpkg-create ${vnfd_pkg} Returns the given values which can then be assigned to a variables. ${osm_pkg_create_command} = osm --project quotas_01_proj_2 --user quotas_01_user --password Quotas_01_new_pass vnfpkg-create '/robot-systest/osm-packages/hackfest_basic_vnf' ${param} @{optional_parameters} override='id=vp2_1;product-name=vp2_1' ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in optional parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = override='id=vp2_1;product-name=vp2_1' ${param_name} = override='id=vp2_1;product-name ${param_value} = vp2_1' ${match},${param_name},${param_value} Logs the given message with the given level. override='id=vp2_1;product-name=vp2_1',override='id=vp2_1;product-name,vp2_1' ${osm_pkg_create_command} ${osm_pkg_create_command} --${param_name}=${param_value} Catenates the given items together and returns the resulted string. ${osm_pkg_create_command} = osm --project quotas_01_proj_2 --user quotas_01_user --password Quotas_01_new_pass vnfpkg-create '/robot-systest/osm-packages/hackfest_basic_vnf' --override='id=vp2_1;product-name=vp2_1' ${rc} ${stdout} ${osm_pkg_create_command} Runs the given command in the system and returns the RC and output. Running command 'osm --project quotas_01_proj_2 --user quotas_01_user --password Quotas_01_new_pass vnfpkg-create '/robot-systest/osm-packages/hackfest_basic_vnf' --override='id=vp2_1;product-name=vp2_1' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/hackfest_basic_vnf Validation OK List of charms in the descriptor: set() Adding File: hackfest_basic_vnf Package created: /robot-systest/osm-packages/hac... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/hackfest_basic_vnf Validation OK List of charms in the descriptor: set() Adding File: hackfest_basic_vnf Package created: /robot-systest/osm-packages/hackfest_basic_vnf.tar.gz Uploading package /robot-systest/osm-packages/hackfest_basic_vnf.tar.gz d77e9868-1dc9-4d6b-9a16-485116683b97 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} * Create VNFD In Project ${PROJECT_2_NAME} '%{PACKAGES_FOLDER}/${VNFD_PKG}' ${USERNAME} ${USER_NEW_PASSWORD} override='id=vp2_2;product-name=vp2_2' Runs the keyword and checks that the expected error occurred. ${PROJECT_2_NAME} '%{PACKAGES_FOLDER}/${VNFD_PKG}' ${USERNAME} ${USER_NEW_PASSWORD} override='id=vp2_2;product-name=vp2_2' Onboards a VNF package into an OSM project. Extra parameters (such as 'override') are given to this function in name=value format. These parameters will be appended to the 'osm vnfpkg-create' command with the next syntax: --param_name=param_value ${project_name} Verifies that the given item is not empty. Length is 16 ${vnfd_pkg} Verifies that the given item is not empty. Length is 48 ${project_user} Verifies that the given item is not empty. Length is 14 ${user_password} Verifies that the given item is not empty. Length is 18 ${osm_pkg_create_command} osm --project ${project_name} --user ${project_user} --password ${user_password} vnfpkg-create ${vnfd_pkg} Returns the given values which can then be assigned to a variables. ${osm_pkg_create_command} = osm --project quotas_01_proj_2 --user quotas_01_user --password Quotas_01_new_pass vnfpkg-create '/robot-systest/osm-packages/hackfest_basic_vnf' ${param} @{optional_parameters} override='id=vp2_2;product-name=vp2_2' ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in optional parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = override='id=vp2_2;product-name=vp2_2' ${param_name} = override='id=vp2_2;product-name ${param_value} = vp2_2' ${match},${param_name},${param_value} Logs the given message with the given level. override='id=vp2_2;product-name=vp2_2',override='id=vp2_2;product-name,vp2_2' ${osm_pkg_create_command} ${osm_pkg_create_command} --${param_name}=${param_value} Catenates the given items together and returns the resulted string. ${osm_pkg_create_command} = osm --project quotas_01_proj_2 --user quotas_01_user --password Quotas_01_new_pass vnfpkg-create '/robot-systest/osm-packages/hackfest_basic_vnf' --override='id=vp2_2;product-name=vp2_2' ${rc} ${stdout} ${osm_pkg_create_command} Runs the given command in the system and returns the RC and output. Running command 'osm --project quotas_01_proj_2 --user quotas_01_user --password Quotas_01_new_pass vnfpkg-create '/robot-systest/osm-packages/hackfest_basic_vnf' --override='id=vp2_2;product-name=vp2_2' 2>&1'. ${rc} = 1 ${stdout} = Validating package /robot-systest/osm-packages/hackfest_basic_vnf Validation OK List of charms in the descriptor: set() Adding File: hackfest_basic_vnf Package created: /robot-systest/osm-packages/hac... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/hackfest_basic_vnf Validation OK List of charms in the descriptor: set() Adding File: hackfest_basic_vnf Package created: /robot-systest/osm-packages/hackfest_basic_vnf.tar.gz Uploading package /robot-systest/osm-packages/hackfest_basic_vnf.tar.gz ERROR: Error 422: { "code": "UNPROCESSABLE_ENTITY", "status": 422, "detail": "quota (vnfds=1) exceeded for project quotas_01_proj_2 (8b494f42-3c7e-473d-aba1-b7ebc152eae6)" } ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${stdout} Upload VNF packages in the second project until the quota is reached, so that an error is obtained. cluster_main daily quotas_01 regression ${rc} ${stdout} osm --project ${PROJECT_3_NAME} --password ${USER_NEW_PASSWORD} --user ${USERNAME} vnfpkg-show vp2_1 Runs the given command in the system and returns the RC and output. Running command 'osm --project quotas_01_proj_3 --password Quotas_01_new_pass --user quotas_01_user vnfpkg-show vp2_1 2>&1'. ${rc} = 1 ${stdout} = ERROR: vnfd vp2_1 not found ${stdout} Logs the given message with the given level. ERROR: vnfd vp2_1 not found ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are equal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${rc} ${stdout} osm --project ${PROJECT_2_NAME} --password ${USER_NEW_PASSWORD} --user ${USERNAME} vnfpkg-show v1 Runs the given command in the system and returns the RC and output. Running command 'osm --project quotas_01_proj_2 --password Quotas_01_new_pass --user quotas_01_user vnfpkg-show v1 2>&1'. ${rc} = 1 ${stdout} = ERROR: vnfd v1 not found ${stdout} Logs the given message with the given level. ERROR: vnfd v1 not found ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are equal after converting them to integers. Argument types are: <class 'int'> <class 'str'> Check that the user can see a VNF package in both projects. cluster_main daily quotas_01 regression ${PROJECT_2_NAME} vp2_1 ${USERNAME} ${USER_NEW_PASSWORD} Deletes a VNF package from an OSM project. ${project_name} Verifies that the given item is not empty. Length is 16 ${vnfd_pkg} Verifies that the given item is not empty. Length is 5 ${project_user} Verifies that the given item is not empty. Length is 14 ${user_password} Verifies that the given item is not empty. Length is 18 ${rc} ${stdout} osm --project ${project_name} --user ${project_user} --password ${user_password} vnfpkg-delete ${vnfd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm --project quotas_01_proj_2 --user quotas_01_user --password Quotas_01_new_pass vnfpkg-delete vp2_1 2>&1'. ${rc} = 0 ${stdout} = Deleted ${stdout} Logs the given message with the given level. Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> Delete VNF packages from second project. cleanup cluster_main daily quotas_01 regression ${PROJECT_3_NAME} v1 ${USERNAME} ${USER_NEW_PASSWORD} Deletes a VNF package from an OSM project. ${project_name} Verifies that the given item is not empty. Length is 16 ${vnfd_pkg} Verifies that the given item is not empty. Length is 2 ${project_user} Verifies that the given item is not empty. Length is 14 ${user_password} Verifies that the given item is not empty. Length is 18 ${rc} ${stdout} osm --project ${project_name} --user ${project_user} --password ${user_password} vnfpkg-delete ${vnfd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm --project quotas_01_proj_3 --user quotas_01_user --password Quotas_01_new_pass vnfpkg-delete v1 2>&1'. ${rc} = 0 ${stdout} = Deleted ${stdout} Logs the given message with the given level. Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${PROJECT_3_NAME} v2 ${USERNAME} ${USER_NEW_PASSWORD} Deletes a VNF package from an OSM project. ${project_name} Verifies that the given item is not empty. Length is 16 ${vnfd_pkg} Verifies that the given item is not empty. Length is 2 ${project_user} Verifies that the given item is not empty. Length is 14 ${user_password} Verifies that the given item is not empty. Length is 18 ${rc} ${stdout} osm --project ${project_name} --user ${project_user} --password ${user_password} vnfpkg-delete ${vnfd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm --project quotas_01_proj_3 --user quotas_01_user --password Quotas_01_new_pass vnfpkg-delete v2 2>&1'. ${rc} = 0 ${stdout} = Deleted ${stdout} Logs the given message with the given level. Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${PROJECT_3_NAME} v3 ${USERNAME} ${USER_NEW_PASSWORD} Deletes a VNF package from an OSM project. ${project_name} Verifies that the given item is not empty. Length is 16 ${vnfd_pkg} Verifies that the given item is not empty. Length is 2 ${project_user} Verifies that the given item is not empty. Length is 14 ${user_password} Verifies that the given item is not empty. Length is 18 ${rc} ${stdout} osm --project ${project_name} --user ${project_user} --password ${user_password} vnfpkg-delete ${vnfd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm --project quotas_01_proj_3 --user quotas_01_user --password Quotas_01_new_pass vnfpkg-delete v3 2>&1'. ${rc} = 0 ${stdout} = Deleted ${stdout} Logs the given message with the given level. Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${PROJECT_3_NAME} v4 ${USERNAME} ${USER_NEW_PASSWORD} Deletes a VNF package from an OSM project. ${project_name} Verifies that the given item is not empty. Length is 16 ${vnfd_pkg} Verifies that the given item is not empty. Length is 2 ${project_user} Verifies that the given item is not empty. Length is 14 ${user_password} Verifies that the given item is not empty. Length is 18 ${rc} ${stdout} osm --project ${project_name} --user ${project_user} --password ${user_password} vnfpkg-delete ${vnfd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm --project quotas_01_proj_3 --user quotas_01_user --password Quotas_01_new_pass vnfpkg-delete v4 2>&1'. ${rc} = 0 ${stdout} = Deleted ${stdout} Logs the given message with the given level. Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${PROJECT_3_NAME} v5 ${USERNAME} ${USER_NEW_PASSWORD} Deletes a VNF package from an OSM project. ${project_name} Verifies that the given item is not empty. Length is 16 ${vnfd_pkg} Verifies that the given item is not empty. Length is 2 ${project_user} Verifies that the given item is not empty. Length is 14 ${user_password} Verifies that the given item is not empty. Length is 18 ${rc} ${stdout} osm --project ${project_name} --user ${project_user} --password ${user_password} vnfpkg-delete ${vnfd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm --project quotas_01_proj_3 --user quotas_01_user --password Quotas_01_new_pass vnfpkg-delete v5 2>&1'. ${rc} = 0 ${stdout} = Deleted ${stdout} Logs the given message with the given level. Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> Delete VNF packages from third project. cleanup cluster_main daily quotas_01 regression * Delete Project ${PROJECT_2_NAME} Runs the keyword and checks that the expected error occurred. ${PROJECT_2_NAME} Delete from OSM the project passed as argument. ${rc} ${stdout} osm project-delete ${project_name} Runs the given command in the system and returns the RC and output. Running command 'osm project-delete quotas_01_proj_2 2>&1'. ${rc} = 1 ${stdout} = ERROR: Error 409: { "code": "CONFLICT", "status": 409, "detail": "Project 'quotas_01_proj_2' (8b494f42-3c7e-473d-aba1-b7ebc152eae6) is being used by user 'quotas_01_user'" } ${stdout} Logs the given message with the given level. ERROR: Error 409: { "code": "CONFLICT", "status": 409, "detail": "Project 'quotas_01_proj_2' (8b494f42-3c7e-473d-aba1-b7ebc152eae6) is being used by user 'quotas_01_user'" } ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${USERNAME} ${PROJECT_2_NAME} Remove a specific user from a specific project in OSM. ${user_name} Verifies that the given item is not empty. Length is 14 ${project_name} Verifies that the given item is not empty. Length is 16 ${rc} ${stdout} osm user-update ${user_name} --remove-project ${project_name} Runs the given command in the system and returns the RC and output. Running command 'osm user-update quotas_01_user --remove-project quotas_01_proj_2 2>&1'. ${rc} = 0 ${stdout} = Updated ${stdout} Logs the given message with the given level. Updated ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${PROJECT_2_NAME} Delete from OSM the project passed as argument. ${rc} ${stdout} osm project-delete ${project_name} Runs the given command in the system and returns the RC and output. Running command 'osm project-delete quotas_01_proj_2 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${stdout} Logs the given message with the given level. Deletion in progress ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> Delete user from second project, then delete the second project. cleanup cluster_main daily quotas_01 regression ${rc} osm user-delete ${USERNAME} Runs the given command in the system and returns the return code. Running command 'osm user-delete quotas_01_user 2>&1'. ${rc} = 0 ${rc} Logs the given message with the given level. 0 Delete user. cleanup cluster_main daily quotas_01 regression ${PROJECT_3_NAME} Delete from OSM the project passed as argument. ${rc} ${stdout} osm project-delete ${project_name} Runs the given command in the system and returns the RC and output. Running command 'osm project-delete quotas_01_proj_3 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${stdout} Logs the given message with the given level. Deletion in progress ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> Delete third project. cleanup cluster_main daily quotas_01 regression Suite Cleanup Runs the given keyword with the given arguments and ignores possible error. Test Suite Cleanup: Deleting VNF packages, projects and users. Run Keyword And Ignore Error Delete VNFD In Project ${PROJECT_2_NAME} vp2_1 ${USERNAME} ${USER_NEW_PASSWORD} Runs the given keyword with the given arguments, if one or more tests failed. Run Keyword And Ignore Error Delete VNFD In Project ${PROJECT_3_NAME} v1 ${USERNAME} ${USER_NEW_PASSWORD} Runs the given keyword with the given arguments, if one or more tests failed. Run Keyword And Ignore Error Delete VNFD In Project ${PROJECT_3_NAME} v2 ${USERNAME} ${USER_NEW_PASSWORD} Runs the given keyword with the given arguments, if one or more tests failed. Run Keyword And Ignore Error Delete VNFD In Project ${PROJECT_3_NAME} v3 ${USERNAME} ${USER_NEW_PASSWORD} Runs the given keyword with the given arguments, if one or more tests failed. Run Keyword And Ignore Error Delete VNFD In Project ${PROJECT_3_NAME} v4 ${USERNAME} ${USER_NEW_PASSWORD} Runs the given keyword with the given arguments, if one or more tests failed. Run Keyword And Ignore Error Delete VNFD In Project ${PROJECT_3_NAME} v5 ${USERNAME} ${USER_NEW_PASSWORD} Runs the given keyword with the given arguments, if one or more tests failed. Run Keyword And Ignore Error Delete Project ${PROJECT_1_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete Project ${PROJECT_2_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Run Keyword And Ignore Error Delete Project ${PROJECT_3_NAME} Runs the given keyword with the given arguments, if one or more tests failed. osm user-delete ${USERNAME} Runs the given command in the system and returns the return code. Running command 'osm user-delete quotas_01_user 2>&1'. [QUOTAS-01] Quota enforcement. Suite Preparation Runs the given keyword with the given arguments and ignores possible error. Test Suite Preparation: Setting Prometheus Testsuite Variables Set Testsuite Prometheus Variables to be used in subsequent test cases ${local_prometheus_host} OSM_HOSTNAME Returns the value of an environment variable with the given name. ${PROMETHEUS_HOST} ${local_prometheus_host} Makes a variable available everywhere within the scope of the current suite. ${PROMETHEUS_HOST} 9091 Makes a variable available everywhere within the scope of the current suite. Invalid IF condition: Evaluating expression '172.21.249.226 == 'UNKNOWN'' failed: SyntaxError: invalid syntax (<string>, line 1) Variables in the original expression '${PROMETHEUS_HOST} == 'UNKNOWN'' were resolved before the expression was evaluated. Try using '$PROMETHEUS_HOST == 'UNKNOWN'' syntax to avoid that. See Evaluating Expressions appendix in Robot Framework User Guide for more details. ${PROMETHEUS_PORT} Logs the given message with the given level. ${PROMETHEUS_HOST} Logs the given message with the given level. ${PROMETHEUS_USER} Logs the given message with the given level. ${PROMETHEUS_PASSWORD} Logs the given message with the given level. '%{PACKAGES_FOLDER}/${VNFD_PKG}' Onboards ("creates") a NF Package into OSM. - Parameters: - vnfd_pkg: Name (and location) of the NF Package - overrides (optional): String with options to override the EPA and/or interface properties of the Package. This is very useful to allow to deploy e.g. non-EPA packages in EPA VIMs (or vice-versa). Valid strings are the same as in the command. E.g.: - `--override-epa`: adds EPA attributes to all VDUs. - `--override-nonepa`: removes all EPA attributes from all VDUs. - `--override-paravirt`: converts all interfaces to `PARAVIRT`. This one can be combined with the others above (e.g. '--override-nonepa --override-paravirt'). - Relevant environment variables: - OVERRIDES: If the environment variable "OVERRIDES" exists, it prevails over the value in the argument. This is often more convenient to enforce the same behaviour for every test run in a given VIM. ${overrides} OVERRIDES default=${overrides} Returns the value of an environment variable with the given name. ${overrides} = ${rc} ${stdout} osm vnfpkg-create ${overrides} ${vnfd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-create '/robot-systest/osm-packages/hackfest_basic_metrics_vnf' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/hackfest_basic_metrics_vnf Validation OK List of charms in the descriptor: set() Adding File: hackfest_basic_metrics_vnf Package created: /robot-systest/... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/hackfest_basic_metrics_vnf Validation OK List of charms in the descriptor: set() Adding File: hackfest_basic_metrics_vnf Package created: /robot-systest/osm-packages/hackfest_basic_metrics_vnf.tar.gz Uploading package /robot-systest/osm-packages/hackfest_basic_metrics_vnf.tar.gz be6477e2-2bf9-4884-812d-d5cd62b1db08 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 7 lines ${lines} = 7 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 6 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = be6477e2-2bf9-4884-812d-d5cd62b1db08 ${id} Upload VNF package for the testsuite. cluster_sa daily regression sa_01 '%{PACKAGES_FOLDER}/${NSD_PKG}' Upload a NS package to OSM and return the id. ${rc} ${stdout} osm nspkg-create ${nsd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-create '/robot-systest/osm-packages/hackfest_basic_metrics_ns' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/hackfest_basic_metrics_ns Validation OK List of charms in the descriptor: set() Adding File: hackfest_basic_metrics_ns Package created: /robot-systest/os... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/hackfest_basic_metrics_ns Validation OK List of charms in the descriptor: set() Adding File: hackfest_basic_metrics_ns Package created: /robot-systest/osm-packages/hackfest_basic_metrics_ns.tar.gz 34c6d2e5-f489-490d-9d69-3aa7eac8201d ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 6 lines ${lines} = 6 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 5 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = 34c6d2e5-f489-490d-9d69-3aa7eac8201d ${id} Upload NS package for the testsuite. cluster_sa daily regression sa_01 ${id} ${NSD_NAME} %{VIM_TARGET} ${NS_NAME} ${NS_CONFIG} ${PUBLICKEY} Launch the instantation of a NS and verify in a loop that the NS instance is successfully created in a given time, and return the NS instance id. ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_launch_max_wait_time} = 300.0 ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_launch_max_wait_time} = 300.0 ${ns_launch_max_wait_time} Logs the given message with the given level. 300.0 ${config_attr} '${ns_config}'!='${EMPTY}' --config '${ns_config}' ${EMPTY} Sets variable based on the given condition. ${config_attr} = --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext} ] }' ${sshkeys_attr} '${publickey}'!='${EMPTY}' --ssh_keys ${publickey} ${EMPTY} Sets variable based on the given condition. ${sshkeys_attr} = --ssh_keys /root/.ssh/id_rsa.pub ${config_file_attr} '${config_file}'!='${EMPTY}' --config_file '${config_file}' ${EMPTY} Sets variable based on the given condition. ${config_file_attr} = ${ns_id} ${ns_name} ${nsd} ${vim_name} ${config_attr} ${sshkeys_attr} ${config_file_attr} Launch the instantation of a NS, and return the NS instance id. ${rc} ${stdout} osm ns-create --ns_name ${ns_name} --nsd_name ${nsd} --vim_account ${vim_name} ${ns_extra_args} Runs the given command in the system and returns the RC and output. Running command 'osm ns-create --ns_name sa_01-vnf_with_vim_metrics_test --nsd_name hackfest_basic-ns-metrics --vim_account osm --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext} ] }' --ssh_keys /root/.ssh/id_rsa.pub 2>&1'. ${rc} = 0 ${stdout} = 9989e35c-e0a4-4ce8-88ac-014dcda07241 ${stdout} Logs the given message with the given level. 9989e35c-e0a4-4ce8-88ac-014dcda07241 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 9989e35c-e0a4-4ce8-88ac-014dcda07241 ${ns_id} Logs the given message with the given level. 9989e35c-e0a4-4ce8-88ac-014dcda07241 ${ns_launch_max_wait_time} ${NS_LAUNCH_POL_TIME} Check For NS Instance To Configured ${ns_name} Runs the specified keyword and retries if it fails. ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------+--------+------------------------+-------------+-------------------------+ | a7d5afea-2afa-4cf2-abf3-36d730d49360 | basic_29-vnf-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 6dbafa5a-889f-4f4b-9da5-3ea24039e6c1 | basic_29-vnf-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="sa_01-vnf_with_vim_metrics_test" 2>&1'. ${rc} = 0 ${stdout} = +---------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name ... ${rc},${stdout} Logs the given message with the given level. 0,+---------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +---------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | sa_01-vnf_with_vim_metrics_test | 9989e35c-e0a4-4ce8-88ac-014dcda07241 | 2024-02-19T04:41:19 | BUILDING | INSTANTIATING (34e4a667-b75c-439b-929e-3e3a40ec0a19) | N/A | +---------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+---------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +---------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | sa_01-vnf_with_vim_metrics_test | 9989e35c-e0a4-4ce8-88ac-014dcda07241 | 2024-02-19T04:41:19 | BUILDING | INSTANTIATING (34e4a667-b75c-439b-929e-3e3a40ec0a19) | N/A | +---------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 1afaee31-4379-4b36-94a2-824129854a2a | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.94 | ubuntu20.04 | simple_requires-1-1-flv | | a7d5afea-2afa-4cf2-abf3-36d730d49360 | basic_29-vnf-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 6dbafa5a-889f-4f4b-9da5-3ea24039e6c1 | basic_29-vnf-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="sa_01-vnf_with_vim_metrics_test" 2>&1'. ${rc} = 0 ${stdout} = +---------------------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+---------------------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +---------------------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | sa_01-vnf_with_vim_metrics_test | 9989e35c-e0a4-4ce8-88ac-014dcda07241 | 2024-02-19T04:41:19 | READY | IDLE (None) | N/A | +---------------------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. ${ns_name} Check if a given NS instance has not failed in the instantiation (the status should not be BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 1afaee31-4379-4b36-94a2-824129854a2a | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.94 | ubuntu20.04 | simple_requires-1-1-flv | | a7d5afea-2afa-4cf2-abf3-36d730d49360 | basic_29-vnf-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 6dbafa5a-889f-4f4b-9da5-3ea24039e6c1 | basic_29-vnf-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="sa_01-vnf_with_vim_metrics_test" 2>&1'. ${rc} = 0 ${stdout} = +---------------------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+---------------------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +---------------------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | sa_01-vnf_with_vim_metrics_test | 9989e35c-e0a4-4ce8-88ac-014dcda07241 | 2024-02-19T04:41:19 | READY | IDLE (None) | N/A | +---------------------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} BROKEN Fails if ``container`` contains ``item`` one or more times. ${ns_id} ${id} = 9989e35c-e0a4-4ce8-88ac-014dcda07241 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 9989e35c-e0a4-4ce8-88ac-014dcda07241 Instantiate NS for the testsuite. cluster_sa daily regression sa_01 ${PROMETHEUS_POLL_RETRIES} msg=Metric polling retries is not available Fails unless the given variable exists within the current scope. ${PROMETHEUS_POLL_TIMEOUT} msg=Metric polling timeout is not available Fails unless the given variable exists within the current scope. ${PROMETHEUS_HOST} msg=Prometheus address is not available Fails unless the given variable exists within the current scope. ${PROMETHEUS_PORT} msg=Prometheus port is not available Fails unless the given variable exists within the current scope. ${METRIC_1_NAME} msg=Prometheus first metric name is not available Fails unless the given variable exists within the current scope. ${METRIC_2_NAME} msg=Prometheus second metric name is not available Fails unless the given variable exists within the current scope. ${metric_filter} ns_id=${NS_ID} Returns the given values which can then be assigned to a variables. ${metric_filter} = ns_id=9989e35c-e0a4-4ce8-88ac-014dcda07241 ${metric_1_value} ${PROMETHEUS_POLL_RETRIES} ${PROMETHEUS_POLL_TIMEOUT} Get Metric ${PROMETHEUS_HOST} ${PROMETHEUS_PORT} ${PROMETHEUS_USER} ${PROMETHEUS_PASSWORD} ${METRIC_1_NAME} ${metric_filter} Runs the specified keyword and retries if it fails. ${PROMETHEUS_HOST} ${PROMETHEUS_PORT} ${PROMETHEUS_USER} ${PROMETHEUS_PASSWORD} ${METRIC_1_NAME} ${metric_filter} Get the instant value of a metric from Prometheus using multiple filter parameters. The filter parameters are given to this function in key=value format (one argument per key/value pair). Fails if the metric is not found or has multiple values. Examples of execution: ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${param1}=${value1} ${param2}=${value2} ${filter} ${EMPTY} Returns the given values which can then be assigned to a variables. ${filter} = ${param} @{filter_parameters} ns_id=9989e35c-e0a4-4ce8-88ac-014dcda07241 ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in filter parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = ns_id=9989e35c-e0a4-4ce8-88ac-014dcda07241 ${param_name} = ns_id ${param_value} = 9989e35c-e0a4-4ce8-88ac-014dcda07241 ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=9989e35c-e0a4-4ce8-88ac-014dcda07241,ns_id,9989e35c-e0a4-4ce8-88ac-014dcda07241 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="9989e35c-e0a4-4ce8-88ac-014dcda07241", ${resp} ${prometheus_ip} ${prometheus_port} ${prometheus_user} ${prometheus_password} query=${metric}{${filter}} Execute a Prometheus Instant Query using HTTP API. Return an inline json with the result of the query. The requested URL is the next: http://${prometheus_ip}:${prometheus_port}/api/v1/query?${querystring} ${auth} ${prometheus_user} ${prometheus_password} Returns a list containing given items. ${auth} = ['""', '""'] ${auth} None Returns the given values which can then be assigned to a variables. prometheus http://${prometheus_ip}:${prometheus_port} timeout=${TIMEOUT} max_retries=${MAX_RETRIES} verify=false auth=${auth} Create Session: create a HTTP session to a server Creating Session using : alias=prometheus, url=http://172.21.249.226:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7ff1a6e53610>, timeout=30, proxies=None, verify=False, debug=0 ${resp} prometheus /api/v1/query?${querystring} timeout=${TIMEOUT} Sends a GET request on a previously created HTTP Session. GET Request : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%229989e35c-e0a4-4ce8-88ac-014dcda07241%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%229989e35c-e0a4-4ce8-88ac-014dcda07241%22,%7D headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'Basic IiI6IiI='} body=None GET Response : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%229989e35c-e0a4-4ce8-88ac-014dcda07241%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Mon, 19 Feb 2024 04:41:59 GMT', 'Content-Length': '87'} body={"status":"success","data":{"resultType":"vector","result":[]}} ${resp} = <Response [200]> 200 ${resp} Fails if response status code is different than the expected. ${resp.json()} ${resp} = {'status': 'success', 'data': {'resultType': 'vector', 'result': []}} ${result_list} ${resp["data"]["result"]} Converts the given ``item`` to a Python ``list`` type. ${result_list} = [] ${results} ${result_list} Returns and logs the length of the given item as an integer. Length is 0 ${results} = 0 0 ${results} msg=Metric ${metric} not found values=false Fails if objects are equal after converting them to real numbers. Argument types are: <class 'str'> <class 'int'> Metric osm_cpu_utilization not found 1 ${results} msg=Metric ${metric} with multiple values values=false Fails if objects are unequal after converting them to integers. ${result_list[0]["value"][1]} ${PROMETHEUS_HOST} ${PROMETHEUS_PORT} ${PROMETHEUS_USER} ${PROMETHEUS_PASSWORD} ${METRIC_1_NAME} ${metric_filter} Get the instant value of a metric from Prometheus using multiple filter parameters. The filter parameters are given to this function in key=value format (one argument per key/value pair). Fails if the metric is not found or has multiple values. Examples of execution: ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${param1}=${value1} ${param2}=${value2} ${filter} ${EMPTY} Returns the given values which can then be assigned to a variables. ${filter} = ${param} @{filter_parameters} ns_id=9989e35c-e0a4-4ce8-88ac-014dcda07241 ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in filter parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = ns_id=9989e35c-e0a4-4ce8-88ac-014dcda07241 ${param_name} = ns_id ${param_value} = 9989e35c-e0a4-4ce8-88ac-014dcda07241 ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=9989e35c-e0a4-4ce8-88ac-014dcda07241,ns_id,9989e35c-e0a4-4ce8-88ac-014dcda07241 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="9989e35c-e0a4-4ce8-88ac-014dcda07241", ${resp} ${prometheus_ip} ${prometheus_port} ${prometheus_user} ${prometheus_password} query=${metric}{${filter}} Execute a Prometheus Instant Query using HTTP API. Return an inline json with the result of the query. The requested URL is the next: http://${prometheus_ip}:${prometheus_port}/api/v1/query?${querystring} ${auth} ${prometheus_user} ${prometheus_password} Returns a list containing given items. ${auth} = ['""', '""'] ${auth} None Returns the given values which can then be assigned to a variables. prometheus http://${prometheus_ip}:${prometheus_port} timeout=${TIMEOUT} max_retries=${MAX_RETRIES} verify=false auth=${auth} Create Session: create a HTTP session to a server Creating Session using : alias=prometheus, url=http://172.21.249.226:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7ff1a6e52140>, timeout=30, proxies=None, verify=False, debug=0 ${resp} prometheus /api/v1/query?${querystring} timeout=${TIMEOUT} Sends a GET request on a previously created HTTP Session. GET Request : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%229989e35c-e0a4-4ce8-88ac-014dcda07241%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%229989e35c-e0a4-4ce8-88ac-014dcda07241%22,%7D headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'Basic IiI6IiI='} body=None GET Response : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%229989e35c-e0a4-4ce8-88ac-014dcda07241%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Mon, 19 Feb 2024 04:42:59 GMT', 'Content-Length': '87'} body={"status":"success","data":{"resultType":"vector","result":[]}} ${resp} = <Response [200]> 200 ${resp} Fails if response status code is different than the expected. ${resp.json()} ${resp} = {'status': 'success', 'data': {'resultType': 'vector', 'result': []}} ${result_list} ${resp["data"]["result"]} Converts the given ``item`` to a Python ``list`` type. ${result_list} = [] ${results} ${result_list} Returns and logs the length of the given item as an integer. Length is 0 ${results} = 0 0 ${results} msg=Metric ${metric} not found values=false Fails if objects are equal after converting them to real numbers. Argument types are: <class 'str'> <class 'int'> Metric osm_cpu_utilization not found 1 ${results} msg=Metric ${metric} with multiple values values=false Fails if objects are unequal after converting them to integers. ${result_list[0]["value"][1]} ${PROMETHEUS_HOST} ${PROMETHEUS_PORT} ${PROMETHEUS_USER} ${PROMETHEUS_PASSWORD} ${METRIC_1_NAME} ${metric_filter} Get the instant value of a metric from Prometheus using multiple filter parameters. The filter parameters are given to this function in key=value format (one argument per key/value pair). Fails if the metric is not found or has multiple values. Examples of execution: ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${param1}=${value1} ${param2}=${value2} ${filter} ${EMPTY} Returns the given values which can then be assigned to a variables. ${filter} = ${param} @{filter_parameters} ns_id=9989e35c-e0a4-4ce8-88ac-014dcda07241 ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in filter parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = ns_id=9989e35c-e0a4-4ce8-88ac-014dcda07241 ${param_name} = ns_id ${param_value} = 9989e35c-e0a4-4ce8-88ac-014dcda07241 ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=9989e35c-e0a4-4ce8-88ac-014dcda07241,ns_id,9989e35c-e0a4-4ce8-88ac-014dcda07241 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="9989e35c-e0a4-4ce8-88ac-014dcda07241", ${resp} ${prometheus_ip} ${prometheus_port} ${prometheus_user} ${prometheus_password} query=${metric}{${filter}} Execute a Prometheus Instant Query using HTTP API. Return an inline json with the result of the query. The requested URL is the next: http://${prometheus_ip}:${prometheus_port}/api/v1/query?${querystring} ${auth} ${prometheus_user} ${prometheus_password} Returns a list containing given items. ${auth} = ['""', '""'] ${auth} None Returns the given values which can then be assigned to a variables. prometheus http://${prometheus_ip}:${prometheus_port} timeout=${TIMEOUT} max_retries=${MAX_RETRIES} verify=false auth=${auth} Create Session: create a HTTP session to a server Creating Session using : alias=prometheus, url=http://172.21.249.226:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7ff1a6e510c0>, timeout=30, proxies=None, verify=False, debug=0 ${resp} prometheus /api/v1/query?${querystring} timeout=${TIMEOUT} Sends a GET request on a previously created HTTP Session. GET Request : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%229989e35c-e0a4-4ce8-88ac-014dcda07241%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%229989e35c-e0a4-4ce8-88ac-014dcda07241%22,%7D headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'Basic IiI6IiI='} body=None GET Response : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%229989e35c-e0a4-4ce8-88ac-014dcda07241%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Mon, 19 Feb 2024 04:43:59 GMT', 'Content-Length': '87'} body={"status":"success","data":{"resultType":"vector","result":[]}} ${resp} = <Response [200]> 200 ${resp} Fails if response status code is different than the expected. ${resp.json()} ${resp} = {'status': 'success', 'data': {'resultType': 'vector', 'result': []}} ${result_list} ${resp["data"]["result"]} Converts the given ``item`` to a Python ``list`` type. ${result_list} = [] ${results} ${result_list} Returns and logs the length of the given item as an integer. Length is 0 ${results} = 0 0 ${results} msg=Metric ${metric} not found values=false Fails if objects are equal after converting them to real numbers. Argument types are: <class 'str'> <class 'int'> Metric osm_cpu_utilization not found 1 ${results} msg=Metric ${metric} with multiple values values=false Fails if objects are unequal after converting them to integers. ${result_list[0]["value"][1]} ${PROMETHEUS_HOST} ${PROMETHEUS_PORT} ${PROMETHEUS_USER} ${PROMETHEUS_PASSWORD} ${METRIC_1_NAME} ${metric_filter} Get the instant value of a metric from Prometheus using multiple filter parameters. The filter parameters are given to this function in key=value format (one argument per key/value pair). Fails if the metric is not found or has multiple values. Examples of execution: ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${param1}=${value1} ${param2}=${value2} ${filter} ${EMPTY} Returns the given values which can then be assigned to a variables. ${filter} = ${param} @{filter_parameters} ns_id=9989e35c-e0a4-4ce8-88ac-014dcda07241 ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in filter parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = ns_id=9989e35c-e0a4-4ce8-88ac-014dcda07241 ${param_name} = ns_id ${param_value} = 9989e35c-e0a4-4ce8-88ac-014dcda07241 ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=9989e35c-e0a4-4ce8-88ac-014dcda07241,ns_id,9989e35c-e0a4-4ce8-88ac-014dcda07241 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="9989e35c-e0a4-4ce8-88ac-014dcda07241", ${resp} ${prometheus_ip} ${prometheus_port} ${prometheus_user} ${prometheus_password} query=${metric}{${filter}} Execute a Prometheus Instant Query using HTTP API. Return an inline json with the result of the query. The requested URL is the next: http://${prometheus_ip}:${prometheus_port}/api/v1/query?${querystring} ${auth} ${prometheus_user} ${prometheus_password} Returns a list containing given items. ${auth} = ['""', '""'] ${auth} None Returns the given values which can then be assigned to a variables. prometheus http://${prometheus_ip}:${prometheus_port} timeout=${TIMEOUT} max_retries=${MAX_RETRIES} verify=false auth=${auth} Create Session: create a HTTP session to a server Creating Session using : alias=prometheus, url=http://172.21.249.226:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7ff1a6ea09a0>, timeout=30, proxies=None, verify=False, debug=0 ${resp} prometheus /api/v1/query?${querystring} timeout=${TIMEOUT} Sends a GET request on a previously created HTTP Session. GET Request : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%229989e35c-e0a4-4ce8-88ac-014dcda07241%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%229989e35c-e0a4-4ce8-88ac-014dcda07241%22,%7D headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'Basic IiI6IiI='} body=None GET Response : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%229989e35c-e0a4-4ce8-88ac-014dcda07241%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Mon, 19 Feb 2024 04:44:59 GMT', 'Content-Length': '87'} body={"status":"success","data":{"resultType":"vector","result":[]}} ${resp} = <Response [200]> 200 ${resp} Fails if response status code is different than the expected. ${resp.json()} ${resp} = {'status': 'success', 'data': {'resultType': 'vector', 'result': []}} ${result_list} ${resp["data"]["result"]} Converts the given ``item`` to a Python ``list`` type. ${result_list} = [] ${results} ${result_list} Returns and logs the length of the given item as an integer. Length is 0 ${results} = 0 0 ${results} msg=Metric ${metric} not found values=false Fails if objects are equal after converting them to real numbers. Argument types are: <class 'str'> <class 'int'> Metric osm_cpu_utilization not found 1 ${results} msg=Metric ${metric} with multiple values values=false Fails if objects are unequal after converting them to integers. ${result_list[0]["value"][1]} ${PROMETHEUS_HOST} ${PROMETHEUS_PORT} ${PROMETHEUS_USER} ${PROMETHEUS_PASSWORD} ${METRIC_1_NAME} ${metric_filter} Get the instant value of a metric from Prometheus using multiple filter parameters. The filter parameters are given to this function in key=value format (one argument per key/value pair). Fails if the metric is not found or has multiple values. Examples of execution: ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${param1}=${value1} ${param2}=${value2} ${filter} ${EMPTY} Returns the given values which can then be assigned to a variables. ${filter} = ${param} @{filter_parameters} ns_id=9989e35c-e0a4-4ce8-88ac-014dcda07241 ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in filter parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = ns_id=9989e35c-e0a4-4ce8-88ac-014dcda07241 ${param_name} = ns_id ${param_value} = 9989e35c-e0a4-4ce8-88ac-014dcda07241 ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=9989e35c-e0a4-4ce8-88ac-014dcda07241,ns_id,9989e35c-e0a4-4ce8-88ac-014dcda07241 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="9989e35c-e0a4-4ce8-88ac-014dcda07241", ${resp} ${prometheus_ip} ${prometheus_port} ${prometheus_user} ${prometheus_password} query=${metric}{${filter}} Execute a Prometheus Instant Query using HTTP API. Return an inline json with the result of the query. The requested URL is the next: http://${prometheus_ip}:${prometheus_port}/api/v1/query?${querystring} ${auth} ${prometheus_user} ${prometheus_password} Returns a list containing given items. ${auth} = ['""', '""'] ${auth} None Returns the given values which can then be assigned to a variables. prometheus http://${prometheus_ip}:${prometheus_port} timeout=${TIMEOUT} max_retries=${MAX_RETRIES} verify=false auth=${auth} Create Session: create a HTTP session to a server Creating Session using : alias=prometheus, url=http://172.21.249.226:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7ff1a6ea1b10>, timeout=30, proxies=None, verify=False, debug=0 ${resp} prometheus /api/v1/query?${querystring} timeout=${TIMEOUT} Sends a GET request on a previously created HTTP Session. GET Request : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%229989e35c-e0a4-4ce8-88ac-014dcda07241%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%229989e35c-e0a4-4ce8-88ac-014dcda07241%22,%7D headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'Basic IiI6IiI='} body=None GET Response : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%229989e35c-e0a4-4ce8-88ac-014dcda07241%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Mon, 19 Feb 2024 04:45:59 GMT', 'Content-Length': '364'} body={"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"osm_cpu_utilization","job":"airflow_osm_vm_metrics_85764c05-53df-46c7-a9c8-e9e51d2283b7","metric_id":"vnf_cpu_util","ns_id":"9989e35c-e0a4-4ce8-88ac-014dcda07241","project_id":"0658771c-e387-4292-a51e-090f213f77c7","vdu_id":"hackfest_basic_metrics-VM","vdu_name":"sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0","vim_id":"85764c05-53df-46c7-a9c8-e9e51d2283b7","vm_id":"1afaee31-4379-4b36-94a2-824129854a2a","vnf_member_index":"vnf"},"value":[1708317959.242,"0.30833333333333335"]}]}} ${resp} = <Response [200]> 200 ${resp} Fails if response status code is different than the expected. ${resp.json()} ${resp} = {'status': 'success', 'data': {'resultType': 'vector', 'result': [{'metric': {'__name__': 'osm_cpu_utilization', 'job': 'airflow_osm_vm_metrics_85764c05-53df-46c7-a9c8-e9e51d2283b7', 'metric_id': 'vnf... ${result_list} ${resp["data"]["result"]} Converts the given ``item`` to a Python ``list`` type. ${result_list} = [{'metric': {'__name__': 'osm_cpu_utilization', 'job': 'airflow_osm_vm_metrics_85764c05-53df-46c7-a9c8-e9e51d2283b7', 'metric_id': 'vnf_cpu_util', 'ns_id': '9989e35c-e0a4-4ce8-88ac-014dcda07241', 'pro... ${results} ${result_list} Returns and logs the length of the given item as an integer. Length is 1 ${results} = 1 0 ${results} msg=Metric ${metric} not found values=false Fails if objects are equal after converting them to real numbers. Argument types are: <class 'str'> <class 'int'> 1 ${results} msg=Metric ${metric} with multiple values values=false Fails if objects are unequal after converting them to integers. Argument types are: <class 'str'> <class 'int'> ${result_list[0]["value"][1]} ${metric_1_value} = 0.30833333333333335 msg=The metric '${METRIC_1_NAME}' value is '${metric_1_value}' Fails the test with the given message and optionally alters its tags. ${metric_2_value} ${PROMETHEUS_POLL_RETRIES} ${PROMETHEUS_POLL_TIMEOUT} Get Metric ${PROMETHEUS_HOST} ${PROMETHEUS_PORT} ${PROMETHEUS_USER} ${PROMETHEUS_PASSWORD} ${METRIC_2_NAME} ${metric_filter} Runs the specified keyword and retries if it fails. ${PROMETHEUS_HOST} ${PROMETHEUS_PORT} ${PROMETHEUS_USER} ${PROMETHEUS_PASSWORD} ${METRIC_2_NAME} ${metric_filter} Get the instant value of a metric from Prometheus using multiple filter parameters. The filter parameters are given to this function in key=value format (one argument per key/value pair). Fails if the metric is not found or has multiple values. Examples of execution: ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${param1}=${value1} ${param2}=${value2} ${filter} ${EMPTY} Returns the given values which can then be assigned to a variables. ${filter} = ${param} @{filter_parameters} ns_id=9989e35c-e0a4-4ce8-88ac-014dcda07241 ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in filter parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = ns_id=9989e35c-e0a4-4ce8-88ac-014dcda07241 ${param_name} = ns_id ${param_value} = 9989e35c-e0a4-4ce8-88ac-014dcda07241 ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=9989e35c-e0a4-4ce8-88ac-014dcda07241,ns_id,9989e35c-e0a4-4ce8-88ac-014dcda07241 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="9989e35c-e0a4-4ce8-88ac-014dcda07241", ${resp} ${prometheus_ip} ${prometheus_port} ${prometheus_user} ${prometheus_password} query=${metric}{${filter}} Execute a Prometheus Instant Query using HTTP API. Return an inline json with the result of the query. The requested URL is the next: http://${prometheus_ip}:${prometheus_port}/api/v1/query?${querystring} ${auth} ${prometheus_user} ${prometheus_password} Returns a list containing given items. ${auth} = ['""', '""'] ${auth} None Returns the given values which can then be assigned to a variables. prometheus http://${prometheus_ip}:${prometheus_port} timeout=${TIMEOUT} max_retries=${MAX_RETRIES} verify=false auth=${auth} Create Session: create a HTTP session to a server Creating Session using : alias=prometheus, url=http://172.21.249.226:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7ff1a6e52470>, timeout=30, proxies=None, verify=False, debug=0 ${resp} prometheus /api/v1/query?${querystring} timeout=${TIMEOUT} Sends a GET request on a previously created HTTP Session. GET Request : url=http://172.21.249.226:9091/api/v1/query?query=osm_average_memory_utilization%7Bns_id=%229989e35c-e0a4-4ce8-88ac-014dcda07241%22,%7D path_url=/api/v1/query?query=osm_average_memory_utilization%7Bns_id=%229989e35c-e0a4-4ce8-88ac-014dcda07241%22,%7D headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'Basic IiI6IiI='} body=None GET Response : url=http://172.21.249.226:9091/api/v1/query?query=osm_average_memory_utilization%7Bns_id=%229989e35c-e0a4-4ce8-88ac-014dcda07241%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Mon, 19 Feb 2024 04:45:59 GMT', 'Content-Length': '370'} body={"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"osm_average_memory_utilization","job":"airflow_osm_vm_metrics_85764c05-53df-46c7-a9c8-e9e51d2283b7","metric_id":"vnf_memory_util","ns_id":"9989e35c-e0a4-4ce8-88ac-014dcda07241","project_id":"0658771c-e387-4292-a51e-090f213f77c7","vdu_id":"hackfest_basic_metrics-VM","vdu_name":"sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0","vim_id":"85764c05-53df-46c7-a9c8-e9e51d2283b7","vm_id":"1afaee31-4379-4b36-94a2-824129854a2a","vnf_member_index":"vnf"},"value":[1708317959.279,"272.6953125"]}]}} ${resp} = <Response [200]> 200 ${resp} Fails if response status code is different than the expected. ${resp.json()} ${resp} = {'status': 'success', 'data': {'resultType': 'vector', 'result': [{'metric': {'__name__': 'osm_average_memory_utilization', 'job': 'airflow_osm_vm_metrics_85764c05-53df-46c7-a9c8-e9e51d2283b7', 'metri... ${result_list} ${resp["data"]["result"]} Converts the given ``item`` to a Python ``list`` type. ${result_list} = [{'metric': {'__name__': 'osm_average_memory_utilization', 'job': 'airflow_osm_vm_metrics_85764c05-53df-46c7-a9c8-e9e51d2283b7', 'metric_id': 'vnf_memory_util', 'ns_id': '9989e35c-e0a4-4ce8-88ac-014dc... ${results} ${result_list} Returns and logs the length of the given item as an integer. Length is 1 ${results} = 1 0 ${results} msg=Metric ${metric} not found values=false Fails if objects are equal after converting them to real numbers. Argument types are: <class 'str'> <class 'int'> 1 ${results} msg=Metric ${metric} with multiple values values=false Fails if objects are unequal after converting them to integers. Argument types are: <class 'str'> <class 'int'> ${result_list[0]["value"][1]} ${metric_2_value} = 272.6953125 msg=The metric '${METRIC_2_NAME}' value is '${metric_2_value}' Fails the test with the given message and optionally alters its tags. Check that the expected metrics are present in Prometheus (pushed from SA modules). cluster_sa daily regression sa_01 ${NS_NAME} Delete a NS instance. ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} Logs the given message with the given level. 240.0 ${rc} ${stdout} osm ns-delete ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-delete sa_01-vnf_with_vim_metrics_test 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${stdout} Logs the given message with the given level. Deletion in progress ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${ns_delete_max_wait_time} ${NS_DELETE_POL_TIME} Check For NS Instance To Be Deleted ${ns} Runs the specified keyword and retries if it fails. ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 691a9f41-5b0b-43c8-a1a9-2d23a25bbea3 | basic_30-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | f912f7d9-19f3-4f88-9f50-c12d76745501 | basic_30-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 1afaee31-4379-4b36-94a2-824129854a2a | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.94 | ubuntu20.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep sa_01-vnf_with_vim_metrics_test 2>&1'. ${rc} = 0 ${stdout} = sa_01-vnf_with_vim_metrics_test ${rc},${stdout} Logs the given message with the given level. 0,sa_01-vnf_with_vim_metrics_test ${stdout} ${ns} Fails if objects are equal after converting them to strings. sa_01-vnf_with_vim_metrics_test == sa_01-vnf_with_vim_metrics_test ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | ID | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | 691a9f41-5b0b-43c8-a1a9-2d23a25bbea3 | basic_30-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | f912f7d9-19f3-4f88-9f50-c12d76745501 | basic_30-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | a09b5cf7-423d-4d07-95a0-4bf42d8d3b4d | osm-v140-merge-240 | ACTIVE | osm-ext=172.21.249.33 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep sa_01-vnf_with_vim_metrics_test 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${ns} Fails if objects are equal after converting them to strings. Delete NS instance. cleanup cluster_sa daily regression sa_01 ${NSD_NAME} Delete a NS package from OSM. ${rc} ${stdout} Run And Return Rc And Output osm nspkg-delete ${nsd_id} Runs the keyword and continues execution even if a failure occurs. osm nspkg-delete ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-delete hackfest_basic-ns-metrics 2>&1'. ${rc} = 0 ${stdout} = Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Logs the given message with the given level. Deleted ${NSD_DELETE_MAX_WAIT_TIME} ${NSD_DELETE_POL_TIME} Check For NSD ${nsd_id} Runs the specified keyword and retries if it fails. ${nsd_id} Check that a NS package exists in OSM. ${rc} ${stdout} osm nspkg-list | awk '{print $2}' | grep ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-list | awk '{print $2}' | grep hackfest_basic-ns-metrics 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. Delete NS package. cleanup cluster_sa daily regression sa_01 ${VNFD_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete hackfest_basic_metrics-vnf 2>&1'. ${rc} = 0 ${stdout} = Deleted ${stdout} Logs the given message with the given level. Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep hackfest_basic_metrics-vnf 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. Delete VNF package. cleanup cluster_sa daily regression sa_01 Suite Cleanup Runs the given keyword with the given arguments and ignores possible error. Test Suite Cleanup: Deleting descriptors and NS instance Delete NS ${NS_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete NSD ${NSD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete VNFD ${VNFD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. [SA-01] VNF with VIM-based metrics. Suite Preparation Runs the given keyword with the given arguments and ignores possible error. Test Suite Preparation: Setting Prometheus Testsuite Variables Set Testsuite Prometheus Variables to be used in subsequent test cases ${local_prometheus_host} OSM_HOSTNAME Returns the value of an environment variable with the given name. ${PROMETHEUS_HOST} ${local_prometheus_host} Makes a variable available everywhere within the scope of the current suite. ${PROMETHEUS_HOST} 9091 Makes a variable available everywhere within the scope of the current suite. Invalid IF condition: Evaluating expression '172.21.249.226 == 'UNKNOWN'' failed: SyntaxError: invalid syntax (<string>, line 1) Variables in the original expression '${PROMETHEUS_HOST} == 'UNKNOWN'' were resolved before the expression was evaluated. Try using '$PROMETHEUS_HOST == 'UNKNOWN'' syntax to avoid that. See Evaluating Expressions appendix in Robot Framework User Guide for more details. ${PROMETHEUS_PORT} Logs the given message with the given level. ${PROMETHEUS_HOST} Logs the given message with the given level. ${PROMETHEUS_USER} Logs the given message with the given level. ${PROMETHEUS_PASSWORD} Logs the given message with the given level. '%{PACKAGES_FOLDER}/${VNFD_PKG}' Onboards ("creates") a NF Package into OSM. - Parameters: - vnfd_pkg: Name (and location) of the NF Package - overrides (optional): String with options to override the EPA and/or interface properties of the Package. This is very useful to allow to deploy e.g. non-EPA packages in EPA VIMs (or vice-versa). Valid strings are the same as in the command. E.g.: - `--override-epa`: adds EPA attributes to all VDUs. - `--override-nonepa`: removes all EPA attributes from all VDUs. - `--override-paravirt`: converts all interfaces to `PARAVIRT`. This one can be combined with the others above (e.g. '--override-nonepa --override-paravirt'). - Relevant environment variables: - OVERRIDES: If the environment variable "OVERRIDES" exists, it prevails over the value in the argument. This is often more convenient to enforce the same behaviour for every test run in a given VIM. ${overrides} OVERRIDES default=${overrides} Returns the value of an environment variable with the given name. ${overrides} = ${rc} ${stdout} osm vnfpkg-create ${overrides} ${vnfd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-create '/robot-systest/osm-packages/hackfest_basic_metrics_vnf' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/hackfest_basic_metrics_vnf Validation OK List of charms in the descriptor: set() Adding File: hackfest_basic_metrics_vnf Package created: /robot-systest/... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/hackfest_basic_metrics_vnf Validation OK List of charms in the descriptor: set() Adding File: hackfest_basic_metrics_vnf Package created: /robot-systest/osm-packages/hackfest_basic_metrics_vnf.tar.gz Uploading package /robot-systest/osm-packages/hackfest_basic_metrics_vnf.tar.gz 42aa8088-4b1f-4902-8026-449a5a6e5d04 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 7 lines ${lines} = 7 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 6 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = 42aa8088-4b1f-4902-8026-449a5a6e5d04 ${id} Upload VNF package for the testsuite. azure cluster_sa daily regression sa_02 sanity ${rc} ${stdout} osm vnfpkg-show ${VNFD_NAME} --literal | yq -r '.df[0]."scaling-aspect"[0]."scaling-policy"[0]."scaling-criteria"[0]."scale-out-threshold"' Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-show hackfest_basic_metrics-vnf --literal | yq -r '.df[0]."scaling-aspect"[0]."scaling-policy"[0]."scaling-criteria"[0]."scale-out-threshold"' 2>&1'. ${rc} = 0 ${stdout} = 60.0000000000 ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${scaleout_threshold} ${stdout} Converts the given item to a floating point number. ${scaleout_threshold} = 60.0 ${METRIC_THRESHOLD} ${scaleout_threshold} Makes a variable available everywhere within the scope of the current suite. ${METRIC_THRESHOLD} = 60.0 ${METRIC_THRESHOLD} Logs the given message with the given level. 60.0 ${rc} ${stdout} osm vnfpkg-show ${VNFD_NAME} --literal | yq -r '.df[0]."scaling-aspect"[0]."scaling-policy"[0]."threshold-time"' Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-show hackfest_basic_metrics-vnf --literal | yq -r '.df[0]."scaling-aspect"[0]."scaling-policy"[0]."threshold-time"' 2>&1'. ${rc} = 0 ${stdout} = 1 ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${threshold_time_value} ${stdout} Converts the given item to a floating point number. ${threshold_time_value} = 1.0 ${THRESHOLD_TIME} ${threshold_time_value} Makes a variable available everywhere within the scope of the current suite. ${THRESHOLD_TIME} = 1.0 ${THRESHOLD_TIME} Logs the given message with the given level. 1.0 Read metric threshold and threshold time from VNF descriptor. azure cluster_sa daily regression sa_02 sanity '%{PACKAGES_FOLDER}/${NSD_PKG}' Upload a NS package to OSM and return the id. ${rc} ${stdout} osm nspkg-create ${nsd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-create '/robot-systest/osm-packages/hackfest_basic_metrics_ns' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/hackfest_basic_metrics_ns Validation OK List of charms in the descriptor: set() Adding File: hackfest_basic_metrics_ns Package created: /robot-systest/os... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/hackfest_basic_metrics_ns Validation OK List of charms in the descriptor: set() Adding File: hackfest_basic_metrics_ns Package created: /robot-systest/osm-packages/hackfest_basic_metrics_ns.tar.gz 396adea6-1d4b-4e33-80fd-6eb97fc796a7 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 6 lines ${lines} = 6 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 5 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = 396adea6-1d4b-4e33-80fd-6eb97fc796a7 ${id} Upload NS package for the testsuite. azure cluster_sa daily regression sa_02 sanity ${id} ${NSD_NAME} %{VIM_TARGET} ${NS_NAME} ${NS_CONFIG} ${PUBLICKEY} Launch the instantation of a NS and verify in a loop that the NS instance is successfully created in a given time, and return the NS instance id. ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_launch_max_wait_time} = 300.0 ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_launch_max_wait_time} = 300.0 ${ns_launch_max_wait_time} Logs the given message with the given level. 300.0 ${config_attr} '${ns_config}'!='${EMPTY}' --config '${ns_config}' ${EMPTY} Sets variable based on the given condition. ${config_attr} = --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext} ] }' ${sshkeys_attr} '${publickey}'!='${EMPTY}' --ssh_keys ${publickey} ${EMPTY} Sets variable based on the given condition. ${sshkeys_attr} = --ssh_keys /root/.ssh/id_rsa.pub ${config_file_attr} '${config_file}'!='${EMPTY}' --config_file '${config_file}' ${EMPTY} Sets variable based on the given condition. ${config_file_attr} = ${ns_id} ${ns_name} ${nsd} ${vim_name} ${config_attr} ${sshkeys_attr} ${config_file_attr} Launch the instantation of a NS, and return the NS instance id. ${rc} ${stdout} osm ns-create --ns_name ${ns_name} --nsd_name ${nsd} --vim_account ${vim_name} ${ns_extra_args} Runs the given command in the system and returns the RC and output. Running command 'osm ns-create --ns_name sa_02 --nsd_name hackfest_basic-ns-metrics --vim_account osm --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext} ] }' --ssh_keys /root/.ssh/id_rsa.pub 2>&1'. ${rc} = 0 ${stdout} = 96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${stdout} Logs the given message with the given level. 96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${ns_id} Logs the given message with the given level. 96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${ns_launch_max_wait_time} ${NS_LAUNCH_POL_TIME} Check For NS Instance To Configured ${ns_name} Runs the specified keyword and retries if it fails. ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | ID | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | 691a9f41-5b0b-43c8-a1a9-2d23a25bbea3 | basic_30-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | f912f7d9-19f3-4f88-9f50-c12d76745501 | basic_30-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="sa_02" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | sa_02 | 96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 | 2024-02-19T04:46:36 | BUILDING | INSTANTIATING (20f950dc-a4d0-4c8f-a3f9-f264fa328781) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | sa_02 | 96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 | 2024-02-19T04:46:36 | BUILDING | INSTANTIATING (20f950dc-a4d0-4c8f-a3f9-f264fa328781) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | 67e8c57d-f9d0-4ca7-a706-b6c23e98c603 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.236 | ubuntu20.04 | simple_requires-1-1-flv | | 691a9f41-5b0b-43c8-a1a9-2d23a25bbea3 | basic_30-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | f912f7d9-19f3-4f88-9f50-c12d76745501 | basic_30-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="sa_02" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | sa_02 | 96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 | 2024-02-19T04:46:36 | READY | IDLE (None) | N/A | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. ${ns_name} Check if a given NS instance has not failed in the instantiation (the status should not be BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | 67e8c57d-f9d0-4ca7-a706-b6c23e98c603 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.236 | ubuntu20.04 | simple_requires-1-1-flv | | 691a9f41-5b0b-43c8-a1a9-2d23a25bbea3 | basic_30-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | f912f7d9-19f3-4f88-9f50-c12d76745501 | basic_30-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="sa_02" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | sa_02 | 96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 | 2024-02-19T04:46:36 | READY | IDLE (None) | N/A | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} BROKEN Fails if ``container`` contains ``item`` one or more times. ${ns_id} ${id} = 96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 Instantiate the NS for the testsuite. azure cluster_sa daily regression sa_02 sanity @{vnfr_list} ${NS_ID} Return a list with the IDs of the VNF records of a NS instance. ${ns_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm vnf-list --ns ${ns_id} | grep ${ns_id} | awk '{print $2}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm vnf-list --ns 96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 | grep 96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = 3a33099d-5377-4f8c-8614-80798ca4c8eb ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> @{vdur} ${stdout} Splits the ``string`` using ``separator`` as a delimiter string. @{vdur} = [ 3a33099d-5377-4f8c-8614-80798ca4c8eb ] @{vdur} @{vnfr_list} = [ 3a33099d-5377-4f8c-8614-80798ca4c8eb ] ${vnfr_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: 3a33099d-5377-4f8c-8614-80798ca4c8eb ${VNF_ID} ${vnfr_list}[0] Makes a variable available everywhere within the scope of the current suite. ${VNF_ID} = 3a33099d-5377-4f8c-8614-80798ca4c8eb Retrieve VNF instance id to be used later on. azure cluster_sa daily regression sa_02 sanity ${ip_addr} ${NS_ID} ${VNF_MEMBER_INDEX} Get the mgmt IP address of a member VNF in a NS instance, and return it. ${ns_id} Verifies that the given item is not empty. Length is 36 ${vnf_member_index} Verifies that the given item is not empty. Length is 3 ${rc} ${stdout} osm vnf-list --filter member-vnf-index-ref=${vnf_member_index} | grep ${ns_id} | awk '{print $14}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm vnf-list --filter member-vnf-index-ref=vnf | grep 96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.248.236 ${stdout} Logs the given message with the given level. 172.21.248.236 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ip_addr} = 172.21.248.236 ${ip_addr} Logs the given message with the given level. 172.21.248.236 ${VNF_IP_ADDR} ${ip_addr} Makes a variable available everywhere within the scope of the current suite. ${VNF_IP_ADDR} = 172.21.248.236 Get the mgmt IP address of the VNF to be used in later tests. azure cluster_sa daily regression sa_02 sanity ${PROMETHEUS_POLL_RETRIES} msg=Metric polling retries is not available Fails unless the given variable exists within the current scope. ${PROMETHEUS_POLL_TIMEOUT} msg=Metric polling timeout is not available Fails unless the given variable exists within the current scope. ${PROMETHEUS_HOST} msg=Prometheus address is not available Fails unless the given variable exists within the current scope. ${PROMETHEUS_PORT} msg=Prometheus port is not available Fails unless the given variable exists within the current scope. ${METRIC_NAME} msg=Prometheus metric name is not available Fails unless the given variable exists within the current scope. ${metric_filter} ns_id=${NS_ID} Returns the given values which can then be assigned to a variables. ${metric_filter} = ns_id=96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${metric_value} ${PROMETHEUS_POLL_RETRIES} ${PROMETHEUS_POLL_TIMEOUT} Get Metric ${PROMETHEUS_HOST} ${PROMETHEUS_PORT} ${PROMETHEUS_USER} ${PROMETHEUS_PASSWORD} ${METRIC_NAME} ${metric_filter} Runs the specified keyword and retries if it fails. ${PROMETHEUS_HOST} ${PROMETHEUS_PORT} ${PROMETHEUS_USER} ${PROMETHEUS_PASSWORD} ${METRIC_NAME} ${metric_filter} Get the instant value of a metric from Prometheus using multiple filter parameters. The filter parameters are given to this function in key=value format (one argument per key/value pair). Fails if the metric is not found or has multiple values. Examples of execution: ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${param1}=${value1} ${param2}=${value2} ${filter} ${EMPTY} Returns the given values which can then be assigned to a variables. ${filter} = ${param} @{filter_parameters} ns_id=96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in filter parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = ns_id=96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${param_name} = ns_id ${param_value} = 96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=96c5fa12-0d2e-45a4-851e-1b59fb59b2a6,ns_id,96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="96c5fa12-0d2e-45a4-851e-1b59fb59b2a6", ${resp} ${prometheus_ip} ${prometheus_port} ${prometheus_user} ${prometheus_password} query=${metric}{${filter}} Execute a Prometheus Instant Query using HTTP API. Return an inline json with the result of the query. The requested URL is the next: http://${prometheus_ip}:${prometheus_port}/api/v1/query?${querystring} ${auth} ${prometheus_user} ${prometheus_password} Returns a list containing given items. ${auth} = ['""', '""'] ${auth} None Returns the given values which can then be assigned to a variables. prometheus http://${prometheus_ip}:${prometheus_port} timeout=${TIMEOUT} max_retries=${MAX_RETRIES} verify=false auth=${auth} Create Session: create a HTTP session to a server Creating Session using : alias=prometheus, url=http://172.21.249.226:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7ff1a6e96860>, timeout=30, proxies=None, verify=False, debug=0 ${resp} prometheus /api/v1/query?${querystring} timeout=${TIMEOUT} Sends a GET request on a previously created HTTP Session. GET Request : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2296c5fa12-0d2e-45a4-851e-1b59fb59b2a6%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2296c5fa12-0d2e-45a4-851e-1b59fb59b2a6%22,%7D headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'Basic IiI6IiI='} body=None GET Response : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2296c5fa12-0d2e-45a4-851e-1b59fb59b2a6%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Mon, 19 Feb 2024 04:47:18 GMT', 'Content-Length': '87'} body={"status":"success","data":{"resultType":"vector","result":[]}} ${resp} = <Response [200]> 200 ${resp} Fails if response status code is different than the expected. ${resp.json()} ${resp} = {'status': 'success', 'data': {'resultType': 'vector', 'result': []}} ${result_list} ${resp["data"]["result"]} Converts the given ``item`` to a Python ``list`` type. ${result_list} = [] ${results} ${result_list} Returns and logs the length of the given item as an integer. Length is 0 ${results} = 0 0 ${results} msg=Metric ${metric} not found values=false Fails if objects are equal after converting them to real numbers. Argument types are: <class 'str'> <class 'int'> Metric osm_cpu_utilization not found 1 ${results} msg=Metric ${metric} with multiple values values=false Fails if objects are unequal after converting them to integers. ${result_list[0]["value"][1]} ${PROMETHEUS_HOST} ${PROMETHEUS_PORT} ${PROMETHEUS_USER} ${PROMETHEUS_PASSWORD} ${METRIC_NAME} ${metric_filter} Get the instant value of a metric from Prometheus using multiple filter parameters. The filter parameters are given to this function in key=value format (one argument per key/value pair). Fails if the metric is not found or has multiple values. Examples of execution: ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${param1}=${value1} ${param2}=${value2} ${filter} ${EMPTY} Returns the given values which can then be assigned to a variables. ${filter} = ${param} @{filter_parameters} ns_id=96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in filter parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = ns_id=96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${param_name} = ns_id ${param_value} = 96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=96c5fa12-0d2e-45a4-851e-1b59fb59b2a6,ns_id,96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="96c5fa12-0d2e-45a4-851e-1b59fb59b2a6", ${resp} ${prometheus_ip} ${prometheus_port} ${prometheus_user} ${prometheus_password} query=${metric}{${filter}} Execute a Prometheus Instant Query using HTTP API. Return an inline json with the result of the query. The requested URL is the next: http://${prometheus_ip}:${prometheus_port}/api/v1/query?${querystring} ${auth} ${prometheus_user} ${prometheus_password} Returns a list containing given items. ${auth} = ['""', '""'] ${auth} None Returns the given values which can then be assigned to a variables. prometheus http://${prometheus_ip}:${prometheus_port} timeout=${TIMEOUT} max_retries=${MAX_RETRIES} verify=false auth=${auth} Create Session: create a HTTP session to a server Creating Session using : alias=prometheus, url=http://172.21.249.226:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7ff1a6e96ec0>, timeout=30, proxies=None, verify=False, debug=0 ${resp} prometheus /api/v1/query?${querystring} timeout=${TIMEOUT} Sends a GET request on a previously created HTTP Session. GET Request : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2296c5fa12-0d2e-45a4-851e-1b59fb59b2a6%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2296c5fa12-0d2e-45a4-851e-1b59fb59b2a6%22,%7D headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'Basic IiI6IiI='} body=None GET Response : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2296c5fa12-0d2e-45a4-851e-1b59fb59b2a6%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Mon, 19 Feb 2024 04:48:18 GMT', 'Content-Length': '87'} body={"status":"success","data":{"resultType":"vector","result":[]}} ${resp} = <Response [200]> 200 ${resp} Fails if response status code is different than the expected. ${resp.json()} ${resp} = {'status': 'success', 'data': {'resultType': 'vector', 'result': []}} ${result_list} ${resp["data"]["result"]} Converts the given ``item`` to a Python ``list`` type. ${result_list} = [] ${results} ${result_list} Returns and logs the length of the given item as an integer. Length is 0 ${results} = 0 0 ${results} msg=Metric ${metric} not found values=false Fails if objects are equal after converting them to real numbers. Argument types are: <class 'str'> <class 'int'> Metric osm_cpu_utilization not found 1 ${results} msg=Metric ${metric} with multiple values values=false Fails if objects are unequal after converting them to integers. ${result_list[0]["value"][1]} ${PROMETHEUS_HOST} ${PROMETHEUS_PORT} ${PROMETHEUS_USER} ${PROMETHEUS_PASSWORD} ${METRIC_NAME} ${metric_filter} Get the instant value of a metric from Prometheus using multiple filter parameters. The filter parameters are given to this function in key=value format (one argument per key/value pair). Fails if the metric is not found or has multiple values. Examples of execution: ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${param1}=${value1} ${param2}=${value2} ${filter} ${EMPTY} Returns the given values which can then be assigned to a variables. ${filter} = ${param} @{filter_parameters} ns_id=96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in filter parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = ns_id=96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${param_name} = ns_id ${param_value} = 96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=96c5fa12-0d2e-45a4-851e-1b59fb59b2a6,ns_id,96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="96c5fa12-0d2e-45a4-851e-1b59fb59b2a6", ${resp} ${prometheus_ip} ${prometheus_port} ${prometheus_user} ${prometheus_password} query=${metric}{${filter}} Execute a Prometheus Instant Query using HTTP API. Return an inline json with the result of the query. The requested URL is the next: http://${prometheus_ip}:${prometheus_port}/api/v1/query?${querystring} ${auth} ${prometheus_user} ${prometheus_password} Returns a list containing given items. ${auth} = ['""', '""'] ${auth} None Returns the given values which can then be assigned to a variables. prometheus http://${prometheus_ip}:${prometheus_port} timeout=${TIMEOUT} max_retries=${MAX_RETRIES} verify=false auth=${auth} Create Session: create a HTTP session to a server Creating Session using : alias=prometheus, url=http://172.21.249.226:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7ff1ac125ff0>, timeout=30, proxies=None, verify=False, debug=0 ${resp} prometheus /api/v1/query?${querystring} timeout=${TIMEOUT} Sends a GET request on a previously created HTTP Session. GET Request : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2296c5fa12-0d2e-45a4-851e-1b59fb59b2a6%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2296c5fa12-0d2e-45a4-851e-1b59fb59b2a6%22,%7D headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'Basic IiI6IiI='} body=None GET Response : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2296c5fa12-0d2e-45a4-851e-1b59fb59b2a6%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Mon, 19 Feb 2024 04:49:18 GMT', 'Content-Length': '87'} body={"status":"success","data":{"resultType":"vector","result":[]}} ${resp} = <Response [200]> 200 ${resp} Fails if response status code is different than the expected. ${resp.json()} ${resp} = {'status': 'success', 'data': {'resultType': 'vector', 'result': []}} ${result_list} ${resp["data"]["result"]} Converts the given ``item`` to a Python ``list`` type. ${result_list} = [] ${results} ${result_list} Returns and logs the length of the given item as an integer. Length is 0 ${results} = 0 0 ${results} msg=Metric ${metric} not found values=false Fails if objects are equal after converting them to real numbers. Argument types are: <class 'str'> <class 'int'> Metric osm_cpu_utilization not found 1 ${results} msg=Metric ${metric} with multiple values values=false Fails if objects are unequal after converting them to integers. ${result_list[0]["value"][1]} ${PROMETHEUS_HOST} ${PROMETHEUS_PORT} ${PROMETHEUS_USER} ${PROMETHEUS_PASSWORD} ${METRIC_NAME} ${metric_filter} Get the instant value of a metric from Prometheus using multiple filter parameters. The filter parameters are given to this function in key=value format (one argument per key/value pair). Fails if the metric is not found or has multiple values. Examples of execution: ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${param1}=${value1} ${param2}=${value2} ${filter} ${EMPTY} Returns the given values which can then be assigned to a variables. ${filter} = ${param} @{filter_parameters} ns_id=96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in filter parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = ns_id=96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${param_name} = ns_id ${param_value} = 96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=96c5fa12-0d2e-45a4-851e-1b59fb59b2a6,ns_id,96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="96c5fa12-0d2e-45a4-851e-1b59fb59b2a6", ${resp} ${prometheus_ip} ${prometheus_port} ${prometheus_user} ${prometheus_password} query=${metric}{${filter}} Execute a Prometheus Instant Query using HTTP API. Return an inline json with the result of the query. The requested URL is the next: http://${prometheus_ip}:${prometheus_port}/api/v1/query?${querystring} ${auth} ${prometheus_user} ${prometheus_password} Returns a list containing given items. ${auth} = ['""', '""'] ${auth} None Returns the given values which can then be assigned to a variables. prometheus http://${prometheus_ip}:${prometheus_port} timeout=${TIMEOUT} max_retries=${MAX_RETRIES} verify=false auth=${auth} Create Session: create a HTTP session to a server Creating Session using : alias=prometheus, url=http://172.21.249.226:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7ff1a6e2dc00>, timeout=30, proxies=None, verify=False, debug=0 ${resp} prometheus /api/v1/query?${querystring} timeout=${TIMEOUT} Sends a GET request on a previously created HTTP Session. GET Request : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2296c5fa12-0d2e-45a4-851e-1b59fb59b2a6%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2296c5fa12-0d2e-45a4-851e-1b59fb59b2a6%22,%7D headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'Basic IiI6IiI='} body=None GET Response : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2296c5fa12-0d2e-45a4-851e-1b59fb59b2a6%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Mon, 19 Feb 2024 04:50:18 GMT', 'Content-Length': '87'} body={"status":"success","data":{"resultType":"vector","result":[]}} ${resp} = <Response [200]> 200 ${resp} Fails if response status code is different than the expected. ${resp.json()} ${resp} = {'status': 'success', 'data': {'resultType': 'vector', 'result': []}} ${result_list} ${resp["data"]["result"]} Converts the given ``item`` to a Python ``list`` type. ${result_list} = [] ${results} ${result_list} Returns and logs the length of the given item as an integer. Length is 0 ${results} = 0 0 ${results} msg=Metric ${metric} not found values=false Fails if objects are equal after converting them to real numbers. Argument types are: <class 'str'> <class 'int'> Metric osm_cpu_utilization not found 1 ${results} msg=Metric ${metric} with multiple values values=false Fails if objects are unequal after converting them to integers. ${result_list[0]["value"][1]} ${PROMETHEUS_HOST} ${PROMETHEUS_PORT} ${PROMETHEUS_USER} ${PROMETHEUS_PASSWORD} ${METRIC_NAME} ${metric_filter} Get the instant value of a metric from Prometheus using multiple filter parameters. The filter parameters are given to this function in key=value format (one argument per key/value pair). Fails if the metric is not found or has multiple values. Examples of execution: ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${param1}=${value1} ${param2}=${value2} ${filter} ${EMPTY} Returns the given values which can then be assigned to a variables. ${filter} = ${param} @{filter_parameters} ns_id=96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in filter parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = ns_id=96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${param_name} = ns_id ${param_value} = 96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=96c5fa12-0d2e-45a4-851e-1b59fb59b2a6,ns_id,96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="96c5fa12-0d2e-45a4-851e-1b59fb59b2a6", ${resp} ${prometheus_ip} ${prometheus_port} ${prometheus_user} ${prometheus_password} query=${metric}{${filter}} Execute a Prometheus Instant Query using HTTP API. Return an inline json with the result of the query. The requested URL is the next: http://${prometheus_ip}:${prometheus_port}/api/v1/query?${querystring} ${auth} ${prometheus_user} ${prometheus_password} Returns a list containing given items. ${auth} = ['""', '""'] ${auth} None Returns the given values which can then be assigned to a variables. prometheus http://${prometheus_ip}:${prometheus_port} timeout=${TIMEOUT} max_retries=${MAX_RETRIES} verify=false auth=${auth} Create Session: create a HTTP session to a server Creating Session using : alias=prometheus, url=http://172.21.249.226:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7ff1a6e95570>, timeout=30, proxies=None, verify=False, debug=0 ${resp} prometheus /api/v1/query?${querystring} timeout=${TIMEOUT} Sends a GET request on a previously created HTTP Session. GET Request : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2296c5fa12-0d2e-45a4-851e-1b59fb59b2a6%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2296c5fa12-0d2e-45a4-851e-1b59fb59b2a6%22,%7D headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'Basic IiI6IiI='} body=None GET Response : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2296c5fa12-0d2e-45a4-851e-1b59fb59b2a6%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Mon, 19 Feb 2024 04:51:18 GMT', 'Content-Length': '87'} body={"status":"success","data":{"resultType":"vector","result":[]}} ${resp} = <Response [200]> 200 ${resp} Fails if response status code is different than the expected. ${resp.json()} ${resp} = {'status': 'success', 'data': {'resultType': 'vector', 'result': []}} ${result_list} ${resp["data"]["result"]} Converts the given ``item`` to a Python ``list`` type. ${result_list} = [] ${results} ${result_list} Returns and logs the length of the given item as an integer. Length is 0 ${results} = 0 0 ${results} msg=Metric ${metric} not found values=false Fails if objects are equal after converting them to real numbers. Argument types are: <class 'str'> <class 'int'> Metric osm_cpu_utilization not found 1 ${results} msg=Metric ${metric} with multiple values values=false Fails if objects are unequal after converting them to integers. ${result_list[0]["value"][1]} ${PROMETHEUS_HOST} ${PROMETHEUS_PORT} ${PROMETHEUS_USER} ${PROMETHEUS_PASSWORD} ${METRIC_NAME} ${metric_filter} Get the instant value of a metric from Prometheus using multiple filter parameters. The filter parameters are given to this function in key=value format (one argument per key/value pair). Fails if the metric is not found or has multiple values. Examples of execution: ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${param1}=${value1} ${param2}=${value2} ${filter} ${EMPTY} Returns the given values which can then be assigned to a variables. ${filter} = ${param} @{filter_parameters} ns_id=96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in filter parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = ns_id=96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${param_name} = ns_id ${param_value} = 96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=96c5fa12-0d2e-45a4-851e-1b59fb59b2a6,ns_id,96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="96c5fa12-0d2e-45a4-851e-1b59fb59b2a6", ${resp} ${prometheus_ip} ${prometheus_port} ${prometheus_user} ${prometheus_password} query=${metric}{${filter}} Execute a Prometheus Instant Query using HTTP API. Return an inline json with the result of the query. The requested URL is the next: http://${prometheus_ip}:${prometheus_port}/api/v1/query?${querystring} ${auth} ${prometheus_user} ${prometheus_password} Returns a list containing given items. ${auth} = ['""', '""'] ${auth} None Returns the given values which can then be assigned to a variables. prometheus http://${prometheus_ip}:${prometheus_port} timeout=${TIMEOUT} max_retries=${MAX_RETRIES} verify=false auth=${auth} Create Session: create a HTTP session to a server Creating Session using : alias=prometheus, url=http://172.21.249.226:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7ff1a6ed2f80>, timeout=30, proxies=None, verify=False, debug=0 ${resp} prometheus /api/v1/query?${querystring} timeout=${TIMEOUT} Sends a GET request on a previously created HTTP Session. GET Request : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2296c5fa12-0d2e-45a4-851e-1b59fb59b2a6%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2296c5fa12-0d2e-45a4-851e-1b59fb59b2a6%22,%7D headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'Basic IiI6IiI='} body=None GET Response : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2296c5fa12-0d2e-45a4-851e-1b59fb59b2a6%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Mon, 19 Feb 2024 04:52:18 GMT', 'Content-Length': '87'} body={"status":"success","data":{"resultType":"vector","result":[]}} ${resp} = <Response [200]> 200 ${resp} Fails if response status code is different than the expected. ${resp.json()} ${resp} = {'status': 'success', 'data': {'resultType': 'vector', 'result': []}} ${result_list} ${resp["data"]["result"]} Converts the given ``item`` to a Python ``list`` type. ${result_list} = [] ${results} ${result_list} Returns and logs the length of the given item as an integer. Length is 0 ${results} = 0 0 ${results} msg=Metric ${metric} not found values=false Fails if objects are equal after converting them to real numbers. Argument types are: <class 'str'> <class 'int'> Metric osm_cpu_utilization not found 1 ${results} msg=Metric ${metric} with multiple values values=false Fails if objects are unequal after converting them to integers. ${result_list[0]["value"][1]} ${PROMETHEUS_HOST} ${PROMETHEUS_PORT} ${PROMETHEUS_USER} ${PROMETHEUS_PASSWORD} ${METRIC_NAME} ${metric_filter} Get the instant value of a metric from Prometheus using multiple filter parameters. The filter parameters are given to this function in key=value format (one argument per key/value pair). Fails if the metric is not found or has multiple values. Examples of execution: ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${param1}=${value1} ${param2}=${value2} ${filter} ${EMPTY} Returns the given values which can then be assigned to a variables. ${filter} = ${param} @{filter_parameters} ns_id=96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in filter parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = ns_id=96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${param_name} = ns_id ${param_value} = 96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=96c5fa12-0d2e-45a4-851e-1b59fb59b2a6,ns_id,96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="96c5fa12-0d2e-45a4-851e-1b59fb59b2a6", ${resp} ${prometheus_ip} ${prometheus_port} ${prometheus_user} ${prometheus_password} query=${metric}{${filter}} Execute a Prometheus Instant Query using HTTP API. Return an inline json with the result of the query. The requested URL is the next: http://${prometheus_ip}:${prometheus_port}/api/v1/query?${querystring} ${auth} ${prometheus_user} ${prometheus_password} Returns a list containing given items. ${auth} = ['""', '""'] ${auth} None Returns the given values which can then be assigned to a variables. prometheus http://${prometheus_ip}:${prometheus_port} timeout=${TIMEOUT} max_retries=${MAX_RETRIES} verify=false auth=${auth} Create Session: create a HTTP session to a server Creating Session using : alias=prometheus, url=http://172.21.249.226:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7ff1a6ed1de0>, timeout=30, proxies=None, verify=False, debug=0 ${resp} prometheus /api/v1/query?${querystring} timeout=${TIMEOUT} Sends a GET request on a previously created HTTP Session. GET Request : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2296c5fa12-0d2e-45a4-851e-1b59fb59b2a6%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2296c5fa12-0d2e-45a4-851e-1b59fb59b2a6%22,%7D headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'Basic IiI6IiI='} body=None GET Response : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2296c5fa12-0d2e-45a4-851e-1b59fb59b2a6%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Mon, 19 Feb 2024 04:53:18 GMT', 'Content-Length': '87'} body={"status":"success","data":{"resultType":"vector","result":[]}} ${resp} = <Response [200]> 200 ${resp} Fails if response status code is different than the expected. ${resp.json()} ${resp} = {'status': 'success', 'data': {'resultType': 'vector', 'result': []}} ${result_list} ${resp["data"]["result"]} Converts the given ``item`` to a Python ``list`` type. ${result_list} = [] ${results} ${result_list} Returns and logs the length of the given item as an integer. Length is 0 ${results} = 0 0 ${results} msg=Metric ${metric} not found values=false Fails if objects are equal after converting them to real numbers. Argument types are: <class 'str'> <class 'int'> Metric osm_cpu_utilization not found 1 ${results} msg=Metric ${metric} with multiple values values=false Fails if objects are unequal after converting them to integers. ${result_list[0]["value"][1]} ${PROMETHEUS_HOST} ${PROMETHEUS_PORT} ${PROMETHEUS_USER} ${PROMETHEUS_PASSWORD} ${METRIC_NAME} ${metric_filter} Get the instant value of a metric from Prometheus using multiple filter parameters. The filter parameters are given to this function in key=value format (one argument per key/value pair). Fails if the metric is not found or has multiple values. Examples of execution: ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${param1}=${value1} ${param2}=${value2} ${filter} ${EMPTY} Returns the given values which can then be assigned to a variables. ${filter} = ${param} @{filter_parameters} ns_id=96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in filter parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = ns_id=96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${param_name} = ns_id ${param_value} = 96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=96c5fa12-0d2e-45a4-851e-1b59fb59b2a6,ns_id,96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="96c5fa12-0d2e-45a4-851e-1b59fb59b2a6", ${resp} ${prometheus_ip} ${prometheus_port} ${prometheus_user} ${prometheus_password} query=${metric}{${filter}} Execute a Prometheus Instant Query using HTTP API. Return an inline json with the result of the query. The requested URL is the next: http://${prometheus_ip}:${prometheus_port}/api/v1/query?${querystring} ${auth} ${prometheus_user} ${prometheus_password} Returns a list containing given items. ${auth} = ['""', '""'] ${auth} None Returns the given values which can then be assigned to a variables. prometheus http://${prometheus_ip}:${prometheus_port} timeout=${TIMEOUT} max_retries=${MAX_RETRIES} verify=false auth=${auth} Create Session: create a HTTP session to a server Creating Session using : alias=prometheus, url=http://172.21.249.226:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7ff1a6e96c50>, timeout=30, proxies=None, verify=False, debug=0 ${resp} prometheus /api/v1/query?${querystring} timeout=${TIMEOUT} Sends a GET request on a previously created HTTP Session. GET Request : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2296c5fa12-0d2e-45a4-851e-1b59fb59b2a6%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2296c5fa12-0d2e-45a4-851e-1b59fb59b2a6%22,%7D headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'Basic IiI6IiI='} body=None GET Response : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2296c5fa12-0d2e-45a4-851e-1b59fb59b2a6%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Mon, 19 Feb 2024 04:54:18 GMT', 'Content-Length': '87'} body={"status":"success","data":{"resultType":"vector","result":[]}} ${resp} = <Response [200]> 200 ${resp} Fails if response status code is different than the expected. ${resp.json()} ${resp} = {'status': 'success', 'data': {'resultType': 'vector', 'result': []}} ${result_list} ${resp["data"]["result"]} Converts the given ``item`` to a Python ``list`` type. ${result_list} = [] ${results} ${result_list} Returns and logs the length of the given item as an integer. Length is 0 ${results} = 0 0 ${results} msg=Metric ${metric} not found values=false Fails if objects are equal after converting them to real numbers. Argument types are: <class 'str'> <class 'int'> Metric osm_cpu_utilization not found 1 ${results} msg=Metric ${metric} with multiple values values=false Fails if objects are unequal after converting them to integers. ${result_list[0]["value"][1]} ${PROMETHEUS_HOST} ${PROMETHEUS_PORT} ${PROMETHEUS_USER} ${PROMETHEUS_PASSWORD} ${METRIC_NAME} ${metric_filter} Get the instant value of a metric from Prometheus using multiple filter parameters. The filter parameters are given to this function in key=value format (one argument per key/value pair). Fails if the metric is not found or has multiple values. Examples of execution: ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${param1}=${value1} ${param2}=${value2} ${filter} ${EMPTY} Returns the given values which can then be assigned to a variables. ${filter} = ${param} @{filter_parameters} ns_id=96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in filter parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = ns_id=96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${param_name} = ns_id ${param_value} = 96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=96c5fa12-0d2e-45a4-851e-1b59fb59b2a6,ns_id,96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="96c5fa12-0d2e-45a4-851e-1b59fb59b2a6", ${resp} ${prometheus_ip} ${prometheus_port} ${prometheus_user} ${prometheus_password} query=${metric}{${filter}} Execute a Prometheus Instant Query using HTTP API. Return an inline json with the result of the query. The requested URL is the next: http://${prometheus_ip}:${prometheus_port}/api/v1/query?${querystring} ${auth} ${prometheus_user} ${prometheus_password} Returns a list containing given items. ${auth} = ['""', '""'] ${auth} None Returns the given values which can then be assigned to a variables. prometheus http://${prometheus_ip}:${prometheus_port} timeout=${TIMEOUT} max_retries=${MAX_RETRIES} verify=false auth=${auth} Create Session: create a HTTP session to a server Creating Session using : alias=prometheus, url=http://172.21.249.226:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7ff1a6d001f0>, timeout=30, proxies=None, verify=False, debug=0 ${resp} prometheus /api/v1/query?${querystring} timeout=${TIMEOUT} Sends a GET request on a previously created HTTP Session. GET Request : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2296c5fa12-0d2e-45a4-851e-1b59fb59b2a6%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2296c5fa12-0d2e-45a4-851e-1b59fb59b2a6%22,%7D headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'Basic IiI6IiI='} body=None GET Response : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2296c5fa12-0d2e-45a4-851e-1b59fb59b2a6%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Mon, 19 Feb 2024 04:55:18 GMT', 'Content-Length': '87'} body={"status":"success","data":{"resultType":"vector","result":[]}} ${resp} = <Response [200]> 200 ${resp} Fails if response status code is different than the expected. ${resp.json()} ${resp} = {'status': 'success', 'data': {'resultType': 'vector', 'result': []}} ${result_list} ${resp["data"]["result"]} Converts the given ``item`` to a Python ``list`` type. ${result_list} = [] ${results} ${result_list} Returns and logs the length of the given item as an integer. Length is 0 ${results} = 0 0 ${results} msg=Metric ${metric} not found values=false Fails if objects are equal after converting them to real numbers. Argument types are: <class 'str'> <class 'int'> Metric osm_cpu_utilization not found 1 ${results} msg=Metric ${metric} with multiple values values=false Fails if objects are unequal after converting them to integers. ${result_list[0]["value"][1]} ${PROMETHEUS_HOST} ${PROMETHEUS_PORT} ${PROMETHEUS_USER} ${PROMETHEUS_PASSWORD} ${METRIC_NAME} ${metric_filter} Get the instant value of a metric from Prometheus using multiple filter parameters. The filter parameters are given to this function in key=value format (one argument per key/value pair). Fails if the metric is not found or has multiple values. Examples of execution: ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${param1}=${value1} ${param2}=${value2} ${filter} ${EMPTY} Returns the given values which can then be assigned to a variables. ${filter} = ${param} @{filter_parameters} ns_id=96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in filter parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = ns_id=96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${param_name} = ns_id ${param_value} = 96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=96c5fa12-0d2e-45a4-851e-1b59fb59b2a6,ns_id,96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="96c5fa12-0d2e-45a4-851e-1b59fb59b2a6", ${resp} ${prometheus_ip} ${prometheus_port} ${prometheus_user} ${prometheus_password} query=${metric}{${filter}} Execute a Prometheus Instant Query using HTTP API. Return an inline json with the result of the query. The requested URL is the next: http://${prometheus_ip}:${prometheus_port}/api/v1/query?${querystring} ${auth} ${prometheus_user} ${prometheus_password} Returns a list containing given items. ${auth} = ['""', '""'] ${auth} None Returns the given values which can then be assigned to a variables. prometheus http://${prometheus_ip}:${prometheus_port} timeout=${TIMEOUT} max_retries=${MAX_RETRIES} verify=false auth=${auth} Create Session: create a HTTP session to a server Creating Session using : alias=prometheus, url=http://172.21.249.226:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7ff1a6d00d00>, timeout=30, proxies=None, verify=False, debug=0 ${resp} prometheus /api/v1/query?${querystring} timeout=${TIMEOUT} Sends a GET request on a previously created HTTP Session. GET Request : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2296c5fa12-0d2e-45a4-851e-1b59fb59b2a6%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2296c5fa12-0d2e-45a4-851e-1b59fb59b2a6%22,%7D headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'Basic IiI6IiI='} body=None GET Response : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2296c5fa12-0d2e-45a4-851e-1b59fb59b2a6%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Mon, 19 Feb 2024 04:56:18 GMT', 'Content-Length': '355'} body={"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"osm_cpu_utilization","job":"airflow_osm_vm_metrics_85764c05-53df-46c7-a9c8-e9e51d2283b7","metric_id":"vnf_cpu_util","ns_id":"96c5fa12-0d2e-45a4-851e-1b59fb59b2a6","project_id":"0658771c-e387-4292-a51e-090f213f77c7","vdu_id":"hackfest_basic_metrics-VM","vdu_name":"sa_02-vnf-hackfest_basic_metrics-VM-0","vim_id":"85764c05-53df-46c7-a9c8-e9e51d2283b7","vm_id":"67e8c57d-f9d0-4ca7-a706-b6c23e98c603","vnf_member_index":"vnf"},"value":[1708318578.595,"0.3333333333333333"]}]}} ${resp} = <Response [200]> 200 ${resp} Fails if response status code is different than the expected. ${resp.json()} ${resp} = {'status': 'success', 'data': {'resultType': 'vector', 'result': [{'metric': {'__name__': 'osm_cpu_utilization', 'job': 'airflow_osm_vm_metrics_85764c05-53df-46c7-a9c8-e9e51d2283b7', 'metric_id': 'vnf... ${result_list} ${resp["data"]["result"]} Converts the given ``item`` to a Python ``list`` type. ${result_list} = [{'metric': {'__name__': 'osm_cpu_utilization', 'job': 'airflow_osm_vm_metrics_85764c05-53df-46c7-a9c8-e9e51d2283b7', 'metric_id': 'vnf_cpu_util', 'ns_id': '96c5fa12-0d2e-45a4-851e-1b59fb59b2a6', 'pro... ${results} ${result_list} Returns and logs the length of the given item as an integer. Length is 1 ${results} = 1 0 ${results} msg=Metric ${metric} not found values=false Fails if objects are equal after converting them to real numbers. Argument types are: <class 'str'> <class 'int'> 1 ${results} msg=Metric ${metric} with multiple values values=false Fails if objects are unequal after converting them to integers. Argument types are: <class 'str'> <class 'int'> ${result_list[0]["value"][1]} ${metric_value} = 0.3333333333333333 msg=The metric '${METRIC_NAME}' value is '${metric_value}' Fails the test with the given message and optionally alters its tags. msg=The metric '${METRIC_NAME}' value is higher than '${METRIC_THRESHOLD}' before scaling Fails the test with the given message and optionally alters its tags. Get from Prometheus the VIM metric associated to the VNF auto-scaling group. azure cluster_sa daily regression sa_02 sanity ${PRIVATEKEY} msg=SSH private key not available Fails unless the given variable exists within the current scope. ${VNF_IP_ADDR} ${USERNAME} ${PASSWORD} ${PRIVATEKEY} for i in {1..9}; do yes &> /dev/null & done Execute via SSH a command in a remote host and, if the command succeeds, return the output. ${host} Opens a new SSH connection to the given ``host`` and ``port``. ${username} ${password} Logs into the SSH server with the given ``username`` and ``password``. Logging into '172.21.248.236:22' as 'ubuntu'. Read output: Welcome to Ubuntu 20.04.4 LTS (GNU/Linux 5.4.0-107-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Mon Feb 19 04:56:18 UTC 2024 System load: 0.0 Processes: 100 Usage of /: 14.0% of 9.52GB Users logged in: 0 Memory usage: 21% IPv4 address for ens3: 172.21.248.236 Swap usage: 0% 1 update can be applied immediately. To see these additional updates run: apt list --upgradable The list of available updates is more than a week old. To check for new updates run: sudo apt update The programs included with the Ubuntu system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. ubuntu@sa-02-vnf-hackfest-basic-metrics-vm-0:~$ ${username} ${privatekey} Logs into the SSH server using key-based authentication. ${stdout} ${rc} ${command} return_rc=True return_stdout=True Executes ``command`` on the remote machine and returns its outputs. Executing command 'for i in {1..9}; do yes &> /dev/null & done'. Command exited with return code 0. ${stdout} = ${rc} = 0 ${rc} Logs the given message with the given level. 0 ${stdout} Logs the given message with the given level. Closes all open connections. ${rc} 0 Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Connect to the VNF via SSH and force VIM metric to increase. azure cluster_sa daily regression sa_02 sanity ${PROMETHEUS_POLL_RETRIES} msg=Metric polling retries is not available Fails unless the given variable exists within the current scope. ${PROMETHEUS_POLL_TIMEOUT} msg=Metric polling timeout is not available Fails unless the given variable exists within the current scope. ${PROMETHEUS_POLL_RETRIES} ${PROMETHEUS_POLL_TIMEOUT} Check VIM-based Metric Exceeds Threshold Runs the specified keyword and retries if it fails. Auxiliar keyword to check if metric exceeds threshold ${PROMETHEUS_HOST} msg=Prometheus address is not available Fails unless the given variable exists within the current scope. ${PROMETHEUS_PORT} msg=Prometheus port is not available Fails unless the given variable exists within the current scope. ${METRIC_NAME} msg=Prometheus metric name is not available Fails unless the given variable exists within the current scope. ${metric_filter} ns_id=${NS_ID} Returns the given values which can then be assigned to a variables. ${metric_filter} = ns_id=96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${metric_value} ${PROMETHEUS_HOST} ${PROMETHEUS_PORT} ${PROMETHEUS_USER} ${PROMETHEUS_PASSWORD} ${METRIC_NAME} ${metric_filter} Get the instant value of a metric from Prometheus using multiple filter parameters. The filter parameters are given to this function in key=value format (one argument per key/value pair). Fails if the metric is not found or has multiple values. Examples of execution: ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${param1}=${value1} ${param2}=${value2} ${filter} ${EMPTY} Returns the given values which can then be assigned to a variables. ${filter} = ${param} @{filter_parameters} ns_id=96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in filter parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = ns_id=96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${param_name} = ns_id ${param_value} = 96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=96c5fa12-0d2e-45a4-851e-1b59fb59b2a6,ns_id,96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="96c5fa12-0d2e-45a4-851e-1b59fb59b2a6", ${resp} ${prometheus_ip} ${prometheus_port} ${prometheus_user} ${prometheus_password} query=${metric}{${filter}} Execute a Prometheus Instant Query using HTTP API. Return an inline json with the result of the query. The requested URL is the next: http://${prometheus_ip}:${prometheus_port}/api/v1/query?${querystring} ${auth} ${prometheus_user} ${prometheus_password} Returns a list containing given items. ${auth} = ['""', '""'] ${auth} None Returns the given values which can then be assigned to a variables. prometheus http://${prometheus_ip}:${prometheus_port} timeout=${TIMEOUT} max_retries=${MAX_RETRIES} verify=false auth=${auth} Create Session: create a HTTP session to a server Creating Session using : alias=prometheus, url=http://172.21.249.226:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7ff1a6d039a0>, timeout=30, proxies=None, verify=False, debug=0 ${resp} prometheus /api/v1/query?${querystring} timeout=${TIMEOUT} Sends a GET request on a previously created HTTP Session. GET Request : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2296c5fa12-0d2e-45a4-851e-1b59fb59b2a6%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2296c5fa12-0d2e-45a4-851e-1b59fb59b2a6%22,%7D headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'Basic IiI6IiI='} body=None GET Response : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2296c5fa12-0d2e-45a4-851e-1b59fb59b2a6%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Mon, 19 Feb 2024 04:56:20 GMT', 'Content-Length': '355'} body={"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"osm_cpu_utilization","job":"airflow_osm_vm_metrics_85764c05-53df-46c7-a9c8-e9e51d2283b7","metric_id":"vnf_cpu_util","ns_id":"96c5fa12-0d2e-45a4-851e-1b59fb59b2a6","project_id":"0658771c-e387-4292-a51e-090f213f77c7","vdu_id":"hackfest_basic_metrics-VM","vdu_name":"sa_02-vnf-hackfest_basic_metrics-VM-0","vim_id":"85764c05-53df-46c7-a9c8-e9e51d2283b7","vm_id":"67e8c57d-f9d0-4ca7-a706-b6c23e98c603","vnf_member_index":"vnf"},"value":[1708318580.992,"0.3333333333333333"]}]}} ${resp} = <Response [200]> 200 ${resp} Fails if response status code is different than the expected. ${resp.json()} ${resp} = {'status': 'success', 'data': {'resultType': 'vector', 'result': [{'metric': {'__name__': 'osm_cpu_utilization', 'job': 'airflow_osm_vm_metrics_85764c05-53df-46c7-a9c8-e9e51d2283b7', 'metric_id': 'vnf... ${result_list} ${resp["data"]["result"]} Converts the given ``item`` to a Python ``list`` type. ${result_list} = [{'metric': {'__name__': 'osm_cpu_utilization', 'job': 'airflow_osm_vm_metrics_85764c05-53df-46c7-a9c8-e9e51d2283b7', 'metric_id': 'vnf_cpu_util', 'ns_id': '96c5fa12-0d2e-45a4-851e-1b59fb59b2a6', 'pro... ${results} ${result_list} Returns and logs the length of the given item as an integer. Length is 1 ${results} = 1 0 ${results} msg=Metric ${metric} not found values=false Fails if objects are equal after converting them to real numbers. Argument types are: <class 'str'> <class 'int'> 1 ${results} msg=Metric ${metric} with multiple values values=false Fails if objects are unequal after converting them to integers. Argument types are: <class 'str'> <class 'int'> ${result_list[0]["value"][1]} ${metric_value} = 0.3333333333333333 msg=The metric '${METRIC_NAME}' value is '${metric_value}' which is lower than '${METRIC_THRESHOLD}' Fails the test with the given message and optionally alters its tags. The metric 'osm_cpu_utilization' value is '0.3333333333333333' which is lower than '60.0' Auxiliar keyword to check if metric exceeds threshold ${PROMETHEUS_HOST} msg=Prometheus address is not available Fails unless the given variable exists within the current scope. ${PROMETHEUS_PORT} msg=Prometheus port is not available Fails unless the given variable exists within the current scope. ${METRIC_NAME} msg=Prometheus metric name is not available Fails unless the given variable exists within the current scope. ${metric_filter} ns_id=${NS_ID} Returns the given values which can then be assigned to a variables. ${metric_filter} = ns_id=96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${metric_value} ${PROMETHEUS_HOST} ${PROMETHEUS_PORT} ${PROMETHEUS_USER} ${PROMETHEUS_PASSWORD} ${METRIC_NAME} ${metric_filter} Get the instant value of a metric from Prometheus using multiple filter parameters. The filter parameters are given to this function in key=value format (one argument per key/value pair). Fails if the metric is not found or has multiple values. Examples of execution: ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${param1}=${value1} ${param2}=${value2} ${filter} ${EMPTY} Returns the given values which can then be assigned to a variables. ${filter} = ${param} @{filter_parameters} ns_id=96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in filter parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = ns_id=96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${param_name} = ns_id ${param_value} = 96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=96c5fa12-0d2e-45a4-851e-1b59fb59b2a6,ns_id,96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="96c5fa12-0d2e-45a4-851e-1b59fb59b2a6", ${resp} ${prometheus_ip} ${prometheus_port} ${prometheus_user} ${prometheus_password} query=${metric}{${filter}} Execute a Prometheus Instant Query using HTTP API. Return an inline json with the result of the query. The requested URL is the next: http://${prometheus_ip}:${prometheus_port}/api/v1/query?${querystring} ${auth} ${prometheus_user} ${prometheus_password} Returns a list containing given items. ${auth} = ['""', '""'] ${auth} None Returns the given values which can then be assigned to a variables. prometheus http://${prometheus_ip}:${prometheus_port} timeout=${TIMEOUT} max_retries=${MAX_RETRIES} verify=false auth=${auth} Create Session: create a HTTP session to a server Creating Session using : alias=prometheus, url=http://172.21.249.226:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7ff1a6ed28f0>, timeout=30, proxies=None, verify=False, debug=0 ${resp} prometheus /api/v1/query?${querystring} timeout=${TIMEOUT} Sends a GET request on a previously created HTTP Session. GET Request : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2296c5fa12-0d2e-45a4-851e-1b59fb59b2a6%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2296c5fa12-0d2e-45a4-851e-1b59fb59b2a6%22,%7D headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'Basic IiI6IiI='} body=None GET Response : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2296c5fa12-0d2e-45a4-851e-1b59fb59b2a6%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Mon, 19 Feb 2024 04:57:21 GMT', 'Content-Length': '356'} body={"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"osm_cpu_utilization","job":"airflow_osm_vm_metrics_85764c05-53df-46c7-a9c8-e9e51d2283b7","metric_id":"vnf_cpu_util","ns_id":"96c5fa12-0d2e-45a4-851e-1b59fb59b2a6","project_id":"0658771c-e387-4292-a51e-090f213f77c7","vdu_id":"hackfest_basic_metrics-VM","vdu_name":"sa_02-vnf-hackfest_basic_metrics-VM-0","vim_id":"85764c05-53df-46c7-a9c8-e9e51d2283b7","vm_id":"67e8c57d-f9d0-4ca7-a706-b6c23e98c603","vnf_member_index":"vnf"},"value":[1708318641.037,"0.3333333333333333"]}]}} ${resp} = <Response [200]> 200 ${resp} Fails if response status code is different than the expected. ${resp.json()} ${resp} = {'status': 'success', 'data': {'resultType': 'vector', 'result': [{'metric': {'__name__': 'osm_cpu_utilization', 'job': 'airflow_osm_vm_metrics_85764c05-53df-46c7-a9c8-e9e51d2283b7', 'metric_id': 'vnf... ${result_list} ${resp["data"]["result"]} Converts the given ``item`` to a Python ``list`` type. ${result_list} = [{'metric': {'__name__': 'osm_cpu_utilization', 'job': 'airflow_osm_vm_metrics_85764c05-53df-46c7-a9c8-e9e51d2283b7', 'metric_id': 'vnf_cpu_util', 'ns_id': '96c5fa12-0d2e-45a4-851e-1b59fb59b2a6', 'pro... ${results} ${result_list} Returns and logs the length of the given item as an integer. Length is 1 ${results} = 1 0 ${results} msg=Metric ${metric} not found values=false Fails if objects are equal after converting them to real numbers. Argument types are: <class 'str'> <class 'int'> 1 ${results} msg=Metric ${metric} with multiple values values=false Fails if objects are unequal after converting them to integers. Argument types are: <class 'str'> <class 'int'> ${result_list[0]["value"][1]} ${metric_value} = 0.3333333333333333 msg=The metric '${METRIC_NAME}' value is '${metric_value}' which is lower than '${METRIC_THRESHOLD}' Fails the test with the given message and optionally alters its tags. The metric 'osm_cpu_utilization' value is '0.3333333333333333' which is lower than '60.0' Auxiliar keyword to check if metric exceeds threshold ${PROMETHEUS_HOST} msg=Prometheus address is not available Fails unless the given variable exists within the current scope. ${PROMETHEUS_PORT} msg=Prometheus port is not available Fails unless the given variable exists within the current scope. ${METRIC_NAME} msg=Prometheus metric name is not available Fails unless the given variable exists within the current scope. ${metric_filter} ns_id=${NS_ID} Returns the given values which can then be assigned to a variables. ${metric_filter} = ns_id=96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${metric_value} ${PROMETHEUS_HOST} ${PROMETHEUS_PORT} ${PROMETHEUS_USER} ${PROMETHEUS_PASSWORD} ${METRIC_NAME} ${metric_filter} Get the instant value of a metric from Prometheus using multiple filter parameters. The filter parameters are given to this function in key=value format (one argument per key/value pair). Fails if the metric is not found or has multiple values. Examples of execution: ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${param1}=${value1} ${param2}=${value2} ${filter} ${EMPTY} Returns the given values which can then be assigned to a variables. ${filter} = ${param} @{filter_parameters} ns_id=96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in filter parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = ns_id=96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${param_name} = ns_id ${param_value} = 96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=96c5fa12-0d2e-45a4-851e-1b59fb59b2a6,ns_id,96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="96c5fa12-0d2e-45a4-851e-1b59fb59b2a6", ${resp} ${prometheus_ip} ${prometheus_port} ${prometheus_user} ${prometheus_password} query=${metric}{${filter}} Execute a Prometheus Instant Query using HTTP API. Return an inline json with the result of the query. The requested URL is the next: http://${prometheus_ip}:${prometheus_port}/api/v1/query?${querystring} ${auth} ${prometheus_user} ${prometheus_password} Returns a list containing given items. ${auth} = ['""', '""'] ${auth} None Returns the given values which can then be assigned to a variables. prometheus http://${prometheus_ip}:${prometheus_port} timeout=${TIMEOUT} max_retries=${MAX_RETRIES} verify=false auth=${auth} Create Session: create a HTTP session to a server Creating Session using : alias=prometheus, url=http://172.21.249.226:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7ff1a6f282e0>, timeout=30, proxies=None, verify=False, debug=0 ${resp} prometheus /api/v1/query?${querystring} timeout=${TIMEOUT} Sends a GET request on a previously created HTTP Session. GET Request : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2296c5fa12-0d2e-45a4-851e-1b59fb59b2a6%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2296c5fa12-0d2e-45a4-851e-1b59fb59b2a6%22,%7D headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'Basic IiI6IiI='} body=None GET Response : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2296c5fa12-0d2e-45a4-851e-1b59fb59b2a6%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Mon, 19 Feb 2024 04:58:21 GMT', 'Content-Length': '355'} body={"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"osm_cpu_utilization","job":"airflow_osm_vm_metrics_85764c05-53df-46c7-a9c8-e9e51d2283b7","metric_id":"vnf_cpu_util","ns_id":"96c5fa12-0d2e-45a4-851e-1b59fb59b2a6","project_id":"0658771c-e387-4292-a51e-090f213f77c7","vdu_id":"hackfest_basic_metrics-VM","vdu_name":"sa_02-vnf-hackfest_basic_metrics-VM-0","vim_id":"85764c05-53df-46c7-a9c8-e9e51d2283b7","vm_id":"67e8c57d-f9d0-4ca7-a706-b6c23e98c603","vnf_member_index":"vnf"},"value":[1708318701.074,"0.3333333333333333"]}]}} ${resp} = <Response [200]> 200 ${resp} Fails if response status code is different than the expected. ${resp.json()} ${resp} = {'status': 'success', 'data': {'resultType': 'vector', 'result': [{'metric': {'__name__': 'osm_cpu_utilization', 'job': 'airflow_osm_vm_metrics_85764c05-53df-46c7-a9c8-e9e51d2283b7', 'metric_id': 'vnf... ${result_list} ${resp["data"]["result"]} Converts the given ``item`` to a Python ``list`` type. ${result_list} = [{'metric': {'__name__': 'osm_cpu_utilization', 'job': 'airflow_osm_vm_metrics_85764c05-53df-46c7-a9c8-e9e51d2283b7', 'metric_id': 'vnf_cpu_util', 'ns_id': '96c5fa12-0d2e-45a4-851e-1b59fb59b2a6', 'pro... ${results} ${result_list} Returns and logs the length of the given item as an integer. Length is 1 ${results} = 1 0 ${results} msg=Metric ${metric} not found values=false Fails if objects are equal after converting them to real numbers. Argument types are: <class 'str'> <class 'int'> 1 ${results} msg=Metric ${metric} with multiple values values=false Fails if objects are unequal after converting them to integers. Argument types are: <class 'str'> <class 'int'> ${result_list[0]["value"][1]} ${metric_value} = 0.3333333333333333 msg=The metric '${METRIC_NAME}' value is '${metric_value}' which is lower than '${METRIC_THRESHOLD}' Fails the test with the given message and optionally alters its tags. The metric 'osm_cpu_utilization' value is '0.3333333333333333' which is lower than '60.0' Auxiliar keyword to check if metric exceeds threshold ${PROMETHEUS_HOST} msg=Prometheus address is not available Fails unless the given variable exists within the current scope. ${PROMETHEUS_PORT} msg=Prometheus port is not available Fails unless the given variable exists within the current scope. ${METRIC_NAME} msg=Prometheus metric name is not available Fails unless the given variable exists within the current scope. ${metric_filter} ns_id=${NS_ID} Returns the given values which can then be assigned to a variables. ${metric_filter} = ns_id=96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${metric_value} ${PROMETHEUS_HOST} ${PROMETHEUS_PORT} ${PROMETHEUS_USER} ${PROMETHEUS_PASSWORD} ${METRIC_NAME} ${metric_filter} Get the instant value of a metric from Prometheus using multiple filter parameters. The filter parameters are given to this function in key=value format (one argument per key/value pair). Fails if the metric is not found or has multiple values. Examples of execution: ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${param1}=${value1} ${param2}=${value2} ${filter} ${EMPTY} Returns the given values which can then be assigned to a variables. ${filter} = ${param} @{filter_parameters} ns_id=96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in filter parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = ns_id=96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${param_name} = ns_id ${param_value} = 96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=96c5fa12-0d2e-45a4-851e-1b59fb59b2a6,ns_id,96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="96c5fa12-0d2e-45a4-851e-1b59fb59b2a6", ${resp} ${prometheus_ip} ${prometheus_port} ${prometheus_user} ${prometheus_password} query=${metric}{${filter}} Execute a Prometheus Instant Query using HTTP API. Return an inline json with the result of the query. The requested URL is the next: http://${prometheus_ip}:${prometheus_port}/api/v1/query?${querystring} ${auth} ${prometheus_user} ${prometheus_password} Returns a list containing given items. ${auth} = ['""', '""'] ${auth} None Returns the given values which can then be assigned to a variables. prometheus http://${prometheus_ip}:${prometheus_port} timeout=${TIMEOUT} max_retries=${MAX_RETRIES} verify=false auth=${auth} Create Session: create a HTTP session to a server Creating Session using : alias=prometheus, url=http://172.21.249.226:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7ff1a6e94d60>, timeout=30, proxies=None, verify=False, debug=0 ${resp} prometheus /api/v1/query?${querystring} timeout=${TIMEOUT} Sends a GET request on a previously created HTTP Session. GET Request : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2296c5fa12-0d2e-45a4-851e-1b59fb59b2a6%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2296c5fa12-0d2e-45a4-851e-1b59fb59b2a6%22,%7D headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'Basic IiI6IiI='} body=None GET Response : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2296c5fa12-0d2e-45a4-851e-1b59fb59b2a6%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Mon, 19 Feb 2024 04:59:21 GMT', 'Content-Length': '356'} body={"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"osm_cpu_utilization","job":"airflow_osm_vm_metrics_85764c05-53df-46c7-a9c8-e9e51d2283b7","metric_id":"vnf_cpu_util","ns_id":"96c5fa12-0d2e-45a4-851e-1b59fb59b2a6","project_id":"0658771c-e387-4292-a51e-090f213f77c7","vdu_id":"hackfest_basic_metrics-VM","vdu_name":"sa_02-vnf-hackfest_basic_metrics-VM-0","vim_id":"85764c05-53df-46c7-a9c8-e9e51d2283b7","vm_id":"67e8c57d-f9d0-4ca7-a706-b6c23e98c603","vnf_member_index":"vnf"},"value":[1708318761.114,"0.3333333333333333"]}]}} ${resp} = <Response [200]> 200 ${resp} Fails if response status code is different than the expected. ${resp.json()} ${resp} = {'status': 'success', 'data': {'resultType': 'vector', 'result': [{'metric': {'__name__': 'osm_cpu_utilization', 'job': 'airflow_osm_vm_metrics_85764c05-53df-46c7-a9c8-e9e51d2283b7', 'metric_id': 'vnf... ${result_list} ${resp["data"]["result"]} Converts the given ``item`` to a Python ``list`` type. ${result_list} = [{'metric': {'__name__': 'osm_cpu_utilization', 'job': 'airflow_osm_vm_metrics_85764c05-53df-46c7-a9c8-e9e51d2283b7', 'metric_id': 'vnf_cpu_util', 'ns_id': '96c5fa12-0d2e-45a4-851e-1b59fb59b2a6', 'pro... ${results} ${result_list} Returns and logs the length of the given item as an integer. Length is 1 ${results} = 1 0 ${results} msg=Metric ${metric} not found values=false Fails if objects are equal after converting them to real numbers. Argument types are: <class 'str'> <class 'int'> 1 ${results} msg=Metric ${metric} with multiple values values=false Fails if objects are unequal after converting them to integers. Argument types are: <class 'str'> <class 'int'> ${result_list[0]["value"][1]} ${metric_value} = 0.3333333333333333 msg=The metric '${METRIC_NAME}' value is '${metric_value}' which is lower than '${METRIC_THRESHOLD}' Fails the test with the given message and optionally alters its tags. The metric 'osm_cpu_utilization' value is '0.3333333333333333' which is lower than '60.0' Auxiliar keyword to check if metric exceeds threshold ${PROMETHEUS_HOST} msg=Prometheus address is not available Fails unless the given variable exists within the current scope. ${PROMETHEUS_PORT} msg=Prometheus port is not available Fails unless the given variable exists within the current scope. ${METRIC_NAME} msg=Prometheus metric name is not available Fails unless the given variable exists within the current scope. ${metric_filter} ns_id=${NS_ID} Returns the given values which can then be assigned to a variables. ${metric_filter} = ns_id=96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${metric_value} ${PROMETHEUS_HOST} ${PROMETHEUS_PORT} ${PROMETHEUS_USER} ${PROMETHEUS_PASSWORD} ${METRIC_NAME} ${metric_filter} Get the instant value of a metric from Prometheus using multiple filter parameters. The filter parameters are given to this function in key=value format (one argument per key/value pair). Fails if the metric is not found or has multiple values. Examples of execution: ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${param1}=${value1} ${param2}=${value2} ${filter} ${EMPTY} Returns the given values which can then be assigned to a variables. ${filter} = ${param} @{filter_parameters} ns_id=96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in filter parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = ns_id=96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${param_name} = ns_id ${param_value} = 96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=96c5fa12-0d2e-45a4-851e-1b59fb59b2a6,ns_id,96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="96c5fa12-0d2e-45a4-851e-1b59fb59b2a6", ${resp} ${prometheus_ip} ${prometheus_port} ${prometheus_user} ${prometheus_password} query=${metric}{${filter}} Execute a Prometheus Instant Query using HTTP API. Return an inline json with the result of the query. The requested URL is the next: http://${prometheus_ip}:${prometheus_port}/api/v1/query?${querystring} ${auth} ${prometheus_user} ${prometheus_password} Returns a list containing given items. ${auth} = ['""', '""'] ${auth} None Returns the given values which can then be assigned to a variables. prometheus http://${prometheus_ip}:${prometheus_port} timeout=${TIMEOUT} max_retries=${MAX_RETRIES} verify=false auth=${auth} Create Session: create a HTTP session to a server Creating Session using : alias=prometheus, url=http://172.21.249.226:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7ff1a6e2d5d0>, timeout=30, proxies=None, verify=False, debug=0 ${resp} prometheus /api/v1/query?${querystring} timeout=${TIMEOUT} Sends a GET request on a previously created HTTP Session. GET Request : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2296c5fa12-0d2e-45a4-851e-1b59fb59b2a6%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2296c5fa12-0d2e-45a4-851e-1b59fb59b2a6%22,%7D headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'Basic IiI6IiI='} body=None GET Response : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2296c5fa12-0d2e-45a4-851e-1b59fb59b2a6%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Mon, 19 Feb 2024 05:00:21 GMT', 'Content-Length': '355'} body={"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"osm_cpu_utilization","job":"airflow_osm_vm_metrics_85764c05-53df-46c7-a9c8-e9e51d2283b7","metric_id":"vnf_cpu_util","ns_id":"96c5fa12-0d2e-45a4-851e-1b59fb59b2a6","project_id":"0658771c-e387-4292-a51e-090f213f77c7","vdu_id":"hackfest_basic_metrics-VM","vdu_name":"sa_02-vnf-hackfest_basic_metrics-VM-0","vim_id":"85764c05-53df-46c7-a9c8-e9e51d2283b7","vm_id":"67e8c57d-f9d0-4ca7-a706-b6c23e98c603","vnf_member_index":"vnf"},"value":[1708318821.154,"0.3333333333333333"]}]}} ${resp} = <Response [200]> 200 ${resp} Fails if response status code is different than the expected. ${resp.json()} ${resp} = {'status': 'success', 'data': {'resultType': 'vector', 'result': [{'metric': {'__name__': 'osm_cpu_utilization', 'job': 'airflow_osm_vm_metrics_85764c05-53df-46c7-a9c8-e9e51d2283b7', 'metric_id': 'vnf... ${result_list} ${resp["data"]["result"]} Converts the given ``item`` to a Python ``list`` type. ${result_list} = [{'metric': {'__name__': 'osm_cpu_utilization', 'job': 'airflow_osm_vm_metrics_85764c05-53df-46c7-a9c8-e9e51d2283b7', 'metric_id': 'vnf_cpu_util', 'ns_id': '96c5fa12-0d2e-45a4-851e-1b59fb59b2a6', 'pro... ${results} ${result_list} Returns and logs the length of the given item as an integer. Length is 1 ${results} = 1 0 ${results} msg=Metric ${metric} not found values=false Fails if objects are equal after converting them to real numbers. Argument types are: <class 'str'> <class 'int'> 1 ${results} msg=Metric ${metric} with multiple values values=false Fails if objects are unequal after converting them to integers. Argument types are: <class 'str'> <class 'int'> ${result_list[0]["value"][1]} ${metric_value} = 0.3333333333333333 msg=The metric '${METRIC_NAME}' value is '${metric_value}' which is lower than '${METRIC_THRESHOLD}' Fails the test with the given message and optionally alters its tags. The metric 'osm_cpu_utilization' value is '0.3333333333333333' which is lower than '60.0' Auxiliar keyword to check if metric exceeds threshold ${PROMETHEUS_HOST} msg=Prometheus address is not available Fails unless the given variable exists within the current scope. ${PROMETHEUS_PORT} msg=Prometheus port is not available Fails unless the given variable exists within the current scope. ${METRIC_NAME} msg=Prometheus metric name is not available Fails unless the given variable exists within the current scope. ${metric_filter} ns_id=${NS_ID} Returns the given values which can then be assigned to a variables. ${metric_filter} = ns_id=96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${metric_value} ${PROMETHEUS_HOST} ${PROMETHEUS_PORT} ${PROMETHEUS_USER} ${PROMETHEUS_PASSWORD} ${METRIC_NAME} ${metric_filter} Get the instant value of a metric from Prometheus using multiple filter parameters. The filter parameters are given to this function in key=value format (one argument per key/value pair). Fails if the metric is not found or has multiple values. Examples of execution: ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${param1}=${value1} ${param2}=${value2} ${filter} ${EMPTY} Returns the given values which can then be assigned to a variables. ${filter} = ${param} @{filter_parameters} ns_id=96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in filter parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = ns_id=96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${param_name} = ns_id ${param_value} = 96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=96c5fa12-0d2e-45a4-851e-1b59fb59b2a6,ns_id,96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="96c5fa12-0d2e-45a4-851e-1b59fb59b2a6", ${resp} ${prometheus_ip} ${prometheus_port} ${prometheus_user} ${prometheus_password} query=${metric}{${filter}} Execute a Prometheus Instant Query using HTTP API. Return an inline json with the result of the query. The requested URL is the next: http://${prometheus_ip}:${prometheus_port}/api/v1/query?${querystring} ${auth} ${prometheus_user} ${prometheus_password} Returns a list containing given items. ${auth} = ['""', '""'] ${auth} None Returns the given values which can then be assigned to a variables. prometheus http://${prometheus_ip}:${prometheus_port} timeout=${TIMEOUT} max_retries=${MAX_RETRIES} verify=false auth=${auth} Create Session: create a HTTP session to a server Creating Session using : alias=prometheus, url=http://172.21.249.226:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7ff1a6e96800>, timeout=30, proxies=None, verify=False, debug=0 ${resp} prometheus /api/v1/query?${querystring} timeout=${TIMEOUT} Sends a GET request on a previously created HTTP Session. GET Request : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2296c5fa12-0d2e-45a4-851e-1b59fb59b2a6%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2296c5fa12-0d2e-45a4-851e-1b59fb59b2a6%22,%7D headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'Basic IiI6IiI='} body=None GET Response : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2296c5fa12-0d2e-45a4-851e-1b59fb59b2a6%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Mon, 19 Feb 2024 05:01:21 GMT', 'Content-Length': '357'} body={"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"osm_cpu_utilization","job":"airflow_osm_vm_metrics_85764c05-53df-46c7-a9c8-e9e51d2283b7","metric_id":"vnf_cpu_util","ns_id":"96c5fa12-0d2e-45a4-851e-1b59fb59b2a6","project_id":"0658771c-e387-4292-a51e-090f213f77c7","vdu_id":"hackfest_basic_metrics-VM","vdu_name":"sa_02-vnf-hackfest_basic_metrics-VM-0","vim_id":"85764c05-53df-46c7-a9c8-e9e51d2283b7","vm_id":"67e8c57d-f9d0-4ca7-a706-b6c23e98c603","vnf_member_index":"vnf"},"value":[1708318881.195,"93.74166666666666"]}]}} ${resp} = <Response [200]> 200 ${resp} Fails if response status code is different than the expected. ${resp.json()} ${resp} = {'status': 'success', 'data': {'resultType': 'vector', 'result': [{'metric': {'__name__': 'osm_cpu_utilization', 'job': 'airflow_osm_vm_metrics_85764c05-53df-46c7-a9c8-e9e51d2283b7', 'metric_id': 'vnf... ${result_list} ${resp["data"]["result"]} Converts the given ``item`` to a Python ``list`` type. ${result_list} = [{'metric': {'__name__': 'osm_cpu_utilization', 'job': 'airflow_osm_vm_metrics_85764c05-53df-46c7-a9c8-e9e51d2283b7', 'metric_id': 'vnf_cpu_util', 'ns_id': '96c5fa12-0d2e-45a4-851e-1b59fb59b2a6', 'pro... ${results} ${result_list} Returns and logs the length of the given item as an integer. Length is 1 ${results} = 1 0 ${results} msg=Metric ${metric} not found values=false Fails if objects are equal after converting them to real numbers. Argument types are: <class 'str'> <class 'int'> 1 ${results} msg=Metric ${metric} with multiple values values=false Fails if objects are unequal after converting them to integers. Argument types are: <class 'str'> <class 'int'> ${result_list[0]["value"][1]} ${metric_value} = 93.74166666666666 msg=The metric '${METRIC_NAME}' value is '${metric_value}' which is lower than '${METRIC_THRESHOLD}' Fails the test with the given message and optionally alters its tags. Wait until the VIM metric exceeds threshold, which should lead to a scale up. azure cluster_sa daily regression sa_02 sanity ${threshold_time_sleep} ${THRESHOLD_TIME} + 1 Evaluates the given expression in Python and returns the result. ${threshold_time_sleep} = 2.0 ${threshold_time_sleep} minutes Wait scale-out threshold time plus 1 minute Pauses the test executed for the given time. Slept 2 minutes Wait scale-out threshold time plus 1 minute Wait until the VIM metric has exceeded threshold for the defined period in the descriptor. azure cluster_sa daily regression sa_02 sanity Auxiliar keyword to check if metric exceeds threshold ${PROMETHEUS_HOST} msg=Prometheus address is not available Fails unless the given variable exists within the current scope. ${PROMETHEUS_PORT} msg=Prometheus port is not available Fails unless the given variable exists within the current scope. ${METRIC_NAME} msg=Prometheus metric name is not available Fails unless the given variable exists within the current scope. ${metric_filter} ns_id=${NS_ID} Returns the given values which can then be assigned to a variables. ${metric_filter} = ns_id=96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${metric_value} ${PROMETHEUS_HOST} ${PROMETHEUS_PORT} ${PROMETHEUS_USER} ${PROMETHEUS_PASSWORD} ${METRIC_NAME} ${metric_filter} Get the instant value of a metric from Prometheus using multiple filter parameters. The filter parameters are given to this function in key=value format (one argument per key/value pair). Fails if the metric is not found or has multiple values. Examples of execution: ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${param1}=${value1} ${param2}=${value2} ${filter} ${EMPTY} Returns the given values which can then be assigned to a variables. ${filter} = ${param} @{filter_parameters} ns_id=96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in filter parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = ns_id=96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${param_name} = ns_id ${param_value} = 96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=96c5fa12-0d2e-45a4-851e-1b59fb59b2a6,ns_id,96c5fa12-0d2e-45a4-851e-1b59fb59b2a6 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="96c5fa12-0d2e-45a4-851e-1b59fb59b2a6", ${resp} ${prometheus_ip} ${prometheus_port} ${prometheus_user} ${prometheus_password} query=${metric}{${filter}} Execute a Prometheus Instant Query using HTTP API. Return an inline json with the result of the query. The requested URL is the next: http://${prometheus_ip}:${prometheus_port}/api/v1/query?${querystring} ${auth} ${prometheus_user} ${prometheus_password} Returns a list containing given items. ${auth} = ['""', '""'] ${auth} None Returns the given values which can then be assigned to a variables. prometheus http://${prometheus_ip}:${prometheus_port} timeout=${TIMEOUT} max_retries=${MAX_RETRIES} verify=false auth=${auth} Create Session: create a HTTP session to a server Creating Session using : alias=prometheus, url=http://172.21.249.226:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7ff1a6ea15a0>, timeout=30, proxies=None, verify=False, debug=0 ${resp} prometheus /api/v1/query?${querystring} timeout=${TIMEOUT} Sends a GET request on a previously created HTTP Session. GET Request : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2296c5fa12-0d2e-45a4-851e-1b59fb59b2a6%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2296c5fa12-0d2e-45a4-851e-1b59fb59b2a6%22,%7D headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'Basic IiI6IiI='} body=None GET Response : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2296c5fa12-0d2e-45a4-851e-1b59fb59b2a6%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Mon, 19 Feb 2024 05:03:21 GMT', 'Content-Length': '357'} body={"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"osm_cpu_utilization","job":"airflow_osm_vm_metrics_85764c05-53df-46c7-a9c8-e9e51d2283b7","metric_id":"vnf_cpu_util","ns_id":"96c5fa12-0d2e-45a4-851e-1b59fb59b2a6","project_id":"0658771c-e387-4292-a51e-090f213f77c7","vdu_id":"hackfest_basic_metrics-VM","vdu_name":"sa_02-vnf-hackfest_basic_metrics-VM-0","vim_id":"85764c05-53df-46c7-a9c8-e9e51d2283b7","vm_id":"67e8c57d-f9d0-4ca7-a706-b6c23e98c603","vnf_member_index":"vnf"},"value":[1708319001.241,"93.74166666666666"]}]}} ${resp} = <Response [200]> 200 ${resp} Fails if response status code is different than the expected. ${resp.json()} ${resp} = {'status': 'success', 'data': {'resultType': 'vector', 'result': [{'metric': {'__name__': 'osm_cpu_utilization', 'job': 'airflow_osm_vm_metrics_85764c05-53df-46c7-a9c8-e9e51d2283b7', 'metric_id': 'vnf... ${result_list} ${resp["data"]["result"]} Converts the given ``item`` to a Python ``list`` type. ${result_list} = [{'metric': {'__name__': 'osm_cpu_utilization', 'job': 'airflow_osm_vm_metrics_85764c05-53df-46c7-a9c8-e9e51d2283b7', 'metric_id': 'vnf_cpu_util', 'ns_id': '96c5fa12-0d2e-45a4-851e-1b59fb59b2a6', 'pro... ${results} ${result_list} Returns and logs the length of the given item as an integer. Length is 1 ${results} = 1 0 ${results} msg=Metric ${metric} not found values=false Fails if objects are equal after converting them to real numbers. Argument types are: <class 'str'> <class 'int'> 1 ${results} msg=Metric ${metric} with multiple values values=false Fails if objects are unequal after converting them to integers. Argument types are: <class 'str'> <class 'int'> ${result_list[0]["value"][1]} ${metric_value} = 93.74166666666666 msg=The metric '${METRIC_NAME}' value is '${metric_value}' which is lower than '${METRIC_THRESHOLD}' Fails the test with the given message and optionally alters its tags. Check that the VIM metric has exceeded the threshold. azure cluster_sa daily regression sa_02 sanity 2 minutes Wait for auto-scale to take place Pauses the test executed for the given time. Slept 2 minutes Wait for auto-scale to take place @{vdur_list} ${VNF_ID} Return a list with the names of the VDU records of a VNF instance. ${vnf_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm vnf-show ${vnf_id} --literal | yq -r .vdur[].name Runs the given command in the system and returns the RC and output. Running command 'osm vnf-show 3a33099d-5377-4f8c-8614-80798ca4c8eb --literal | yq -r .vdur[].name 2>&1'. ${rc} = 0 ${stdout} = sa_02-vnf-hackfest_basic_metrics-VM-0 sa_02-vnf-hackfest_basic_metrics-VM-1 ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> @{vdur} ${stdout} Splits the ``string`` using ``separator`` as a delimiter string. @{vdur} = [ sa_02-vnf-hackfest_basic_metrics-VM-0 | sa_02-vnf-hackfest_basic_metrics-VM-1 ] @{vdur} @{vdur_list} = [ sa_02-vnf-hackfest_basic_metrics-VM-0 | sa_02-vnf-hackfest_basic_metrics-VM-1 ] ${vdur_list} Logs the length and contents of the ``list`` using given ``level``. List length is 2 and it contains following items: 0: sa_02-vnf-hackfest_basic_metrics-VM-0 1: sa_02-vnf-hackfest_basic_metrics-VM-1 ${vdurs} ${vdur_list} Returns and logs the length of the given item as an integer. Length is 2 ${vdurs} = 2 msg=There is no new VDU after auto-scaling Fails the test with the given message and optionally alters its tags. Check that the VNF has scaled up and the humber of VDUs has increased. azure cluster_sa daily regression sa_02 sanity ${NS_NAME} Delete a NS instance. ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} Logs the given message with the given level. 240.0 ${rc} ${stdout} osm ns-delete ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-delete sa_02 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${stdout} Logs the given message with the given level. Deletion in progress ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${ns_delete_max_wait_time} ${NS_DELETE_POL_TIME} Check For NS Instance To Be Deleted ${ns} Runs the specified keyword and retries if it fails. ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | 54892016-3a3e-47ed-a1bc-cb63f42a1ba8 | epa_04-vnf2-dataVM-0 | ACTIVE | osm-ext=172.21.249.234 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | bd1be9a2-9fdc-4742-9efd-90214b8faf7e | epa_04-vnf1-dataVM-0 | ACTIVE | osm-ext=172.21.248.228 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 5bd622c2-63f5-4de4-ab80-564b75994dd1 | sa_02-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.249.244 | ubuntu20.04 | simple_requires-1-1-flv | | 67e8c57d-f9d0-4ca7-a706-b6c23e98c603 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.236 | ubuntu20.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep sa_02 2>&1'. ${rc} = 0 ${stdout} = sa_02 ${rc},${stdout} Logs the given message with the given level. 0,sa_02 ${stdout} ${ns} Fails if objects are equal after converting them to strings. sa_02 == sa_02 ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | ID | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep sa_02 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${ns} Fails if objects are equal after converting them to strings. Delete NS instance. azure cleanup cluster_sa daily regression sa_02 sanity ${NSD_NAME} Delete a NS package from OSM. ${rc} ${stdout} Run And Return Rc And Output osm nspkg-delete ${nsd_id} Runs the keyword and continues execution even if a failure occurs. osm nspkg-delete ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-delete hackfest_basic-ns-metrics 2>&1'. ${rc} = 0 ${stdout} = Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Logs the given message with the given level. Deleted ${NSD_DELETE_MAX_WAIT_TIME} ${NSD_DELETE_POL_TIME} Check For NSD ${nsd_id} Runs the specified keyword and retries if it fails. ${nsd_id} Check that a NS package exists in OSM. ${rc} ${stdout} osm nspkg-list | awk '{print $2}' | grep ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-list | awk '{print $2}' | grep hackfest_basic-ns-metrics 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. Delete NS package from OSM. azure cleanup cluster_sa daily regression sa_02 sanity ${VNFD_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete hackfest_basic_metrics-vnf 2>&1'. ${rc} = 0 ${stdout} = Deleted ${stdout} Logs the given message with the given level. Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep hackfest_basic_metrics-vnf 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. Delete VNF package from OSM. azure cleanup cluster_sa daily regression sa_02 sanity Suite Cleanup Runs the given keyword with the given arguments and ignores possible error. Test Suite Cleanup: Deleting descriptors and NS instance Delete NS ${NS_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete NSD ${NSD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete VNFD ${VNFD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. [SA-02] VNF with VIM-based metrics and auto-scaling. Suite Preparation Runs the given keyword with the given arguments and ignores possible error. Test Suite Preparation: Setting Prometheus Testsuite Variables Set Testsuite Prometheus Variables to be used in subsequent test cases ${local_prometheus_host} OSM_HOSTNAME Returns the value of an environment variable with the given name. ${PROMETHEUS_HOST} ${local_prometheus_host} Makes a variable available everywhere within the scope of the current suite. ${PROMETHEUS_HOST} 9091 Makes a variable available everywhere within the scope of the current suite. Invalid IF condition: Evaluating expression '172.21.249.226 == 'UNKNOWN'' failed: SyntaxError: invalid syntax (<string>, line 1) Variables in the original expression '${PROMETHEUS_HOST} == 'UNKNOWN'' were resolved before the expression was evaluated. Try using '$PROMETHEUS_HOST == 'UNKNOWN'' syntax to avoid that. See Evaluating Expressions appendix in Robot Framework User Guide for more details. ${PROMETHEUS_PORT} Logs the given message with the given level. ${PROMETHEUS_HOST} Logs the given message with the given level. ${PROMETHEUS_USER} Logs the given message with the given level. ${PROMETHEUS_PASSWORD} Logs the given message with the given level. '%{PACKAGES_FOLDER}/${WS_VNFD_PKG}' Onboards ("creates") a NF Package into OSM. - Parameters: - vnfd_pkg: Name (and location) of the NF Package - overrides (optional): String with options to override the EPA and/or interface properties of the Package. This is very useful to allow to deploy e.g. non-EPA packages in EPA VIMs (or vice-versa). Valid strings are the same as in the command. E.g.: - `--override-epa`: adds EPA attributes to all VDUs. - `--override-nonepa`: removes all EPA attributes from all VDUs. - `--override-paravirt`: converts all interfaces to `PARAVIRT`. This one can be combined with the others above (e.g. '--override-nonepa --override-paravirt'). - Relevant environment variables: - OVERRIDES: If the environment variable "OVERRIDES" exists, it prevails over the value in the argument. This is often more convenient to enforce the same behaviour for every test run in a given VIM. ${overrides} OVERRIDES default=${overrides} Returns the value of an environment variable with the given name. ${overrides} = ${rc} ${stdout} osm vnfpkg-create ${overrides} ${vnfd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-create '/robot-systest/osm-packages/hackfest_basic_vnf' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/hackfest_basic_vnf Validation OK List of charms in the descriptor: set() Adding File: hackfest_basic_vnf Package created: /robot-systest/osm-packages/hac... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/hackfest_basic_vnf Validation OK List of charms in the descriptor: set() Adding File: hackfest_basic_vnf Package created: /robot-systest/osm-packages/hackfest_basic_vnf.tar.gz Uploading package /robot-systest/osm-packages/hackfest_basic_vnf.tar.gz 841a6fe6-d65c-4800-9165-a40bc70e7f67 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 7 lines ${lines} = 7 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 6 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = 841a6fe6-d65c-4800-9165-a40bc70e7f67 ${id} Upload VNF package with a webhook service for the testsuite. cluster_sa daily regression sa_07 '%{PACKAGES_FOLDER}/${WS_NSD_PKG}' Upload a NS package to OSM and return the id. ${rc} ${stdout} osm nspkg-create ${nsd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-create '/robot-systest/osm-packages/hackfest_basic_ns' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/hackfest_basic_ns Validation OK List of charms in the descriptor: set() Adding File: hackfest_basic_ns Package created: /robot-systest/osm-packages/hackf... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/hackfest_basic_ns Validation OK List of charms in the descriptor: set() Adding File: hackfest_basic_ns Package created: /robot-systest/osm-packages/hackfest_basic_ns.tar.gz f4b7260d-86d4-4853-a683-3ba12100fec3 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 6 lines ${lines} = 6 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 5 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = f4b7260d-86d4-4853-a683-3ba12100fec3 ${id} Upload NS package with a webhook service for the testsuite. cluster_sa daily regression sa_07 ${id} ${WS_NSD_NAME} %{VIM_TARGET} ${WS_NS_NAME} ${NS_CONFIG} ${PUBLICKEY} Launch the instantation of a NS and verify in a loop that the NS instance is successfully created in a given time, and return the NS instance id. ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_launch_max_wait_time} = 300.0 ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_launch_max_wait_time} = 300.0 ${ns_launch_max_wait_time} Logs the given message with the given level. 300.0 ${config_attr} '${ns_config}'!='${EMPTY}' --config '${ns_config}' ${EMPTY} Sets variable based on the given condition. ${config_attr} = --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext} ] }' ${sshkeys_attr} '${publickey}'!='${EMPTY}' --ssh_keys ${publickey} ${EMPTY} Sets variable based on the given condition. ${sshkeys_attr} = --ssh_keys /root/.ssh/id_rsa.pub ${config_file_attr} '${config_file}'!='${EMPTY}' --config_file '${config_file}' ${EMPTY} Sets variable based on the given condition. ${config_file_attr} = ${ns_id} ${ns_name} ${nsd} ${vim_name} ${config_attr} ${sshkeys_attr} ${config_file_attr} Launch the instantation of a NS, and return the NS instance id. ${rc} ${stdout} osm ns-create --ns_name ${ns_name} --nsd_name ${nsd} --vim_account ${vim_name} ${ns_extra_args} Runs the given command in the system and returns the RC and output. Running command 'osm ns-create --ns_name sa_07-webhook_service_test --nsd_name hackfest_basic-ns --vim_account osm --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext} ] }' --ssh_keys /root/.ssh/id_rsa.pub 2>&1'. ${rc} = 0 ${stdout} = 246f4f05-9245-46c6-b0c4-83f9bfd33fa7 ${stdout} Logs the given message with the given level. 246f4f05-9245-46c6-b0c4-83f9bfd33fa7 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 246f4f05-9245-46c6-b0c4-83f9bfd33fa7 ${ns_id} Logs the given message with the given level. 246f4f05-9245-46c6-b0c4-83f9bfd33fa7 ${ns_launch_max_wait_time} ${NS_LAUNCH_POL_TIME} Check For NS Instance To Configured ${ns_name} Runs the specified keyword and retries if it fails. ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 19896912-8fea-4387-b2f6-065f7b6828db | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.110 | ubuntu20.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="sa_07-webhook_service_test" 2>&1'. ${rc} = 0 ${stdout} = +----------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name ... ${rc},${stdout} Logs the given message with the given level. 0,+----------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +----------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | sa_07-webhook_service_test | 246f4f05-9245-46c6-b0c4-83f9bfd33fa7 | 2024-02-19T05:05:56 | BUILDING | INSTANTIATING (cc1f7bda-cce4-4563-a17e-d2bbdd43b24e) | N/A | +----------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+----------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +----------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | sa_07-webhook_service_test | 246f4f05-9245-46c6-b0c4-83f9bfd33fa7 | 2024-02-19T05:05:56 | BUILDING | INSTANTIATING (cc1f7bda-cce4-4563-a17e-d2bbdd43b24e) | N/A | +----------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 295cb65a-d122-4102-b8f6-a808d11fc8d4 | fail_01_9357-vnf-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 1cec014d-e0db-496e-9352-c1c8ca968684 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.249.148 | ubuntu20.04 | simple_requires-1-1-flv | | 19896912-8fea-4387-b2f6-065f7b6828db | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.110 | ubuntu20.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="sa_07-webhook_service_test" 2>&1'. ${rc} = 0 ${stdout} = +----------------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+----------------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +----------------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | sa_07-webhook_service_test | 246f4f05-9245-46c6-b0c4-83f9bfd33fa7 | 2024-02-19T05:05:56 | READY | IDLE (None) | N/A | +----------------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. ${ns_name} Check if a given NS instance has not failed in the instantiation (the status should not be BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 295cb65a-d122-4102-b8f6-a808d11fc8d4 | fail_01_9357-vnf-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 1cec014d-e0db-496e-9352-c1c8ca968684 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.249.148 | ubuntu20.04 | simple_requires-1-1-flv | | 19896912-8fea-4387-b2f6-065f7b6828db | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.110 | ubuntu20.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="sa_07-webhook_service_test" 2>&1'. ${rc} = 0 ${stdout} = +----------------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+----------------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +----------------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | sa_07-webhook_service_test | 246f4f05-9245-46c6-b0c4-83f9bfd33fa7 | 2024-02-19T05:05:56 | READY | IDLE (None) | N/A | +----------------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} BROKEN Fails if ``container`` contains ``item`` one or more times. ${ns_id} ${id} = 246f4f05-9245-46c6-b0c4-83f9bfd33fa7 ${WS_NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${WS_NS_ID} = 246f4f05-9245-46c6-b0c4-83f9bfd33fa7 Instantiate NS with the webhook for the testsuite. cluster_sa daily regression sa_07 ${ip_addr} ${WS_NS_ID} ${WS_VNF_MEMBER_INDEX} Get the mgmt IP address of a member VNF in a NS instance, and return it. ${ns_id} Verifies that the given item is not empty. Length is 36 ${vnf_member_index} Verifies that the given item is not empty. Length is 3 ${rc} ${stdout} osm vnf-list --filter member-vnf-index-ref=${vnf_member_index} | grep ${ns_id} | awk '{print $14}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm vnf-list --filter member-vnf-index-ref=vnf | grep 246f4f05-9245-46c6-b0c4-83f9bfd33fa7 | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.249.148 ${stdout} Logs the given message with the given level. 172.21.249.148 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ip_addr} = 172.21.249.148 ${ip_addr} Logs the given message with the given level. 172.21.249.148 ${WS_VNF_IP_ADDR} ${ip_addr} Makes a variable available everywhere within the scope of the current suite. ${WS_VNF_IP_ADDR} = 172.21.249.148 Get the mgmt IP address of the VNF offering the webhook service. cluster_sa daily regression sa_07 ${PRIVATEKEY} msg=SSH private key not available Fails unless the given variable exists within the current scope. 40 seconds Wait for SSH daemon to be up Pauses the test executed for the given time. Slept 40 seconds Wait for SSH daemon to be up ${stdout} ${WS_VNF_IP_ADDR} ${USERNAME} ${PASSWORD} ${PRIVATEKEY} while true; do { echo -e 'HTTP/1.0 200 OK\r\nContent-Length: 0\r\n\r\n'; test; } | nc -l '${WS_PORT}'; done > '${WS_LOG_FILE}' 2>&1 & Execute via SSH a command in a remote host and, if the command succeeds, return the output. ${host} Opens a new SSH connection to the given ``host`` and ``port``. ${username} ${password} Logs into the SSH server with the given ``username`` and ``password``. ${username} ${privatekey} Logs into the SSH server using key-based authentication. Logging into '172.21.249.148:22' as 'ubuntu'. Read output: Welcome to Ubuntu 20.04.4 LTS (GNU/Linux 5.4.0-107-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Mon Feb 19 05:07:17 UTC 2024 System load: 0.23 Processes: 104 Usage of /: 14.0% of 9.52GB Users logged in: 0 Memory usage: 21% IPv4 address for ens3: 172.21.249.148 Swap usage: 0% 1 update can be applied immediately. To see these additional updates run: apt list --upgradable The list of available updates is more than a week old. To check for new updates run: sudo apt update The programs included with the Ubuntu system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. ubuntu@sa-07-webhook-se-vnf-hackfest-basic-vm-0:~$ ${stdout} ${rc} ${command} return_rc=True return_stdout=True Executes ``command`` on the remote machine and returns its outputs. Executing command 'while true; do { echo -e 'HTTP/1.0 200 OK Content-Length: 0 '; test; } | nc -l '5212'; done > 'webhook.log' 2>&1 &'. Command exited with return code 0. ${stdout} = ${rc} = 0 ${rc} Logs the given message with the given level. 0 ${stdout} Logs the given message with the given level. Closes all open connections. ${rc} 0 Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${stdout} = ${stdout} Logs the given message with the given level. Launch simple command in webhook VNF to listen to notifications. cluster_sa daily regression sa_07 ${rc} ${stdout} mkdir '%{PACKAGES_FOLDER}/${NEW_VNFD_PKG}' && WEBHOOK_URL="http://${WS_VNF_IP_ADDR}:${WS_PORT}" envsubst < '%{PACKAGES_FOLDER}/${VNFD_PKG}'/'${VNFD_FILE}' > '%{PACKAGES_FOLDER}/${NEW_VNFD_PKG}'/'${VNFD_FILE}' Runs the given command in the system and returns the RC and output. Running command 'mkdir '/robot-systest/osm-packages/new_cirros_alarm_vnf' && WEBHOOK_URL="http://172.21.249.148:5212" envsubst < '/robot-systest/osm-packages/cirros_alarm_vnf'/'cirros_alarm_vnfd.yaml' > '/robot-systest/osm-packages/new_cirros_alarm_vnf'/'cirros_alarm_vnfd.yaml''. ${rc} = 0 ${stdout} = ${stdout} Logs the given message with the given level. ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> '%{PACKAGES_FOLDER}/${NEW_VNFD_PKG}' Onboards ("creates") a NF Package into OSM. - Parameters: - vnfd_pkg: Name (and location) of the NF Package - overrides (optional): String with options to override the EPA and/or interface properties of the Package. This is very useful to allow to deploy e.g. non-EPA packages in EPA VIMs (or vice-versa). Valid strings are the same as in the command. E.g.: - `--override-epa`: adds EPA attributes to all VDUs. - `--override-nonepa`: removes all EPA attributes from all VDUs. - `--override-paravirt`: converts all interfaces to `PARAVIRT`. This one can be combined with the others above (e.g. '--override-nonepa --override-paravirt'). - Relevant environment variables: - OVERRIDES: If the environment variable "OVERRIDES" exists, it prevails over the value in the argument. This is often more convenient to enforce the same behaviour for every test run in a given VIM. ${overrides} OVERRIDES default=${overrides} Returns the value of an environment variable with the given name. ${overrides} = ${rc} ${stdout} osm vnfpkg-create ${overrides} ${vnfd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-create '/robot-systest/osm-packages/new_cirros_alarm_vnf' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/new_cirros_alarm_vnf Validation OK List of charms in the descriptor: set() Adding File: new_cirros_alarm_vnf Package created: /robot-systest/osm-packages... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/new_cirros_alarm_vnf Validation OK List of charms in the descriptor: set() Adding File: new_cirros_alarm_vnf Package created: /robot-systest/osm-packages/new_cirros_alarm_vnf.tar.gz Uploading package /robot-systest/osm-packages/new_cirros_alarm_vnf.tar.gz b5b651da-cf14-47a5-a101-fd034bb34c65 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 7 lines ${lines} = 7 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 6 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = b5b651da-cf14-47a5-a101-fd034bb34c65 ${id} Upload VNF package for the testsuite. cluster_sa daily regression sa_07 '%{PACKAGES_FOLDER}/${NSD_PKG}' Upload a NS package to OSM and return the id. ${rc} ${stdout} osm nspkg-create ${nsd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-create '/robot-systest/osm-packages/cirros_alarm_ns' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/cirros_alarm_ns Validation OK List of charms in the descriptor: set() Adding File: cirros_alarm_ns Package created: /robot-systest/osm-packages/cirros_al... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/cirros_alarm_ns Validation OK List of charms in the descriptor: set() Adding File: cirros_alarm_ns Package created: /robot-systest/osm-packages/cirros_alarm_ns.tar.gz db970c7d-ccca-4f7f-bf23-48ba326b3c7d ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 6 lines ${lines} = 6 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 5 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = db970c7d-ccca-4f7f-bf23-48ba326b3c7d ${id} Upload NS package for the testsuite. cluster_sa daily regression sa_07 ${id} ${NSD_NAME} %{VIM_TARGET} ${NS_NAME} ${NS_CONFIG} ${PUBLICKEY} Launch the instantation of a NS and verify in a loop that the NS instance is successfully created in a given time, and return the NS instance id. ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_launch_max_wait_time} = 300.0 ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_launch_max_wait_time} = 300.0 ${ns_launch_max_wait_time} Logs the given message with the given level. 300.0 ${config_attr} '${ns_config}'!='${EMPTY}' --config '${ns_config}' ${EMPTY} Sets variable based on the given condition. ${config_attr} = --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext} ] }' ${sshkeys_attr} '${publickey}'!='${EMPTY}' --ssh_keys ${publickey} ${EMPTY} Sets variable based on the given condition. ${sshkeys_attr} = --ssh_keys /root/.ssh/id_rsa.pub ${config_file_attr} '${config_file}'!='${EMPTY}' --config_file '${config_file}' ${EMPTY} Sets variable based on the given condition. ${config_file_attr} = ${ns_id} ${ns_name} ${nsd} ${vim_name} ${config_attr} ${sshkeys_attr} ${config_file_attr} Launch the instantation of a NS, and return the NS instance id. ${rc} ${stdout} osm ns-create --ns_name ${ns_name} --nsd_name ${nsd} --vim_account ${vim_name} ${ns_extra_args} Runs the given command in the system and returns the RC and output. Running command 'osm ns-create --ns_name sa_07-alarm_test --nsd_name cirros_alarm-ns --vim_account osm --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext} ] }' --ssh_keys /root/.ssh/id_rsa.pub 2>&1'. ${rc} = 0 ${stdout} = dec25669-c645-4dc4-87fb-287ee3b47032 ${stdout} Logs the given message with the given level. dec25669-c645-4dc4-87fb-287ee3b47032 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = dec25669-c645-4dc4-87fb-287ee3b47032 ${ns_id} Logs the given message with the given level. dec25669-c645-4dc4-87fb-287ee3b47032 ${ns_launch_max_wait_time} ${NS_LAUNCH_POL_TIME} Check For NS Instance To Configured ${ns_name} Runs the specified keyword and retries if it fails. ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 295cb65a-d122-4102-b8f6-a808d11fc8d4 | fail_01_9357-vnf-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 1cec014d-e0db-496e-9352-c1c8ca968684 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.249.148 | ubuntu20.04 | simple_requires-1-1-flv | | 19896912-8fea-4387-b2f6-065f7b6828db | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.110 | ubuntu20.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="sa_07-alarm_test" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | sa_07-alarm_test | dec25669-c645-4dc4-87fb-287ee3b47032 | 2024-02-19T05:07:24 | BUILDING | INSTANTIATING (587c3cb7-bb82-440b-9a48-61a2971ec960) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | sa_07-alarm_test | dec25669-c645-4dc4-87fb-287ee3b47032 | 2024-02-19T05:07:24 | BUILDING | INSTANTIATING (587c3cb7-bb82-440b-9a48-61a2971ec960) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | d475786a-a321-4ff2-9c28-bf380afe01f0 | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.23 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | 295cb65a-d122-4102-b8f6-a808d11fc8d4 | fail_01_9357-vnf-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 1cec014d-e0db-496e-9352-c1c8ca968684 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.249.148 | ubuntu20.04 | simple_requires-1-1-flv | | 19896912-8fea-4387-b2f6-065f7b6828db | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.110 | ubuntu20.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------------------------+--------+------------------------+------------------------------+--------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="sa_07-alarm_test" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | sa_07-alarm_test | dec25669-c645-4dc4-87fb-287ee3b47032 | 2024-02-19T05:07:24 | READY | IDLE (None) | N/A | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. ${ns_name} Check if a given NS instance has not failed in the instantiation (the status should not be BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | d475786a-a321-4ff2-9c28-bf380afe01f0 | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.23 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | 295cb65a-d122-4102-b8f6-a808d11fc8d4 | fail_01_9357-vnf-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 1cec014d-e0db-496e-9352-c1c8ca968684 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.249.148 | ubuntu20.04 | simple_requires-1-1-flv | | 19896912-8fea-4387-b2f6-065f7b6828db | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.110 | ubuntu20.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------------------------+--------+------------------------+------------------------------+--------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="sa_07-alarm_test" 2>&1'. ${rc} = 0 ${stdout} = +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | sa_07-alarm_test | dec25669-c645-4dc4-87fb-287ee3b47032 | 2024-02-19T05:07:24 | READY | IDLE (None) | N/A | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} BROKEN Fails if ``container`` contains ``item`` one or more times. ${ns_id} ${id} = dec25669-c645-4dc4-87fb-287ee3b47032 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = dec25669-c645-4dc4-87fb-287ee3b47032 Instantiate the main NS for the testsuite. cluster_sa daily regression sa_07 ${PROMETHEUS_POLL_RETRIES} msg=Metric polling retries is not available Fails unless the given variable exists within the current scope. ${PROMETHEUS_POLL_TIMEOUT} msg=Metric polling timeout is not available Fails unless the given variable exists within the current scope. ${PROMETHEUS_HOST} msg=Prometheus address is not available Fails unless the given variable exists within the current scope. ${PROMETHEUS_PORT} msg=Prometheus port is not available Fails unless the given variable exists within the current scope. ${METRIC_NAME} msg=Prometheus metric name is not available Fails unless the given variable exists within the current scope. ${metric_filter} ns_id=${NS_ID} Returns the given values which can then be assigned to a variables. ${metric_filter} = ns_id=dec25669-c645-4dc4-87fb-287ee3b47032 ${metric_value} ${PROMETHEUS_POLL_RETRIES} ${PROMETHEUS_POLL_TIMEOUT} Get Metric ${PROMETHEUS_HOST} ${PROMETHEUS_PORT} ${PROMETHEUS_USER} ${PROMETHEUS_PASSWORD} ${METRIC_NAME} ${metric_filter} Runs the specified keyword and retries if it fails. ${PROMETHEUS_HOST} ${PROMETHEUS_PORT} ${PROMETHEUS_USER} ${PROMETHEUS_PASSWORD} ${METRIC_NAME} ${metric_filter} Get the instant value of a metric from Prometheus using multiple filter parameters. The filter parameters are given to this function in key=value format (one argument per key/value pair). Fails if the metric is not found or has multiple values. Examples of execution: ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${param1}=${value1} ${param2}=${value2} ${filter} ${EMPTY} Returns the given values which can then be assigned to a variables. ${filter} = ${param} @{filter_parameters} ns_id=dec25669-c645-4dc4-87fb-287ee3b47032 ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in filter parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = ns_id=dec25669-c645-4dc4-87fb-287ee3b47032 ${param_name} = ns_id ${param_value} = dec25669-c645-4dc4-87fb-287ee3b47032 ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=dec25669-c645-4dc4-87fb-287ee3b47032,ns_id,dec25669-c645-4dc4-87fb-287ee3b47032 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="dec25669-c645-4dc4-87fb-287ee3b47032", ${resp} ${prometheus_ip} ${prometheus_port} ${prometheus_user} ${prometheus_password} query=${metric}{${filter}} Execute a Prometheus Instant Query using HTTP API. Return an inline json with the result of the query. The requested URL is the next: http://${prometheus_ip}:${prometheus_port}/api/v1/query?${querystring} ${auth} ${prometheus_user} ${prometheus_password} Returns a list containing given items. ${auth} = ['""', '""'] ${auth} None Returns the given values which can then be assigned to a variables. prometheus http://${prometheus_ip}:${prometheus_port} timeout=${TIMEOUT} max_retries=${MAX_RETRIES} verify=false auth=${auth} Create Session: create a HTTP session to a server Creating Session using : alias=prometheus, url=http://172.21.249.226:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7ff1a6d0dd20>, timeout=30, proxies=None, verify=False, debug=0 ${resp} prometheus /api/v1/query?${querystring} timeout=${TIMEOUT} Sends a GET request on a previously created HTTP Session. GET Request : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22dec25669-c645-4dc4-87fb-287ee3b47032%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22dec25669-c645-4dc4-87fb-287ee3b47032%22,%7D headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'Basic IiI6IiI='} body=None GET Response : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22dec25669-c645-4dc4-87fb-287ee3b47032%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Mon, 19 Feb 2024 05:08:03 GMT', 'Content-Length': '87'} body={"status":"success","data":{"resultType":"vector","result":[]}} ${resp} = <Response [200]> 200 ${resp} Fails if response status code is different than the expected. ${resp.json()} ${resp} = {'status': 'success', 'data': {'resultType': 'vector', 'result': []}} ${result_list} ${resp["data"]["result"]} Converts the given ``item`` to a Python ``list`` type. ${result_list} = [] ${results} ${result_list} Returns and logs the length of the given item as an integer. Length is 0 ${results} = 0 0 ${results} msg=Metric ${metric} not found values=false Fails if objects are equal after converting them to real numbers. Argument types are: <class 'str'> <class 'int'> Metric osm_cpu_utilization not found 1 ${results} msg=Metric ${metric} with multiple values values=false Fails if objects are unequal after converting them to integers. ${result_list[0]["value"][1]} ${PROMETHEUS_HOST} ${PROMETHEUS_PORT} ${PROMETHEUS_USER} ${PROMETHEUS_PASSWORD} ${METRIC_NAME} ${metric_filter} Get the instant value of a metric from Prometheus using multiple filter parameters. The filter parameters are given to this function in key=value format (one argument per key/value pair). Fails if the metric is not found or has multiple values. Examples of execution: ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${param1}=${value1} ${param2}=${value2} ${filter} ${EMPTY} Returns the given values which can then be assigned to a variables. ${filter} = ${param} @{filter_parameters} ns_id=dec25669-c645-4dc4-87fb-287ee3b47032 ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in filter parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = ns_id=dec25669-c645-4dc4-87fb-287ee3b47032 ${param_name} = ns_id ${param_value} = dec25669-c645-4dc4-87fb-287ee3b47032 ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=dec25669-c645-4dc4-87fb-287ee3b47032,ns_id,dec25669-c645-4dc4-87fb-287ee3b47032 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="dec25669-c645-4dc4-87fb-287ee3b47032", ${resp} ${prometheus_ip} ${prometheus_port} ${prometheus_user} ${prometheus_password} query=${metric}{${filter}} Execute a Prometheus Instant Query using HTTP API. Return an inline json with the result of the query. The requested URL is the next: http://${prometheus_ip}:${prometheus_port}/api/v1/query?${querystring} ${auth} ${prometheus_user} ${prometheus_password} Returns a list containing given items. ${auth} = ['""', '""'] ${auth} None Returns the given values which can then be assigned to a variables. prometheus http://${prometheus_ip}:${prometheus_port} timeout=${TIMEOUT} max_retries=${MAX_RETRIES} verify=false auth=${auth} Create Session: create a HTTP session to a server Creating Session using : alias=prometheus, url=http://172.21.249.226:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7ff1a6e53850>, timeout=30, proxies=None, verify=False, debug=0 ${resp} prometheus /api/v1/query?${querystring} timeout=${TIMEOUT} Sends a GET request on a previously created HTTP Session. GET Request : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22dec25669-c645-4dc4-87fb-287ee3b47032%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22dec25669-c645-4dc4-87fb-287ee3b47032%22,%7D headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'Basic IiI6IiI='} body=None GET Response : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22dec25669-c645-4dc4-87fb-287ee3b47032%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Mon, 19 Feb 2024 05:09:03 GMT', 'Content-Length': '87'} body={"status":"success","data":{"resultType":"vector","result":[]}} ${resp} = <Response [200]> 200 ${resp} Fails if response status code is different than the expected. ${resp.json()} ${resp} = {'status': 'success', 'data': {'resultType': 'vector', 'result': []}} ${result_list} ${resp["data"]["result"]} Converts the given ``item`` to a Python ``list`` type. ${result_list} = [] ${results} ${result_list} Returns and logs the length of the given item as an integer. Length is 0 ${results} = 0 0 ${results} msg=Metric ${metric} not found values=false Fails if objects are equal after converting them to real numbers. Argument types are: <class 'str'> <class 'int'> Metric osm_cpu_utilization not found 1 ${results} msg=Metric ${metric} with multiple values values=false Fails if objects are unequal after converting them to integers. ${result_list[0]["value"][1]} ${PROMETHEUS_HOST} ${PROMETHEUS_PORT} ${PROMETHEUS_USER} ${PROMETHEUS_PASSWORD} ${METRIC_NAME} ${metric_filter} Get the instant value of a metric from Prometheus using multiple filter parameters. The filter parameters are given to this function in key=value format (one argument per key/value pair). Fails if the metric is not found or has multiple values. Examples of execution: ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${param1}=${value1} ${param2}=${value2} ${filter} ${EMPTY} Returns the given values which can then be assigned to a variables. ${filter} = ${param} @{filter_parameters} ns_id=dec25669-c645-4dc4-87fb-287ee3b47032 ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in filter parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = ns_id=dec25669-c645-4dc4-87fb-287ee3b47032 ${param_name} = ns_id ${param_value} = dec25669-c645-4dc4-87fb-287ee3b47032 ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=dec25669-c645-4dc4-87fb-287ee3b47032,ns_id,dec25669-c645-4dc4-87fb-287ee3b47032 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="dec25669-c645-4dc4-87fb-287ee3b47032", ${resp} ${prometheus_ip} ${prometheus_port} ${prometheus_user} ${prometheus_password} query=${metric}{${filter}} Execute a Prometheus Instant Query using HTTP API. Return an inline json with the result of the query. The requested URL is the next: http://${prometheus_ip}:${prometheus_port}/api/v1/query?${querystring} ${auth} ${prometheus_user} ${prometheus_password} Returns a list containing given items. ${auth} = ['""', '""'] ${auth} None Returns the given values which can then be assigned to a variables. prometheus http://${prometheus_ip}:${prometheus_port} timeout=${TIMEOUT} max_retries=${MAX_RETRIES} verify=false auth=${auth} Create Session: create a HTTP session to a server Creating Session using : alias=prometheus, url=http://172.21.249.226:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7ff1a6e500d0>, timeout=30, proxies=None, verify=False, debug=0 ${resp} prometheus /api/v1/query?${querystring} timeout=${TIMEOUT} Sends a GET request on a previously created HTTP Session. GET Request : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22dec25669-c645-4dc4-87fb-287ee3b47032%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22dec25669-c645-4dc4-87fb-287ee3b47032%22,%7D headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'Basic IiI6IiI='} body=None GET Response : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22dec25669-c645-4dc4-87fb-287ee3b47032%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Mon, 19 Feb 2024 05:10:03 GMT', 'Content-Length': '87'} body={"status":"success","data":{"resultType":"vector","result":[]}} ${resp} = <Response [200]> 200 ${resp} Fails if response status code is different than the expected. ${resp.json()} ${resp} = {'status': 'success', 'data': {'resultType': 'vector', 'result': []}} ${result_list} ${resp["data"]["result"]} Converts the given ``item`` to a Python ``list`` type. ${result_list} = [] ${results} ${result_list} Returns and logs the length of the given item as an integer. Length is 0 ${results} = 0 0 ${results} msg=Metric ${metric} not found values=false Fails if objects are equal after converting them to real numbers. Argument types are: <class 'str'> <class 'int'> Metric osm_cpu_utilization not found 1 ${results} msg=Metric ${metric} with multiple values values=false Fails if objects are unequal after converting them to integers. ${result_list[0]["value"][1]} ${PROMETHEUS_HOST} ${PROMETHEUS_PORT} ${PROMETHEUS_USER} ${PROMETHEUS_PASSWORD} ${METRIC_NAME} ${metric_filter} Get the instant value of a metric from Prometheus using multiple filter parameters. The filter parameters are given to this function in key=value format (one argument per key/value pair). Fails if the metric is not found or has multiple values. Examples of execution: ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${param1}=${value1} ${param2}=${value2} ${filter} ${EMPTY} Returns the given values which can then be assigned to a variables. ${filter} = ${param} @{filter_parameters} ns_id=dec25669-c645-4dc4-87fb-287ee3b47032 ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in filter parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = ns_id=dec25669-c645-4dc4-87fb-287ee3b47032 ${param_name} = ns_id ${param_value} = dec25669-c645-4dc4-87fb-287ee3b47032 ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=dec25669-c645-4dc4-87fb-287ee3b47032,ns_id,dec25669-c645-4dc4-87fb-287ee3b47032 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="dec25669-c645-4dc4-87fb-287ee3b47032", ${resp} ${prometheus_ip} ${prometheus_port} ${prometheus_user} ${prometheus_password} query=${metric}{${filter}} Execute a Prometheus Instant Query using HTTP API. Return an inline json with the result of the query. The requested URL is the next: http://${prometheus_ip}:${prometheus_port}/api/v1/query?${querystring} ${auth} ${prometheus_user} ${prometheus_password} Returns a list containing given items. ${auth} = ['""', '""'] ${auth} None Returns the given values which can then be assigned to a variables. prometheus http://${prometheus_ip}:${prometheus_port} timeout=${TIMEOUT} max_retries=${MAX_RETRIES} verify=false auth=${auth} Create Session: create a HTTP session to a server Creating Session using : alias=prometheus, url=http://172.21.249.226:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7ff1a6d0cd00>, timeout=30, proxies=None, verify=False, debug=0 ${resp} prometheus /api/v1/query?${querystring} timeout=${TIMEOUT} Sends a GET request on a previously created HTTP Session. GET Request : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22dec25669-c645-4dc4-87fb-287ee3b47032%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22dec25669-c645-4dc4-87fb-287ee3b47032%22,%7D headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'Basic IiI6IiI='} body=None GET Response : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22dec25669-c645-4dc4-87fb-287ee3b47032%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Mon, 19 Feb 2024 05:11:03 GMT', 'Content-Length': '87'} body={"status":"success","data":{"resultType":"vector","result":[]}} ${resp} = <Response [200]> 200 ${resp} Fails if response status code is different than the expected. ${resp.json()} ${resp} = {'status': 'success', 'data': {'resultType': 'vector', 'result': []}} ${result_list} ${resp["data"]["result"]} Converts the given ``item`` to a Python ``list`` type. ${result_list} = [] ${results} ${result_list} Returns and logs the length of the given item as an integer. Length is 0 ${results} = 0 0 ${results} msg=Metric ${metric} not found values=false Fails if objects are equal after converting them to real numbers. Argument types are: <class 'str'> <class 'int'> Metric osm_cpu_utilization not found 1 ${results} msg=Metric ${metric} with multiple values values=false Fails if objects are unequal after converting them to integers. ${result_list[0]["value"][1]} ${PROMETHEUS_HOST} ${PROMETHEUS_PORT} ${PROMETHEUS_USER} ${PROMETHEUS_PASSWORD} ${METRIC_NAME} ${metric_filter} Get the instant value of a metric from Prometheus using multiple filter parameters. The filter parameters are given to this function in key=value format (one argument per key/value pair). Fails if the metric is not found or has multiple values. Examples of execution: ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${param1}=${value1} ${param2}=${value2} ${filter} ${EMPTY} Returns the given values which can then be assigned to a variables. ${filter} = ${param} @{filter_parameters} ns_id=dec25669-c645-4dc4-87fb-287ee3b47032 ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in filter parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = ns_id=dec25669-c645-4dc4-87fb-287ee3b47032 ${param_name} = ns_id ${param_value} = dec25669-c645-4dc4-87fb-287ee3b47032 ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=dec25669-c645-4dc4-87fb-287ee3b47032,ns_id,dec25669-c645-4dc4-87fb-287ee3b47032 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="dec25669-c645-4dc4-87fb-287ee3b47032", ${resp} ${prometheus_ip} ${prometheus_port} ${prometheus_user} ${prometheus_password} query=${metric}{${filter}} Execute a Prometheus Instant Query using HTTP API. Return an inline json with the result of the query. The requested URL is the next: http://${prometheus_ip}:${prometheus_port}/api/v1/query?${querystring} ${auth} ${prometheus_user} ${prometheus_password} Returns a list containing given items. ${auth} = ['""', '""'] ${auth} None Returns the given values which can then be assigned to a variables. prometheus http://${prometheus_ip}:${prometheus_port} timeout=${TIMEOUT} max_retries=${MAX_RETRIES} verify=false auth=${auth} Create Session: create a HTTP session to a server Creating Session using : alias=prometheus, url=http://172.21.249.226:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7ff1a6e2db10>, timeout=30, proxies=None, verify=False, debug=0 ${resp} prometheus /api/v1/query?${querystring} timeout=${TIMEOUT} Sends a GET request on a previously created HTTP Session. GET Request : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22dec25669-c645-4dc4-87fb-287ee3b47032%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22dec25669-c645-4dc4-87fb-287ee3b47032%22,%7D headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'Basic IiI6IiI='} body=None GET Response : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22dec25669-c645-4dc4-87fb-287ee3b47032%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Mon, 19 Feb 2024 05:12:03 GMT', 'Content-Length': '87'} body={"status":"success","data":{"resultType":"vector","result":[]}} ${resp} = <Response [200]> 200 ${resp} Fails if response status code is different than the expected. ${resp.json()} ${resp} = {'status': 'success', 'data': {'resultType': 'vector', 'result': []}} ${result_list} ${resp["data"]["result"]} Converts the given ``item`` to a Python ``list`` type. ${result_list} = [] ${results} ${result_list} Returns and logs the length of the given item as an integer. Length is 0 ${results} = 0 0 ${results} msg=Metric ${metric} not found values=false Fails if objects are equal after converting them to real numbers. Argument types are: <class 'str'> <class 'int'> Metric osm_cpu_utilization not found 1 ${results} msg=Metric ${metric} with multiple values values=false Fails if objects are unequal after converting them to integers. ${result_list[0]["value"][1]} ${PROMETHEUS_HOST} ${PROMETHEUS_PORT} ${PROMETHEUS_USER} ${PROMETHEUS_PASSWORD} ${METRIC_NAME} ${metric_filter} Get the instant value of a metric from Prometheus using multiple filter parameters. The filter parameters are given to this function in key=value format (one argument per key/value pair). Fails if the metric is not found or has multiple values. Examples of execution: ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${param1}=${value1} ${param2}=${value2} ${filter} ${EMPTY} Returns the given values which can then be assigned to a variables. ${filter} = ${param} @{filter_parameters} ns_id=dec25669-c645-4dc4-87fb-287ee3b47032 ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in filter parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = ns_id=dec25669-c645-4dc4-87fb-287ee3b47032 ${param_name} = ns_id ${param_value} = dec25669-c645-4dc4-87fb-287ee3b47032 ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=dec25669-c645-4dc4-87fb-287ee3b47032,ns_id,dec25669-c645-4dc4-87fb-287ee3b47032 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="dec25669-c645-4dc4-87fb-287ee3b47032", ${resp} ${prometheus_ip} ${prometheus_port} ${prometheus_user} ${prometheus_password} query=${metric}{${filter}} Execute a Prometheus Instant Query using HTTP API. Return an inline json with the result of the query. The requested URL is the next: http://${prometheus_ip}:${prometheus_port}/api/v1/query?${querystring} ${auth} ${prometheus_user} ${prometheus_password} Returns a list containing given items. ${auth} = ['""', '""'] ${auth} None Returns the given values which can then be assigned to a variables. prometheus http://${prometheus_ip}:${prometheus_port} timeout=${TIMEOUT} max_retries=${MAX_RETRIES} verify=false auth=${auth} Create Session: create a HTTP session to a server Creating Session using : alias=prometheus, url=http://172.21.249.226:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7ff1a6ed2b00>, timeout=30, proxies=None, verify=False, debug=0 ${resp} prometheus /api/v1/query?${querystring} timeout=${TIMEOUT} Sends a GET request on a previously created HTTP Session. GET Request : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22dec25669-c645-4dc4-87fb-287ee3b47032%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22dec25669-c645-4dc4-87fb-287ee3b47032%22,%7D headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'Basic IiI6IiI='} body=None GET Response : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22dec25669-c645-4dc4-87fb-287ee3b47032%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Mon, 19 Feb 2024 05:13:03 GMT', 'Content-Length': '87'} body={"status":"success","data":{"resultType":"vector","result":[]}} ${resp} = <Response [200]> 200 ${resp} Fails if response status code is different than the expected. ${resp.json()} ${resp} = {'status': 'success', 'data': {'resultType': 'vector', 'result': []}} ${result_list} ${resp["data"]["result"]} Converts the given ``item`` to a Python ``list`` type. ${result_list} = [] ${results} ${result_list} Returns and logs the length of the given item as an integer. Length is 0 ${results} = 0 0 ${results} msg=Metric ${metric} not found values=false Fails if objects are equal after converting them to real numbers. Argument types are: <class 'str'> <class 'int'> Metric osm_cpu_utilization not found 1 ${results} msg=Metric ${metric} with multiple values values=false Fails if objects are unequal after converting them to integers. ${result_list[0]["value"][1]} ${PROMETHEUS_HOST} ${PROMETHEUS_PORT} ${PROMETHEUS_USER} ${PROMETHEUS_PASSWORD} ${METRIC_NAME} ${metric_filter} Get the instant value of a metric from Prometheus using multiple filter parameters. The filter parameters are given to this function in key=value format (one argument per key/value pair). Fails if the metric is not found or has multiple values. Examples of execution: ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${param1}=${value1} ${param2}=${value2} ${filter} ${EMPTY} Returns the given values which can then be assigned to a variables. ${filter} = ${param} @{filter_parameters} ns_id=dec25669-c645-4dc4-87fb-287ee3b47032 ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in filter parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = ns_id=dec25669-c645-4dc4-87fb-287ee3b47032 ${param_name} = ns_id ${param_value} = dec25669-c645-4dc4-87fb-287ee3b47032 ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=dec25669-c645-4dc4-87fb-287ee3b47032,ns_id,dec25669-c645-4dc4-87fb-287ee3b47032 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="dec25669-c645-4dc4-87fb-287ee3b47032", ${resp} ${prometheus_ip} ${prometheus_port} ${prometheus_user} ${prometheus_password} query=${metric}{${filter}} Execute a Prometheus Instant Query using HTTP API. Return an inline json with the result of the query. The requested URL is the next: http://${prometheus_ip}:${prometheus_port}/api/v1/query?${querystring} ${auth} ${prometheus_user} ${prometheus_password} Returns a list containing given items. ${auth} = ['""', '""'] ${auth} None Returns the given values which can then be assigned to a variables. prometheus http://${prometheus_ip}:${prometheus_port} timeout=${TIMEOUT} max_retries=${MAX_RETRIES} verify=false auth=${auth} Create Session: create a HTTP session to a server Creating Session using : alias=prometheus, url=http://172.21.249.226:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7ff1a6ea0c10>, timeout=30, proxies=None, verify=False, debug=0 ${resp} prometheus /api/v1/query?${querystring} timeout=${TIMEOUT} Sends a GET request on a previously created HTTP Session. GET Request : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22dec25669-c645-4dc4-87fb-287ee3b47032%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22dec25669-c645-4dc4-87fb-287ee3b47032%22,%7D headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'Basic IiI6IiI='} body=None GET Response : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22dec25669-c645-4dc4-87fb-287ee3b47032%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Mon, 19 Feb 2024 05:14:03 GMT', 'Content-Length': '87'} body={"status":"success","data":{"resultType":"vector","result":[]}} ${resp} = <Response [200]> 200 ${resp} Fails if response status code is different than the expected. ${resp.json()} ${resp} = {'status': 'success', 'data': {'resultType': 'vector', 'result': []}} ${result_list} ${resp["data"]["result"]} Converts the given ``item`` to a Python ``list`` type. ${result_list} = [] ${results} ${result_list} Returns and logs the length of the given item as an integer. Length is 0 ${results} = 0 0 ${results} msg=Metric ${metric} not found values=false Fails if objects are equal after converting them to real numbers. Argument types are: <class 'str'> <class 'int'> Metric osm_cpu_utilization not found 1 ${results} msg=Metric ${metric} with multiple values values=false Fails if objects are unequal after converting them to integers. ${result_list[0]["value"][1]} ${PROMETHEUS_HOST} ${PROMETHEUS_PORT} ${PROMETHEUS_USER} ${PROMETHEUS_PASSWORD} ${METRIC_NAME} ${metric_filter} Get the instant value of a metric from Prometheus using multiple filter parameters. The filter parameters are given to this function in key=value format (one argument per key/value pair). Fails if the metric is not found or has multiple values. Examples of execution: ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${param1}=${value1} ${param2}=${value2} ${filter} ${EMPTY} Returns the given values which can then be assigned to a variables. ${filter} = ${param} @{filter_parameters} ns_id=dec25669-c645-4dc4-87fb-287ee3b47032 ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in filter parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = ns_id=dec25669-c645-4dc4-87fb-287ee3b47032 ${param_name} = ns_id ${param_value} = dec25669-c645-4dc4-87fb-287ee3b47032 ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=dec25669-c645-4dc4-87fb-287ee3b47032,ns_id,dec25669-c645-4dc4-87fb-287ee3b47032 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="dec25669-c645-4dc4-87fb-287ee3b47032", ${resp} ${prometheus_ip} ${prometheus_port} ${prometheus_user} ${prometheus_password} query=${metric}{${filter}} Execute a Prometheus Instant Query using HTTP API. Return an inline json with the result of the query. The requested URL is the next: http://${prometheus_ip}:${prometheus_port}/api/v1/query?${querystring} ${auth} ${prometheus_user} ${prometheus_password} Returns a list containing given items. ${auth} = ['""', '""'] ${auth} None Returns the given values which can then be assigned to a variables. prometheus http://${prometheus_ip}:${prometheus_port} timeout=${TIMEOUT} max_retries=${MAX_RETRIES} verify=false auth=${auth} Create Session: create a HTTP session to a server Creating Session using : alias=prometheus, url=http://172.21.249.226:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7ff1a6d4c2e0>, timeout=30, proxies=None, verify=False, debug=0 ${resp} prometheus /api/v1/query?${querystring} timeout=${TIMEOUT} Sends a GET request on a previously created HTTP Session. GET Request : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22dec25669-c645-4dc4-87fb-287ee3b47032%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22dec25669-c645-4dc4-87fb-287ee3b47032%22,%7D headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'Basic IiI6IiI='} body=None GET Response : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22dec25669-c645-4dc4-87fb-287ee3b47032%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Mon, 19 Feb 2024 05:15:03 GMT', 'Content-Length': '87'} body={"status":"success","data":{"resultType":"vector","result":[]}} ${resp} = <Response [200]> 200 ${resp} Fails if response status code is different than the expected. ${resp.json()} ${resp} = {'status': 'success', 'data': {'resultType': 'vector', 'result': []}} ${result_list} ${resp["data"]["result"]} Converts the given ``item`` to a Python ``list`` type. ${result_list} = [] ${results} ${result_list} Returns and logs the length of the given item as an integer. Length is 0 ${results} = 0 0 ${results} msg=Metric ${metric} not found values=false Fails if objects are equal after converting them to real numbers. Argument types are: <class 'str'> <class 'int'> Metric osm_cpu_utilization not found 1 ${results} msg=Metric ${metric} with multiple values values=false Fails if objects are unequal after converting them to integers. ${result_list[0]["value"][1]} ${PROMETHEUS_HOST} ${PROMETHEUS_PORT} ${PROMETHEUS_USER} ${PROMETHEUS_PASSWORD} ${METRIC_NAME} ${metric_filter} Get the instant value of a metric from Prometheus using multiple filter parameters. The filter parameters are given to this function in key=value format (one argument per key/value pair). Fails if the metric is not found or has multiple values. Examples of execution: ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${param1}=${value1} ${param2}=${value2} ${filter} ${EMPTY} Returns the given values which can then be assigned to a variables. ${filter} = ${param} @{filter_parameters} ns_id=dec25669-c645-4dc4-87fb-287ee3b47032 ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in filter parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = ns_id=dec25669-c645-4dc4-87fb-287ee3b47032 ${param_name} = ns_id ${param_value} = dec25669-c645-4dc4-87fb-287ee3b47032 ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=dec25669-c645-4dc4-87fb-287ee3b47032,ns_id,dec25669-c645-4dc4-87fb-287ee3b47032 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="dec25669-c645-4dc4-87fb-287ee3b47032", ${resp} ${prometheus_ip} ${prometheus_port} ${prometheus_user} ${prometheus_password} query=${metric}{${filter}} Execute a Prometheus Instant Query using HTTP API. Return an inline json with the result of the query. The requested URL is the next: http://${prometheus_ip}:${prometheus_port}/api/v1/query?${querystring} ${auth} ${prometheus_user} ${prometheus_password} Returns a list containing given items. ${auth} = ['""', '""'] ${auth} None Returns the given values which can then be assigned to a variables. prometheus http://${prometheus_ip}:${prometheus_port} timeout=${TIMEOUT} max_retries=${MAX_RETRIES} verify=false auth=${auth} Create Session: create a HTTP session to a server Creating Session using : alias=prometheus, url=http://172.21.249.226:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7ff1a6d4cd90>, timeout=30, proxies=None, verify=False, debug=0 ${resp} prometheus /api/v1/query?${querystring} timeout=${TIMEOUT} Sends a GET request on a previously created HTTP Session. GET Request : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22dec25669-c645-4dc4-87fb-287ee3b47032%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22dec25669-c645-4dc4-87fb-287ee3b47032%22,%7D headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'Basic IiI6IiI='} body=None GET Response : url=http://172.21.249.226:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22dec25669-c645-4dc4-87fb-287ee3b47032%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Mon, 19 Feb 2024 05:16:03 GMT', 'Content-Length': '360'} body={"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"osm_cpu_utilization","job":"airflow_osm_vm_metrics_85764c05-53df-46c7-a9c8-e9e51d2283b7","metric_id":"cirros_vnf_cpu_util","ns_id":"dec25669-c645-4dc4-87fb-287ee3b47032","project_id":"0658771c-e387-4292-a51e-090f213f77c7","vdu_id":"cirros_vnfd-VM","vdu_name":"sa_07-alarm_test-vnf-cirros_vnfd-VM-0","vim_id":"85764c05-53df-46c7-a9c8-e9e51d2283b7","vm_id":"d475786a-a321-4ff2-9c28-bf380afe01f0","vnf_member_index":"vnf"},"value":[1708319763.845,"0.049999999999999996"]}]}} ${resp} = <Response [200]> 200 ${resp} Fails if response status code is different than the expected. ${resp.json()} ${resp} = {'status': 'success', 'data': {'resultType': 'vector', 'result': [{'metric': {'__name__': 'osm_cpu_utilization', 'job': 'airflow_osm_vm_metrics_85764c05-53df-46c7-a9c8-e9e51d2283b7', 'metric_id': 'cir... ${result_list} ${resp["data"]["result"]} Converts the given ``item`` to a Python ``list`` type. ${result_list} = [{'metric': {'__name__': 'osm_cpu_utilization', 'job': 'airflow_osm_vm_metrics_85764c05-53df-46c7-a9c8-e9e51d2283b7', 'metric_id': 'cirros_vnf_cpu_util', 'ns_id': 'dec25669-c645-4dc4-87fb-287ee3b47032... ${results} ${result_list} Returns and logs the length of the given item as an integer. Length is 1 ${results} = 1 0 ${results} msg=Metric ${metric} not found values=false Fails if objects are equal after converting them to real numbers. Argument types are: <class 'str'> <class 'int'> 1 ${results} msg=Metric ${metric} with multiple values values=false Fails if objects are unequal after converting them to integers. Argument types are: <class 'str'> <class 'int'> ${result_list[0]["value"][1]} ${metric_value} = 0.049999999999999996 msg=The metric '${METRIC_NAME}' value is '${metric_value}' Fails the test with the given message and optionally alters its tags. Check that the expected metric is present in Prometheus (pushed from SA modules). cluster_sa daily regression sa_07 6 times 40 seconds Execute Remote Command Check Rc Return Output ${WS_VNF_IP_ADDR} ${USERNAME} ${PASSWORD} ${PRIVATEKEY} cat '${WS_LOG_FILE}' | grep '${WS_ALARM_MSG}' | grep '${NS_NAME}' Runs the specified keyword and retries if it fails. ${WS_VNF_IP_ADDR} ${USERNAME} ${PASSWORD} ${PRIVATEKEY} cat '${WS_LOG_FILE}' | grep '${WS_ALARM_MSG}' | grep '${NS_NAME}' Execute via SSH a command in a remote host and, if the command succeeds, return the output. ${host} Opens a new SSH connection to the given ``host`` and ``port``. ${username} ${password} Logs into the SSH server with the given ``username`` and ``password``. ${username} ${privatekey} Logs into the SSH server using key-based authentication. Logging into '172.21.249.148:22' as 'ubuntu'. Read output: Welcome to Ubuntu 20.04.4 LTS (GNU/Linux 5.4.0-107-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Mon Feb 19 05:16:04 UTC 2024 System load: 0.0 Processes: 102 Usage of /: 14.2% of 9.52GB Users logged in: 0 Memory usage: 21% IPv4 address for ens3: 172.21.249.148 Swap usage: 0% 1 update can be applied immediately. To see these additional updates run: apt list --upgradable The list of available updates is more than a week old. To check for new updates run: sudo apt update New release '22.04.3 LTS' available. Run 'do-release-upgrade' to upgrade to it. Last login: Mon Feb 19 05:07:18 2024 from 172.21.249.4 To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. ubuntu@sa-07-webhook-se-vnf-hackfest-basic-vm-0:~$ ${stdout} ${rc} ${command} return_rc=True return_stdout=True Executes ``command`` on the remote machine and returns its outputs. Executing command 'cat 'webhook.log' | grep 'notify_alarm' | grep 'sa_07-alarm_test''. Command exited with return code 1. ${stdout} = ${rc} = 1 ${rc} Logs the given message with the given level. 1 ${stdout} Logs the given message with the given level. Closes all open connections. ${rc} 0 Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${stdout} ${WS_VNF_IP_ADDR} ${USERNAME} ${PASSWORD} ${PRIVATEKEY} cat '${WS_LOG_FILE}' | grep '${WS_ALARM_MSG}' | grep '${NS_NAME}' Execute via SSH a command in a remote host and, if the command succeeds, return the output. ${host} Opens a new SSH connection to the given ``host`` and ``port``. ${username} ${password} Logs into the SSH server with the given ``username`` and ``password``. ${username} ${privatekey} Logs into the SSH server using key-based authentication. Logging into '172.21.249.148:22' as 'ubuntu'. Read output: Welcome to Ubuntu 20.04.4 LTS (GNU/Linux 5.4.0-107-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Mon Feb 19 05:16:45 UTC 2024 System load: 0.0 Processes: 102 Usage of /: 14.2% of 9.52GB Users logged in: 0 Memory usage: 21% IPv4 address for ens3: 172.21.249.148 Swap usage: 0% 1 update can be applied immediately. To see these additional updates run: apt list --upgradable The list of available updates is more than a week old. To check for new updates run: sudo apt update New release '22.04.3 LTS' available. Run 'do-release-upgrade' to upgrade to it. Last login: Mon Feb 19 05:16:04 2024 from 172.21.249.4 To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. ubuntu@sa-07-webhook-se-vnf-hackfest-basic-vm-0:~$ ${stdout} ${rc} ${command} return_rc=True return_stdout=True Executes ``command`` on the remote machine and returns its outputs. Executing command 'cat 'webhook.log' | grep 'notify_alarm' | grep 'sa_07-alarm_test''. Command exited with return code 0. ${stdout} = {"schema_type": "notify_alarm", "schema_version": "1.1", "notify_details": {"alarm_uuid": "c045cc29-74cd-47f4-8197-8982218d5773", "status": "alarm", "metric_name": "osm_cpu_utilization", "start_date":... ${rc} = 0 ${rc} Logs the given message with the given level. 0 ${stdout} Logs the given message with the given level. {"schema_type": "notify_alarm", "schema_version": "1.1", "notify_details": {"alarm_uuid": "c045cc29-74cd-47f4-8197-8982218d5773", "status": "alarm", "metric_name": "osm_cpu_utilization", "start_date": "2024-02-19T05:16:29.112Z", "tags": {"alertname": "vdu_alarm_c045cc29-74cd-47f4-8197-8982218d5773", "job": "airflow_osm_vm_metrics_85764c05-53df-46c7-a9c8-e9e51d2283b7", "metric_id": "cirros_vnf_cpu_util", "ns_id": "dec25669-c645-4dc4-87fb-287ee3b47032", "project_id": "0658771c-e387-4292-a51e-090f213f77c7", "vdu_id": "cirros_vnfd-VM", "vdu_name": "sa_07-alarm_test-vnf-cirros_vnfd-VM-0", "vim_id": "85764c05-53df-46c7-a9c8-e9e51d2283b7", "vm_id": "d475786a-a321-4ff2-9c28-bf380afe01f0", "vnf_member_index": "vnf"}}} Closes all open connections. ${rc} 0 Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Check in the webhook VNF that the notification is received. cluster_sa daily regression sa_07 ${NS_NAME} Delete a NS instance. ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} Logs the given message with the given level. 240.0 ${rc} ${stdout} osm ns-delete ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-delete sa_07-alarm_test 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${stdout} Logs the given message with the given level. Deletion in progress ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${ns_delete_max_wait_time} ${NS_DELETE_POL_TIME} Check For NS Instance To Be Deleted ${ns} Runs the specified keyword and retries if it fails. ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | 05047590-22a1-4f64-b046-b33cceb33e8a | hfcloudinit-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 79aaf9e0-9921-4e14-9a5c-58e9ba8abfcd | hfcloudinit-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | d76d41e8-4a35-4371-9166-3237a09c752c | hfcloudinit-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | d9d8660b-046c-4f22-b80e-997be0e3f757 | hfcloudinit-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 2ce0d69f-c187-4daa-be52-4db098bae5cd | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.89 | ubuntu20.04 | simple_requires-1-1-flv | | d475786a-a321-4ff2-9c28-bf380afe01f0 | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.23 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | 1cec014d-e0db-496e-9352-c1c8ca968684 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.249.148 | ubuntu20.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------+--------+------------------------+------------------------------+--------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep sa_07-alarm_test 2>&1'. ${rc} = 0 ${stdout} = sa_07-alarm_test ${rc},${stdout} Logs the given message with the given level. 0,sa_07-alarm_test ${stdout} ${ns} Fails if objects are equal after converting them to strings. sa_07-alarm_test == sa_07-alarm_test ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | N... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ | 05047590-22a1-4f64-b046-b33cceb33e8a | hfcloudinit-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 79aaf9e0-9921-4e14-9a5c-58e9ba8abfcd | hfcloudinit-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | d76d41e8-4a35-4371-9166-3237a09c752c | hfcloudinit-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | d9d8660b-046c-4f22-b80e-997be0e3f757 | hfcloudinit-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 2ce0d69f-c187-4daa-be52-4db098bae5cd | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.89 | ubuntu20.04 | simple_requires-1-1-flv | | 1cec014d-e0db-496e-9352-c1c8ca968684 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.249.148 | ubuntu20.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep sa_07-alarm_test 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${ns} Fails if objects are equal after converting them to strings. Delete main NS instance. cleanup cluster_sa daily regression sa_07 ${NSD_NAME} Delete a NS package from OSM. ${rc} ${stdout} Run And Return Rc And Output osm nspkg-delete ${nsd_id} Runs the keyword and continues execution even if a failure occurs. osm nspkg-delete ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-delete cirros_alarm-ns 2>&1'. ${rc} = 0 ${stdout} = Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Logs the given message with the given level. Deleted ${NSD_DELETE_MAX_WAIT_TIME} ${NSD_DELETE_POL_TIME} Check For NSD ${nsd_id} Runs the specified keyword and retries if it fails. ${nsd_id} Check that a NS package exists in OSM. ${rc} ${stdout} osm nspkg-list | awk '{print $2}' | grep ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-list | awk '{print $2}' | grep cirros_alarm-ns 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. Delete main NS package. cleanup cluster_sa daily regression sa_07 ${VNFD_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete cirros_alarm-vnf 2>&1'. ${rc} = 0 ${stdout} = Deleted ${stdout} Logs the given message with the given level. Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep cirros_alarm-vnf 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. Delete main VNF package. cleanup cluster_sa daily regression sa_07 ${WS_NS_NAME} Delete a NS instance. ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} Logs the given message with the given level. 240.0 ${rc} ${stdout} osm ns-delete ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-delete sa_07-webhook_service_test 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${stdout} Logs the given message with the given level. Deletion in progress ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${ns_delete_max_wait_time} ${NS_DELETE_POL_TIME} Check For NS Instance To Be Deleted ${ns} Runs the specified keyword and retries if it fails. ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | N... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ | 05047590-22a1-4f64-b046-b33cceb33e8a | hfcloudinit-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 79aaf9e0-9921-4e14-9a5c-58e9ba8abfcd | hfcloudinit-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | d76d41e8-4a35-4371-9166-3237a09c752c | hfcloudinit-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | d9d8660b-046c-4f22-b80e-997be0e3f757 | hfcloudinit-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 2ce0d69f-c187-4daa-be52-4db098bae5cd | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.89 | ubuntu20.04 | simple_requires-1-1-flv | | 1cec014d-e0db-496e-9352-c1c8ca968684 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.249.148 | ubuntu20.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep sa_07-webhook_service_test 2>&1'. ${rc} = 0 ${stdout} = sa_07-webhook_service_test ${rc},${stdout} Logs the given message with the given level. 0,sa_07-webhook_service_test ${stdout} ${ns} Fails if objects are equal after converting them to strings. sa_07-webhook_service_test == sa_07-webhook_service_test ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | c4281e39-333f-4010-a1ad-61b16def71d4 | sa_02-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.249.75 | ubuntu20.04 | simple_requires-1-1-flv | | 05047590-22a1-4f64-b046-b33cceb33e8a | hfcloudinit-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 79aaf9e0-9921-4e14-9a5c-58e9ba8abfcd | hfcloudinit-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | d76d41e8-4a35-4371-9166-3237a09c752c | hfcloudinit-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | d9d8660b-046c-4f22-b80e-997be0e3f757 | hfcloudinit-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 2ce0d69f-c187-4daa-be52-4db098bae5cd | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.89 | ubuntu20.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep sa_07-webhook_service_test 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${ns} Fails if objects are equal after converting them to strings. Delete NS instance for the webhook. cleanup cluster_sa daily regression sa_07 ${WS_NSD_NAME} Delete a NS package from OSM. ${rc} ${stdout} Run And Return Rc And Output osm nspkg-delete ${nsd_id} Runs the keyword and continues execution even if a failure occurs. osm nspkg-delete ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-delete hackfest_basic-ns 2>&1'. ${rc} = 0 ${stdout} = Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Logs the given message with the given level. Deleted ${NSD_DELETE_MAX_WAIT_TIME} ${NSD_DELETE_POL_TIME} Check For NSD ${nsd_id} Runs the specified keyword and retries if it fails. ${nsd_id} Check that a NS package exists in OSM. ${rc} ${stdout} osm nspkg-list | awk '{print $2}' | grep ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-list | awk '{print $2}' | grep hackfest_basic-ns 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. Delete NS package for the webhook. cleanup cluster_sa daily regression sa_07 ${WS_VNFD_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete hackfest_basic-vnf 2>&1'. ${rc} = 0 ${stdout} = Deleted ${stdout} Logs the given message with the given level. Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep hackfest_basic-vnf 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. Delete VNF package for the webhook. cleanup cluster_sa daily regression sa_07 Suite Cleanup Runs the given keyword with the given arguments and ignores possible error. Test Suite Cleanup: Deleting descriptors and NS instance Delete NS ${NS_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete NSD ${NSD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete VNFD ${VNFD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete NS ${WS_NS_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete NSD ${WS_NSD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete VNFD ${WS_VNFD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. '%{PACKAGES_FOLDER}/${NEW_VNFD_PKG}' Removes the temporary package folder created for the test ${rc} ${stdout} rm -rf '${folder_name}' Runs the given command in the system and returns the RC and output. Running command 'rm -rf ''/robot-systest/osm-packages/new_cirros_alarm_vnf'' 2>&1'. ${rc} = 0 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 0, [SA-07] Events or alarms coming from SA-related VNFs in the NS. Suite Preparation Runs the given keyword with the given arguments and ignores possible error. Test Suite Preparation: Setting Prometheus Testsuite Variables Set Testsuite Prometheus Variables to be used in subsequent test cases ${local_prometheus_host} OSM_HOSTNAME Returns the value of an environment variable with the given name. ${PROMETHEUS_HOST} ${local_prometheus_host} Makes a variable available everywhere within the scope of the current suite. ${PROMETHEUS_HOST} 9091 Makes a variable available everywhere within the scope of the current suite. Invalid IF condition: Evaluating expression '172.21.249.226 == 'UNKNOWN'' failed: SyntaxError: invalid syntax (<string>, line 1) Variables in the original expression '${PROMETHEUS_HOST} == 'UNKNOWN'' were resolved before the expression was evaluated. Try using '$PROMETHEUS_HOST == 'UNKNOWN'' syntax to avoid that. See Evaluating Expressions appendix in Robot Framework User Guide for more details. ${PROMETHEUS_PORT} Logs the given message with the given level. ${PROMETHEUS_HOST} Logs the given message with the given level. ${PROMETHEUS_USER} Logs the given message with the given level. ${PROMETHEUS_PASSWORD} Logs the given message with the given level. '%{PACKAGES_FOLDER}/${VNFD_PKG}' Onboards ("creates") a NF Package into OSM. - Parameters: - vnfd_pkg: Name (and location) of the NF Package - overrides (optional): String with options to override the EPA and/or interface properties of the Package. This is very useful to allow to deploy e.g. non-EPA packages in EPA VIMs (or vice-versa). Valid strings are the same as in the command. E.g.: - `--override-epa`: adds EPA attributes to all VDUs. - `--override-nonepa`: removes all EPA attributes from all VDUs. - `--override-paravirt`: converts all interfaces to `PARAVIRT`. This one can be combined with the others above (e.g. '--override-nonepa --override-paravirt'). - Relevant environment variables: - OVERRIDES: If the environment variable "OVERRIDES" exists, it prevails over the value in the argument. This is often more convenient to enforce the same behaviour for every test run in a given VIM. ${overrides} OVERRIDES default=${overrides} Returns the value of an environment variable with the given name. ${overrides} = ${rc} ${stdout} osm vnfpkg-create ${overrides} ${vnfd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-create '/robot-systest/osm-packages/snmp_ee_vnf' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/snmp_ee_vnf Validation OK List of charms in the descriptor: set() Adding File: snmp_ee_vnf Package created: /robot-systest/osm-packages/snmp_ee_vnf.tar.g... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/snmp_ee_vnf Validation OK List of charms in the descriptor: set() Adding File: snmp_ee_vnf Package created: /robot-systest/osm-packages/snmp_ee_vnf.tar.gz Uploading package /robot-systest/osm-packages/snmp_ee_vnf.tar.gz 86f42e7b-3cea-4b7f-a753-c806fd6c50e8 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 7 lines ${lines} = 7 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 6 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = 86f42e7b-3cea-4b7f-a753-c806fd6c50e8 ${id} Upload VNF package for the testsuite. cluster_k8s daily regression sa_08 '%{PACKAGES_FOLDER}/${NSD_PKG}' Upload a NS package to OSM and return the id. ${rc} ${stdout} osm nspkg-create ${nsd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-create '/robot-systest/osm-packages/snmp_ee_ns' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/snmp_ee_ns Validation OK List of charms in the descriptor: set() Adding File: snmp_ee_ns Package created: /robot-systest/osm-packages/snmp_ee_ns.tar.gz c... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/snmp_ee_ns Validation OK List of charms in the descriptor: set() Adding File: snmp_ee_ns Package created: /robot-systest/osm-packages/snmp_ee_ns.tar.gz cc02c286-1035-4794-8f57-a948fb513bd9 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 6 lines ${lines} = 6 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 5 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = cc02c286-1035-4794-8f57-a948fb513bd9 ${id} Upload NS package for the testsuite. cluster_k8s daily regression sa_08 ${id} ${NSD_NAME} %{VIM_TARGET} ${NS_NAME} ${NS_CONFIG} ${EMPTY} Launch the instantation of a NS and verify in a loop that the NS instance is successfully created in a given time, and return the NS instance id. ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_launch_max_wait_time} = 300.0 ${ns_launch_max_wait_time} ${ns_launch_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_launch_max_wait_time} = 300.0 ${ns_launch_max_wait_time} Logs the given message with the given level. 300.0 ${config_attr} '${ns_config}'!='${EMPTY}' --config '${ns_config}' ${EMPTY} Sets variable based on the given condition. ${config_attr} = --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext} ] }' ${sshkeys_attr} '${publickey}'!='${EMPTY}' --ssh_keys ${publickey} ${EMPTY} Sets variable based on the given condition. ${sshkeys_attr} = ${config_file_attr} '${config_file}'!='${EMPTY}' --config_file '${config_file}' ${EMPTY} Sets variable based on the given condition. ${config_file_attr} = ${ns_id} ${ns_name} ${nsd} ${vim_name} ${config_attr} ${sshkeys_attr} ${config_file_attr} Launch the instantation of a NS, and return the NS instance id. ${rc} ${stdout} osm ns-create --ns_name ${ns_name} --nsd_name ${nsd} --vim_account ${vim_name} ${ns_extra_args} Runs the given command in the system and returns the RC and output. Running command 'osm ns-create --ns_name sa_08-vnf_with_vnf_indicators_snmp_test --nsd_name snmp_ee-ns --vim_account osm --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext} ] }' 2>&1'. ${rc} = 0 ${stdout} = fe640e04-5afd-4d7b-8863-0e9e4ce8fffc ${stdout} Logs the given message with the given level. fe640e04-5afd-4d7b-8863-0e9e4ce8fffc ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = fe640e04-5afd-4d7b-8863-0e9e4ce8fffc ${ns_id} Logs the given message with the given level. fe640e04-5afd-4d7b-8863-0e9e4ce8fffc ${ns_launch_max_wait_time} ${NS_LAUNCH_POL_TIME} Check For NS Instance To Configured ${ns_name} Runs the specified keyword and retries if it fails. ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | c4281e39-333f-4010-a1ad-61b16def71d4 | sa_02-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.249.75 | ubuntu20.04 | simple_requires-1-1-flv | | 05047590-22a1-4f64-b046-b33cceb33e8a | hfcloudinit-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 79aaf9e0-9921-4e14-9a5c-58e9ba8abfcd | hfcloudinit-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | d76d41e8-4a35-4371-9166-3237a09c752c | hfcloudinit-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | d9d8660b-046c-4f22-b80e-997be0e3f757 | hfcloudinit-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 2ce0d69f-c187-4daa-be52-4db098bae5cd | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.89 | ubuntu20.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="sa_08-vnf_with_vnf_indicators_snmp_test" 2>&1'. ${rc} = 0 ${stdout} = +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance... ${rc},${stdout} Logs the given message with the given level. 0,+-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | sa_08-vnf_with_vnf_indicators_snmp_test | fe640e04-5afd-4d7b-8863-0e9e4ce8fffc | 2024-02-19T05:17:51 | BUILDING | INSTANTIATING (7f4ee6e0-79f8-42d1-9fa3-7cfa03756b3b) | N/A | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | sa_08-vnf_with_vnf_indicators_snmp_test | fe640e04-5afd-4d7b-8863-0e9e4ce8fffc | 2024-02-19T05:17:51 | BUILDING | INSTANTIATING (7f4ee6e0-79f8-42d1-9fa3-7cfa03756b3b) | N/A | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+----------------------------------------+--------+------------------------+-------------+---------------------------+ | ID | N... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+----------------------------------------+--------+------------------------+-------------+---------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+----------------------------------------+--------+------------------------+-------------+---------------------------+ | 32727904-b9e5-4e93-a04b-fc45f566ee05 | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | BUILD | | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | c4281e39-333f-4010-a1ad-61b16def71d4 | sa_02-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.249.75 | ubuntu20.04 | simple_requires-1-1-flv | | 05047590-22a1-4f64-b046-b33cceb33e8a | hfcloudinit-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 79aaf9e0-9921-4e14-9a5c-58e9ba8abfcd | hfcloudinit-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | d76d41e8-4a35-4371-9166-3237a09c752c | hfcloudinit-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | d9d8660b-046c-4f22-b80e-997be0e3f757 | hfcloudinit-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 2ce0d69f-c187-4daa-be52-4db098bae5cd | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.89 | ubuntu20.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+----------------------------------------+--------+------------------------+-------------+---------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="sa_08-vnf_with_vnf_indicators_snmp_test" 2>&1'. ${rc} = 0 ${stdout} = +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance... ${rc},${stdout} Logs the given message with the given level. 0,+-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | sa_08-vnf_with_vnf_indicators_snmp_test | fe640e04-5afd-4d7b-8863-0e9e4ce8fffc | 2024-02-19T05:17:51 | BUILDING | INSTANTIATING (7f4ee6e0-79f8-42d1-9fa3-7cfa03756b3b) | N/A | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | sa_08-vnf_with_vnf_indicators_snmp_test | fe640e04-5afd-4d7b-8863-0e9e4ce8fffc | 2024-02-19T05:17:51 | BUILDING | INSTANTIATING (7f4ee6e0-79f8-42d1-9fa3-7cfa03756b3b) | N/A | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+----------------------------------------+--------+------------------------+-------------+---------------------------+ | ID | N... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+----------------------------------------+--------+------------------------+-------------+---------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+----------------------------------------+--------+------------------------+-------------+---------------------------+ | 32727904-b9e5-4e93-a04b-fc45f566ee05 | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | BUILD | | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | c4281e39-333f-4010-a1ad-61b16def71d4 | sa_02-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.249.75 | ubuntu20.04 | simple_requires-1-1-flv | | 05047590-22a1-4f64-b046-b33cceb33e8a | hfcloudinit-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 79aaf9e0-9921-4e14-9a5c-58e9ba8abfcd | hfcloudinit-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | d76d41e8-4a35-4371-9166-3237a09c752c | hfcloudinit-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | d9d8660b-046c-4f22-b80e-997be0e3f757 | hfcloudinit-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 2ce0d69f-c187-4daa-be52-4db098bae5cd | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.89 | ubuntu20.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+----------------------------------------+--------+------------------------+-------------+---------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="sa_08-vnf_with_vnf_indicators_snmp_test" 2>&1'. ${rc} = 0 ${stdout} = +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance... ${rc},${stdout} Logs the given message with the given level. 0,+-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | sa_08-vnf_with_vnf_indicators_snmp_test | fe640e04-5afd-4d7b-8863-0e9e4ce8fffc | 2024-02-19T05:17:51 | BUILDING | INSTANTIATING (7f4ee6e0-79f8-42d1-9fa3-7cfa03756b3b) | N/A | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | sa_08-vnf_with_vnf_indicators_snmp_test | fe640e04-5afd-4d7b-8863-0e9e4ce8fffc | 2024-02-19T05:17:51 | BUILDING | INSTANTIATING (7f4ee6e0-79f8-42d1-9fa3-7cfa03756b3b) | N/A | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+----------------------------------------+--------+------------------------+-------------+---------------------------+ | ID | N... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+----------------------------------------+--------+------------------------+-------------+---------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+----------------------------------------+--------+------------------------+-------------+---------------------------+ | 32727904-b9e5-4e93-a04b-fc45f566ee05 | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | BUILD | | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | c4281e39-333f-4010-a1ad-61b16def71d4 | sa_02-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.249.75 | ubuntu20.04 | simple_requires-1-1-flv | | 05047590-22a1-4f64-b046-b33cceb33e8a | hfcloudinit-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 79aaf9e0-9921-4e14-9a5c-58e9ba8abfcd | hfcloudinit-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | d76d41e8-4a35-4371-9166-3237a09c752c | hfcloudinit-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | d9d8660b-046c-4f22-b80e-997be0e3f757 | hfcloudinit-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 2ce0d69f-c187-4daa-be52-4db098bae5cd | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.89 | ubuntu20.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+----------------------------------------+--------+------------------------+-------------+---------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="sa_08-vnf_with_vnf_indicators_snmp_test" 2>&1'. ${rc} = 0 ${stdout} = +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance... ${rc},${stdout} Logs the given message with the given level. 0,+-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | sa_08-vnf_with_vnf_indicators_snmp_test | fe640e04-5afd-4d7b-8863-0e9e4ce8fffc | 2024-02-19T05:17:51 | BUILDING | INSTANTIATING (7f4ee6e0-79f8-42d1-9fa3-7cfa03756b3b) | N/A | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | sa_08-vnf_with_vnf_indicators_snmp_test | fe640e04-5afd-4d7b-8863-0e9e4ce8fffc | 2024-02-19T05:17:51 | BUILDING | INSTANTIATING (7f4ee6e0-79f8-42d1-9fa3-7cfa03756b3b) | N/A | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+----------------------------------------+--------+------------------------+-------------+---------------------------+ | ID | N... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+----------------------------------------+--------+------------------------+-------------+---------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+----------------------------------------+--------+------------------------+-------------+---------------------------+ | 32727904-b9e5-4e93-a04b-fc45f566ee05 | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | BUILD | | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 05047590-22a1-4f64-b046-b33cceb33e8a | hfcloudinit-vnf2-dataVM-0 | ERROR | | ubuntu20.04 | simple_requires-1-1-flv | | 79aaf9e0-9921-4e14-9a5c-58e9ba8abfcd | hfcloudinit-vnf2-mgmtVM-0 | ERROR | | ubuntu20.04 | simple_requires-1-1-flv | | d76d41e8-4a35-4371-9166-3237a09c752c | hfcloudinit-vnf1-dataVM-0 | ERROR | | ubuntu20.04 | simple_requires-1-1-flv | | d9d8660b-046c-4f22-b80e-997be0e3f757 | hfcloudinit-vnf1-mgmtVM-0 | ERROR | | ubuntu20.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+----------------------------------------+--------+------------------------+-------------+---------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="sa_08-vnf_with_vnf_indicators_snmp_test" 2>&1'. ${rc} = 0 ${stdout} = +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance... ${rc},${stdout} Logs the given message with the given level. 0,+-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | sa_08-vnf_with_vnf_indicators_snmp_test | fe640e04-5afd-4d7b-8863-0e9e4ce8fffc | 2024-02-19T05:17:51 | BUILDING | INSTANTIATING (7f4ee6e0-79f8-42d1-9fa3-7cfa03756b3b) | N/A | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | sa_08-vnf_with_vnf_indicators_snmp_test | fe640e04-5afd-4d7b-8863-0e9e4ce8fffc | 2024-02-19T05:17:51 | BUILDING | INSTANTIATING (7f4ee6e0-79f8-42d1-9fa3-7cfa03756b3b) | N/A | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------+--------+------------------------+-------------+---------------------------+ | ID |... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------+--------+------------------------+-------------+---------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+---------------------------+ | eb7b0027-67d2-4998-9387-ad08a5f9c58a | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.238 | ubuntu20.04 | simple_requires-1-1-flv | | 32727904-b9e5-4e93-a04b-fc45f566ee05 | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | BUILD | | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+---------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="sa_08-vnf_with_vnf_indicators_snmp_test" 2>&1'. ${rc} = 0 ${stdout} = +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance... ${rc},${stdout} Logs the given message with the given level. 0,+-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | sa_08-vnf_with_vnf_indicators_snmp_test | fe640e04-5afd-4d7b-8863-0e9e4ce8fffc | 2024-02-19T05:17:51 | BUILDING | INSTANTIATING (7f4ee6e0-79f8-42d1-9fa3-7cfa03756b3b) | N/A | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | sa_08-vnf_with_vnf_indicators_snmp_test | fe640e04-5afd-4d7b-8863-0e9e4ce8fffc | 2024-02-19T05:17:51 | BUILDING | INSTANTIATING (7f4ee6e0-79f8-42d1-9fa3-7cfa03756b3b) | N/A | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------+--------+------------------------+-------------+---------------------------+ | ID |... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------+--------+------------------------+-------------+---------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+---------------------------+ | eb7b0027-67d2-4998-9387-ad08a5f9c58a | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.238 | ubuntu20.04 | simple_requires-1-1-flv | | 32727904-b9e5-4e93-a04b-fc45f566ee05 | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | BUILD | | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+---------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="sa_08-vnf_with_vnf_indicators_snmp_test" 2>&1'. ${rc} = 0 ${stdout} = +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance... ${rc},${stdout} Logs the given message with the given level. 0,+-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | sa_08-vnf_with_vnf_indicators_snmp_test | fe640e04-5afd-4d7b-8863-0e9e4ce8fffc | 2024-02-19T05:17:51 | BUILDING | INSTANTIATING (7f4ee6e0-79f8-42d1-9fa3-7cfa03756b3b) | N/A | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | sa_08-vnf_with_vnf_indicators_snmp_test | fe640e04-5afd-4d7b-8863-0e9e4ce8fffc | 2024-02-19T05:17:51 | BUILDING | INSTANTIATING (7f4ee6e0-79f8-42d1-9fa3-7cfa03756b3b) | N/A | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------+--------+------------------------+-------------+---------------------------+ | ID |... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------+--------+------------------------+-------------+---------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+---------------------------+ | 8ff24c84-bd54-41d6-822d-3905653efac7 | hfmultivdu-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 841e08ff-bc82-411a-ab44-218f0c68d401 | hfmultivdu-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | eb40f2c1-d319-427d-b5cf-24799db61b4a | hfmultivdu-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 4d51c461-6831-4bf3-928d-ddcc37383af2 | hfmultivdu-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | eb7b0027-67d2-4998-9387-ad08a5f9c58a | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.238 | ubuntu20.04 | simple_requires-1-1-flv | | 32727904-b9e5-4e93-a04b-fc45f566ee05 | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | BUILD | | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+---------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="sa_08-vnf_with_vnf_indicators_snmp_test" 2>&1'. ${rc} = 0 ${stdout} = +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance... ${rc},${stdout} Logs the given message with the given level. 0,+-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | sa_08-vnf_with_vnf_indicators_snmp_test | fe640e04-5afd-4d7b-8863-0e9e4ce8fffc | 2024-02-19T05:17:51 | BUILDING | INSTANTIATING (7f4ee6e0-79f8-42d1-9fa3-7cfa03756b3b) | N/A | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | sa_08-vnf_with_vnf_indicators_snmp_test | fe640e04-5afd-4d7b-8863-0e9e4ce8fffc | 2024-02-19T05:17:51 | BUILDING | INSTANTIATING (7f4ee6e0-79f8-42d1-9fa3-7cfa03756b3b) | N/A | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------+--------+------------------------+------------------------------+---------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------+--------+------------------------+------------------------------+---------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------+--------+------------------------+------------------------------+---------------------------+ | d66d8a78-2977-439b-8225-ebaaa8d52064 | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.175 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | 8ff24c84-bd54-41d6-822d-3905653efac7 | hfmultivdu-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 841e08ff-bc82-411a-ab44-218f0c68d401 | hfmultivdu-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | eb40f2c1-d319-427d-b5cf-24799db61b4a | hfmultivdu-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 4d51c461-6831-4bf3-928d-ddcc37383af2 | hfmultivdu-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | eb7b0027-67d2-4998-9387-ad08a5f9c58a | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.238 | ubuntu20.04 | simple_requires-1-1-flv | | 32727904-b9e5-4e93-a04b-fc45f566ee05 | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | BUILD | | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------+--------+------------------------+------------------------------+---------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="sa_08-vnf_with_vnf_indicators_snmp_test" 2>&1'. ${rc} = 0 ${stdout} = +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance... ${rc},${stdout} Logs the given message with the given level. 0,+-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | sa_08-vnf_with_vnf_indicators_snmp_test | fe640e04-5afd-4d7b-8863-0e9e4ce8fffc | 2024-02-19T05:17:51 | BUILDING | INSTANTIATING (7f4ee6e0-79f8-42d1-9fa3-7cfa03756b3b) | N/A | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | sa_08-vnf_with_vnf_indicators_snmp_test | fe640e04-5afd-4d7b-8863-0e9e4ce8fffc | 2024-02-19T05:17:51 | BUILDING | INSTANTIATING (7f4ee6e0-79f8-42d1-9fa3-7cfa03756b3b) | N/A | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------+--------+------------------------+------------------------------+---------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------+--------+------------------------+------------------------------+---------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------+--------+------------------------+------------------------------+---------------------------+ | d66d8a78-2977-439b-8225-ebaaa8d52064 | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.175 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | 8ff24c84-bd54-41d6-822d-3905653efac7 | hfmultivdu-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 841e08ff-bc82-411a-ab44-218f0c68d401 | hfmultivdu-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | eb40f2c1-d319-427d-b5cf-24799db61b4a | hfmultivdu-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 4d51c461-6831-4bf3-928d-ddcc37383af2 | hfmultivdu-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | eb7b0027-67d2-4998-9387-ad08a5f9c58a | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.238 | ubuntu20.04 | simple_requires-1-1-flv | | 32727904-b9e5-4e93-a04b-fc45f566ee05 | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | BUILD | | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------+--------+------------------------+------------------------------+---------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="sa_08-vnf_with_vnf_indicators_snmp_test" 2>&1'. ${rc} = 0 ${stdout} = +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance... ${rc},${stdout} Logs the given message with the given level. 0,+-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | sa_08-vnf_with_vnf_indicators_snmp_test | fe640e04-5afd-4d7b-8863-0e9e4ce8fffc | 2024-02-19T05:17:51 | BUILDING | INSTANTIATING (7f4ee6e0-79f8-42d1-9fa3-7cfa03756b3b) | N/A | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. '+-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | sa_08-vnf_with_vnf_indicators_snmp_test | fe640e04-5afd-4d7b-8863-0e9e4ce8fffc | 2024-02-19T05:17:51 | BUILDING | INSTANTIATING (7f4ee6e0-79f8-42d1-9fa3-7cfa03756b3b) | N/A | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' Keyword 'Check For NS Instance To Configured' failed after retrying for 5 minutes. The last error was: '+-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | sa_08-vnf_with_vnf_indicators_snmp_test | fe640e04-5afd-4d7b-8863-0e9e4ce8fffc | 2024-02-19T05:17:51 | BUILDING | INSTANTIATING (7f4ee6e0-79f8-42d1-9fa3-7cfa03756b3b) | N/A | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has not failed in the instantiation (the status should not be BROKEN). ${ns_id} ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. Instantiate the NS for the testsuite. cluster_k8s daily regression sa_08 Keyword 'Check For NS Instance To Configured' failed after retrying for 5 minutes. The last error was: '+-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | sa_08-vnf_with_vnf_indicators_snmp_test | fe640e04-5afd-4d7b-8863-0e9e4ce8fffc | 2024-02-19T05:17:51 | BUILDING | INSTANTIATING (7f4ee6e0-79f8-42d1-9fa3-7cfa03756b3b) | N/A | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${PROMETHEUS_HOST} msg=Prometheus address is not available Fails unless the given variable exists within the current scope. ${PROMETHEUS_PORT} msg=Prometheus port is not available Fails unless the given variable exists within the current scope. ${METRIC_1_NAME} msg=Prometheus first metric name is not available Fails unless the given variable exists within the current scope. ${METRIC_2_NAME} msg=Prometheus second metric name is not available Fails unless the given variable exists within the current scope. ${metric_1_value} ${PROMETHEUS_POLL_RETRIES} ${PROMETHEUS_POLL_TIMEOUT} Get Metric ${PROMETHEUS_HOST} ${PROMETHEUS_PORT} ${PROMETHEUS_USER} ${PROMETHEUS_PASSWORD} ${METRIC_1_NAME} ${METRIC_1_FILTER} Runs the specified keyword and retries if it fails. ${PROMETHEUS_HOST} ${PROMETHEUS_PORT} ${PROMETHEUS_USER} ${PROMETHEUS_PASSWORD} ${METRIC_1_NAME} ${METRIC_1_FILTER} Get the instant value of a metric from Prometheus using multiple filter parameters. The filter parameters are given to this function in key=value format (one argument per key/value pair). Fails if the metric is not found or has multiple values. Examples of execution: ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${param1}=${value1} ${param2}=${value2} ${filter} ${EMPTY} Returns the given values which can then be assigned to a variables. ${filter} = ${param} @{filter_parameters} ifIndex=1 ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in filter parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = ifIndex=1 ${param_name} = ifIndex ${param_value} = 1 ${match},${param_name},${param_value} Logs the given message with the given level. ifIndex=1,ifIndex,1 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ifIndex="1", ${resp} ${prometheus_ip} ${prometheus_port} ${prometheus_user} ${prometheus_password} query=${metric}{${filter}} Execute a Prometheus Instant Query using HTTP API. Return an inline json with the result of the query. The requested URL is the next: http://${prometheus_ip}:${prometheus_port}/api/v1/query?${querystring} ${auth} ${prometheus_user} ${prometheus_password} Returns a list containing given items. ${auth} = ['""', '""'] ${auth} None Returns the given values which can then be assigned to a variables. prometheus http://${prometheus_ip}:${prometheus_port} timeout=${TIMEOUT} max_retries=${MAX_RETRIES} verify=false auth=${auth} Create Session: create a HTTP session to a server Creating Session using : alias=prometheus, url=http://172.21.249.226:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7ff1a6ea1690>, timeout=30, proxies=None, verify=False, debug=0 ${resp} prometheus /api/v1/query?${querystring} timeout=${TIMEOUT} Sends a GET request on a previously created HTTP Session. GET Request : url=http://172.21.249.226:9091/api/v1/query?query=ifInOctets%7BifIndex=%221%22,%7D path_url=/api/v1/query?query=ifInOctets%7BifIndex=%221%22,%7D headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'Basic IiI6IiI='} body=None GET Response : url=http://172.21.249.226:9091/api/v1/query?query=ifInOctets%7BifIndex=%221%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Mon, 19 Feb 2024 05:22:53 GMT', 'Content-Length': '87'} body={"status":"success","data":{"resultType":"vector","result":[]}} ${resp} = <Response [200]> 200 ${resp} Fails if response status code is different than the expected. ${resp.json()} ${resp} = {'status': 'success', 'data': {'resultType': 'vector', 'result': []}} ${result_list} ${resp["data"]["result"]} Converts the given ``item`` to a Python ``list`` type. ${result_list} = [] ${results} ${result_list} Returns and logs the length of the given item as an integer. Length is 0 ${results} = 0 0 ${results} msg=Metric ${metric} not found values=false Fails if objects are equal after converting them to real numbers. Argument types are: <class 'str'> <class 'int'> Metric ifInOctets not found 1 ${results} msg=Metric ${metric} with multiple values values=false Fails if objects are unequal after converting them to integers. ${result_list[0]["value"][1]} ${PROMETHEUS_HOST} ${PROMETHEUS_PORT} ${PROMETHEUS_USER} ${PROMETHEUS_PASSWORD} ${METRIC_1_NAME} ${METRIC_1_FILTER} Get the instant value of a metric from Prometheus using multiple filter parameters. The filter parameters are given to this function in key=value format (one argument per key/value pair). Fails if the metric is not found or has multiple values. Examples of execution: ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${param1}=${value1} ${param2}=${value2} ${filter} ${EMPTY} Returns the given values which can then be assigned to a variables. ${filter} = ${param} @{filter_parameters} ifIndex=1 ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in filter parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = ifIndex=1 ${param_name} = ifIndex ${param_value} = 1 ${match},${param_name},${param_value} Logs the given message with the given level. ifIndex=1,ifIndex,1 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ifIndex="1", ${resp} ${prometheus_ip} ${prometheus_port} ${prometheus_user} ${prometheus_password} query=${metric}{${filter}} Execute a Prometheus Instant Query using HTTP API. Return an inline json with the result of the query. The requested URL is the next: http://${prometheus_ip}:${prometheus_port}/api/v1/query?${querystring} ${auth} ${prometheus_user} ${prometheus_password} Returns a list containing given items. ${auth} = ['""', '""'] ${auth} None Returns the given values which can then be assigned to a variables. prometheus http://${prometheus_ip}:${prometheus_port} timeout=${TIMEOUT} max_retries=${MAX_RETRIES} verify=false auth=${auth} Create Session: create a HTTP session to a server Creating Session using : alias=prometheus, url=http://172.21.249.226:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7ff1a6d4e950>, timeout=30, proxies=None, verify=False, debug=0 ${resp} prometheus /api/v1/query?${querystring} timeout=${TIMEOUT} Sends a GET request on a previously created HTTP Session. GET Request : url=http://172.21.249.226:9091/api/v1/query?query=ifInOctets%7BifIndex=%221%22,%7D path_url=/api/v1/query?query=ifInOctets%7BifIndex=%221%22,%7D headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'Basic IiI6IiI='} body=None GET Response : url=http://172.21.249.226:9091/api/v1/query?query=ifInOctets%7BifIndex=%221%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Mon, 19 Feb 2024 05:23:53 GMT', 'Content-Length': '87'} body={"status":"success","data":{"resultType":"vector","result":[]}} ${resp} = <Response [200]> 200 ${resp} Fails if response status code is different than the expected. ${resp.json()} ${resp} = {'status': 'success', 'data': {'resultType': 'vector', 'result': []}} ${result_list} ${resp["data"]["result"]} Converts the given ``item`` to a Python ``list`` type. ${result_list} = [] ${results} ${result_list} Returns and logs the length of the given item as an integer. Length is 0 ${results} = 0 0 ${results} msg=Metric ${metric} not found values=false Fails if objects are equal after converting them to real numbers. Argument types are: <class 'str'> <class 'int'> Metric ifInOctets not found 1 ${results} msg=Metric ${metric} with multiple values values=false Fails if objects are unequal after converting them to integers. ${result_list[0]["value"][1]} ${PROMETHEUS_HOST} ${PROMETHEUS_PORT} ${PROMETHEUS_USER} ${PROMETHEUS_PASSWORD} ${METRIC_1_NAME} ${METRIC_1_FILTER} Get the instant value of a metric from Prometheus using multiple filter parameters. The filter parameters are given to this function in key=value format (one argument per key/value pair). Fails if the metric is not found or has multiple values. Examples of execution: ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${param1}=${value1} ${param2}=${value2} ${filter} ${EMPTY} Returns the given values which can then be assigned to a variables. ${filter} = ${param} @{filter_parameters} ifIndex=1 ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in filter parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = ifIndex=1 ${param_name} = ifIndex ${param_value} = 1 ${match},${param_name},${param_value} Logs the given message with the given level. ifIndex=1,ifIndex,1 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ifIndex="1", ${resp} ${prometheus_ip} ${prometheus_port} ${prometheus_user} ${prometheus_password} query=${metric}{${filter}} Execute a Prometheus Instant Query using HTTP API. Return an inline json with the result of the query. The requested URL is the next: http://${prometheus_ip}:${prometheus_port}/api/v1/query?${querystring} ${auth} ${prometheus_user} ${prometheus_password} Returns a list containing given items. ${auth} = ['""', '""'] ${auth} None Returns the given values which can then be assigned to a variables. prometheus http://${prometheus_ip}:${prometheus_port} timeout=${TIMEOUT} max_retries=${MAX_RETRIES} verify=false auth=${auth} Create Session: create a HTTP session to a server Creating Session using : alias=prometheus, url=http://172.21.249.226:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7ff1a6d374f0>, timeout=30, proxies=None, verify=False, debug=0 ${resp} prometheus /api/v1/query?${querystring} timeout=${TIMEOUT} Sends a GET request on a previously created HTTP Session. GET Request : url=http://172.21.249.226:9091/api/v1/query?query=ifInOctets%7BifIndex=%221%22,%7D path_url=/api/v1/query?query=ifInOctets%7BifIndex=%221%22,%7D headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'Basic IiI6IiI='} body=None GET Response : url=http://172.21.249.226:9091/api/v1/query?query=ifInOctets%7BifIndex=%221%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Mon, 19 Feb 2024 05:24:53 GMT', 'Content-Length': '87'} body={"status":"success","data":{"resultType":"vector","result":[]}} ${resp} = <Response [200]> 200 ${resp} Fails if response status code is different than the expected. ${resp.json()} ${resp} = {'status': 'success', 'data': {'resultType': 'vector', 'result': []}} ${result_list} ${resp["data"]["result"]} Converts the given ``item`` to a Python ``list`` type. ${result_list} = [] ${results} ${result_list} Returns and logs the length of the given item as an integer. Length is 0 ${results} = 0 0 ${results} msg=Metric ${metric} not found values=false Fails if objects are equal after converting them to real numbers. Argument types are: <class 'str'> <class 'int'> Metric ifInOctets not found 1 ${results} msg=Metric ${metric} with multiple values values=false Fails if objects are unequal after converting them to integers. ${result_list[0]["value"][1]} ${PROMETHEUS_HOST} ${PROMETHEUS_PORT} ${PROMETHEUS_USER} ${PROMETHEUS_PASSWORD} ${METRIC_1_NAME} ${METRIC_1_FILTER} Get the instant value of a metric from Prometheus using multiple filter parameters. The filter parameters are given to this function in key=value format (one argument per key/value pair). Fails if the metric is not found or has multiple values. Examples of execution: ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${param1}=${value1} ${param2}=${value2} ${filter} ${EMPTY} Returns the given values which can then be assigned to a variables. ${filter} = ${param} @{filter_parameters} ifIndex=1 ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in filter parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = ifIndex=1 ${param_name} = ifIndex ${param_value} = 1 ${match},${param_name},${param_value} Logs the given message with the given level. ifIndex=1,ifIndex,1 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ifIndex="1", ${resp} ${prometheus_ip} ${prometheus_port} ${prometheus_user} ${prometheus_password} query=${metric}{${filter}} Execute a Prometheus Instant Query using HTTP API. Return an inline json with the result of the query. The requested URL is the next: http://${prometheus_ip}:${prometheus_port}/api/v1/query?${querystring} ${auth} ${prometheus_user} ${prometheus_password} Returns a list containing given items. ${auth} = ['""', '""'] ${auth} None Returns the given values which can then be assigned to a variables. prometheus http://${prometheus_ip}:${prometheus_port} timeout=${TIMEOUT} max_retries=${MAX_RETRIES} verify=false auth=${auth} Create Session: create a HTTP session to a server Creating Session using : alias=prometheus, url=http://172.21.249.226:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7ff1a6d4dfc0>, timeout=30, proxies=None, verify=False, debug=0 ${resp} prometheus /api/v1/query?${querystring} timeout=${TIMEOUT} Sends a GET request on a previously created HTTP Session. GET Request : url=http://172.21.249.226:9091/api/v1/query?query=ifInOctets%7BifIndex=%221%22,%7D path_url=/api/v1/query?query=ifInOctets%7BifIndex=%221%22,%7D headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'Basic IiI6IiI='} body=None GET Response : url=http://172.21.249.226:9091/api/v1/query?query=ifInOctets%7BifIndex=%221%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Mon, 19 Feb 2024 05:25:53 GMT', 'Content-Length': '87'} body={"status":"success","data":{"resultType":"vector","result":[]}} ${resp} = <Response [200]> 200 ${resp} Fails if response status code is different than the expected. ${resp.json()} ${resp} = {'status': 'success', 'data': {'resultType': 'vector', 'result': []}} ${result_list} ${resp["data"]["result"]} Converts the given ``item`` to a Python ``list`` type. ${result_list} = [] ${results} ${result_list} Returns and logs the length of the given item as an integer. Length is 0 ${results} = 0 0 ${results} msg=Metric ${metric} not found values=false Fails if objects are equal after converting them to real numbers. Argument types are: <class 'str'> <class 'int'> Metric ifInOctets not found 1 ${results} msg=Metric ${metric} with multiple values values=false Fails if objects are unequal after converting them to integers. ${result_list[0]["value"][1]} ${PROMETHEUS_HOST} ${PROMETHEUS_PORT} ${PROMETHEUS_USER} ${PROMETHEUS_PASSWORD} ${METRIC_1_NAME} ${METRIC_1_FILTER} Get the instant value of a metric from Prometheus using multiple filter parameters. The filter parameters are given to this function in key=value format (one argument per key/value pair). Fails if the metric is not found or has multiple values. Examples of execution: ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${param1}=${value1} ${param2}=${value2} ${filter} ${EMPTY} Returns the given values which can then be assigned to a variables. ${filter} = ${param} @{filter_parameters} ifIndex=1 ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in filter parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = ifIndex=1 ${param_name} = ifIndex ${param_value} = 1 ${match},${param_name},${param_value} Logs the given message with the given level. ifIndex=1,ifIndex,1 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ifIndex="1", ${resp} ${prometheus_ip} ${prometheus_port} ${prometheus_user} ${prometheus_password} query=${metric}{${filter}} Execute a Prometheus Instant Query using HTTP API. Return an inline json with the result of the query. The requested URL is the next: http://${prometheus_ip}:${prometheus_port}/api/v1/query?${querystring} ${auth} ${prometheus_user} ${prometheus_password} Returns a list containing given items. ${auth} = ['""', '""'] ${auth} None Returns the given values which can then be assigned to a variables. prometheus http://${prometheus_ip}:${prometheus_port} timeout=${TIMEOUT} max_retries=${MAX_RETRIES} verify=false auth=${auth} Create Session: create a HTTP session to a server Creating Session using : alias=prometheus, url=http://172.21.249.226:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7ff1a6d02f50>, timeout=30, proxies=None, verify=False, debug=0 ${resp} prometheus /api/v1/query?${querystring} timeout=${TIMEOUT} Sends a GET request on a previously created HTTP Session. GET Request : url=http://172.21.249.226:9091/api/v1/query?query=ifInOctets%7BifIndex=%221%22,%7D path_url=/api/v1/query?query=ifInOctets%7BifIndex=%221%22,%7D headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'Basic IiI6IiI='} body=None GET Response : url=http://172.21.249.226:9091/api/v1/query?query=ifInOctets%7BifIndex=%221%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Mon, 19 Feb 2024 05:26:53 GMT', 'Content-Length': '87'} body={"status":"success","data":{"resultType":"vector","result":[]}} ${resp} = <Response [200]> 200 ${resp} Fails if response status code is different than the expected. ${resp.json()} ${resp} = {'status': 'success', 'data': {'resultType': 'vector', 'result': []}} ${result_list} ${resp["data"]["result"]} Converts the given ``item`` to a Python ``list`` type. ${result_list} = [] ${results} ${result_list} Returns and logs the length of the given item as an integer. Length is 0 ${results} = 0 0 ${results} msg=Metric ${metric} not found values=false Fails if objects are equal after converting them to real numbers. Argument types are: <class 'str'> <class 'int'> Metric ifInOctets not found 1 ${results} msg=Metric ${metric} with multiple values values=false Fails if objects are unequal after converting them to integers. ${result_list[0]["value"][1]} ${PROMETHEUS_HOST} ${PROMETHEUS_PORT} ${PROMETHEUS_USER} ${PROMETHEUS_PASSWORD} ${METRIC_1_NAME} ${METRIC_1_FILTER} Get the instant value of a metric from Prometheus using multiple filter parameters. The filter parameters are given to this function in key=value format (one argument per key/value pair). Fails if the metric is not found or has multiple values. Examples of execution: ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${param1}=${value1} ${param2}=${value2} ${filter} ${EMPTY} Returns the given values which can then be assigned to a variables. ${filter} = ${param} @{filter_parameters} ifIndex=1 ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in filter parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = ifIndex=1 ${param_name} = ifIndex ${param_value} = 1 ${match},${param_name},${param_value} Logs the given message with the given level. ifIndex=1,ifIndex,1 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ifIndex="1", ${resp} ${prometheus_ip} ${prometheus_port} ${prometheus_user} ${prometheus_password} query=${metric}{${filter}} Execute a Prometheus Instant Query using HTTP API. Return an inline json with the result of the query. The requested URL is the next: http://${prometheus_ip}:${prometheus_port}/api/v1/query?${querystring} ${auth} ${prometheus_user} ${prometheus_password} Returns a list containing given items. ${auth} = ['""', '""'] ${auth} None Returns the given values which can then be assigned to a variables. prometheus http://${prometheus_ip}:${prometheus_port} timeout=${TIMEOUT} max_retries=${MAX_RETRIES} verify=false auth=${auth} Create Session: create a HTTP session to a server Creating Session using : alias=prometheus, url=http://172.21.249.226:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7ff1a6d0cbb0>, timeout=30, proxies=None, verify=False, debug=0 ${resp} prometheus /api/v1/query?${querystring} timeout=${TIMEOUT} Sends a GET request on a previously created HTTP Session. GET Request : url=http://172.21.249.226:9091/api/v1/query?query=ifInOctets%7BifIndex=%221%22,%7D path_url=/api/v1/query?query=ifInOctets%7BifIndex=%221%22,%7D headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'Basic IiI6IiI='} body=None GET Response : url=http://172.21.249.226:9091/api/v1/query?query=ifInOctets%7BifIndex=%221%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Mon, 19 Feb 2024 05:27:53 GMT', 'Content-Length': '87'} body={"status":"success","data":{"resultType":"vector","result":[]}} ${resp} = <Response [200]> 200 ${resp} Fails if response status code is different than the expected. ${resp.json()} ${resp} = {'status': 'success', 'data': {'resultType': 'vector', 'result': []}} ${result_list} ${resp["data"]["result"]} Converts the given ``item`` to a Python ``list`` type. ${result_list} = [] ${results} ${result_list} Returns and logs the length of the given item as an integer. Length is 0 ${results} = 0 0 ${results} msg=Metric ${metric} not found values=false Fails if objects are equal after converting them to real numbers. Argument types are: <class 'str'> <class 'int'> Metric ifInOctets not found 1 ${results} msg=Metric ${metric} with multiple values values=false Fails if objects are unequal after converting them to integers. ${result_list[0]["value"][1]} ${PROMETHEUS_HOST} ${PROMETHEUS_PORT} ${PROMETHEUS_USER} ${PROMETHEUS_PASSWORD} ${METRIC_1_NAME} ${METRIC_1_FILTER} Get the instant value of a metric from Prometheus using multiple filter parameters. The filter parameters are given to this function in key=value format (one argument per key/value pair). Fails if the metric is not found or has multiple values. Examples of execution: ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${param1}=${value1} ${param2}=${value2} ${filter} ${EMPTY} Returns the given values which can then be assigned to a variables. ${filter} = ${param} @{filter_parameters} ifIndex=1 ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in filter parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = ifIndex=1 ${param_name} = ifIndex ${param_value} = 1 ${match},${param_name},${param_value} Logs the given message with the given level. ifIndex=1,ifIndex,1 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ifIndex="1", ${resp} ${prometheus_ip} ${prometheus_port} ${prometheus_user} ${prometheus_password} query=${metric}{${filter}} Execute a Prometheus Instant Query using HTTP API. Return an inline json with the result of the query. The requested URL is the next: http://${prometheus_ip}:${prometheus_port}/api/v1/query?${querystring} ${auth} ${prometheus_user} ${prometheus_password} Returns a list containing given items. ${auth} = ['""', '""'] ${auth} None Returns the given values which can then be assigned to a variables. prometheus http://${prometheus_ip}:${prometheus_port} timeout=${TIMEOUT} max_retries=${MAX_RETRIES} verify=false auth=${auth} Create Session: create a HTTP session to a server Creating Session using : alias=prometheus, url=http://172.21.249.226:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7ff1a6d6abf0>, timeout=30, proxies=None, verify=False, debug=0 ${resp} prometheus /api/v1/query?${querystring} timeout=${TIMEOUT} Sends a GET request on a previously created HTTP Session. GET Request : url=http://172.21.249.226:9091/api/v1/query?query=ifInOctets%7BifIndex=%221%22,%7D path_url=/api/v1/query?query=ifInOctets%7BifIndex=%221%22,%7D headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'Basic IiI6IiI='} body=None GET Response : url=http://172.21.249.226:9091/api/v1/query?query=ifInOctets%7BifIndex=%221%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Mon, 19 Feb 2024 05:28:53 GMT', 'Content-Length': '87'} body={"status":"success","data":{"resultType":"vector","result":[]}} ${resp} = <Response [200]> 200 ${resp} Fails if response status code is different than the expected. ${resp.json()} ${resp} = {'status': 'success', 'data': {'resultType': 'vector', 'result': []}} ${result_list} ${resp["data"]["result"]} Converts the given ``item`` to a Python ``list`` type. ${result_list} = [] ${results} ${result_list} Returns and logs the length of the given item as an integer. Length is 0 ${results} = 0 0 ${results} msg=Metric ${metric} not found values=false Fails if objects are equal after converting them to real numbers. Argument types are: <class 'str'> <class 'int'> Metric ifInOctets not found 1 ${results} msg=Metric ${metric} with multiple values values=false Fails if objects are unequal after converting them to integers. ${result_list[0]["value"][1]} ${PROMETHEUS_HOST} ${PROMETHEUS_PORT} ${PROMETHEUS_USER} ${PROMETHEUS_PASSWORD} ${METRIC_1_NAME} ${METRIC_1_FILTER} Get the instant value of a metric from Prometheus using multiple filter parameters. The filter parameters are given to this function in key=value format (one argument per key/value pair). Fails if the metric is not found or has multiple values. Examples of execution: ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${param1}=${value1} ${param2}=${value2} ${filter} ${EMPTY} Returns the given values which can then be assigned to a variables. ${filter} = ${param} @{filter_parameters} ifIndex=1 ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in filter parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = ifIndex=1 ${param_name} = ifIndex ${param_value} = 1 ${match},${param_name},${param_value} Logs the given message with the given level. ifIndex=1,ifIndex,1 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ifIndex="1", ${resp} ${prometheus_ip} ${prometheus_port} ${prometheus_user} ${prometheus_password} query=${metric}{${filter}} Execute a Prometheus Instant Query using HTTP API. Return an inline json with the result of the query. The requested URL is the next: http://${prometheus_ip}:${prometheus_port}/api/v1/query?${querystring} ${auth} ${prometheus_user} ${prometheus_password} Returns a list containing given items. ${auth} = ['""', '""'] ${auth} None Returns the given values which can then be assigned to a variables. prometheus http://${prometheus_ip}:${prometheus_port} timeout=${TIMEOUT} max_retries=${MAX_RETRIES} verify=false auth=${auth} Create Session: create a HTTP session to a server Creating Session using : alias=prometheus, url=http://172.21.249.226:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7ff1a6d6a1d0>, timeout=30, proxies=None, verify=False, debug=0 ${resp} prometheus /api/v1/query?${querystring} timeout=${TIMEOUT} Sends a GET request on a previously created HTTP Session. GET Request : url=http://172.21.249.226:9091/api/v1/query?query=ifInOctets%7BifIndex=%221%22,%7D path_url=/api/v1/query?query=ifInOctets%7BifIndex=%221%22,%7D headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'Basic IiI6IiI='} body=None GET Response : url=http://172.21.249.226:9091/api/v1/query?query=ifInOctets%7BifIndex=%221%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Mon, 19 Feb 2024 05:29:53 GMT', 'Content-Length': '87'} body={"status":"success","data":{"resultType":"vector","result":[]}} ${resp} = <Response [200]> 200 ${resp} Fails if response status code is different than the expected. ${resp.json()} ${resp} = {'status': 'success', 'data': {'resultType': 'vector', 'result': []}} ${result_list} ${resp["data"]["result"]} Converts the given ``item`` to a Python ``list`` type. ${result_list} = [] ${results} ${result_list} Returns and logs the length of the given item as an integer. Length is 0 ${results} = 0 0 ${results} msg=Metric ${metric} not found values=false Fails if objects are equal after converting them to real numbers. Argument types are: <class 'str'> <class 'int'> Metric ifInOctets not found 1 ${results} msg=Metric ${metric} with multiple values values=false Fails if objects are unequal after converting them to integers. ${result_list[0]["value"][1]} ${PROMETHEUS_HOST} ${PROMETHEUS_PORT} ${PROMETHEUS_USER} ${PROMETHEUS_PASSWORD} ${METRIC_1_NAME} ${METRIC_1_FILTER} Get the instant value of a metric from Prometheus using multiple filter parameters. The filter parameters are given to this function in key=value format (one argument per key/value pair). Fails if the metric is not found or has multiple values. Examples of execution: ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${param1}=${value1} ${param2}=${value2} ${filter} ${EMPTY} Returns the given values which can then be assigned to a variables. ${filter} = ${param} @{filter_parameters} ifIndex=1 ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in filter parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = ifIndex=1 ${param_name} = ifIndex ${param_value} = 1 ${match},${param_name},${param_value} Logs the given message with the given level. ifIndex=1,ifIndex,1 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ifIndex="1", ${resp} ${prometheus_ip} ${prometheus_port} ${prometheus_user} ${prometheus_password} query=${metric}{${filter}} Execute a Prometheus Instant Query using HTTP API. Return an inline json with the result of the query. The requested URL is the next: http://${prometheus_ip}:${prometheus_port}/api/v1/query?${querystring} ${auth} ${prometheus_user} ${prometheus_password} Returns a list containing given items. ${auth} = ['""', '""'] ${auth} None Returns the given values which can then be assigned to a variables. prometheus http://${prometheus_ip}:${prometheus_port} timeout=${TIMEOUT} max_retries=${MAX_RETRIES} verify=false auth=${auth} Create Session: create a HTTP session to a server Creating Session using : alias=prometheus, url=http://172.21.249.226:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7ff1a6d6a380>, timeout=30, proxies=None, verify=False, debug=0 ${resp} prometheus /api/v1/query?${querystring} timeout=${TIMEOUT} Sends a GET request on a previously created HTTP Session. GET Request : url=http://172.21.249.226:9091/api/v1/query?query=ifInOctets%7BifIndex=%221%22,%7D path_url=/api/v1/query?query=ifInOctets%7BifIndex=%221%22,%7D headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'Basic IiI6IiI='} body=None GET Response : url=http://172.21.249.226:9091/api/v1/query?query=ifInOctets%7BifIndex=%221%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Mon, 19 Feb 2024 05:30:53 GMT', 'Content-Length': '87'} body={"status":"success","data":{"resultType":"vector","result":[]}} ${resp} = <Response [200]> 200 ${resp} Fails if response status code is different than the expected. ${resp.json()} ${resp} = {'status': 'success', 'data': {'resultType': 'vector', 'result': []}} ${result_list} ${resp["data"]["result"]} Converts the given ``item`` to a Python ``list`` type. ${result_list} = [] ${results} ${result_list} Returns and logs the length of the given item as an integer. Length is 0 ${results} = 0 0 ${results} msg=Metric ${metric} not found values=false Fails if objects are equal after converting them to real numbers. Argument types are: <class 'str'> <class 'int'> Metric ifInOctets not found 1 ${results} msg=Metric ${metric} with multiple values values=false Fails if objects are unequal after converting them to integers. ${result_list[0]["value"][1]} ${PROMETHEUS_HOST} ${PROMETHEUS_PORT} ${PROMETHEUS_USER} ${PROMETHEUS_PASSWORD} ${METRIC_1_NAME} ${METRIC_1_FILTER} Get the instant value of a metric from Prometheus using multiple filter parameters. The filter parameters are given to this function in key=value format (one argument per key/value pair). Fails if the metric is not found or has multiple values. Examples of execution: ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${param1}=${value1} ${param2}=${value2} ${filter} ${EMPTY} Returns the given values which can then be assigned to a variables. ${filter} = ${param} @{filter_parameters} ifIndex=1 ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in filter parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = ifIndex=1 ${param_name} = ifIndex ${param_value} = 1 ${match},${param_name},${param_value} Logs the given message with the given level. ifIndex=1,ifIndex,1 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ifIndex="1", ${resp} ${prometheus_ip} ${prometheus_port} ${prometheus_user} ${prometheus_password} query=${metric}{${filter}} Execute a Prometheus Instant Query using HTTP API. Return an inline json with the result of the query. The requested URL is the next: http://${prometheus_ip}:${prometheus_port}/api/v1/query?${querystring} ${auth} ${prometheus_user} ${prometheus_password} Returns a list containing given items. ${auth} = ['""', '""'] ${auth} None Returns the given values which can then be assigned to a variables. prometheus http://${prometheus_ip}:${prometheus_port} timeout=${TIMEOUT} max_retries=${MAX_RETRIES} verify=false auth=${auth} Create Session: create a HTTP session to a server Creating Session using : alias=prometheus, url=http://172.21.249.226:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7ff1a6d99420>, timeout=30, proxies=None, verify=False, debug=0 ${resp} prometheus /api/v1/query?${querystring} timeout=${TIMEOUT} Sends a GET request on a previously created HTTP Session. GET Request : url=http://172.21.249.226:9091/api/v1/query?query=ifInOctets%7BifIndex=%221%22,%7D path_url=/api/v1/query?query=ifInOctets%7BifIndex=%221%22,%7D headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'Basic IiI6IiI='} body=None GET Response : url=http://172.21.249.226:9091/api/v1/query?query=ifInOctets%7BifIndex=%221%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Mon, 19 Feb 2024 05:31:53 GMT', 'Content-Length': '87'} body={"status":"success","data":{"resultType":"vector","result":[]}} ${resp} = <Response [200]> 200 ${resp} Fails if response status code is different than the expected. ${resp.json()} ${resp} = {'status': 'success', 'data': {'resultType': 'vector', 'result': []}} ${result_list} ${resp["data"]["result"]} Converts the given ``item`` to a Python ``list`` type. ${result_list} = [] ${results} ${result_list} Returns and logs the length of the given item as an integer. Length is 0 ${results} = 0 0 ${results} msg=Metric ${metric} not found values=false Fails if objects are equal after converting them to real numbers. Argument types are: <class 'str'> <class 'int'> Metric ifInOctets not found 1 ${results} msg=Metric ${metric} with multiple values values=false Fails if objects are unequal after converting them to integers. ${result_list[0]["value"][1]} Keyword 'Get Metric' failed after retrying 10 times. The last error was: Metric ifInOctets not found msg=The metric '${METRIC_1_NAME}' value is '${metric_1_value}' Fails the test with the given message and optionally alters its tags. ${metric_2_value} ${PROMETHEUS_POLL_RETRIES} ${PROMETHEUS_POLL_TIMEOUT} Get Metric ${PROMETHEUS_HOST} ${PROMETHEUS_PORT} ${PROMETHEUS_USER} ${PROMETHEUS_PASSWORD} ${METRIC_2_NAME} ${METRIC_2_FILTER} Runs the specified keyword and retries if it fails. msg=The metric '${METRIC_2_NAME}' value is '${metric_2_value}' Fails the test with the given message and optionally alters its tags. Check that SNMP metrics from the VNF are stored in Prometheus. cluster_k8s daily regression sa_08 Keyword 'Get Metric' failed after retrying 10 times. The last error was: Metric ifInOctets not found ${NS_NAME} Delete a NS instance. ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} Logs the given message with the given level. 240.0 ${rc} ${stdout} osm ns-delete ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-delete sa_08-vnf_with_vnf_indicators_snmp_test 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${stdout} Logs the given message with the given level. Deletion in progress ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${ns_delete_max_wait_time} ${NS_DELETE_POL_TIME} Check For NS Instance To Be Deleted ${ns} Runs the specified keyword and retries if it fails. ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ | ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ | 61cf09ba-0932-41dc-8107-61b5f48a5efa | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.142.207; osm-ext=172.21.248.253 | ubuntu18.04 | simple_requires-1-1-flv | | 3bc0ec8c-569e-4936-a65c-6811e3c8382b | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.142.13; osm-ext=172.21.249.33 | ubuntu18.04 | simple_requires-1-1-flv | | 3966e158-92cc-41d1-8b1a-e6e3af482c6b | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.165 | ubuntu20.04 | several_volumes-VM-flv | | e5543fd1-bc7e-40a7-95dc-06fea18c7999 | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | BUILD | | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 32727904-b9e5-4e93-a04b-fc45f566ee05 | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | ERROR | | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep sa_08-vnf_with_vnf_indicators_snmp_test 2>&1'. ${rc} = 0 ${stdout} = sa_08-vnf_with_vnf_indicators_snmp_test ${rc},${stdout} Logs the given message with the given level. 0,sa_08-vnf_with_vnf_indicators_snmp_test ${stdout} ${ns} Fails if objects are equal after converting them to strings. sa_08-vnf_with_vnf_indicators_snmp_test == sa_08-vnf_with_vnf_indicators_snmp_test ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ | ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ | 61cf09ba-0932-41dc-8107-61b5f48a5efa | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.142.207; osm-ext=172.21.248.253 | ubuntu18.04 | simple_requires-1-1-flv | | 3bc0ec8c-569e-4936-a65c-6811e3c8382b | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.142.13; osm-ext=172.21.249.33 | ubuntu18.04 | simple_requires-1-1-flv | | 3966e158-92cc-41d1-8b1a-e6e3af482c6b | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.165 | ubuntu20.04 | several_volumes-VM-flv | | e5543fd1-bc7e-40a7-95dc-06fea18c7999 | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | ERROR | | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep sa_08-vnf_with_vnf_indicators_snmp_test 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${ns} Fails if objects are equal after converting them to strings. Delete NS instance. cleanup cluster_k8s daily regression sa_08 ${NSD_NAME} Delete a NS package from OSM. ${rc} ${stdout} Run And Return Rc And Output osm nspkg-delete ${nsd_id} Runs the keyword and continues execution even if a failure occurs. osm nspkg-delete ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-delete snmp_ee-ns 2>&1'. ${rc} = 0 ${stdout} = Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Logs the given message with the given level. Deleted ${NSD_DELETE_MAX_WAIT_TIME} ${NSD_DELETE_POL_TIME} Check For NSD ${nsd_id} Runs the specified keyword and retries if it fails. ${nsd_id} Check that a NS package exists in OSM. ${rc} ${stdout} osm nspkg-list | awk '{print $2}' | grep ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-list | awk '{print $2}' | grep snmp_ee-ns 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. Delete NS package from OSM. cleanup cluster_k8s daily regression sa_08 ${VNFD_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete snmp_ee-vnf 2>&1'. ${rc} = 0 ${stdout} = Deleted ${stdout} Logs the given message with the given level. Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep snmp_ee-vnf 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. Delete VNF package from OSM. cleanup cluster_k8s daily regression sa_08 Suite Cleanup Runs the given keyword with the given arguments and ignores possible error. Test Suite Cleanup: Deleting descriptors and NS instance Delete NS ${NS_NAME} Runs the given keyword with the given arguments, if one or more tests failed. ${NS_NAME} Delete a NS instance. ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} Logs the given message with the given level. 240.0 ${rc} ${stdout} osm ns-delete ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-delete sa_08-vnf_with_vnf_indicators_snmp_test 2>&1'. ${rc} = 1 ${stdout} = ERROR: ns 'sa_08-vnf_with_vnf_indicators_snmp_test' not found ${stdout} Logs the given message with the given level. ERROR: ns 'sa_08-vnf_with_vnf_indicators_snmp_test' not found ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${ns_delete_max_wait_time} ${NS_DELETE_POL_TIME} Check For NS Instance To Be Deleted ${ns} Runs the specified keyword and retries if it fails. ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ | ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ | 61cf09ba-0932-41dc-8107-61b5f48a5efa | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.142.207; osm-ext=172.21.248.253 | ubuntu18.04 | simple_requires-1-1-flv | | 3bc0ec8c-569e-4936-a65c-6811e3c8382b | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.142.13; osm-ext=172.21.249.33 | ubuntu18.04 | simple_requires-1-1-flv | | 3966e158-92cc-41d1-8b1a-e6e3af482c6b | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.165 | ubuntu20.04 | several_volumes-VM-flv | | e5543fd1-bc7e-40a7-95dc-06fea18c7999 | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | ERROR | | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep sa_08-vnf_with_vnf_indicators_snmp_test 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${ns} Fails if objects are equal after converting them to strings. Delete NSD ${NSD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. ${NSD_NAME} Delete a NS package from OSM. ${rc} ${stdout} Run And Return Rc And Output osm nspkg-delete ${nsd_id} Runs the keyword and continues execution even if a failure occurs. osm nspkg-delete ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-delete snmp_ee-ns 2>&1'. ${rc} = 1 ${stdout} = ERROR: nsd snmp_ee-ns not found ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${stdout} Logs the given message with the given level. ERROR: nsd snmp_ee-ns not found ${NSD_DELETE_MAX_WAIT_TIME} ${NSD_DELETE_POL_TIME} Check For NSD ${nsd_id} Runs the specified keyword and retries if it fails. ${nsd_id} Check that a NS package exists in OSM. ${rc} ${stdout} osm nspkg-list | awk '{print $2}' | grep ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-list | awk '{print $2}' | grep snmp_ee-ns 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. Delete VNFD ${VNFD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. ${VNFD_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete snmp_ee-vnf 2>&1'. ${rc} = 1 ${stdout} = ERROR: vnfd snmp_ee-vnf not found ${stdout} Logs the given message with the given level. ERROR: vnfd snmp_ee-vnf not found ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep snmp_ee-vnf 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. [SA-08] VNF with VNF-based indicators through SNMP. '%{PACKAGES_FOLDER}/${VNFD1_PKG}' Onboards ("creates") a NF Package into OSM. - Parameters: - vnfd_pkg: Name (and location) of the NF Package - overrides (optional): String with options to override the EPA and/or interface properties of the Package. This is very useful to allow to deploy e.g. non-EPA packages in EPA VIMs (or vice-versa). Valid strings are the same as in the command. E.g.: - `--override-epa`: adds EPA attributes to all VDUs. - `--override-nonepa`: removes all EPA attributes from all VDUs. - `--override-paravirt`: converts all interfaces to `PARAVIRT`. This one can be combined with the others above (e.g. '--override-nonepa --override-paravirt'). - Relevant environment variables: - OVERRIDES: If the environment variable "OVERRIDES" exists, it prevails over the value in the argument. This is often more convenient to enforce the same behaviour for every test run in a given VIM. ${overrides} OVERRIDES default=${overrides} Returns the value of an environment variable with the given name. ${overrides} = ${rc} ${stdout} osm vnfpkg-create ${overrides} ${vnfd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-create '/robot-systest/osm-packages/slice_basic_vnf' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/slice_basic_vnf Validation OK List of charms in the descriptor: set() Adding File: slice_basic_vnf Package created: /robot-systest/osm-packages/slice_bas... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/slice_basic_vnf Validation OK List of charms in the descriptor: set() Adding File: slice_basic_vnf Package created: /robot-systest/osm-packages/slice_basic_vnf.tar.gz Uploading package /robot-systest/osm-packages/slice_basic_vnf.tar.gz 6577c993-ee8d-4aef-bb7e-5824730993ce ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 7 lines ${lines} = 7 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 6 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = 6577c993-ee8d-4aef-bb7e-5824730993ce ${id} '%{PACKAGES_FOLDER}/${VNFD2_PKG}' Onboards ("creates") a NF Package into OSM. - Parameters: - vnfd_pkg: Name (and location) of the NF Package - overrides (optional): String with options to override the EPA and/or interface properties of the Package. This is very useful to allow to deploy e.g. non-EPA packages in EPA VIMs (or vice-versa). Valid strings are the same as in the command. E.g.: - `--override-epa`: adds EPA attributes to all VDUs. - `--override-nonepa`: removes all EPA attributes from all VDUs. - `--override-paravirt`: converts all interfaces to `PARAVIRT`. This one can be combined with the others above (e.g. '--override-nonepa --override-paravirt'). - Relevant environment variables: - OVERRIDES: If the environment variable "OVERRIDES" exists, it prevails over the value in the argument. This is often more convenient to enforce the same behaviour for every test run in a given VIM. ${overrides} OVERRIDES default=${overrides} Returns the value of an environment variable with the given name. ${overrides} = ${rc} ${stdout} osm vnfpkg-create ${overrides} ${vnfd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-create '/robot-systest/osm-packages/slice_basic_middle_vnf' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/slice_basic_middle_vnf Validation OK List of charms in the descriptor: set() Adding File: slice_basic_middle_vnf Package created: /robot-systest/osm-pack... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/slice_basic_middle_vnf Validation OK List of charms in the descriptor: set() Adding File: slice_basic_middle_vnf Package created: /robot-systest/osm-packages/slice_basic_middle_vnf.tar.gz Uploading package /robot-systest/osm-packages/slice_basic_middle_vnf.tar.gz 4a8af9e3-0013-4af5-942f-d3f1b8074450 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 7 lines ${lines} = 7 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 6 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = 4a8af9e3-0013-4af5-942f-d3f1b8074450 ${id} Onboards all the VNFDs required for the test: vnfd1_pkg and vnfd2_pkg (in the variables file) cluster_slices daily regression slice_01 '%{PACKAGES_FOLDER}/${NSD1_PKG}' Upload a NS package to OSM and return the id. ${rc} ${stdout} osm nspkg-create ${nsd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-create '/robot-systest/osm-packages/slice_basic_ns' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/slice_basic_ns Validation OK List of charms in the descriptor: set() Adding File: slice_basic_ns Package created: /robot-systest/osm-packages/slice_basic... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/slice_basic_ns Validation OK List of charms in the descriptor: set() Adding File: slice_basic_ns Package created: /robot-systest/osm-packages/slice_basic_ns.tar.gz ed073f9f-0be8-4ab3-8f0f-77f677e314aa ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 6 lines ${lines} = 6 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 5 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = ed073f9f-0be8-4ab3-8f0f-77f677e314aa ${id} '%{PACKAGES_FOLDER}/${NSD2_PKG}' Upload a NS package to OSM and return the id. ${rc} ${stdout} osm nspkg-create ${nsd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-create '/robot-systest/osm-packages/slice_basic_middle_ns' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/slice_basic_middle_ns Validation OK List of charms in the descriptor: set() Adding File: slice_basic_middle_ns Package created: /robot-systest/osm-packag... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/slice_basic_middle_ns Validation OK List of charms in the descriptor: set() Adding File: slice_basic_middle_ns Package created: /robot-systest/osm-packages/slice_basic_middle_ns.tar.gz bace11ae-1fe7-4f71-a382-50416c723113 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 6 lines ${lines} = 6 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 5 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = bace11ae-1fe7-4f71-a382-50416c723113 ${id} Onboards all the NSDs required for the test: nsd1_pkg and nsd2_pkg (in the variables file) cluster_slices daily regression slice_01 '%{PACKAGES_FOLDER}/${NST}' Upload a Network Slice Template (NST) to OSM and return the id. ${rc} ${stdout} osm netslice-template-create ${nst} Runs the given command in the system and returns the RC and output. Running command 'osm netslice-template-create '/robot-systest/osm-packages/slice_basic_nst/slice_basic_nst.yaml' 2>&1'. ${rc} = 0 ${stdout} = e9d59708-a593-4163-b92b-67ab7385830f ${stdout} Logs the given message with the given level. e9d59708-a593-4163-b92b-67ab7385830f ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Onboards the Network Slice Template: nst (in the variables file) cluster_slices daily regression slice_01 ${id} ${NST_NAME} %{VIM_TARGET} ${SLICE_NAME} ${NST_CONFIG} ${PUBLICKEY} Instantiates a NST and returns an instantiation id (nsi), verifying the slice is successfully instantiated Parameters: nst: Name of the slice template vim_name: Name of the VIM entry already in OSM slice_name: Name of the slice instance slice_config: Extra parameters that might require the slice instantiation i.e. configuration attributes publickey: SSH public key of the local machine Execution example: ${nsi}= Create Network Slice ${nst} ${vim_name} ${slice_name} ${slice_config} ${publickey} ${slice_launch_max_wait_time} ${slice_launch_max_wait_time} result_format=number Converts between supported `time formats`. ${slice_launch_max_wait_time} = 360.0 ${slice_launch_max_wait_time} ${slice_launch_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${slice_launch_max_wait_time} = 360.0 ${config_attr} "${slice_config}" != "${EMPTY}" --config '${slice_config}' ${EMPTY} Sets variable based on the given condition. ${config_attr} = --config '{netslice-vld: [ {name: slice_vld_mgmt, vim-network-name: osm-ext} ] }' ${sshkeys_attr} "${publickey}" != "${EMPTY}" --ssh_keys ${publickey} ${EMPTY} Sets variable based on the given condition. ${sshkeys_attr} = --ssh_keys /root/.ssh/id_rsa.pub ${config_file_attr} "${config_file}" != "${EMPTY}" --config_file '${config_file}' ${EMPTY} Sets variable based on the given condition. ${config_file_attr} = ${nsi_id} ${slice_name} ${nst} ${vim_name} ${config_attr} ${config_file_attr} ${sshkeys_attr} Instantiates a NST and returns an instantiation id (nsi) Parameters: slice_name: Name of the slice instance nst: Name of the slice template vim_name: Name of the VIM entry already in OSM slice_extra_args: Extra parameters that might require the slice instantiation i.e. configuration attributes Execution example: ${nsi}= Instantiate Network Slice ${slice_name} ${nst} ${vim_name} ${config_attr} ${rc} ${stdout} osm nsi-create --nsi_name ${slice_name} --nst_name ${nst} --vim_account ${vim_name} ${sshkeys_attr} ${slice_extra_args} Runs the given command in the system and returns the RC and output. Running command 'osm nsi-create --nsi_name slicebasic --nst_name slice_basic_nst --vim_account osm --ssh_keys /root/.ssh/id_rsa.pub --config '{netslice-vld: [ {name: slice_vld_mgmt, vim-network-name: osm-ext} ] }' 2>&1'. ${rc} = 0 ${stdout} = ae3d0da8-d390-40f6-87d1-39f910b299e7 ${rc},${stdout} Logs the given message with the given level. 0,ae3d0da8-d390-40f6-87d1-39f910b299e7 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${nsi_id} = ae3d0da8-d390-40f6-87d1-39f910b299e7 ${nsi_id} Logs the given message with the given level. ae3d0da8-d390-40f6-87d1-39f910b299e7 ${slice_launch_max_wait_time} ${SLICE_LAUNCH_POL_TIME} Check For Network Slice Instance To Configured ${slice_name} Runs the specified keyword and retries if it fails. ${slice_name} Verify the slice has been instantiated Parameters: slice_name: Name of the slice instance Execution example: Check For Network Slice Instance To Configured ${slice_name} ${rc} ${stdout} osm nsi-list --filter name="${slice_name}" Runs the given command in the system and returns the RC and output. Running command 'osm nsi-list --filter name="slicebasic" 2>&1'. ${rc} = 0 ${stdout} = +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id ... ${stdout} Logs the given message with the given level. +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | slicebasic | ae3d0da8-d390-40f6-87d1-39f910b299e7 | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN configured Fails if ``container`` does not contain any of the ``*items``. '+------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | slicebasic | ae3d0da8-d390-40f6-87d1-39f910b299e7 | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+' does not contain any of 'READY', 'BROKEN' or 'configured' ${slice_name} Verify the slice has been instantiated Parameters: slice_name: Name of the slice instance Execution example: Check For Network Slice Instance To Configured ${slice_name} ${rc} ${stdout} osm nsi-list --filter name="${slice_name}" Runs the given command in the system and returns the RC and output. Running command 'osm nsi-list --filter name="slicebasic" 2>&1'. ${rc} = 0 ${stdout} = +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id ... ${stdout} Logs the given message with the given level. +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | slicebasic | ae3d0da8-d390-40f6-87d1-39f910b299e7 | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN configured Fails if ``container`` does not contain any of the ``*items``. '+------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | slicebasic | ae3d0da8-d390-40f6-87d1-39f910b299e7 | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+' does not contain any of 'READY', 'BROKEN' or 'configured' ${slice_name} Verify the slice has been instantiated Parameters: slice_name: Name of the slice instance Execution example: Check For Network Slice Instance To Configured ${slice_name} ${rc} ${stdout} osm nsi-list --filter name="${slice_name}" Runs the given command in the system and returns the RC and output. Running command 'osm nsi-list --filter name="slicebasic" 2>&1'. ${rc} = 0 ${stdout} = +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id ... ${stdout} Logs the given message with the given level. +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | slicebasic | ae3d0da8-d390-40f6-87d1-39f910b299e7 | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN configured Fails if ``container`` does not contain any of the ``*items``. '+------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | slicebasic | ae3d0da8-d390-40f6-87d1-39f910b299e7 | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+' does not contain any of 'READY', 'BROKEN' or 'configured' ${slice_name} Verify the slice has been instantiated Parameters: slice_name: Name of the slice instance Execution example: Check For Network Slice Instance To Configured ${slice_name} ${rc} ${stdout} osm nsi-list --filter name="${slice_name}" Runs the given command in the system and returns the RC and output. Running command 'osm nsi-list --filter name="slicebasic" 2>&1'. ${rc} = 0 ${stdout} = +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id ... ${stdout} Logs the given message with the given level. +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | slicebasic | ae3d0da8-d390-40f6-87d1-39f910b299e7 | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN configured Fails if ``container`` does not contain any of the ``*items``. '+------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | slicebasic | ae3d0da8-d390-40f6-87d1-39f910b299e7 | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+' does not contain any of 'READY', 'BROKEN' or 'configured' ${slice_name} Verify the slice has been instantiated Parameters: slice_name: Name of the slice instance Execution example: Check For Network Slice Instance To Configured ${slice_name} ${rc} ${stdout} osm nsi-list --filter name="${slice_name}" Runs the given command in the system and returns the RC and output. Running command 'osm nsi-list --filter name="slicebasic" 2>&1'. ${rc} = 0 ${stdout} = +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id ... ${stdout} Logs the given message with the given level. +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | slicebasic | ae3d0da8-d390-40f6-87d1-39f910b299e7 | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN configured Fails if ``container`` does not contain any of the ``*items``. '+------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | slicebasic | ae3d0da8-d390-40f6-87d1-39f910b299e7 | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+' does not contain any of 'READY', 'BROKEN' or 'configured' ${slice_name} Verify the slice has been instantiated Parameters: slice_name: Name of the slice instance Execution example: Check For Network Slice Instance To Configured ${slice_name} ${rc} ${stdout} osm nsi-list --filter name="${slice_name}" Runs the given command in the system and returns the RC and output. Running command 'osm nsi-list --filter name="slicebasic" 2>&1'. ${rc} = 0 ${stdout} = +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id ... ${stdout} Logs the given message with the given level. +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | slicebasic | ae3d0da8-d390-40f6-87d1-39f910b299e7 | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN configured Fails if ``container`` does not contain any of the ``*items``. '+------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | slicebasic | ae3d0da8-d390-40f6-87d1-39f910b299e7 | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+' does not contain any of 'READY', 'BROKEN' or 'configured' ${slice_name} Verify the slice has been instantiated Parameters: slice_name: Name of the slice instance Execution example: Check For Network Slice Instance To Configured ${slice_name} ${rc} ${stdout} osm nsi-list --filter name="${slice_name}" Runs the given command in the system and returns the RC and output. Running command 'osm nsi-list --filter name="slicebasic" 2>&1'. ${rc} = 0 ${stdout} = +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id ... ${stdout} Logs the given message with the given level. +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | slicebasic | ae3d0da8-d390-40f6-87d1-39f910b299e7 | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN configured Fails if ``container`` does not contain any of the ``*items``. '+------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | slicebasic | ae3d0da8-d390-40f6-87d1-39f910b299e7 | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+' does not contain any of 'READY', 'BROKEN' or 'configured' ${slice_name} Verify the slice has been instantiated Parameters: slice_name: Name of the slice instance Execution example: Check For Network Slice Instance To Configured ${slice_name} ${rc} ${stdout} osm nsi-list --filter name="${slice_name}" Runs the given command in the system and returns the RC and output. Running command 'osm nsi-list --filter name="slicebasic" 2>&1'. ${rc} = 0 ${stdout} = +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id ... ${stdout} Logs the given message with the given level. +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | slicebasic | ae3d0da8-d390-40f6-87d1-39f910b299e7 | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN configured Fails if ``container`` does not contain any of the ``*items``. '+------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | slicebasic | ae3d0da8-d390-40f6-87d1-39f910b299e7 | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+' does not contain any of 'READY', 'BROKEN' or 'configured' ${slice_name} Verify the slice has been instantiated Parameters: slice_name: Name of the slice instance Execution example: Check For Network Slice Instance To Configured ${slice_name} ${rc} ${stdout} osm nsi-list --filter name="${slice_name}" Runs the given command in the system and returns the RC and output. Running command 'osm nsi-list --filter name="slicebasic" 2>&1'. ${rc} = 0 ${stdout} = +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id ... ${stdout} Logs the given message with the given level. +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | slicebasic | ae3d0da8-d390-40f6-87d1-39f910b299e7 | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN configured Fails if ``container`` does not contain any of the ``*items``. '+------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | slicebasic | ae3d0da8-d390-40f6-87d1-39f910b299e7 | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+' does not contain any of 'READY', 'BROKEN' or 'configured' ${slice_name} Verify the slice has been instantiated Parameters: slice_name: Name of the slice instance Execution example: Check For Network Slice Instance To Configured ${slice_name} ${rc} ${stdout} osm nsi-list --filter name="${slice_name}" Runs the given command in the system and returns the RC and output. Running command 'osm nsi-list --filter name="slicebasic" 2>&1'. ${rc} = 0 ${stdout} = +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id ... ${stdout} Logs the given message with the given level. +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | slicebasic | ae3d0da8-d390-40f6-87d1-39f910b299e7 | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN configured Fails if ``container`` does not contain any of the ``*items``. '+------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | slicebasic | ae3d0da8-d390-40f6-87d1-39f910b299e7 | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+' does not contain any of 'READY', 'BROKEN' or 'configured' ${slice_name} Verify the slice has been instantiated Parameters: slice_name: Name of the slice instance Execution example: Check For Network Slice Instance To Configured ${slice_name} ${rc} ${stdout} osm nsi-list --filter name="${slice_name}" Runs the given command in the system and returns the RC and output. Running command 'osm nsi-list --filter name="slicebasic" 2>&1'. ${rc} = 0 ${stdout} = +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id ... ${stdout} Logs the given message with the given level. +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | slicebasic | ae3d0da8-d390-40f6-87d1-39f910b299e7 | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN configured Fails if ``container`` does not contain any of the ``*items``. '+------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | slicebasic | ae3d0da8-d390-40f6-87d1-39f910b299e7 | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+' does not contain any of 'READY', 'BROKEN' or 'configured' ${slice_name} Verify the slice has been instantiated Parameters: slice_name: Name of the slice instance Execution example: Check For Network Slice Instance To Configured ${slice_name} ${rc} ${stdout} osm nsi-list --filter name="${slice_name}" Runs the given command in the system and returns the RC and output. Running command 'osm nsi-list --filter name="slicebasic" 2>&1'. ${rc} = 0 ${stdout} = +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id ... ${stdout} Logs the given message with the given level. +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | slicebasic | ae3d0da8-d390-40f6-87d1-39f910b299e7 | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN configured Fails if ``container`` does not contain any of the ``*items``. '+------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | slicebasic | ae3d0da8-d390-40f6-87d1-39f910b299e7 | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+' does not contain any of 'READY', 'BROKEN' or 'configured' ${slice_name} Verify the slice has been instantiated Parameters: slice_name: Name of the slice instance Execution example: Check For Network Slice Instance To Configured ${slice_name} ${rc} ${stdout} osm nsi-list --filter name="${slice_name}" Runs the given command in the system and returns the RC and output. Running command 'osm nsi-list --filter name="slicebasic" 2>&1'. ${rc} = 0 ${stdout} = +------------------------+--------------------------------------+--------------------+---------------+--------------------------------------------------------------------------------------------------... ${stdout} Logs the given message with the given level. +------------------------+--------------------------------------+--------------------+---------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | slicebasic | ae3d0da8-d390-40f6-87d1-39f910b299e7 | failed | configured | ERROR instantiating: NS 68097fde-9e82-4033-92b5-2d2fe4f24e79 FAILED: Deploying at VIM: Error at create vdu: unknown; NS 24b1bfe1-dc6b-4fbc-9e55-8c9fa87e224c FAILED: Deploying at VIM: Error at create vdu: unknown | +------------------------+--------------------------------------+--------------------+---------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN configured Fails if ``container`` does not contain any of the ``*items``. ${slice_name} Verify the slice instance is not in failure Parameters: slice_name: Name of the slice instance Execution example: Check For Network Slice Instance For Failure ${slice_name} ${rc} ${stdout} osm nsi-list --filter name="${slice_name}" Runs the given command in the system and returns the RC and output. Running command 'osm nsi-list --filter name="slicebasic" 2>&1'. ${rc} = 0 ${stdout} = +------------------------+--------------------------------------+--------------------+---------------+--------------------------------------------------------------------------------------------------... ${stdout} Logs the given message with the given level. +------------------------+--------------------------------------+--------------------+---------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | slicebasic | ae3d0da8-d390-40f6-87d1-39f910b299e7 | failed | configured | ERROR instantiating: NS 68097fde-9e82-4033-92b5-2d2fe4f24e79 FAILED: Deploying at VIM: Error at create vdu: unknown; NS 24b1bfe1-dc6b-4fbc-9e55-8c9fa87e224c FAILED: Deploying at VIM: Error at create vdu: unknown | +------------------------+--------------------------------------+--------------------+---------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} failed Fails if ``container`` contains ``item`` one or more times. '+------------------------+--------------------------------------+--------------------+---------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | slicebasic | ae3d0da8-d390-40f6-87d1-39f910b299e7 | failed | configured | ERROR instantiating: NS 68097fde-9e82-4033-92b5-2d2fe4f24e79 FAILED: Deploying at VIM: Error at create vdu: unknown; NS 24b1bfe1-dc6b-4fbc-9e55-8c9fa87e224c FAILED: Deploying at VIM: Error at create vdu: unknown | +------------------------+--------------------------------------+--------------------+---------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+' contains 'failed' ${nsi_id} ${NSI_ID} ${id} Makes a variable available everywhere within the scope of the current suite. Instantiates the NST recently onboarded and sets the instantiation id as a suite variable (nsi_id) cluster_slices daily regression slice_01 '+------------------------+--------------------------------------+--------------------+---------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | slicebasic | ae3d0da8-d390-40f6-87d1-39f910b299e7 | failed | configured | ERROR instantiating: NS 68097fde-9e82-4033-92b5-2d2fe4f24e79 FAILED: Deploying at VIM: Error at create vdu: unknown; NS 24b1bfe1-dc6b-4fbc-9e55-8c9fa87e224c FAILED: Deploying at VIM: Error at create vdu: unknown | +------------------------+--------------------------------------+--------------------+---------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+' contains 'failed' ${middle_ns_id} osm ns-list | grep ${MIDDLE_NS_NAME} | awk '{print $4}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | grep slicebasic.slice_basic_nsd_2 | awk '{print $4}' 2>&1'. ${middle_ns_id} = (0, '24b1bfe1-dc6b-4fbc-9e55-8c9fa87e224c') ${vnf_ip} ${middle_ns_id}[1] ${VNF_MEMBER_INDEX} Get the mgmt IP address of a member VNF in a NS instance, and return it. ${ns_id} Verifies that the given item is not empty. Length is 36 ${vnf_member_index} Verifies that the given item is not empty. Length is 6 ${rc} ${stdout} osm vnf-list --filter member-vnf-index-ref=${vnf_member_index} | grep ${ns_id} | awk '{print $14}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm vnf-list --filter member-vnf-index-ref=middle | grep 24b1bfe1-dc6b-4fbc-9e55-8c9fa87e224c | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.248.67 ${stdout} Logs the given message with the given level. 172.21.248.67 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${vnf_ip} = 172.21.248.67 Variable \$\{ vnf_ip\} Empty Stops the whole test execution. ${MGMT_VNF_IP} ${vnf_ip} Makes a variable available everywhere within the scope of the current suite. ${MGMT_VNF_IP} = 172.21.248.67 Obtains the management IP of the slice middle VNF (name in the reources file) and sets the ip as a suite variable (mgmt_vnf_ip) cluster_slices daily regression slice_01 @{slice_ns_list} ${SLICE_NAME} ${MIDDLE_NS_NAME} Retrieves the list of NS in a slice removing one from the list. This is done to save time in the tests, avoiding one VNF to ping itself. Parameters: slice_name: Name of the slice instance exception_ns: Name of the ns that will not appear in the final list Execution example: @{slice_ns_list}= Get Slice Ns List Except One ${slice_name} ${exception_ns} ${slice_name} Verifies that the given item is not empty. Length is 10 ${exception_ns} Verifies that the given item is not empty. Length is 28 @{ns_list_string} osm ns-list | grep ${slice_name} | awk '!/${exception_ns}/' | awk '{print $4}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | grep slicebasic | awk '!/slicebasic.slice_basic_nsd_2/' | awk '{print $4}' 2>&1'. @{ns_list_string} = [ 0 | 68097fde-9e82-4033-92b5-2d2fe4f24e79 e982d6ef-c9c0-4267-b5bf-381481e610d0 ] @{ns_list} ${ns_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{ns_list} = [ 68097fde-9e82-4033-92b5-2d2fe4f24e79 | e982d6ef-c9c0-4267-b5bf-381481e610d0 ] ${ns_list} Logs the length and contents of the ``list`` using given ``level``. List length is 2 and it contains following items: 0: 68097fde-9e82-4033-92b5-2d2fe4f24e79 1: e982d6ef-c9c0-4267-b5bf-381481e610d0 @{ns_list} @{slice_ns_list} = [ 68097fde-9e82-4033-92b5-2d2fe4f24e79 | e982d6ef-c9c0-4267-b5bf-381481e610d0 ] @{slice_ns_list} Logs the given messages as separate entries using the INFO level. 68097fde-9e82-4033-92b5-2d2fe4f24e79 e982d6ef-c9c0-4267-b5bf-381481e610d0 @{temp_list} Returns a list containing given items. @{temp_list} = [ ] ${ns_id} @{slice_ns_list} 68097fde-9e82-4033-92b5-2d2fe4f24e79 ${ns_id} Logs the given message with the given level. 68097fde-9e82-4033-92b5-2d2fe4f24e79 @{vnf_id_list} ${ns_id} Get the list of VNF instances of a given NS instance id, and return it. ${ns_id} Verifies that the given item is not empty. Length is 36 @{vnf_list_string} osm vnf-list --ns ${ns_id} | grep ${ns_id} | awk '{print $2}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm vnf-list --ns 68097fde-9e82-4033-92b5-2d2fe4f24e79 | grep 68097fde-9e82-4033-92b5-2d2fe4f24e79 | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | 78b62342-c563-4d1f-ba37-250cea47f0f2 ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ 78b62342-c563-4d1f-ba37-250cea47f0f2 ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: 78b62342-c563-4d1f-ba37-250cea47f0f2 @{vnf_list} @{vnf_id_list} = [ 78b62342-c563-4d1f-ba37-250cea47f0f2 ] @{ns_ip_list} @{vnf_id_list} Obtain the list of IP addresses of all VM in a NS, and return it. @{vnf_list} Verifies that the given item is not empty. Length is 36 @{temp_list} Returns a list containing given items. @{temp_list} = [ ] ${vnf_id} @{vnf_list} 78b62342-c563-4d1f-ba37-250cea47f0f2 ${vnf_id} Logs the given message with the given level. 78b62342-c563-4d1f-ba37-250cea47f0f2 @{vnf_ip_list} ${vnf_id} Obtain the list of IP addresses of all VM in a VNF, and return it. ${vnf_id} Verifies that the given item is not empty. Length is 36 @{vnf_ip_list_string} osm vnf-list --filter id=${vnf_id} | grep -o '[0-9]\\{1,3\\}\\.[0-9]\\{1,3\\}\\.[0-9]\\{1,3\\}\\.[0-9]\\{1,3\\}' | sort -t: -u -k1,1 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm vnf-list --filter id=78b62342-c563-4d1f-ba37-250cea47f0f2 | grep -o '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}' | sort -t: -u -k1,1 2>&1'. @{vnf_ip_list_string} = [ 0 | 172.21.249.130 ] ${vnf_ip_list_string}[1] Verifies that the given item is not empty. Length is 14 @{vnf_ip_list} ${vnf_ip_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_ip_list} = [ 172.21.249.130 ] ${vnf_ip_list} Logs the given messages as separate entries using the INFO level. ['172.21.249.130'] ${vnf_ip_list} Verifies that the given item is not empty. Length is 1 @{vnf_ip_list} @{vnf_ip_list} = [ 172.21.249.130 ] @{temp_list} ${temp_list} ${vnf_ip_list} Combines the given ``lists`` together and returns the result. @{temp_list} = [ 172.21.249.130 ] ${temp_list} Verifies that the given item is not empty. Length is 1 @{temp_list} @{ns_ip_list} = [ 172.21.249.130 ] @{temp_list} ${temp_list} ${ns_ip_list} Combines the given ``lists`` together and returns the result. @{temp_list} = [ 172.21.249.130 ] e982d6ef-c9c0-4267-b5bf-381481e610d0 ${ns_id} Logs the given message with the given level. e982d6ef-c9c0-4267-b5bf-381481e610d0 @{vnf_id_list} ${ns_id} Get the list of VNF instances of a given NS instance id, and return it. ${ns_id} Verifies that the given item is not empty. Length is 36 @{vnf_list_string} osm vnf-list --ns ${ns_id} | grep ${ns_id} | awk '{print $2}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm vnf-list --ns e982d6ef-c9c0-4267-b5bf-381481e610d0 | grep e982d6ef-c9c0-4267-b5bf-381481e610d0 | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | 3edb5699-c924-4205-8713-9b7fd12e3a92 ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ 3edb5699-c924-4205-8713-9b7fd12e3a92 ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: 3edb5699-c924-4205-8713-9b7fd12e3a92 @{vnf_list} @{vnf_id_list} = [ 3edb5699-c924-4205-8713-9b7fd12e3a92 ] @{ns_ip_list} @{vnf_id_list} Obtain the list of IP addresses of all VM in a NS, and return it. @{vnf_list} Verifies that the given item is not empty. Length is 36 @{temp_list} Returns a list containing given items. @{temp_list} = [ ] ${vnf_id} @{vnf_list} 3edb5699-c924-4205-8713-9b7fd12e3a92 ${vnf_id} Logs the given message with the given level. 3edb5699-c924-4205-8713-9b7fd12e3a92 @{vnf_ip_list} ${vnf_id} Obtain the list of IP addresses of all VM in a VNF, and return it. ${vnf_id} Verifies that the given item is not empty. Length is 36 @{vnf_ip_list_string} osm vnf-list --filter id=${vnf_id} | grep -o '[0-9]\\{1,3\\}\\.[0-9]\\{1,3\\}\\.[0-9]\\{1,3\\}\\.[0-9]\\{1,3\\}' | sort -t: -u -k1,1 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm vnf-list --filter id=3edb5699-c924-4205-8713-9b7fd12e3a92 | grep -o '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}' | sort -t: -u -k1,1 2>&1'. @{vnf_ip_list_string} = [ 0 | 172.21.249.215 ] ${vnf_ip_list_string}[1] Verifies that the given item is not empty. Length is 14 @{vnf_ip_list} ${vnf_ip_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_ip_list} = [ 172.21.249.215 ] ${vnf_ip_list} Logs the given messages as separate entries using the INFO level. ['172.21.249.215'] ${vnf_ip_list} Verifies that the given item is not empty. Length is 1 @{vnf_ip_list} @{vnf_ip_list} = [ 172.21.249.215 ] @{temp_list} ${temp_list} ${vnf_ip_list} Combines the given ``lists`` together and returns the result. @{temp_list} = [ 172.21.249.215 ] ${temp_list} Verifies that the given item is not empty. Length is 1 @{temp_list} @{ns_ip_list} = [ 172.21.249.215 ] @{temp_list} ${temp_list} ${ns_ip_list} Combines the given ``lists`` together and returns the result. @{temp_list} = [ 172.21.249.130 | 172.21.249.215 ] ${temp_list} Logs the length and contents of the ``list`` using given ``level``. List length is 2 and it contains following items: 0: 172.21.249.130 1: 172.21.249.215 ${SLICE_VNFS_IPS} ${temp_list} Makes a variable available everywhere within the scope of the current suite. ${SLICE_VNFS_IPS} = ['172.21.249.130', '172.21.249.215'] Obtains the list of IPs addresses in the slice and sets the list as a suite variable (slice_vnfs_ips) cluster_slices daily regression slice_01 60s Waiting for the network to be up Pauses the test executed for the given time. Slept 1 minute Waiting for the network to be up ${MGMT_VNF_IP} Logs the given message with the given level. 172.21.248.67 ${MGMT_VNF_IP} Ping a host several times during 30sec until it succeeds or raises a timeout. ${CONNECTIVITY_MAX_WAIT_TIME} ${CONNECTIVITY_POL_TIME} Test Ping Host ${host} Runs the specified keyword and retries if it fails. ${host} Run Ping Parameters: host: IP or name of the host Execution example: Ping Test ${host} ${rc} ${stdout} ping -c 2 -W 1 ${host} Runs the given command in the system and returns the RC and output. Running command 'ping -c 2 -W 1 172.21.248.67 2>&1'. ${rc} = 1 ${stdout} = PING 172.21.248.67 (172.21.248.67) 56(84) bytes of data. --- 172.21.248.67 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1017ms ${stdout} Logs the given message with the given level. PING 172.21.248.67 (172.21.248.67) 56(84) bytes of data. --- 172.21.248.67 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1017ms ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${host} Run Ping Parameters: host: IP or name of the host Execution example: Ping Test ${host} ${rc} ${stdout} ping -c 2 -W 1 ${host} Runs the given command in the system and returns the RC and output. Running command 'ping -c 2 -W 1 172.21.248.67 2>&1'. ${rc} = 1 ${stdout} = PING 172.21.248.67 (172.21.248.67) 56(84) bytes of data. --- 172.21.248.67 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1024ms ${stdout} Logs the given message with the given level. PING 172.21.248.67 (172.21.248.67) 56(84) bytes of data. --- 172.21.248.67 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1024ms ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${host} Run Ping Parameters: host: IP or name of the host Execution example: Ping Test ${host} ${rc} ${stdout} ping -c 2 -W 1 ${host} Runs the given command in the system and returns the RC and output. Running command 'ping -c 2 -W 1 172.21.248.67 2>&1'. ${rc} = 1 ${stdout} = PING 172.21.248.67 (172.21.248.67) 56(84) bytes of data. --- 172.21.248.67 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1025ms ${stdout} Logs the given message with the given level. PING 172.21.248.67 (172.21.248.67) 56(84) bytes of data. --- 172.21.248.67 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1025ms ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${host} Run Ping Parameters: host: IP or name of the host Execution example: Ping Test ${host} ${rc} ${stdout} ping -c 2 -W 1 ${host} Runs the given command in the system and returns the RC and output. Running command 'ping -c 2 -W 1 172.21.248.67 2>&1'. ${rc} = 1 ${stdout} = PING 172.21.248.67 (172.21.248.67) 56(84) bytes of data. --- 172.21.248.67 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1025ms ${stdout} Logs the given message with the given level. PING 172.21.248.67 (172.21.248.67) 56(84) bytes of data. --- 172.21.248.67 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1025ms ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${host} Run Ping Parameters: host: IP or name of the host Execution example: Ping Test ${host} ${rc} ${stdout} ping -c 2 -W 1 ${host} Runs the given command in the system and returns the RC and output. Running command 'ping -c 2 -W 1 172.21.248.67 2>&1'. ${rc} = 1 ${stdout} = PING 172.21.248.67 (172.21.248.67) 56(84) bytes of data. --- 172.21.248.67 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1022ms ${stdout} Logs the given message with the given level. PING 172.21.248.67 (172.21.248.67) 56(84) bytes of data. --- 172.21.248.67 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1022ms ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 Keyword 'Test Ping Host' failed after retrying for 30 seconds. The last error was: 1 != 0 Pings the slice middle vnf (mgmt_vnf_ip) cluster_slices daily regression slice_01 Keyword 'Test Ping Host' failed after retrying for 30 seconds. The last error was: 1 != 0 30s Waiting ssh daemon to be up Pauses the test executed for the given time. Slept 30 seconds Waiting ssh daemon to be up ${MGMT_VNF_IP} ${USERNAME} ${PASSWORD} ${PRIVATEKEY} Test the SSH connection to the host with the user and credentials passed as arguments. ${host} Opens a new SSH connection to the given ``host`` and ``port``. ${username} ${password} Logs into the SSH server with the given ``username`` and ``password``. ${username} ${privatekey} Logs into the SSH server using key-based authentication. Logging into '172.21.248.67:22' as 'ubuntu'. TimeoutError: timed out hostname Executes ``command`` on the remote machine and returns its outputs. Closes all open connections. SSH access to the slice middle vnf (mgmt_vnf_ip) with the credentials provided in the variables file cluster_slices daily regression slice_01 TimeoutError: timed out ${MGMT_VNF_IP} ${USERNAME} ${PASSWORD} ${PRIVATEKEY} @{SLICE_VNFS_IPS} Connect via SSH to a remote host and test ping to a list of IP addresses, passed as argument. ${host} Opens a new SSH connection to the given ``host`` and ``port``. ${username} ${password} Logs into the SSH server with the given ``username`` and ``password``. ${username} ${privatekey} Logs into the SSH server using key-based authentication. Logging into '172.21.248.67:22' as 'ubuntu'. NoValidConnectionsError: [Errno None] Unable to connect to port 22 on 172.21.248.67 ${ip} @{ip_list} ${result} ping -c 5 -W 1 ${ip} > /dev/null && echo OK shell=True Executes ``command`` on the remote machine and returns its outputs. ${result} Logs the given message with the given level. ${result} OK Fails if ``container`` does not contain ``item`` one or more times. Closes all open connections. SSH access to the slice middle vnf (mgmt_vnf_ip) with the credentials provided in the variables file and pings all the IP addresses in the list (slice_vnfs_ips) cluster_slices daily regression slice_01 NoValidConnectionsError: [Errno None] Unable to connect to port 22 on 172.21.248.67 ${SLICE_NAME} Delete Network Slice Instance (NSI) Parameters: slice_name: Name of the slice instance slice_delete_max_wait_time: Delete operation timeout Execution example: Delete NST ${slice_name} ${rc} ${stdout} osm nsi-delete ${slice_name} Runs the given command in the system and returns the RC and output. Running command 'osm nsi-delete slicebasic 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${stdout} Logs the given message with the given level. Deletion in progress ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${slice_delete_max_wait_time} ${slice_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${slice_delete_max_wait_time} = 240.0 ${slice_delete_max_wait_time} ${slice_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${slice_delete_max_wait_time} = 240.0 ${slice_delete_max_wait_time} ${SLICE_DELETE_POL_TIME} Check For Network Slice Instance To Be Deleted ${slice_name} Runs the specified keyword and retries if it fails. ${slice_name} Verify the slice instance is not present Parameters: slice_name: Name of the slice instance Execution example: Check For Network Slice Instance ${slice_name} ${rc} ${stdout} osm nsi-list | awk '{print $2}' | grep ${slice_name} Runs the given command in the system and returns the RC and output. Running command 'osm nsi-list | awk '{print $2}' | grep slicebasic 2>&1'. ${rc} = 0 ${stdout} = slicebasic ${rc},${stdout} Logs the given message with the given level. 0,slicebasic ${stdout} ${slice_name} Fails if objects are equal after converting them to strings. slicebasic == slicebasic ${slice_name} Verify the slice instance is not present Parameters: slice_name: Name of the slice instance Execution example: Check For Network Slice Instance ${slice_name} ${rc} ${stdout} osm nsi-list | awk '{print $2}' | grep ${slice_name} Runs the given command in the system and returns the RC and output. Running command 'osm nsi-list | awk '{print $2}' | grep slicebasic 2>&1'. ${rc} = 0 ${stdout} = slicebasic ${rc},${stdout} Logs the given message with the given level. 0,slicebasic ${stdout} ${slice_name} Fails if objects are equal after converting them to strings. slicebasic == slicebasic ${slice_name} Verify the slice instance is not present Parameters: slice_name: Name of the slice instance Execution example: Check For Network Slice Instance ${slice_name} ${rc} ${stdout} osm nsi-list | awk '{print $2}' | grep ${slice_name} Runs the given command in the system and returns the RC and output. Running command 'osm nsi-list | awk '{print $2}' | grep slicebasic 2>&1'. ${rc} = 0 ${stdout} = slicebasic ${rc},${stdout} Logs the given message with the given level. 0,slicebasic ${stdout} ${slice_name} Fails if objects are equal after converting them to strings. slicebasic == slicebasic ${slice_name} Verify the slice instance is not present Parameters: slice_name: Name of the slice instance Execution example: Check For Network Slice Instance ${slice_name} ${rc} ${stdout} osm nsi-list | awk '{print $2}' | grep ${slice_name} Runs the given command in the system and returns the RC and output. Running command 'osm nsi-list | awk '{print $2}' | grep slicebasic 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${slice_name} Fails if objects are equal after converting them to strings. Stops the slice instance (slice_name) cleanup cluster_slices daily regression slice_01 ${NST_NAME} Delete a Network Slice Template (NST) from OSM. ${rc} ${stdout} osm netslice-template-delete ${nst_id} Runs the given command in the system and returns the RC and output. Running command 'osm netslice-template-delete slice_basic_nst 2>&1'. ${rc} = 0 ${stdout} = Deleted ${stdout} Logs the given message with the given level. Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${NST_DELETE_MAX_WAIT_TIME} ${NST_DELETE_POL_TIME} Check For NST ${nst_id} Runs the specified keyword and retries if it fails. ${nst_id} Check that a Network Slice Template (NST) exists in OSM. ${rc} ${stdout} osm netslice-template-list | awk '{print $2}' | grep ${nst_id} Runs the given command in the system and returns the RC and output. Running command 'osm netslice-template-list | awk '{print $2}' | grep slice_basic_nst 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${nst_id} Fails if objects are equal after converting them to strings. Deletes the NST (nst_name) from OSM cleanup cluster_slices daily regression slice_01 ${NSD1_NAME} Delete a NS package from OSM. ${rc} ${stdout} Run And Return Rc And Output osm nspkg-delete ${nsd_id} Runs the keyword and continues execution even if a failure occurs. osm nspkg-delete ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-delete slice_basic_ns 2>&1'. ${rc} = 0 ${stdout} = Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Logs the given message with the given level. Deleted ${NSD_DELETE_MAX_WAIT_TIME} ${NSD_DELETE_POL_TIME} Check For NSD ${nsd_id} Runs the specified keyword and retries if it fails. ${nsd_id} Check that a NS package exists in OSM. ${rc} ${stdout} osm nspkg-list | awk '{print $2}' | grep ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-list | awk '{print $2}' | grep slice_basic_ns 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. ${NSD2_NAME} Delete a NS package from OSM. ${rc} ${stdout} Run And Return Rc And Output osm nspkg-delete ${nsd_id} Runs the keyword and continues execution even if a failure occurs. osm nspkg-delete ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-delete slice_basic_middle_ns 2>&1'. ${rc} = 0 ${stdout} = Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Logs the given message with the given level. Deleted ${NSD_DELETE_MAX_WAIT_TIME} ${NSD_DELETE_POL_TIME} Check For NSD ${nsd_id} Runs the specified keyword and retries if it fails. ${nsd_id} Check that a NS package exists in OSM. ${rc} ${stdout} osm nspkg-list | awk '{print $2}' | grep ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-list | awk '{print $2}' | grep slice_basic_middle_ns 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. Deletes all the NSDs created for the test: nsd1_name, nsd2_name cleanup cluster_slices daily regression slice_01 ${VNFD1_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete slice_basic_vnf 2>&1'. ${rc} = 0 ${stdout} = Deleted ${stdout} Logs the given message with the given level. Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep slice_basic_vnf 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. ${VNFD2_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete slice_basic_middle_vnf 2>&1'. ${rc} = 0 ${stdout} = Deleted ${stdout} Logs the given message with the given level. Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep slice_basic_middle_vnf 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. Deletes all the VNFDs created for the test: vnfd1_name, vnfd2_name cleanup cluster_slices daily regression slice_01 Suite Cleanup Runs the given keyword with the given arguments and ignores possible error. Test Suit Cleanup: Deleting Descriptors, instance and template Delete NSI ${SLICE_NAME} Runs the given keyword with the given arguments, if one or more tests failed. ${SLICE_NAME} Delete Network Slice Instance (NSI) Parameters: slice_name: Name of the slice instance slice_delete_max_wait_time: Delete operation timeout Execution example: Delete NST ${slice_name} ${rc} ${stdout} osm nsi-delete ${slice_name} Runs the given command in the system and returns the RC and output. Running command 'osm nsi-delete slicebasic 2>&1'. ${rc} = 1 ${stdout} = ERROR: nsi slicebasic not found ${stdout} Logs the given message with the given level. ERROR: nsi slicebasic not found ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${slice_delete_max_wait_time} ${slice_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${slice_delete_max_wait_time} = 240.0 ${slice_delete_max_wait_time} ${slice_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${slice_delete_max_wait_time} = 240.0 ${slice_delete_max_wait_time} ${SLICE_DELETE_POL_TIME} Check For Network Slice Instance To Be Deleted ${slice_name} Runs the specified keyword and retries if it fails. ${slice_name} Verify the slice instance is not present Parameters: slice_name: Name of the slice instance Execution example: Check For Network Slice Instance ${slice_name} ${rc} ${stdout} osm nsi-list | awk '{print $2}' | grep ${slice_name} Runs the given command in the system and returns the RC and output. Running command 'osm nsi-list | awk '{print $2}' | grep slicebasic 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${slice_name} Fails if objects are equal after converting them to strings. Delete NST ${NST_NAME} Runs the given keyword with the given arguments, if one or more tests failed. ${NST_NAME} Delete a Network Slice Template (NST) from OSM. ${rc} ${stdout} osm netslice-template-delete ${nst_id} Runs the given command in the system and returns the RC and output. Running command 'osm netslice-template-delete slice_basic_nst 2>&1'. ${rc} = 1 ${stdout} = ERROR: nst slice_basic_nst not found ${stdout} Logs the given message with the given level. ERROR: nst slice_basic_nst not found ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${NST_DELETE_MAX_WAIT_TIME} ${NST_DELETE_POL_TIME} Check For NST ${nst_id} Runs the specified keyword and retries if it fails. ${nst_id} Check that a Network Slice Template (NST) exists in OSM. ${rc} ${stdout} osm netslice-template-list | awk '{print $2}' | grep ${nst_id} Runs the given command in the system and returns the RC and output. Running command 'osm netslice-template-list | awk '{print $2}' | grep slice_basic_nst 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${nst_id} Fails if objects are equal after converting them to strings. Delete NSD ${NSD1_NAME} Runs the given keyword with the given arguments, if one or more tests failed. ${NSD1_NAME} Delete a NS package from OSM. ${rc} ${stdout} Run And Return Rc And Output osm nspkg-delete ${nsd_id} Runs the keyword and continues execution even if a failure occurs. osm nspkg-delete ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-delete slice_basic_ns 2>&1'. ${rc} = 1 ${stdout} = ERROR: nsd slice_basic_ns not found ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${stdout} Logs the given message with the given level. ERROR: nsd slice_basic_ns not found ${NSD_DELETE_MAX_WAIT_TIME} ${NSD_DELETE_POL_TIME} Check For NSD ${nsd_id} Runs the specified keyword and retries if it fails. ${nsd_id} Check that a NS package exists in OSM. ${rc} ${stdout} osm nspkg-list | awk '{print $2}' | grep ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-list | awk '{print $2}' | grep slice_basic_ns 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. Delete NSD ${NSD2_NAME} Runs the given keyword with the given arguments, if one or more tests failed. ${NSD2_NAME} Delete a NS package from OSM. ${rc} ${stdout} Run And Return Rc And Output osm nspkg-delete ${nsd_id} Runs the keyword and continues execution even if a failure occurs. osm nspkg-delete ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-delete slice_basic_middle_ns 2>&1'. ${rc} = 1 ${stdout} = ERROR: nsd slice_basic_middle_ns not found ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${stdout} Logs the given message with the given level. ERROR: nsd slice_basic_middle_ns not found ${NSD_DELETE_MAX_WAIT_TIME} ${NSD_DELETE_POL_TIME} Check For NSD ${nsd_id} Runs the specified keyword and retries if it fails. ${nsd_id} Check that a NS package exists in OSM. ${rc} ${stdout} osm nspkg-list | awk '{print $2}' | grep ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-list | awk '{print $2}' | grep slice_basic_middle_ns 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. Delete VNFD ${VNFD1_NAME} Runs the given keyword with the given arguments, if one or more tests failed. ${VNFD1_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete slice_basic_vnf 2>&1'. ${rc} = 1 ${stdout} = ERROR: vnfd slice_basic_vnf not found ${stdout} Logs the given message with the given level. ERROR: vnfd slice_basic_vnf not found ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep slice_basic_vnf 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. Delete VNFD ${VNFD2_NAME} Runs the given keyword with the given arguments, if one or more tests failed. ${VNFD2_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete slice_basic_middle_vnf 2>&1'. ${rc} = 1 ${stdout} = ERROR: vnfd slice_basic_middle_vnf not found ${stdout} Logs the given message with the given level. ERROR: vnfd slice_basic_middle_vnf not found ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep slice_basic_middle_vnf 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. [SLICE-01] Network Slicing. '%{PACKAGES_FOLDER}/${VNFD1_PKG}' Onboards ("creates") a NF Package into OSM. - Parameters: - vnfd_pkg: Name (and location) of the NF Package - overrides (optional): String with options to override the EPA and/or interface properties of the Package. This is very useful to allow to deploy e.g. non-EPA packages in EPA VIMs (or vice-versa). Valid strings are the same as in the command. E.g.: - `--override-epa`: adds EPA attributes to all VDUs. - `--override-nonepa`: removes all EPA attributes from all VDUs. - `--override-paravirt`: converts all interfaces to `PARAVIRT`. This one can be combined with the others above (e.g. '--override-nonepa --override-paravirt'). - Relevant environment variables: - OVERRIDES: If the environment variable "OVERRIDES" exists, it prevails over the value in the argument. This is often more convenient to enforce the same behaviour for every test run in a given VIM. ${overrides} OVERRIDES default=${overrides} Returns the value of an environment variable with the given name. ${overrides} = ${rc} ${stdout} osm vnfpkg-create ${overrides} ${vnfd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-create '/robot-systest/osm-packages/slice_basic_vnf' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/slice_basic_vnf Validation OK List of charms in the descriptor: set() Adding File: slice_basic_vnf Package created: /robot-systest/osm-packages/slice_bas... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/slice_basic_vnf Validation OK List of charms in the descriptor: set() Adding File: slice_basic_vnf Package created: /robot-systest/osm-packages/slice_basic_vnf.tar.gz Uploading package /robot-systest/osm-packages/slice_basic_vnf.tar.gz ee71a91a-28c9-4726-9834-ce4277f47411 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 7 lines ${lines} = 7 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 6 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = ee71a91a-28c9-4726-9834-ce4277f47411 ${id} '%{PACKAGES_FOLDER}/${VNFD2_PKG}' Onboards ("creates") a NF Package into OSM. - Parameters: - vnfd_pkg: Name (and location) of the NF Package - overrides (optional): String with options to override the EPA and/or interface properties of the Package. This is very useful to allow to deploy e.g. non-EPA packages in EPA VIMs (or vice-versa). Valid strings are the same as in the command. E.g.: - `--override-epa`: adds EPA attributes to all VDUs. - `--override-nonepa`: removes all EPA attributes from all VDUs. - `--override-paravirt`: converts all interfaces to `PARAVIRT`. This one can be combined with the others above (e.g. '--override-nonepa --override-paravirt'). - Relevant environment variables: - OVERRIDES: If the environment variable "OVERRIDES" exists, it prevails over the value in the argument. This is often more convenient to enforce the same behaviour for every test run in a given VIM. ${overrides} OVERRIDES default=${overrides} Returns the value of an environment variable with the given name. ${overrides} = ${rc} ${stdout} osm vnfpkg-create ${overrides} ${vnfd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-create '/robot-systest/osm-packages/slice_basic_middle_vnf' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/slice_basic_middle_vnf Validation OK List of charms in the descriptor: set() Adding File: slice_basic_middle_vnf Package created: /robot-systest/osm-pack... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/slice_basic_middle_vnf Validation OK List of charms in the descriptor: set() Adding File: slice_basic_middle_vnf Package created: /robot-systest/osm-packages/slice_basic_middle_vnf.tar.gz Uploading package /robot-systest/osm-packages/slice_basic_middle_vnf.tar.gz e99566fc-9803-476d-8579-15e430ac05ce ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 7 lines ${lines} = 7 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 6 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = e99566fc-9803-476d-8579-15e430ac05ce ${id} Onboards all the VNFDs required for the test: vnfd1_pkg and vnfd2_pkg (in the variables file) cluster_slices daily regression slice_02 '%{PACKAGES_FOLDER}/${NSD1_PKG}' Upload a NS package to OSM and return the id. ${rc} ${stdout} osm nspkg-create ${nsd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-create '/robot-systest/osm-packages/slice_basic_ns' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/slice_basic_ns Validation OK List of charms in the descriptor: set() Adding File: slice_basic_ns Package created: /robot-systest/osm-packages/slice_basic... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/slice_basic_ns Validation OK List of charms in the descriptor: set() Adding File: slice_basic_ns Package created: /robot-systest/osm-packages/slice_basic_ns.tar.gz 5778c244-b439-4e1c-8f87-ae7e544c7b37 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 6 lines ${lines} = 6 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 5 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = 5778c244-b439-4e1c-8f87-ae7e544c7b37 ${id} '%{PACKAGES_FOLDER}/${NSD2_PKG}' Upload a NS package to OSM and return the id. ${rc} ${stdout} osm nspkg-create ${nsd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-create '/robot-systest/osm-packages/slice_basic_middle_ns' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/slice_basic_middle_ns Validation OK List of charms in the descriptor: set() Adding File: slice_basic_middle_ns Package created: /robot-systest/osm-packag... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/slice_basic_middle_ns Validation OK List of charms in the descriptor: set() Adding File: slice_basic_middle_ns Package created: /robot-systest/osm-packages/slice_basic_middle_ns.tar.gz 6816c9b9-28ae-4aa0-9db4-dff760870f79 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 6 lines ${lines} = 6 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 5 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = 6816c9b9-28ae-4aa0-9db4-dff760870f79 ${id} Onboards all the NSDs required for the test: nsd1_pkg and nsd2_pkg (in the variables file) cluster_slices daily regression slice_02 '%{PACKAGES_FOLDER}/${NST}' Upload a Network Slice Template (NST) to OSM and return the id. ${rc} ${stdout} osm netslice-template-create ${nst} Runs the given command in the system and returns the RC and output. Running command 'osm netslice-template-create '/robot-systest/osm-packages/slice_basic_nst/slice_basic_nst.yaml' 2>&1'. ${rc} = 0 ${stdout} = f54ee82d-2dd7-43f4-a226-7195e6edef6c ${stdout} Logs the given message with the given level. f54ee82d-2dd7-43f4-a226-7195e6edef6c ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} '%{PACKAGES_FOLDER}/${NST2}' Upload a Network Slice Template (NST) to OSM and return the id. ${rc} ${stdout} osm netslice-template-create ${nst} Runs the given command in the system and returns the RC and output. Running command 'osm netslice-template-create '/robot-systest/osm-packages/slice_basic_nst/slice_basic_2nd_nst.yaml' 2>&1'. ${rc} = 0 ${stdout} = 5472c9ea-6000-4df0-8265-a763b772ad1e ${stdout} Logs the given message with the given level. 5472c9ea-6000-4df0-8265-a763b772ad1e ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Onboards the Network Slice Templates: nst, nst2 (in the variables file) cluster_slices daily regression slice_02 ${id} ${NST_NAME} %{VIM_TARGET} ${SLICE_NAME} ${NST_CONFIG} ${PUBLICKEY} Instantiates a NST and returns an instantiation id (nsi), verifying the slice is successfully instantiated Parameters: nst: Name of the slice template vim_name: Name of the VIM entry already in OSM slice_name: Name of the slice instance slice_config: Extra parameters that might require the slice instantiation i.e. configuration attributes publickey: SSH public key of the local machine Execution example: ${nsi}= Create Network Slice ${nst} ${vim_name} ${slice_name} ${slice_config} ${publickey} ${slice_launch_max_wait_time} ${slice_launch_max_wait_time} result_format=number Converts between supported `time formats`. ${slice_launch_max_wait_time} = 360.0 ${slice_launch_max_wait_time} ${slice_launch_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${slice_launch_max_wait_time} = 360.0 ${config_attr} "${slice_config}" != "${EMPTY}" --config '${slice_config}' ${EMPTY} Sets variable based on the given condition. ${config_attr} = --config '{netslice-vld: [ {name: slice_vld_mgmt, vim-network-name: osm-ext} ] }' ${sshkeys_attr} "${publickey}" != "${EMPTY}" --ssh_keys ${publickey} ${EMPTY} Sets variable based on the given condition. ${sshkeys_attr} = --ssh_keys /root/.ssh/id_rsa.pub ${config_file_attr} "${config_file}" != "${EMPTY}" --config_file '${config_file}' ${EMPTY} Sets variable based on the given condition. ${config_file_attr} = ${nsi_id} ${slice_name} ${nst} ${vim_name} ${config_attr} ${config_file_attr} ${sshkeys_attr} Instantiates a NST and returns an instantiation id (nsi) Parameters: slice_name: Name of the slice instance nst: Name of the slice template vim_name: Name of the VIM entry already in OSM slice_extra_args: Extra parameters that might require the slice instantiation i.e. configuration attributes Execution example: ${nsi}= Instantiate Network Slice ${slice_name} ${nst} ${vim_name} ${config_attr} ${rc} ${stdout} osm nsi-create --nsi_name ${slice_name} --nst_name ${nst} --vim_account ${vim_name} ${sshkeys_attr} ${slice_extra_args} Runs the given command in the system and returns the RC and output. Running command 'osm nsi-create --nsi_name slicebasic --nst_name slice_basic_nst --vim_account osm --ssh_keys /root/.ssh/id_rsa.pub --config '{netslice-vld: [ {name: slice_vld_mgmt, vim-network-name: osm-ext} ] }' 2>&1'. ${rc} = 0 ${stdout} = e78de7b8-97ec-4fd0-bffd-c0ba7a4125eb ${rc},${stdout} Logs the given message with the given level. 0,e78de7b8-97ec-4fd0-bffd-c0ba7a4125eb ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${nsi_id} = e78de7b8-97ec-4fd0-bffd-c0ba7a4125eb ${nsi_id} Logs the given message with the given level. e78de7b8-97ec-4fd0-bffd-c0ba7a4125eb ${slice_launch_max_wait_time} ${SLICE_LAUNCH_POL_TIME} Check For Network Slice Instance To Configured ${slice_name} Runs the specified keyword and retries if it fails. ${slice_name} Verify the slice has been instantiated Parameters: slice_name: Name of the slice instance Execution example: Check For Network Slice Instance To Configured ${slice_name} ${rc} ${stdout} osm nsi-list --filter name="${slice_name}" Runs the given command in the system and returns the RC and output. Running command 'osm nsi-list --filter name="slicebasic" 2>&1'. ${rc} = 0 ${stdout} = +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id ... ${stdout} Logs the given message with the given level. +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | slicebasic | e78de7b8-97ec-4fd0-bffd-c0ba7a4125eb | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN configured Fails if ``container`` does not contain any of the ``*items``. '+------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | slicebasic | e78de7b8-97ec-4fd0-bffd-c0ba7a4125eb | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+' does not contain any of 'READY', 'BROKEN' or 'configured' ${slice_name} Verify the slice has been instantiated Parameters: slice_name: Name of the slice instance Execution example: Check For Network Slice Instance To Configured ${slice_name} ${rc} ${stdout} osm nsi-list --filter name="${slice_name}" Runs the given command in the system and returns the RC and output. Running command 'osm nsi-list --filter name="slicebasic" 2>&1'. ${rc} = 0 ${stdout} = +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id ... ${stdout} Logs the given message with the given level. +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | slicebasic | e78de7b8-97ec-4fd0-bffd-c0ba7a4125eb | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN configured Fails if ``container`` does not contain any of the ``*items``. '+------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | slicebasic | e78de7b8-97ec-4fd0-bffd-c0ba7a4125eb | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+' does not contain any of 'READY', 'BROKEN' or 'configured' ${slice_name} Verify the slice has been instantiated Parameters: slice_name: Name of the slice instance Execution example: Check For Network Slice Instance To Configured ${slice_name} ${rc} ${stdout} osm nsi-list --filter name="${slice_name}" Runs the given command in the system and returns the RC and output. Running command 'osm nsi-list --filter name="slicebasic" 2>&1'. ${rc} = 0 ${stdout} = +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id ... ${stdout} Logs the given message with the given level. +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | slicebasic | e78de7b8-97ec-4fd0-bffd-c0ba7a4125eb | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN configured Fails if ``container`` does not contain any of the ``*items``. '+------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | slicebasic | e78de7b8-97ec-4fd0-bffd-c0ba7a4125eb | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+' does not contain any of 'READY', 'BROKEN' or 'configured' ${slice_name} Verify the slice has been instantiated Parameters: slice_name: Name of the slice instance Execution example: Check For Network Slice Instance To Configured ${slice_name} ${rc} ${stdout} osm nsi-list --filter name="${slice_name}" Runs the given command in the system and returns the RC and output. Running command 'osm nsi-list --filter name="slicebasic" 2>&1'. ${rc} = 0 ${stdout} = +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id ... ${stdout} Logs the given message with the given level. +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | slicebasic | e78de7b8-97ec-4fd0-bffd-c0ba7a4125eb | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN configured Fails if ``container`` does not contain any of the ``*items``. '+------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | slicebasic | e78de7b8-97ec-4fd0-bffd-c0ba7a4125eb | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+' does not contain any of 'READY', 'BROKEN' or 'configured' ${slice_name} Verify the slice has been instantiated Parameters: slice_name: Name of the slice instance Execution example: Check For Network Slice Instance To Configured ${slice_name} ${rc} ${stdout} osm nsi-list --filter name="${slice_name}" Runs the given command in the system and returns the RC and output. Running command 'osm nsi-list --filter name="slicebasic" 2>&1'. ${rc} = 0 ${stdout} = +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id ... ${stdout} Logs the given message with the given level. +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | slicebasic | e78de7b8-97ec-4fd0-bffd-c0ba7a4125eb | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN configured Fails if ``container`` does not contain any of the ``*items``. '+------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | slicebasic | e78de7b8-97ec-4fd0-bffd-c0ba7a4125eb | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+' does not contain any of 'READY', 'BROKEN' or 'configured' ${slice_name} Verify the slice has been instantiated Parameters: slice_name: Name of the slice instance Execution example: Check For Network Slice Instance To Configured ${slice_name} ${rc} ${stdout} osm nsi-list --filter name="${slice_name}" Runs the given command in the system and returns the RC and output. Running command 'osm nsi-list --filter name="slicebasic" 2>&1'. ${rc} = 0 ${stdout} = +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id ... ${stdout} Logs the given message with the given level. +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | slicebasic | e78de7b8-97ec-4fd0-bffd-c0ba7a4125eb | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN configured Fails if ``container`` does not contain any of the ``*items``. '+------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | slicebasic | e78de7b8-97ec-4fd0-bffd-c0ba7a4125eb | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+' does not contain any of 'READY', 'BROKEN' or 'configured' ${slice_name} Verify the slice has been instantiated Parameters: slice_name: Name of the slice instance Execution example: Check For Network Slice Instance To Configured ${slice_name} ${rc} ${stdout} osm nsi-list --filter name="${slice_name}" Runs the given command in the system and returns the RC and output. Running command 'osm nsi-list --filter name="slicebasic" 2>&1'. ${rc} = 0 ${stdout} = +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id ... ${stdout} Logs the given message with the given level. +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | slicebasic | e78de7b8-97ec-4fd0-bffd-c0ba7a4125eb | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN configured Fails if ``container`` does not contain any of the ``*items``. '+------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | slicebasic | e78de7b8-97ec-4fd0-bffd-c0ba7a4125eb | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+' does not contain any of 'READY', 'BROKEN' or 'configured' ${slice_name} Verify the slice has been instantiated Parameters: slice_name: Name of the slice instance Execution example: Check For Network Slice Instance To Configured ${slice_name} ${rc} ${stdout} osm nsi-list --filter name="${slice_name}" Runs the given command in the system and returns the RC and output. Running command 'osm nsi-list --filter name="slicebasic" 2>&1'. ${rc} = 0 ${stdout} = +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id ... ${stdout} Logs the given message with the given level. +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | slicebasic | e78de7b8-97ec-4fd0-bffd-c0ba7a4125eb | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN configured Fails if ``container`` does not contain any of the ``*items``. '+------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | slicebasic | e78de7b8-97ec-4fd0-bffd-c0ba7a4125eb | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+' does not contain any of 'READY', 'BROKEN' or 'configured' ${slice_name} Verify the slice has been instantiated Parameters: slice_name: Name of the slice instance Execution example: Check For Network Slice Instance To Configured ${slice_name} ${rc} ${stdout} osm nsi-list --filter name="${slice_name}" Runs the given command in the system and returns the RC and output. Running command 'osm nsi-list --filter name="slicebasic" 2>&1'. ${rc} = 0 ${stdout} = +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id ... ${stdout} Logs the given message with the given level. +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | slicebasic | e78de7b8-97ec-4fd0-bffd-c0ba7a4125eb | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN configured Fails if ``container`` does not contain any of the ``*items``. '+------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | slicebasic | e78de7b8-97ec-4fd0-bffd-c0ba7a4125eb | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+' does not contain any of 'READY', 'BROKEN' or 'configured' ${slice_name} Verify the slice has been instantiated Parameters: slice_name: Name of the slice instance Execution example: Check For Network Slice Instance To Configured ${slice_name} ${rc} ${stdout} osm nsi-list --filter name="${slice_name}" Runs the given command in the system and returns the RC and output. Running command 'osm nsi-list --filter name="slicebasic" 2>&1'. ${rc} = 0 ${stdout} = +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id ... ${stdout} Logs the given message with the given level. +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | slicebasic | e78de7b8-97ec-4fd0-bffd-c0ba7a4125eb | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN configured Fails if ``container`` does not contain any of the ``*items``. '+------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | slicebasic | e78de7b8-97ec-4fd0-bffd-c0ba7a4125eb | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+' does not contain any of 'READY', 'BROKEN' or 'configured' ${slice_name} Verify the slice has been instantiated Parameters: slice_name: Name of the slice instance Execution example: Check For Network Slice Instance To Configured ${slice_name} ${rc} ${stdout} osm nsi-list --filter name="${slice_name}" Runs the given command in the system and returns the RC and output. Running command 'osm nsi-list --filter name="slicebasic" 2>&1'. ${rc} = 0 ${stdout} = +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id ... ${stdout} Logs the given message with the given level. +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | slicebasic | e78de7b8-97ec-4fd0-bffd-c0ba7a4125eb | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN configured Fails if ``container`` does not contain any of the ``*items``. '+------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | slicebasic | e78de7b8-97ec-4fd0-bffd-c0ba7a4125eb | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+' does not contain any of 'READY', 'BROKEN' or 'configured' ${slice_name} Verify the slice has been instantiated Parameters: slice_name: Name of the slice instance Execution example: Check For Network Slice Instance To Configured ${slice_name} ${rc} ${stdout} osm nsi-list --filter name="${slice_name}" Runs the given command in the system and returns the RC and output. Running command 'osm nsi-list --filter name="slicebasic" 2>&1'. ${rc} = 0 ${stdout} = +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id ... ${stdout} Logs the given message with the given level. +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | slicebasic | e78de7b8-97ec-4fd0-bffd-c0ba7a4125eb | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN configured Fails if ``container`` does not contain any of the ``*items``. '+------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | slicebasic | e78de7b8-97ec-4fd0-bffd-c0ba7a4125eb | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+' does not contain any of 'READY', 'BROKEN' or 'configured' ${slice_name} Verify the slice has been instantiated Parameters: slice_name: Name of the slice instance Execution example: Check For Network Slice Instance To Configured ${slice_name} ${rc} ${stdout} osm nsi-list --filter name="${slice_name}" Runs the given command in the system and returns the RC and output. Running command 'osm nsi-list --filter name="slicebasic" 2>&1'. ${rc} = 0 ${stdout} = +------------------------+--------------------------------------+--------------------+---------------+--------------------------------------------------------------------------------------------------... ${stdout} Logs the given message with the given level. +------------------------+--------------------------------------+--------------------+---------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | slicebasic | e78de7b8-97ec-4fd0-bffd-c0ba7a4125eb | failed | configured | ERROR instantiating: NS 8a05419a-1103-40ea-9037-f7079f4fa2e9 FAILED: Deploying at VIM: Error at create vdu: unknown; NS f77a9dda-f78a-4d98-9ff0-20af95daa709 FAILED: Deploying at VIM: Error at create vdu: unknown | +------------------------+--------------------------------------+--------------------+---------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN configured Fails if ``container`` does not contain any of the ``*items``. ${slice_name} Verify the slice instance is not in failure Parameters: slice_name: Name of the slice instance Execution example: Check For Network Slice Instance For Failure ${slice_name} ${rc} ${stdout} osm nsi-list --filter name="${slice_name}" Runs the given command in the system and returns the RC and output. Running command 'osm nsi-list --filter name="slicebasic" 2>&1'. ${rc} = 0 ${stdout} = +------------------------+--------------------------------------+--------------------+---------------+--------------------------------------------------------------------------------------------------... ${stdout} Logs the given message with the given level. +------------------------+--------------------------------------+--------------------+---------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | slicebasic | e78de7b8-97ec-4fd0-bffd-c0ba7a4125eb | failed | configured | ERROR instantiating: NS 8a05419a-1103-40ea-9037-f7079f4fa2e9 FAILED: Deploying at VIM: Error at create vdu: unknown; NS f77a9dda-f78a-4d98-9ff0-20af95daa709 FAILED: Deploying at VIM: Error at create vdu: unknown | +------------------------+--------------------------------------+--------------------+---------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} failed Fails if ``container`` contains ``item`` one or more times. '+------------------------+--------------------------------------+--------------------+---------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | slicebasic | e78de7b8-97ec-4fd0-bffd-c0ba7a4125eb | failed | configured | ERROR instantiating: NS 8a05419a-1103-40ea-9037-f7079f4fa2e9 FAILED: Deploying at VIM: Error at create vdu: unknown; NS f77a9dda-f78a-4d98-9ff0-20af95daa709 FAILED: Deploying at VIM: Error at create vdu: unknown | +------------------------+--------------------------------------+--------------------+---------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+' contains 'failed' ${nsi_id} ${NSI_ID} ${id} Makes a variable available everywhere within the scope of the current suite. Instantiates the First NST recently onboarded (nst_name) and sets the instantiation id as a suite variable (nsi_id) The slice contains 3 NS (1 shared) cluster_slices daily regression slice_02 '+------------------------+--------------------------------------+--------------------+---------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | slicebasic | e78de7b8-97ec-4fd0-bffd-c0ba7a4125eb | failed | configured | ERROR instantiating: NS 8a05419a-1103-40ea-9037-f7079f4fa2e9 FAILED: Deploying at VIM: Error at create vdu: unknown; NS f77a9dda-f78a-4d98-9ff0-20af95daa709 FAILED: Deploying at VIM: Error at create vdu: unknown | +------------------------+--------------------------------------+--------------------+---------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+' contains 'failed' ${id} ${NST2_NAME} %{VIM_TARGET} ${SLICE2_NAME} ${NST_CONFIG} ${PUBLICKEY} Instantiates a NST and returns an instantiation id (nsi), verifying the slice is successfully instantiated Parameters: nst: Name of the slice template vim_name: Name of the VIM entry already in OSM slice_name: Name of the slice instance slice_config: Extra parameters that might require the slice instantiation i.e. configuration attributes publickey: SSH public key of the local machine Execution example: ${nsi}= Create Network Slice ${nst} ${vim_name} ${slice_name} ${slice_config} ${publickey} ${slice_launch_max_wait_time} ${slice_launch_max_wait_time} result_format=number Converts between supported `time formats`. ${slice_launch_max_wait_time} = 360.0 ${slice_launch_max_wait_time} ${slice_launch_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${slice_launch_max_wait_time} = 360.0 ${config_attr} "${slice_config}" != "${EMPTY}" --config '${slice_config}' ${EMPTY} Sets variable based on the given condition. ${config_attr} = --config '{netslice-vld: [ {name: slice_vld_mgmt, vim-network-name: osm-ext} ] }' ${sshkeys_attr} "${publickey}" != "${EMPTY}" --ssh_keys ${publickey} ${EMPTY} Sets variable based on the given condition. ${sshkeys_attr} = --ssh_keys /root/.ssh/id_rsa.pub ${config_file_attr} "${config_file}" != "${EMPTY}" --config_file '${config_file}' ${EMPTY} Sets variable based on the given condition. ${config_file_attr} = ${nsi_id} ${slice_name} ${nst} ${vim_name} ${config_attr} ${config_file_attr} ${sshkeys_attr} Instantiates a NST and returns an instantiation id (nsi) Parameters: slice_name: Name of the slice instance nst: Name of the slice template vim_name: Name of the VIM entry already in OSM slice_extra_args: Extra parameters that might require the slice instantiation i.e. configuration attributes Execution example: ${nsi}= Instantiate Network Slice ${slice_name} ${nst} ${vim_name} ${config_attr} ${rc} ${stdout} osm nsi-create --nsi_name ${slice_name} --nst_name ${nst} --vim_account ${vim_name} ${sshkeys_attr} ${slice_extra_args} Runs the given command in the system and returns the RC and output. Running command 'osm nsi-create --nsi_name sliceshared --nst_name slice_basic_nst2 --vim_account osm --ssh_keys /root/.ssh/id_rsa.pub --config '{netslice-vld: [ {name: slice_vld_mgmt, vim-network-name: osm-ext} ] }' 2>&1'. ${rc} = 0 ${stdout} = 72c96953-f696-4de1-8c6b-a364b4a7385b ${rc},${stdout} Logs the given message with the given level. 0,72c96953-f696-4de1-8c6b-a364b4a7385b ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${nsi_id} = 72c96953-f696-4de1-8c6b-a364b4a7385b ${nsi_id} Logs the given message with the given level. 72c96953-f696-4de1-8c6b-a364b4a7385b ${slice_launch_max_wait_time} ${SLICE_LAUNCH_POL_TIME} Check For Network Slice Instance To Configured ${slice_name} Runs the specified keyword and retries if it fails. ${slice_name} Verify the slice has been instantiated Parameters: slice_name: Name of the slice instance Execution example: Check For Network Slice Instance To Configured ${slice_name} ${rc} ${stdout} osm nsi-list --filter name="${slice_name}" Runs the given command in the system and returns the RC and output. Running command 'osm nsi-list --filter name="sliceshared" 2>&1'. ${rc} = 0 ${stdout} = +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id ... ${stdout} Logs the given message with the given level. +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | sliceshared | 72c96953-f696-4de1-8c6b-a364b4a7385b | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN configured Fails if ``container`` does not contain any of the ``*items``. '+------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | sliceshared | 72c96953-f696-4de1-8c6b-a364b4a7385b | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+' does not contain any of 'READY', 'BROKEN' or 'configured' ${slice_name} Verify the slice has been instantiated Parameters: slice_name: Name of the slice instance Execution example: Check For Network Slice Instance To Configured ${slice_name} ${rc} ${stdout} osm nsi-list --filter name="${slice_name}" Runs the given command in the system and returns the RC and output. Running command 'osm nsi-list --filter name="sliceshared" 2>&1'. ${rc} = 0 ${stdout} = +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id ... ${stdout} Logs the given message with the given level. +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | sliceshared | 72c96953-f696-4de1-8c6b-a364b4a7385b | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN configured Fails if ``container`` does not contain any of the ``*items``. '+------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | sliceshared | 72c96953-f696-4de1-8c6b-a364b4a7385b | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+' does not contain any of 'READY', 'BROKEN' or 'configured' ${slice_name} Verify the slice has been instantiated Parameters: slice_name: Name of the slice instance Execution example: Check For Network Slice Instance To Configured ${slice_name} ${rc} ${stdout} osm nsi-list --filter name="${slice_name}" Runs the given command in the system and returns the RC and output. Running command 'osm nsi-list --filter name="sliceshared" 2>&1'. ${rc} = 0 ${stdout} = +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id ... ${stdout} Logs the given message with the given level. +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | sliceshared | 72c96953-f696-4de1-8c6b-a364b4a7385b | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN configured Fails if ``container`` does not contain any of the ``*items``. '+------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | sliceshared | 72c96953-f696-4de1-8c6b-a364b4a7385b | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+' does not contain any of 'READY', 'BROKEN' or 'configured' ${slice_name} Verify the slice has been instantiated Parameters: slice_name: Name of the slice instance Execution example: Check For Network Slice Instance To Configured ${slice_name} ${rc} ${stdout} osm nsi-list --filter name="${slice_name}" Runs the given command in the system and returns the RC and output. Running command 'osm nsi-list --filter name="sliceshared" 2>&1'. ${rc} = 0 ${stdout} = +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id ... ${stdout} Logs the given message with the given level. +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | sliceshared | 72c96953-f696-4de1-8c6b-a364b4a7385b | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN configured Fails if ``container`` does not contain any of the ``*items``. '+------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | sliceshared | 72c96953-f696-4de1-8c6b-a364b4a7385b | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+' does not contain any of 'READY', 'BROKEN' or 'configured' ${slice_name} Verify the slice has been instantiated Parameters: slice_name: Name of the slice instance Execution example: Check For Network Slice Instance To Configured ${slice_name} ${rc} ${stdout} osm nsi-list --filter name="${slice_name}" Runs the given command in the system and returns the RC and output. Running command 'osm nsi-list --filter name="sliceshared" 2>&1'. ${rc} = 0 ${stdout} = +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id ... ${stdout} Logs the given message with the given level. +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | sliceshared | 72c96953-f696-4de1-8c6b-a364b4a7385b | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN configured Fails if ``container`` does not contain any of the ``*items``. '+------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | sliceshared | 72c96953-f696-4de1-8c6b-a364b4a7385b | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+' does not contain any of 'READY', 'BROKEN' or 'configured' ${slice_name} Verify the slice has been instantiated Parameters: slice_name: Name of the slice instance Execution example: Check For Network Slice Instance To Configured ${slice_name} ${rc} ${stdout} osm nsi-list --filter name="${slice_name}" Runs the given command in the system and returns the RC and output. Running command 'osm nsi-list --filter name="sliceshared" 2>&1'. ${rc} = 0 ${stdout} = +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id ... ${stdout} Logs the given message with the given level. +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | sliceshared | 72c96953-f696-4de1-8c6b-a364b4a7385b | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN configured Fails if ``container`` does not contain any of the ``*items``. '+------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | sliceshared | 72c96953-f696-4de1-8c6b-a364b4a7385b | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+' does not contain any of 'READY', 'BROKEN' or 'configured' ${slice_name} Verify the slice has been instantiated Parameters: slice_name: Name of the slice instance Execution example: Check For Network Slice Instance To Configured ${slice_name} ${rc} ${stdout} osm nsi-list --filter name="${slice_name}" Runs the given command in the system and returns the RC and output. Running command 'osm nsi-list --filter name="sliceshared" 2>&1'. ${rc} = 0 ${stdout} = +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id ... ${stdout} Logs the given message with the given level. +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | sliceshared | 72c96953-f696-4de1-8c6b-a364b4a7385b | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN configured Fails if ``container`` does not contain any of the ``*items``. '+------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | sliceshared | 72c96953-f696-4de1-8c6b-a364b4a7385b | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+' does not contain any of 'READY', 'BROKEN' or 'configured' ${slice_name} Verify the slice has been instantiated Parameters: slice_name: Name of the slice instance Execution example: Check For Network Slice Instance To Configured ${slice_name} ${rc} ${stdout} osm nsi-list --filter name="${slice_name}" Runs the given command in the system and returns the RC and output. Running command 'osm nsi-list --filter name="sliceshared" 2>&1'. ${rc} = 0 ${stdout} = +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id ... ${stdout} Logs the given message with the given level. +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | sliceshared | 72c96953-f696-4de1-8c6b-a364b4a7385b | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN configured Fails if ``container`` does not contain any of the ``*items``. '+------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | sliceshared | 72c96953-f696-4de1-8c6b-a364b4a7385b | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+' does not contain any of 'READY', 'BROKEN' or 'configured' ${slice_name} Verify the slice has been instantiated Parameters: slice_name: Name of the slice instance Execution example: Check For Network Slice Instance To Configured ${slice_name} ${rc} ${stdout} osm nsi-list --filter name="${slice_name}" Runs the given command in the system and returns the RC and output. Running command 'osm nsi-list --filter name="sliceshared" 2>&1'. ${rc} = 0 ${stdout} = +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id ... ${stdout} Logs the given message with the given level. +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | sliceshared | 72c96953-f696-4de1-8c6b-a364b4a7385b | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN configured Fails if ``container`` does not contain any of the ``*items``. '+------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | sliceshared | 72c96953-f696-4de1-8c6b-a364b4a7385b | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+' does not contain any of 'READY', 'BROKEN' or 'configured' ${slice_name} Verify the slice has been instantiated Parameters: slice_name: Name of the slice instance Execution example: Check For Network Slice Instance To Configured ${slice_name} ${rc} ${stdout} osm nsi-list --filter name="${slice_name}" Runs the given command in the system and returns the RC and output. Running command 'osm nsi-list --filter name="sliceshared" 2>&1'. ${rc} = 0 ${stdout} = +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id ... ${stdout} Logs the given message with the given level. +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | sliceshared | 72c96953-f696-4de1-8c6b-a364b4a7385b | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN configured Fails if ``container`` does not contain any of the ``*items``. '+------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | sliceshared | 72c96953-f696-4de1-8c6b-a364b4a7385b | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+' does not contain any of 'READY', 'BROKEN' or 'configured' ${slice_name} Verify the slice has been instantiated Parameters: slice_name: Name of the slice instance Execution example: Check For Network Slice Instance To Configured ${slice_name} ${rc} ${stdout} osm nsi-list --filter name="${slice_name}" Runs the given command in the system and returns the RC and output. Running command 'osm nsi-list --filter name="sliceshared" 2>&1'. ${rc} = 0 ${stdout} = +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id ... ${stdout} Logs the given message with the given level. +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | sliceshared | 72c96953-f696-4de1-8c6b-a364b4a7385b | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN configured Fails if ``container`` does not contain any of the ``*items``. '+------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | sliceshared | 72c96953-f696-4de1-8c6b-a364b4a7385b | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+' does not contain any of 'READY', 'BROKEN' or 'configured' ${slice_name} Verify the slice has been instantiated Parameters: slice_name: Name of the slice instance Execution example: Check For Network Slice Instance To Configured ${slice_name} ${rc} ${stdout} osm nsi-list --filter name="${slice_name}" Runs the given command in the system and returns the RC and output. Running command 'osm nsi-list --filter name="sliceshared" 2>&1'. ${rc} = 0 ${stdout} = +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id ... ${stdout} Logs the given message with the given level. +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | sliceshared | 72c96953-f696-4de1-8c6b-a364b4a7385b | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN configured Fails if ``container`` does not contain any of the ``*items``. '+------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+ | sliceshared | 72c96953-f696-4de1-8c6b-a364b4a7385b | init | Not found | Instantiating netslice subnets | +------------------------+--------------------------------------+--------------------+---------------+--------------------------------+' does not contain any of 'READY', 'BROKEN' or 'configured' ${slice_name} Verify the slice has been instantiated Parameters: slice_name: Name of the slice instance Execution example: Check For Network Slice Instance To Configured ${slice_name} ${rc} ${stdout} osm nsi-list --filter name="${slice_name}" Runs the given command in the system and returns the RC and output. Running command 'osm nsi-list --filter name="sliceshared" 2>&1'. ${rc} = 0 ${stdout} = +------------------------+--------------------------------------+--------------------+---------------+--------------------------------------------------------------------------------------------------... ${stdout} Logs the given message with the given level. +------------------------+--------------------------------------+--------------------+---------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | sliceshared | 72c96953-f696-4de1-8c6b-a364b4a7385b | failed | configured | ERROR instantiating: NS 8a05419a-1103-40ea-9037-f7079f4fa2e9 FAILED: Deploying at VIM: Error at create vdu: unknown; NS c8acdafc-d48d-4635-82dd-e93a624ad3fc FAILED: Deploying at VIM: Error at create vdu: unknown | +------------------------+--------------------------------------+--------------------+---------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN configured Fails if ``container`` does not contain any of the ``*items``. ${slice_name} Verify the slice instance is not in failure Parameters: slice_name: Name of the slice instance Execution example: Check For Network Slice Instance For Failure ${slice_name} ${rc} ${stdout} osm nsi-list --filter name="${slice_name}" Runs the given command in the system and returns the RC and output. Running command 'osm nsi-list --filter name="sliceshared" 2>&1'. ${rc} = 0 ${stdout} = +------------------------+--------------------------------------+--------------------+---------------+--------------------------------------------------------------------------------------------------... ${stdout} Logs the given message with the given level. +------------------------+--------------------------------------+--------------------+---------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | sliceshared | 72c96953-f696-4de1-8c6b-a364b4a7385b | failed | configured | ERROR instantiating: NS 8a05419a-1103-40ea-9037-f7079f4fa2e9 FAILED: Deploying at VIM: Error at create vdu: unknown; NS c8acdafc-d48d-4635-82dd-e93a624ad3fc FAILED: Deploying at VIM: Error at create vdu: unknown | +------------------------+--------------------------------------+--------------------+---------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} failed Fails if ``container`` contains ``item`` one or more times. '+------------------------+--------------------------------------+--------------------+---------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | sliceshared | 72c96953-f696-4de1-8c6b-a364b4a7385b | failed | configured | ERROR instantiating: NS 8a05419a-1103-40ea-9037-f7079f4fa2e9 FAILED: Deploying at VIM: Error at create vdu: unknown; NS c8acdafc-d48d-4635-82dd-e93a624ad3fc FAILED: Deploying at VIM: Error at create vdu: unknown | +------------------------+--------------------------------------+--------------------+---------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+' contains 'failed' ${nsi_id} ${NSI2_ID} ${id} Makes a variable available everywhere within the scope of the current suite. Instantiates the Second NST recently onboarded (nst2_name) and sets the instantiation id as a suite variable (nsi2_id) The slice contains 2 NS (1 shared) cluster_slices daily regression slice_02 '+------------------------+--------------------------------------+--------------------+---------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | sliceshared | 72c96953-f696-4de1-8c6b-a364b4a7385b | failed | configured | ERROR instantiating: NS 8a05419a-1103-40ea-9037-f7079f4fa2e9 FAILED: Deploying at VIM: Error at create vdu: unknown; NS c8acdafc-d48d-4635-82dd-e93a624ad3fc FAILED: Deploying at VIM: Error at create vdu: unknown | +------------------------+--------------------------------------+--------------------+---------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+' contains 'failed' ${slice1_count} ${SLICE_NAME} Returns the count of all the NS in a slice Parameters: slice_name: Name of the slice instance Execution example: ${slice_ns_count}= Get Slice Ns Count ${slice_name} ${slice_name} Verifies that the given item is not empty. Length is 10 ${rc} ${stdout} osm ns-list | grep ${slice_name} | wc -l 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | grep slicebasic | wc -l 2>&1'. ${rc} = 0 ${stdout} = 3 ${stdout} Logs the given message with the given level. 3 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${slice1_count} = 3 ${slice2_count} ${SLICE2_NAME} Returns the count of all the NS in a slice Parameters: slice_name: Name of the slice instance Execution example: ${slice_ns_count}= Get Slice Ns Count ${slice_name} ${slice_name} Verifies that the given item is not empty. Length is 11 ${rc} ${stdout} osm ns-list | grep ${slice_name} | wc -l 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | grep sliceshared | wc -l 2>&1'. ${rc} = 0 ${stdout} = 1 ${stdout} Logs the given message with the given level. 1 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${slice2_count} = 1 ${together} ${slice1_count} + ${slice2_count} Evaluates the given expression in Python and returns the result. ${together} = 4 ${together} 4 Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> Counts the NS in both slice instances and shoul be equal to 4 cluster_slices daily regression slice_02 ${middle_ns_id} osm ns-list | grep ${MIDDLE_NS_NAME} | awk '{print $4}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | grep slicebasic.slice_basic_nsd_2 | awk '{print $4}' 2>&1'. ${middle_ns_id} = (0, '8a05419a-1103-40ea-9037-f7079f4fa2e9') ${vnf_ip} ${middle_ns_id}[1] ${VNF_MEMBER_INDEX} Get the mgmt IP address of a member VNF in a NS instance, and return it. ${ns_id} Verifies that the given item is not empty. Length is 36 ${vnf_member_index} Verifies that the given item is not empty. Length is 6 ${rc} ${stdout} osm vnf-list --filter member-vnf-index-ref=${vnf_member_index} | grep ${ns_id} | awk '{print $14}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm vnf-list --filter member-vnf-index-ref=middle | grep 8a05419a-1103-40ea-9037-f7079f4fa2e9 | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.248.55 ${stdout} Logs the given message with the given level. 172.21.248.55 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${vnf_ip} = 172.21.248.55 Variable \$\{ vnf_ip\} Empty Stops the whole test execution. ${MGMT_VNF_IP} ${vnf_ip} Makes a variable available everywhere within the scope of the current suite. ${MGMT_VNF_IP} = 172.21.248.55 Obtains the management IP of the shared NS main (only) VNF and sets it as a suite variable (mgmt_vnf_ip) cluster_slices daily regression slice_02 @{ip_list} ${SLICE_NAME} Retrieves the list of IP addresses that belong to each of the VNFs in the slice Parameters: slice_name: Name of the slice instance Execution example: @{slice_ip_address_list}= Get Slice Vnf Ip Addresses ${slice_name} @{slice_ns_list} ${slice_name} Retrieves the list of NS in a slice Parameters: slice_name: Name of the slice instance Execution example: @{slice_ns_list}= Get Slice Ns List ${slice_name} ${slice_name} Verifies that the given item is not empty. Length is 10 @{ns_list_string} osm ns-list | grep ${slice_name} | awk '{print $4}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | grep slicebasic | awk '{print $4}' 2>&1'. @{ns_list_string} = [ 0 | d4ff0c18-f987-4ffb-9085-4181a19bc2fa 8a05419a-1103-40ea-9037-f7079f4fa2e9 f77a9dda-f78a-4d98-9ff0-20af95daa709 ] @{ns_list} ${ns_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{ns_list} = [ d4ff0c18-f987-4ffb-9085-4181a19bc2fa | 8a05419a-1103-40ea-9037-f7079f4fa2e9 | f77a9dda-f78a-4d98-9ff0-20af95daa709 ] ${ns_list} Logs the length and contents of the ``list`` using given ``level``. List length is 3 and it contains following items: 0: d4ff0c18-f987-4ffb-9085-4181a19bc2fa 1: 8a05419a-1103-40ea-9037-f7079f4fa2e9 2: f77a9dda-f78a-4d98-9ff0-20af95daa709 @{ns_list} @{slice_ns_list} = [ d4ff0c18-f987-4ffb-9085-4181a19bc2fa | 8a05419a-1103-40ea-9037-f7079f4fa2e9 | f77a9dda-f78a-4d98-9ff0-20af95daa709 ] @{slice_ns_list} Logs the given messages as separate entries using the INFO level. d4ff0c18-f987-4ffb-9085-4181a19bc2fa 8a05419a-1103-40ea-9037-f7079f4fa2e9 f77a9dda-f78a-4d98-9ff0-20af95daa709 @{temp_list} Returns a list containing given items. @{temp_list} = [ ] ${ns_id} @{slice_ns_list} d4ff0c18-f987-4ffb-9085-4181a19bc2fa ${ns_id} Logs the given message with the given level. d4ff0c18-f987-4ffb-9085-4181a19bc2fa @{vnf_id_list} ${ns_id} Get the list of VNF instances of a given NS instance id, and return it. ${ns_id} Verifies that the given item is not empty. Length is 36 @{vnf_list_string} osm vnf-list --ns ${ns_id} | grep ${ns_id} | awk '{print $2}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm vnf-list --ns d4ff0c18-f987-4ffb-9085-4181a19bc2fa | grep d4ff0c18-f987-4ffb-9085-4181a19bc2fa | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | 055dccd9-2e23-41f0-8aaa-acbe0fb90113 ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ 055dccd9-2e23-41f0-8aaa-acbe0fb90113 ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: 055dccd9-2e23-41f0-8aaa-acbe0fb90113 @{vnf_list} @{vnf_id_list} = [ 055dccd9-2e23-41f0-8aaa-acbe0fb90113 ] @{ns_ip_list} @{vnf_id_list} Obtain the list of IP addresses of all VM in a NS, and return it. @{vnf_list} Verifies that the given item is not empty. Length is 36 @{temp_list} Returns a list containing given items. @{temp_list} = [ ] ${vnf_id} @{vnf_list} 055dccd9-2e23-41f0-8aaa-acbe0fb90113 ${vnf_id} Logs the given message with the given level. 055dccd9-2e23-41f0-8aaa-acbe0fb90113 @{vnf_ip_list} ${vnf_id} Obtain the list of IP addresses of all VM in a VNF, and return it. ${vnf_id} Verifies that the given item is not empty. Length is 36 @{vnf_ip_list_string} osm vnf-list --filter id=${vnf_id} | grep -o '[0-9]\\{1,3\\}\\.[0-9]\\{1,3\\}\\.[0-9]\\{1,3\\}\\.[0-9]\\{1,3\\}' | sort -t: -u -k1,1 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm vnf-list --filter id=055dccd9-2e23-41f0-8aaa-acbe0fb90113 | grep -o '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}' | sort -t: -u -k1,1 2>&1'. @{vnf_ip_list_string} = [ 0 | 172.21.248.50 ] ${vnf_ip_list_string}[1] Verifies that the given item is not empty. Length is 13 @{vnf_ip_list} ${vnf_ip_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_ip_list} = [ 172.21.248.50 ] ${vnf_ip_list} Logs the given messages as separate entries using the INFO level. ['172.21.248.50'] ${vnf_ip_list} Verifies that the given item is not empty. Length is 1 @{vnf_ip_list} @{vnf_ip_list} = [ 172.21.248.50 ] @{temp_list} ${temp_list} ${vnf_ip_list} Combines the given ``lists`` together and returns the result. @{temp_list} = [ 172.21.248.50 ] ${temp_list} Verifies that the given item is not empty. Length is 1 @{temp_list} @{ns_ip_list} = [ 172.21.248.50 ] @{temp_list} ${temp_list} ${ns_ip_list} Combines the given ``lists`` together and returns the result. @{temp_list} = [ 172.21.248.50 ] 8a05419a-1103-40ea-9037-f7079f4fa2e9 ${ns_id} Logs the given message with the given level. 8a05419a-1103-40ea-9037-f7079f4fa2e9 @{vnf_id_list} ${ns_id} Get the list of VNF instances of a given NS instance id, and return it. ${ns_id} Verifies that the given item is not empty. Length is 36 @{vnf_list_string} osm vnf-list --ns ${ns_id} | grep ${ns_id} | awk '{print $2}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm vnf-list --ns 8a05419a-1103-40ea-9037-f7079f4fa2e9 | grep 8a05419a-1103-40ea-9037-f7079f4fa2e9 | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | 03e17819-5ec4-4513-bebb-cacc5b50d960 ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ 03e17819-5ec4-4513-bebb-cacc5b50d960 ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: 03e17819-5ec4-4513-bebb-cacc5b50d960 @{vnf_list} @{vnf_id_list} = [ 03e17819-5ec4-4513-bebb-cacc5b50d960 ] @{ns_ip_list} @{vnf_id_list} Obtain the list of IP addresses of all VM in a NS, and return it. @{vnf_list} Verifies that the given item is not empty. Length is 36 @{temp_list} Returns a list containing given items. @{temp_list} = [ ] ${vnf_id} @{vnf_list} 03e17819-5ec4-4513-bebb-cacc5b50d960 ${vnf_id} Logs the given message with the given level. 03e17819-5ec4-4513-bebb-cacc5b50d960 @{vnf_ip_list} ${vnf_id} Obtain the list of IP addresses of all VM in a VNF, and return it. ${vnf_id} Verifies that the given item is not empty. Length is 36 @{vnf_ip_list_string} osm vnf-list --filter id=${vnf_id} | grep -o '[0-9]\\{1,3\\}\\.[0-9]\\{1,3\\}\\.[0-9]\\{1,3\\}\\.[0-9]\\{1,3\\}' | sort -t: -u -k1,1 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm vnf-list --filter id=03e17819-5ec4-4513-bebb-cacc5b50d960 | grep -o '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}' | sort -t: -u -k1,1 2>&1'. @{vnf_ip_list_string} = [ 0 | 172.21.248.55 ] ${vnf_ip_list_string}[1] Verifies that the given item is not empty. Length is 13 @{vnf_ip_list} ${vnf_ip_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_ip_list} = [ 172.21.248.55 ] ${vnf_ip_list} Logs the given messages as separate entries using the INFO level. ['172.21.248.55'] ${vnf_ip_list} Verifies that the given item is not empty. Length is 1 @{vnf_ip_list} @{vnf_ip_list} = [ 172.21.248.55 ] @{temp_list} ${temp_list} ${vnf_ip_list} Combines the given ``lists`` together and returns the result. @{temp_list} = [ 172.21.248.55 ] ${temp_list} Verifies that the given item is not empty. Length is 1 @{temp_list} @{ns_ip_list} = [ 172.21.248.55 ] @{temp_list} ${temp_list} ${ns_ip_list} Combines the given ``lists`` together and returns the result. @{temp_list} = [ 172.21.248.50 | 172.21.248.55 ] f77a9dda-f78a-4d98-9ff0-20af95daa709 ${ns_id} Logs the given message with the given level. f77a9dda-f78a-4d98-9ff0-20af95daa709 @{vnf_id_list} ${ns_id} Get the list of VNF instances of a given NS instance id, and return it. ${ns_id} Verifies that the given item is not empty. Length is 36 @{vnf_list_string} osm vnf-list --ns ${ns_id} | grep ${ns_id} | awk '{print $2}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm vnf-list --ns f77a9dda-f78a-4d98-9ff0-20af95daa709 | grep f77a9dda-f78a-4d98-9ff0-20af95daa709 | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | d62f5da0-e54e-4e29-9b24-030d79f06a54 ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ d62f5da0-e54e-4e29-9b24-030d79f06a54 ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: d62f5da0-e54e-4e29-9b24-030d79f06a54 @{vnf_list} @{vnf_id_list} = [ d62f5da0-e54e-4e29-9b24-030d79f06a54 ] @{ns_ip_list} @{vnf_id_list} Obtain the list of IP addresses of all VM in a NS, and return it. @{vnf_list} Verifies that the given item is not empty. Length is 36 @{temp_list} Returns a list containing given items. @{temp_list} = [ ] ${vnf_id} @{vnf_list} d62f5da0-e54e-4e29-9b24-030d79f06a54 ${vnf_id} Logs the given message with the given level. d62f5da0-e54e-4e29-9b24-030d79f06a54 @{vnf_ip_list} ${vnf_id} Obtain the list of IP addresses of all VM in a VNF, and return it. ${vnf_id} Verifies that the given item is not empty. Length is 36 @{vnf_ip_list_string} osm vnf-list --filter id=${vnf_id} | grep -o '[0-9]\\{1,3\\}\\.[0-9]\\{1,3\\}\\.[0-9]\\{1,3\\}\\.[0-9]\\{1,3\\}' | sort -t: -u -k1,1 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm vnf-list --filter id=d62f5da0-e54e-4e29-9b24-030d79f06a54 | grep -o '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}' | sort -t: -u -k1,1 2>&1'. @{vnf_ip_list_string} = [ 0 | 172.21.249.96 ] ${vnf_ip_list_string}[1] Verifies that the given item is not empty. Length is 13 @{vnf_ip_list} ${vnf_ip_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_ip_list} = [ 172.21.249.96 ] ${vnf_ip_list} Logs the given messages as separate entries using the INFO level. ['172.21.249.96'] ${vnf_ip_list} Verifies that the given item is not empty. Length is 1 @{vnf_ip_list} @{vnf_ip_list} = [ 172.21.249.96 ] @{temp_list} ${temp_list} ${vnf_ip_list} Combines the given ``lists`` together and returns the result. @{temp_list} = [ 172.21.249.96 ] ${temp_list} Verifies that the given item is not empty. Length is 1 @{temp_list} @{ns_ip_list} = [ 172.21.249.96 ] @{temp_list} ${temp_list} ${ns_ip_list} Combines the given ``lists`` together and returns the result. @{temp_list} = [ 172.21.248.50 | 172.21.248.55 | 172.21.249.96 ] ${temp_list} Logs the length and contents of the ``list`` using given ``level``. List length is 3 and it contains following items: 0: 172.21.248.50 1: 172.21.248.55 2: 172.21.249.96 @{temp_list} @{ip_list} = [ 172.21.248.50 | 172.21.248.55 | 172.21.249.96 ] ${ip_list} is not None Fails if the given condition is not true. ${SLICE1_VNFS_IPS} ${ip_list} Makes a variable available everywhere within the scope of the current suite. ${SLICE1_VNFS_IPS} = ['172.21.248.50', '172.21.248.55', '172.21.249.96'] Obtains the list of IPs addresses in the first slice and sets the list as a suite variable (slice1_vnfs_ips) cluster_slices daily regression slice_02 60s Waiting for the network to be up Pauses the test executed for the given time. Slept 1 minute Waiting for the network to be up ${MGMT_VNF_IP} Ping a host several times during 30sec until it succeeds or raises a timeout. ${CONNECTIVITY_MAX_WAIT_TIME} ${CONNECTIVITY_POL_TIME} Test Ping Host ${host} Runs the specified keyword and retries if it fails. ${host} Run Ping Parameters: host: IP or name of the host Execution example: Ping Test ${host} ${rc} ${stdout} ping -c 2 -W 1 ${host} Runs the given command in the system and returns the RC and output. Running command 'ping -c 2 -W 1 172.21.248.55 2>&1'. ${rc} = 1 ${stdout} = PING 172.21.248.55 (172.21.248.55) 56(84) bytes of data. --- 172.21.248.55 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1022ms ${stdout} Logs the given message with the given level. PING 172.21.248.55 (172.21.248.55) 56(84) bytes of data. --- 172.21.248.55 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1022ms ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${host} Run Ping Parameters: host: IP or name of the host Execution example: Ping Test ${host} ${rc} ${stdout} ping -c 2 -W 1 ${host} Runs the given command in the system and returns the RC and output. Running command 'ping -c 2 -W 1 172.21.248.55 2>&1'. ${rc} = 1 ${stdout} = PING 172.21.248.55 (172.21.248.55) 56(84) bytes of data. --- 172.21.248.55 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1025ms ${stdout} Logs the given message with the given level. PING 172.21.248.55 (172.21.248.55) 56(84) bytes of data. --- 172.21.248.55 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1025ms ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${host} Run Ping Parameters: host: IP or name of the host Execution example: Ping Test ${host} ${rc} ${stdout} ping -c 2 -W 1 ${host} Runs the given command in the system and returns the RC and output. Running command 'ping -c 2 -W 1 172.21.248.55 2>&1'. ${rc} = 1 ${stdout} = PING 172.21.248.55 (172.21.248.55) 56(84) bytes of data. --- 172.21.248.55 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1025ms ${stdout} Logs the given message with the given level. PING 172.21.248.55 (172.21.248.55) 56(84) bytes of data. --- 172.21.248.55 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1025ms ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${host} Run Ping Parameters: host: IP or name of the host Execution example: Ping Test ${host} ${rc} ${stdout} ping -c 2 -W 1 ${host} Runs the given command in the system and returns the RC and output. Running command 'ping -c 2 -W 1 172.21.248.55 2>&1'. ${rc} = 1 ${stdout} = PING 172.21.248.55 (172.21.248.55) 56(84) bytes of data. --- 172.21.248.55 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1025ms ${stdout} Logs the given message with the given level. PING 172.21.248.55 (172.21.248.55) 56(84) bytes of data. --- 172.21.248.55 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1025ms ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${host} Run Ping Parameters: host: IP or name of the host Execution example: Ping Test ${host} ${rc} ${stdout} ping -c 2 -W 1 ${host} Runs the given command in the system and returns the RC and output. Running command 'ping -c 2 -W 1 172.21.248.55 2>&1'. ${rc} = 1 ${stdout} = PING 172.21.248.55 (172.21.248.55) 56(84) bytes of data. --- 172.21.248.55 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1027ms ${stdout} Logs the given message with the given level. PING 172.21.248.55 (172.21.248.55) 56(84) bytes of data. --- 172.21.248.55 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1027ms ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 Keyword 'Test Ping Host' failed after retrying for 30 seconds. The last error was: 1 != 0 Pings the slice middle vnf (mgmt_vnf_ip) cluster_slices daily regression slice_02 Keyword 'Test Ping Host' failed after retrying for 30 seconds. The last error was: 1 != 0 30s Waiting ssh daemon to be up Pauses the test executed for the given time. Slept 30 seconds Waiting ssh daemon to be up ${MGMT_VNF_IP} ${USERNAME} ${PASSWORD} ${PRIVATEKEY} Test the SSH connection to the host with the user and credentials passed as arguments. ${host} Opens a new SSH connection to the given ``host`` and ``port``. ${username} ${password} Logs into the SSH server with the given ``username`` and ``password``. ${username} ${privatekey} Logs into the SSH server using key-based authentication. Logging into '172.21.248.55:22' as 'ubuntu'. TimeoutError: timed out hostname Executes ``command`` on the remote machine and returns its outputs. Closes all open connections. SSH access to the slice middle vnf (mgmt_vnf_ip) with the credentials provided in the variables file cluster_slices daily regression slice_02 TimeoutError: timed out ${MGMT_VNF_IP} ${USERNAME} ${PASSWORD} ${PRIVATEKEY} @{SLICE1_VNFS_IPS} Connect via SSH to a remote host and test ping to a list of IP addresses, passed as argument. ${host} Opens a new SSH connection to the given ``host`` and ``port``. ${username} ${password} Logs into the SSH server with the given ``username`` and ``password``. ${username} ${privatekey} Logs into the SSH server using key-based authentication. Logging into '172.21.248.55:22' as 'ubuntu'. NoValidConnectionsError: [Errno None] Unable to connect to port 22 on 172.21.248.55 ${ip} @{ip_list} ${result} ping -c 5 -W 1 ${ip} > /dev/null && echo OK shell=True Executes ``command`` on the remote machine and returns its outputs. ${result} Logs the given message with the given level. ${result} OK Fails if ``container`` does not contain ``item`` one or more times. Closes all open connections. SSH access to the slice middle vnf (mgmt_vnf_ip) with the credentials provided in the variables file and pings all the IP addresses in the list (slice1_vnfs_ips) cluster_slices daily regression slice_02 NoValidConnectionsError: [Errno None] Unable to connect to port 22 on 172.21.248.55 ${SLICE_NAME} Delete Network Slice Instance (NSI) Parameters: slice_name: Name of the slice instance slice_delete_max_wait_time: Delete operation timeout Execution example: Delete NST ${slice_name} ${rc} ${stdout} osm nsi-delete ${slice_name} Runs the given command in the system and returns the RC and output. Running command 'osm nsi-delete slicebasic 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${stdout} Logs the given message with the given level. Deletion in progress ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${slice_delete_max_wait_time} ${slice_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${slice_delete_max_wait_time} = 240.0 ${slice_delete_max_wait_time} ${slice_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${slice_delete_max_wait_time} = 240.0 ${slice_delete_max_wait_time} ${SLICE_DELETE_POL_TIME} Check For Network Slice Instance To Be Deleted ${slice_name} Runs the specified keyword and retries if it fails. ${slice_name} Verify the slice instance is not present Parameters: slice_name: Name of the slice instance Execution example: Check For Network Slice Instance ${slice_name} ${rc} ${stdout} osm nsi-list | awk '{print $2}' | grep ${slice_name} Runs the given command in the system and returns the RC and output. Running command 'osm nsi-list | awk '{print $2}' | grep slicebasic 2>&1'. ${rc} = 0 ${stdout} = slicebasic ${rc},${stdout} Logs the given message with the given level. 0,slicebasic ${stdout} ${slice_name} Fails if objects are equal after converting them to strings. slicebasic == slicebasic ${slice_name} Verify the slice instance is not present Parameters: slice_name: Name of the slice instance Execution example: Check For Network Slice Instance ${slice_name} ${rc} ${stdout} osm nsi-list | awk '{print $2}' | grep ${slice_name} Runs the given command in the system and returns the RC and output. Running command 'osm nsi-list | awk '{print $2}' | grep slicebasic 2>&1'. ${rc} = 0 ${stdout} = slicebasic ${rc},${stdout} Logs the given message with the given level. 0,slicebasic ${stdout} ${slice_name} Fails if objects are equal after converting them to strings. slicebasic == slicebasic ${slice_name} Verify the slice instance is not present Parameters: slice_name: Name of the slice instance Execution example: Check For Network Slice Instance ${slice_name} ${rc} ${stdout} osm nsi-list | awk '{print $2}' | grep ${slice_name} Runs the given command in the system and returns the RC and output. Running command 'osm nsi-list | awk '{print $2}' | grep slicebasic 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${slice_name} Fails if objects are equal after converting them to strings. Stops the slice instance (slice_name) cleanup cluster_slices daily regression slice_02 ${slice1_count} ${SLICE_NAME} Returns the count of all the NS in a slice Parameters: slice_name: Name of the slice instance Execution example: ${slice_ns_count}= Get Slice Ns Count ${slice_name} ${slice_name} Verifies that the given item is not empty. Length is 10 ${rc} ${stdout} osm ns-list | grep ${slice_name} | wc -l 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | grep slicebasic | wc -l 2>&1'. ${rc} = 0 ${stdout} = 1 ${stdout} Logs the given message with the given level. 1 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${slice1_count} = 1 ${slice2_count} ${SLICE2_NAME} Returns the count of all the NS in a slice Parameters: slice_name: Name of the slice instance Execution example: ${slice_ns_count}= Get Slice Ns Count ${slice_name} ${slice_name} Verifies that the given item is not empty. Length is 11 ${rc} ${stdout} osm ns-list | grep ${slice_name} | wc -l 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | grep sliceshared | wc -l 2>&1'. ${rc} = 0 ${stdout} = 1 ${stdout} Logs the given message with the given level. 1 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${slice2_count} = 1 ${together} ${slice1_count} + ${slice2_count} Evaluates the given expression in Python and returns the result. ${together} = 2 ${together} 2 Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> Counts the NS in both slice instances and should be equal to 2 cluster_slices daily regression slice_02 @{ip_list} ${SLICE2_NAME} Retrieves the list of IP addresses that belong to each of the VNFs in the slice Parameters: slice_name: Name of the slice instance Execution example: @{slice_ip_address_list}= Get Slice Vnf Ip Addresses ${slice_name} @{slice_ns_list} ${slice_name} Retrieves the list of NS in a slice Parameters: slice_name: Name of the slice instance Execution example: @{slice_ns_list}= Get Slice Ns List ${slice_name} ${slice_name} Verifies that the given item is not empty. Length is 11 @{ns_list_string} osm ns-list | grep ${slice_name} | awk '{print $4}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | grep sliceshared | awk '{print $4}' 2>&1'. @{ns_list_string} = [ 0 | c8acdafc-d48d-4635-82dd-e93a624ad3fc ] @{ns_list} ${ns_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{ns_list} = [ c8acdafc-d48d-4635-82dd-e93a624ad3fc ] ${ns_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: c8acdafc-d48d-4635-82dd-e93a624ad3fc @{ns_list} @{slice_ns_list} = [ c8acdafc-d48d-4635-82dd-e93a624ad3fc ] @{slice_ns_list} Logs the given messages as separate entries using the INFO level. c8acdafc-d48d-4635-82dd-e93a624ad3fc @{temp_list} Returns a list containing given items. @{temp_list} = [ ] ${ns_id} @{slice_ns_list} c8acdafc-d48d-4635-82dd-e93a624ad3fc ${ns_id} Logs the given message with the given level. c8acdafc-d48d-4635-82dd-e93a624ad3fc @{vnf_id_list} ${ns_id} Get the list of VNF instances of a given NS instance id, and return it. ${ns_id} Verifies that the given item is not empty. Length is 36 @{vnf_list_string} osm vnf-list --ns ${ns_id} | grep ${ns_id} | awk '{print $2}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm vnf-list --ns c8acdafc-d48d-4635-82dd-e93a624ad3fc | grep c8acdafc-d48d-4635-82dd-e93a624ad3fc | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | 71cde5dc-90b4-41e3-8173-caccf79e47db ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ 71cde5dc-90b4-41e3-8173-caccf79e47db ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: 71cde5dc-90b4-41e3-8173-caccf79e47db @{vnf_list} @{vnf_id_list} = [ 71cde5dc-90b4-41e3-8173-caccf79e47db ] @{ns_ip_list} @{vnf_id_list} Obtain the list of IP addresses of all VM in a NS, and return it. @{vnf_list} Verifies that the given item is not empty. Length is 36 @{temp_list} Returns a list containing given items. @{temp_list} = [ ] ${vnf_id} @{vnf_list} 71cde5dc-90b4-41e3-8173-caccf79e47db ${vnf_id} Logs the given message with the given level. 71cde5dc-90b4-41e3-8173-caccf79e47db @{vnf_ip_list} ${vnf_id} Obtain the list of IP addresses of all VM in a VNF, and return it. ${vnf_id} Verifies that the given item is not empty. Length is 36 @{vnf_ip_list_string} osm vnf-list --filter id=${vnf_id} | grep -o '[0-9]\\{1,3\\}\\.[0-9]\\{1,3\\}\\.[0-9]\\{1,3\\}\\.[0-9]\\{1,3\\}' | sort -t: -u -k1,1 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm vnf-list --filter id=71cde5dc-90b4-41e3-8173-caccf79e47db | grep -o '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}' | sort -t: -u -k1,1 2>&1'. @{vnf_ip_list_string} = [ 0 | 172.21.249.244 ] ${vnf_ip_list_string}[1] Verifies that the given item is not empty. Length is 14 @{vnf_ip_list} ${vnf_ip_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_ip_list} = [ 172.21.249.244 ] ${vnf_ip_list} Logs the given messages as separate entries using the INFO level. ['172.21.249.244'] ${vnf_ip_list} Verifies that the given item is not empty. Length is 1 @{vnf_ip_list} @{vnf_ip_list} = [ 172.21.249.244 ] @{temp_list} ${temp_list} ${vnf_ip_list} Combines the given ``lists`` together and returns the result. @{temp_list} = [ 172.21.249.244 ] ${temp_list} Verifies that the given item is not empty. Length is 1 @{temp_list} @{ns_ip_list} = [ 172.21.249.244 ] @{temp_list} ${temp_list} ${ns_ip_list} Combines the given ``lists`` together and returns the result. @{temp_list} = [ 172.21.249.244 ] ${temp_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: 172.21.249.244 @{temp_list} @{ip_list} = [ 172.21.249.244 ] ${ip_list} is not None Fails if the given condition is not true. ${SLICE2_VNFS_IPS} ${ip_list} Makes a variable available everywhere within the scope of the current suite. ${SLICE2_VNFS_IPS} = ['172.21.249.244'] Obtains the list of IPs addresses in the second slice and sets the list as a suite variable (slice2_vnfs_ips) cluster_slices daily regression slice_02 ${MGMT_VNF_IP} ${USERNAME} ${PASSWORD} ${PRIVATEKEY} @{SLICE2_VNFS_IPS} Connect via SSH to a remote host and test ping to a list of IP addresses, passed as argument. ${host} Opens a new SSH connection to the given ``host`` and ``port``. ${username} ${password} Logs into the SSH server with the given ``username`` and ``password``. ${username} ${privatekey} Logs into the SSH server using key-based authentication. Logging into '172.21.248.55:22' as 'ubuntu'. TimeoutError: timed out ${ip} @{ip_list} ${result} ping -c 5 -W 1 ${ip} > /dev/null && echo OK shell=True Executes ``command`` on the remote machine and returns its outputs. ${result} Logs the given message with the given level. ${result} OK Fails if ``container`` does not contain ``item`` one or more times. Closes all open connections. SSH access to the slice middle vnf (mgmt_vnf_ip) with the credentials provided in the variables file and pings all the IP addresses in the list (slice2_vnfs_ips) cluster_slices daily regression slice_02 TimeoutError: timed out ${SLICE2_NAME} Delete Network Slice Instance (NSI) Parameters: slice_name: Name of the slice instance slice_delete_max_wait_time: Delete operation timeout Execution example: Delete NST ${slice_name} ${rc} ${stdout} osm nsi-delete ${slice_name} Runs the given command in the system and returns the RC and output. Running command 'osm nsi-delete sliceshared 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${stdout} Logs the given message with the given level. Deletion in progress ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${slice_delete_max_wait_time} ${slice_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${slice_delete_max_wait_time} = 240.0 ${slice_delete_max_wait_time} ${slice_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${slice_delete_max_wait_time} = 240.0 ${slice_delete_max_wait_time} ${SLICE_DELETE_POL_TIME} Check For Network Slice Instance To Be Deleted ${slice_name} Runs the specified keyword and retries if it fails. ${slice_name} Verify the slice instance is not present Parameters: slice_name: Name of the slice instance Execution example: Check For Network Slice Instance ${slice_name} ${rc} ${stdout} osm nsi-list | awk '{print $2}' | grep ${slice_name} Runs the given command in the system and returns the RC and output. Running command 'osm nsi-list | awk '{print $2}' | grep sliceshared 2>&1'. ${rc} = 0 ${stdout} = sliceshared ${rc},${stdout} Logs the given message with the given level. 0,sliceshared ${stdout} ${slice_name} Fails if objects are equal after converting them to strings. sliceshared == sliceshared ${slice_name} Verify the slice instance is not present Parameters: slice_name: Name of the slice instance Execution example: Check For Network Slice Instance ${slice_name} ${rc} ${stdout} osm nsi-list | awk '{print $2}' | grep ${slice_name} Runs the given command in the system and returns the RC and output. Running command 'osm nsi-list | awk '{print $2}' | grep sliceshared 2>&1'. ${rc} = 0 ${stdout} = sliceshared ${rc},${stdout} Logs the given message with the given level. 0,sliceshared ${stdout} ${slice_name} Fails if objects are equal after converting them to strings. sliceshared == sliceshared ${slice_name} Verify the slice instance is not present Parameters: slice_name: Name of the slice instance Execution example: Check For Network Slice Instance ${slice_name} ${rc} ${stdout} osm nsi-list | awk '{print $2}' | grep ${slice_name} Runs the given command in the system and returns the RC and output. Running command 'osm nsi-list | awk '{print $2}' | grep sliceshared 2>&1'. ${rc} = 0 ${stdout} = sliceshared ${rc},${stdout} Logs the given message with the given level. 0,sliceshared ${stdout} ${slice_name} Fails if objects are equal after converting them to strings. sliceshared == sliceshared ${slice_name} Verify the slice instance is not present Parameters: slice_name: Name of the slice instance Execution example: Check For Network Slice Instance ${slice_name} ${rc} ${stdout} osm nsi-list | awk '{print $2}' | grep ${slice_name} Runs the given command in the system and returns the RC and output. Running command 'osm nsi-list | awk '{print $2}' | grep sliceshared 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${slice_name} Fails if objects are equal after converting them to strings. Stops the slice instance (slice2_name) cleanup cluster_slices daily regression slice_02 ${NST_NAME} Delete a Network Slice Template (NST) from OSM. ${rc} ${stdout} osm netslice-template-delete ${nst_id} Runs the given command in the system and returns the RC and output. Running command 'osm netslice-template-delete slice_basic_nst 2>&1'. ${rc} = 0 ${stdout} = Deleted ${stdout} Logs the given message with the given level. Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${NST_DELETE_MAX_WAIT_TIME} ${NST_DELETE_POL_TIME} Check For NST ${nst_id} Runs the specified keyword and retries if it fails. ${nst_id} Check that a Network Slice Template (NST) exists in OSM. ${rc} ${stdout} osm netslice-template-list | awk '{print $2}' | grep ${nst_id} Runs the given command in the system and returns the RC and output. Running command 'osm netslice-template-list | awk '{print $2}' | grep slice_basic_nst 2>&1'. ${rc} = 0 ${stdout} = slice_basic_nst2 ${rc},${stdout} Logs the given message with the given level. 0,slice_basic_nst2 ${stdout} ${nst_id} Fails if objects are equal after converting them to strings. Deletes the NST (nst_name) from OSM cleanup cluster_slices daily regression slice_02 ${NST2_NAME} Delete a Network Slice Template (NST) from OSM. ${rc} ${stdout} osm netslice-template-delete ${nst_id} Runs the given command in the system and returns the RC and output. Running command 'osm netslice-template-delete slice_basic_nst2 2>&1'. ${rc} = 0 ${stdout} = Deleted ${stdout} Logs the given message with the given level. Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${NST_DELETE_MAX_WAIT_TIME} ${NST_DELETE_POL_TIME} Check For NST ${nst_id} Runs the specified keyword and retries if it fails. ${nst_id} Check that a Network Slice Template (NST) exists in OSM. ${rc} ${stdout} osm netslice-template-list | awk '{print $2}' | grep ${nst_id} Runs the given command in the system and returns the RC and output. Running command 'osm netslice-template-list | awk '{print $2}' | grep slice_basic_nst2 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${nst_id} Fails if objects are equal after converting them to strings. Deletes the NST (nst2_name) from OSM cleanup cluster_slices daily regression slice_02 ${NSD1_NAME} Delete a NS package from OSM. ${rc} ${stdout} Run And Return Rc And Output osm nspkg-delete ${nsd_id} Runs the keyword and continues execution even if a failure occurs. osm nspkg-delete ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-delete slice_basic_ns 2>&1'. ${rc} = 0 ${stdout} = Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Logs the given message with the given level. Deleted ${NSD_DELETE_MAX_WAIT_TIME} ${NSD_DELETE_POL_TIME} Check For NSD ${nsd_id} Runs the specified keyword and retries if it fails. ${nsd_id} Check that a NS package exists in OSM. ${rc} ${stdout} osm nspkg-list | awk '{print $2}' | grep ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-list | awk '{print $2}' | grep slice_basic_ns 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. ${NSD2_NAME} Delete a NS package from OSM. ${rc} ${stdout} Run And Return Rc And Output osm nspkg-delete ${nsd_id} Runs the keyword and continues execution even if a failure occurs. osm nspkg-delete ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-delete slice_basic_middle_ns 2>&1'. ${rc} = 0 ${stdout} = Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Logs the given message with the given level. Deleted ${NSD_DELETE_MAX_WAIT_TIME} ${NSD_DELETE_POL_TIME} Check For NSD ${nsd_id} Runs the specified keyword and retries if it fails. ${nsd_id} Check that a NS package exists in OSM. ${rc} ${stdout} osm nspkg-list | awk '{print $2}' | grep ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-list | awk '{print $2}' | grep slice_basic_middle_ns 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. Deletes all the NSDs created for the test: nsd1_name, nsd2_name cleanup cluster_slices daily regression slice_02 ${VNFD1_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete slice_basic_vnf 2>&1'. ${rc} = 0 ${stdout} = Deleted ${stdout} Logs the given message with the given level. Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep slice_basic_vnf 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. ${VNFD2_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete slice_basic_middle_vnf 2>&1'. ${rc} = 0 ${stdout} = Deleted ${stdout} Logs the given message with the given level. Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep slice_basic_middle_vnf 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. Deletes all the VNFDs created for the test: vnfd1_name, vnfd2_name cleanup cluster_slices daily regression slice_02 Suite Cleanup Runs the given keyword with the given arguments and ignores possible error. Test Suit Cleanup: Deleting Descriptors, instance and templates Delete NSI ${SLICE_NAME} Runs the given keyword with the given arguments, if one or more tests failed. ${SLICE_NAME} Delete Network Slice Instance (NSI) Parameters: slice_name: Name of the slice instance slice_delete_max_wait_time: Delete operation timeout Execution example: Delete NST ${slice_name} ${rc} ${stdout} osm nsi-delete ${slice_name} Runs the given command in the system and returns the RC and output. Running command 'osm nsi-delete slicebasic 2>&1'. ${rc} = 1 ${stdout} = ERROR: nsi slicebasic not found ${stdout} Logs the given message with the given level. ERROR: nsi slicebasic not found ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${slice_delete_max_wait_time} ${slice_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${slice_delete_max_wait_time} = 240.0 ${slice_delete_max_wait_time} ${slice_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${slice_delete_max_wait_time} = 240.0 ${slice_delete_max_wait_time} ${SLICE_DELETE_POL_TIME} Check For Network Slice Instance To Be Deleted ${slice_name} Runs the specified keyword and retries if it fails. ${slice_name} Verify the slice instance is not present Parameters: slice_name: Name of the slice instance Execution example: Check For Network Slice Instance ${slice_name} ${rc} ${stdout} osm nsi-list | awk '{print $2}' | grep ${slice_name} Runs the given command in the system and returns the RC and output. Running command 'osm nsi-list | awk '{print $2}' | grep slicebasic 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${slice_name} Fails if objects are equal after converting them to strings. Delete NSI ${SLICE2_NAME} Runs the given keyword with the given arguments, if one or more tests failed. ${SLICE2_NAME} Delete Network Slice Instance (NSI) Parameters: slice_name: Name of the slice instance slice_delete_max_wait_time: Delete operation timeout Execution example: Delete NST ${slice_name} ${rc} ${stdout} osm nsi-delete ${slice_name} Runs the given command in the system and returns the RC and output. Running command 'osm nsi-delete sliceshared 2>&1'. ${rc} = 1 ${stdout} = ERROR: nsi sliceshared not found ${stdout} Logs the given message with the given level. ERROR: nsi sliceshared not found ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${slice_delete_max_wait_time} ${slice_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${slice_delete_max_wait_time} = 240.0 ${slice_delete_max_wait_time} ${slice_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${slice_delete_max_wait_time} = 240.0 ${slice_delete_max_wait_time} ${SLICE_DELETE_POL_TIME} Check For Network Slice Instance To Be Deleted ${slice_name} Runs the specified keyword and retries if it fails. ${slice_name} Verify the slice instance is not present Parameters: slice_name: Name of the slice instance Execution example: Check For Network Slice Instance ${slice_name} ${rc} ${stdout} osm nsi-list | awk '{print $2}' | grep ${slice_name} Runs the given command in the system and returns the RC and output. Running command 'osm nsi-list | awk '{print $2}' | grep sliceshared 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${slice_name} Fails if objects are equal after converting them to strings. Delete NST ${NST_NAME} Runs the given keyword with the given arguments, if one or more tests failed. ${NST_NAME} Delete a Network Slice Template (NST) from OSM. ${rc} ${stdout} osm netslice-template-delete ${nst_id} Runs the given command in the system and returns the RC and output. Running command 'osm netslice-template-delete slice_basic_nst 2>&1'. ${rc} = 1 ${stdout} = ERROR: nst slice_basic_nst not found ${stdout} Logs the given message with the given level. ERROR: nst slice_basic_nst not found ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${NST_DELETE_MAX_WAIT_TIME} ${NST_DELETE_POL_TIME} Check For NST ${nst_id} Runs the specified keyword and retries if it fails. ${nst_id} Check that a Network Slice Template (NST) exists in OSM. ${rc} ${stdout} osm netslice-template-list | awk '{print $2}' | grep ${nst_id} Runs the given command in the system and returns the RC and output. Running command 'osm netslice-template-list | awk '{print $2}' | grep slice_basic_nst 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${nst_id} Fails if objects are equal after converting them to strings. Delete NST ${NST2_NAME} Runs the given keyword with the given arguments, if one or more tests failed. ${NST2_NAME} Delete a Network Slice Template (NST) from OSM. ${rc} ${stdout} osm netslice-template-delete ${nst_id} Runs the given command in the system and returns the RC and output. Running command 'osm netslice-template-delete slice_basic_nst2 2>&1'. ${rc} = 1 ${stdout} = ERROR: nst slice_basic_nst2 not found ${stdout} Logs the given message with the given level. ERROR: nst slice_basic_nst2 not found ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${NST_DELETE_MAX_WAIT_TIME} ${NST_DELETE_POL_TIME} Check For NST ${nst_id} Runs the specified keyword and retries if it fails. ${nst_id} Check that a Network Slice Template (NST) exists in OSM. ${rc} ${stdout} osm netslice-template-list | awk '{print $2}' | grep ${nst_id} Runs the given command in the system and returns the RC and output. Running command 'osm netslice-template-list | awk '{print $2}' | grep slice_basic_nst2 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${nst_id} Fails if objects are equal after converting them to strings. Delete NSD ${NSD1_NAME} Runs the given keyword with the given arguments, if one or more tests failed. ${NSD1_NAME} Delete a NS package from OSM. ${rc} ${stdout} Run And Return Rc And Output osm nspkg-delete ${nsd_id} Runs the keyword and continues execution even if a failure occurs. osm nspkg-delete ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-delete slice_basic_ns 2>&1'. ${rc} = 1 ${stdout} = ERROR: nsd slice_basic_ns not found ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${stdout} Logs the given message with the given level. ERROR: nsd slice_basic_ns not found ${NSD_DELETE_MAX_WAIT_TIME} ${NSD_DELETE_POL_TIME} Check For NSD ${nsd_id} Runs the specified keyword and retries if it fails. ${nsd_id} Check that a NS package exists in OSM. ${rc} ${stdout} osm nspkg-list | awk '{print $2}' | grep ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-list | awk '{print $2}' | grep slice_basic_ns 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. Delete NSD ${NSD2_NAME} Runs the given keyword with the given arguments, if one or more tests failed. ${NSD2_NAME} Delete a NS package from OSM. ${rc} ${stdout} Run And Return Rc And Output osm nspkg-delete ${nsd_id} Runs the keyword and continues execution even if a failure occurs. osm nspkg-delete ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-delete slice_basic_middle_ns 2>&1'. ${rc} = 1 ${stdout} = ERROR: nsd slice_basic_middle_ns not found ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${stdout} Logs the given message with the given level. ERROR: nsd slice_basic_middle_ns not found ${NSD_DELETE_MAX_WAIT_TIME} ${NSD_DELETE_POL_TIME} Check For NSD ${nsd_id} Runs the specified keyword and retries if it fails. ${nsd_id} Check that a NS package exists in OSM. ${rc} ${stdout} osm nspkg-list | awk '{print $2}' | grep ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-list | awk '{print $2}' | grep slice_basic_middle_ns 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. Delete VNFD ${VNFD1_NAME} Runs the given keyword with the given arguments, if one or more tests failed. ${VNFD1_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete slice_basic_vnf 2>&1'. ${rc} = 1 ${stdout} = ERROR: vnfd slice_basic_vnf not found ${stdout} Logs the given message with the given level. ERROR: vnfd slice_basic_vnf not found ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep slice_basic_vnf 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. Delete VNFD ${VNFD2_NAME} Runs the given keyword with the given arguments, if one or more tests failed. ${VNFD2_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete slice_basic_middle_vnf 2>&1'. ${rc} = 1 ${stdout} = ERROR: vnfd slice_basic_middle_vnf not found ${stdout} Logs the given message with the given level. ERROR: vnfd slice_basic_middle_vnf not found ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep slice_basic_middle_vnf 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. [SLICE-02] Shared Network Slicing. Get the list of VNF packages and log it. ${rc} ${stdout} osm vnfpkg-list Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list 2>&1'. ${rc} = 0 ${stdout} = +------------+----+-----------+ | nfpkg name | id | desc type | +------------+----+-----------+ +------------+----+-----------+ ${stdout} Logs the given message with the given level. +------------+----+-----------+ | nfpkg name | id | desc type | +------------+----+-----------+ +------------+----+-----------+ ${rc} Logs the given message with the given level. 0 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${id} '%{PACKAGES_FOLDER}/${VNFD_PKG}' Onboards ("creates") a NF Package into OSM. - Parameters: - vnfd_pkg: Name (and location) of the NF Package - overrides (optional): String with options to override the EPA and/or interface properties of the Package. This is very useful to allow to deploy e.g. non-EPA packages in EPA VIMs (or vice-versa). Valid strings are the same as in the command. E.g.: - `--override-epa`: adds EPA attributes to all VDUs. - `--override-nonepa`: removes all EPA attributes from all VDUs. - `--override-paravirt`: converts all interfaces to `PARAVIRT`. This one can be combined with the others above (e.g. '--override-nonepa --override-paravirt'). - Relevant environment variables: - OVERRIDES: If the environment variable "OVERRIDES" exists, it prevails over the value in the argument. This is often more convenient to enforce the same behaviour for every test run in a given VIM. ${overrides} OVERRIDES default=${overrides} Returns the value of an environment variable with the given name. ${overrides} = ${rc} ${stdout} osm vnfpkg-create ${overrides} ${vnfd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-create '/robot-systest/osm-packages/hackfest_basic_metrics_vnf' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/hackfest_basic_metrics_vnf Validation OK List of charms in the descriptor: set() Adding File: hackfest_basic_metrics_vnf Package created: /robot-systest/... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/hackfest_basic_metrics_vnf Validation OK List of charms in the descriptor: set() Adding File: hackfest_basic_metrics_vnf Package created: /robot-systest/osm-packages/hackfest_basic_metrics_vnf.tar.gz Uploading package /robot-systest/osm-packages/hackfest_basic_metrics_vnf.tar.gz 82aa16cb-2efa-4243-a703-2fb2cdb75a85 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 7 lines ${lines} = 7 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 6 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = 82aa16cb-2efa-4243-a703-2fb2cdb75a85 ${id} ${id} = 82aa16cb-2efa-4243-a703-2fb2cdb75a85 ${id} Logs the given message with the given level. 82aa16cb-2efa-4243-a703-2fb2cdb75a85 ${CREATED_VIM_ACCOUNT_ID} %{VIM_TARGET} Get from OSM the VIM account id associated to the VIM account name passed as parameter. ${rc} ${stdout} osm vim-list | grep " ${vim_name} " | awk '{print $4}' Runs the given command in the system and returns the RC and output. Running command 'osm vim-list | grep " osm " | awk '{print $4}' 2>&1'. ${rc} = 0 ${stdout} = 85764c05-53df-46c7-a9c8-e9e51d2283b7 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${EMPTY} msg=VIM Target '${vim_name}' not found values=false Fails if objects are equal after converting them to strings. ${stdout} ${CREATED_VIM_ACCOUNT_ID} = 85764c05-53df-46c7-a9c8-e9e51d2283b7 ${CREATED_VIM_ACCOUNT_ID} Makes a variable available everywhere within the scope of the current suite. ${CREATED_VIM_ACCOUNT_ID} = 85764c05-53df-46c7-a9c8-e9e51d2283b7 Send a REST POST message to OSM to get an authentication token, and store the authentication token in a suite variable to be used later on. Set the REST_API_HOST suite variable from OSM_HOSTNAME env variable ${nbi_host} OSM_HOSTNAME Returns the value of an environment variable with the given name. ${nbi_host} = 172.21.249.226 ${passed} Should Contain ${nbi_host} : Runs the given keyword with given arguments and returns the status as a Boolean value. ${nbi_host} : Fails if ``container`` does not contain ``item`` one or more times. '172.21.249.226' does not contain ':' ${passed} = False ${nbi_host} Set the suite variable REST_API_HOST to be used in this library and the testsuites using it. This method must be used if the tests are run from a container in the same K8s cluster where OSM is running. ${nbi_host} Set a suite variable REST_API_HOST to be used in this library and the testsuites using it. This method must be used if the tests are run from any place outside the K8s cluster where OSM is running. ${REST_API_HOST} https://${env_host}:9999 Makes a variable available everywhere within the scope of the current suite. ${REST_API_HOST} = https://172.21.249.226:9999 osmhit ${REST_API_HOST} disable_warnings=1 Create Session: create a HTTP session to a server Creating Session using : alias=osmhit, url=https://172.21.249.226:9999, headers={}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 &{headers} Content-Type=application/json Accept=application/json Creates and returns a dictionary based on the given ``items``. &{headers} = { Content-Type=application/json | Accept=application/json } &{data} username=${OSM_USER} password=${OSM_PASSWORD} project-id=${OSM_PROJECT} Creates and returns a dictionary based on the given ``items``. &{data} = { username=admin | password=admin | project-id=admin } ${resp} osmhit ${AUTH_TOKEN_URI} json=${data} headers=${headers} Sends a POST request on a previously created HTTP Session. POST Request : url=https://172.21.249.226:9999/osm/admin/v1/tokens path_url=/osm/admin/v1/tokens headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Content-Length': '65'} body=b'{"username": "admin", "password": "admin", "project-id": "admin"}' POST Response : url=https://172.21.249.226:9999/osm/admin/v1/tokens status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Mon, 19 Feb 2024 05:59:51 GMT', 'Www-Authenticate': 'Bearer realm="Needed a token or Authorization http header"', 'Location': '/osm/admin/v1/tokens/M86e6LW8NLE653VUm9zo35pqgY61w7HS', 'Content-Length': '655', 'Set-Cookie': 'session_id=281e676393b58ca85a86fff6cda24b6e6bc70328; expires=Mon, 19 Feb 2024 06:59:51 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "issued_at": 1708322391.3202026, "expires": 1708325991.3202026, "_id": "M86e6LW8NLE653VUm9zo35pqgY61w7HS", "id": "M86e6LW8NLE653VUm9zo35pqgY61w7HS", "project_id": "0658771c-e387-4292-a51e-090f213f77c7", "project_name": "admin", "username": "admin", "user_id": "6f8a9822-aeed-41ff-a40f-c415aa977b1d", "admin": true, "roles": [ { "name": "system_admin", "id": "db8ed9d6-d198-42b0-b653-bb397576f11a" } ], "login_count": 0, "last_login": 1708322391.158122, "admin_show": true, "user_show": false, "remote_port": 52345, "remote_host": "10.244.0.1" } ${resp} = <Response [200]> ${resp} Logs the given message with the given level. <Response [200]> ${resp.status_code} in ${SUCCESS_STATUS_CODE_LIST} Get Auth Token completed Conditionally skips rest of the current test, setup, or teardown with PASS status. ${TOKEN_STATUS_CODE} ${resp.status_code} Makes a variable available everywhere within the scope of the current suite. ${TOKEN_STATUS_CODE} = 200 ${access_token} ${resp.json()} $..id Get Value From JSON using JSONPath ${access_token} = ['M86e6LW8NLE653VUm9zo35pqgY61w7HS', 'db8ed9d6-d198-42b0-b653-bb397576f11a'] ${ACCESS_TOKEN} ${access_token[0]} Makes a variable available everywhere within the scope of the current test. ${ACCESS_TOKEN} = M86e6LW8NLE653VUm9zo35pqgY61w7HS ${TOKEN_RESPONSE} ${resp} Makes a variable available everywhere within the scope of the current test. ${TOKEN_RESPONSE} = <Response [200]> 2s Pauses the test executed for the given time. Slept 2 seconds ${json_path} Read Current Directory and return it ${Directory} /robot-systest/lib lib resources Replaces ``search_for`` in the given ``string`` with ``replace_with``. ${Directory} = /robot-systest/resources ${json_path} ${Directory} Returns the given values which can then be assigned to a variables. ${json_path} = /robot-systest/resources ${json_path} ${json_path} = /robot-systest/resources ${json_obj} ${json_path}/sol003_01-vnf-lifecycle-management.json Load JSON from file. ${json_obj} = {'data': [{'vnfdId': 'hackfest_basic_metrics-vnf', 'vnfInstanceName': 'sol003-instance', 'vnfInstanceDescription': 'Test vnfm instance description', 'vimAccountId': '8dc2f11d-e08a-4ec7-920c-6b8a88bff1... ${json_obj} ${json_obj['data'][0]} Returns variable value or ``default`` if the variable does not exist. ${json_obj} = {'vnfdId': 'hackfest_basic_metrics-vnf', 'vnfInstanceName': 'sol003-instance', 'vnfInstanceDescription': 'Test vnfm instance description', 'vimAccountId': '8dc2f11d-e08a-4ec7-920c-6b8a88bff1e5', 'addi... ${UPDATED_JSON_OBJ} ${json_obj} $..vimAccountId ${CREATED_VIM_ACCOUNT_ID} Update value to JSON using JSONPath ${UPDATED_JSON_OBJ} = {'vnfdId': 'hackfest_basic_metrics-vnf', 'vnfInstanceName': 'sol003-instance', 'vnfInstanceDescription': 'Test vnfm instance description', 'vimAccountId': '85764c05-53df-46c7-a9c8-e9e51d2283b7', 'addi... ${UPDATED_JSON_OBJ} Logs the given message with the given level. {'vnfdId': 'hackfest_basic_metrics-vnf', 'vnfInstanceName': 'sol003-instance', 'vnfInstanceDescription': 'Test vnfm instance description', 'vimAccountId': '85764c05-53df-46c7-a9c8-e9e51d2283b7', 'additionalParams': {'virtual-link-desc': [{'id': 'mgmtnet', 'mgmt-network': True}], 'constituent-cpd-id': 'vnf-cp0-ext', 'virtual-link-profile-id': 'mgmtnet'}} ${UPDATED_JSON_OBJ} ${UPDATED_JSON_OBJ} $..additionalParams.virtual-link-desc[0][id] %{VIM_MGMT_NET} Update value to JSON using JSONPath ${UPDATED_JSON_OBJ} = {'vnfdId': 'hackfest_basic_metrics-vnf', 'vnfInstanceName': 'sol003-instance', 'vnfInstanceDescription': 'Test vnfm instance description', 'vimAccountId': '85764c05-53df-46c7-a9c8-e9e51d2283b7', 'addi... ${UPDATED_JSON_OBJ} Logs the given message with the given level. {'vnfdId': 'hackfest_basic_metrics-vnf', 'vnfInstanceName': 'sol003-instance', 'vnfInstanceDescription': 'Test vnfm instance description', 'vimAccountId': '85764c05-53df-46c7-a9c8-e9e51d2283b7', 'additionalParams': {'virtual-link-desc': [{'id': 'osm-ext', 'mgmt-network': True}], 'constituent-cpd-id': 'vnf-cp0-ext', 'virtual-link-profile-id': 'mgmtnet'}} ${UPDATED_JSON_OBJ} ${UPDATED_JSON_OBJ} $..additionalParams.virtual-link-profile-id %{VIM_MGMT_NET} Update value to JSON using JSONPath ${UPDATED_JSON_OBJ} = {'vnfdId': 'hackfest_basic_metrics-vnf', 'vnfInstanceName': 'sol003-instance', 'vnfInstanceDescription': 'Test vnfm instance description', 'vimAccountId': '85764c05-53df-46c7-a9c8-e9e51d2283b7', 'addi... ${UPDATED_JSON_OBJ} Logs the given message with the given level. {'vnfdId': 'hackfest_basic_metrics-vnf', 'vnfInstanceName': 'sol003-instance', 'vnfInstanceDescription': 'Test vnfm instance description', 'vimAccountId': '85764c05-53df-46c7-a9c8-e9e51d2283b7', 'additionalParams': {'virtual-link-desc': [{'id': 'osm-ext', 'mgmt-network': True}], 'constituent-cpd-id': 'vnf-cp0-ext', 'virtual-link-profile-id': 'osm-ext'}} ${UPDATED_JSON_OBJ} Makes a variable available everywhere within the scope of the current test. ${UPDATED_JSON_OBJ} = {'vnfdId': 'hackfest_basic_metrics-vnf', 'vnfInstanceName': 'sol003-instance', 'vnfInstanceDescription': 'Test vnfm instance description', 'vimAccountId': '85764c05-53df-46c7-a9c8-e9e51d2283b7', 'addi... ${VNF_INSTANCE_URI} ${UPDATED_JSON_OBJ} Send to OSM a POST API message to OSM to the given uri with the given json data, and save response and status code in suite variables to be used later on. APISession ${REST_API_HOST} Create Session: create a HTTP session to a server Creating Session using : alias=APISession, url=https://172.21.249.226:9999, headers={}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 &{headers} Content-Type=application/json Accept=application/json Authorization=Bearer ${ACCESS_TOKEN} Creates and returns a dictionary based on the given ``items``. &{headers} = { Content-Type=application/json | Accept=application/json | Authorization=Bearer M86e6LW8NLE653VUm9zo35pqgY61w7HS } ${request_response} APISession ${PostApi} json=${json_data} headers=${headers} Sends a POST request on a previously created HTTP Session. POST Request : url=https://172.21.249.226:9999/osm/vnflcm/v1/vnf_instances path_url=/osm/vnflcm/v1/vnf_instances headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer M86e6LW8NLE653VUm9zo35pqgY61w7HS', 'Content-Length': '355'} body=b'{"vnfdId": "hackfest_basic_metrics-vnf", "vnfInstanceName": "sol003-instance", "vnfInstanceDescription": "Test vnfm instance description", "vimAccountId": "85764c05-53df-46c7-a9c8-e9e51d2283b7", "additionalParams": {"virtual-link-desc": [{"id": "osm-ext", "mgmt-network": true}], "constituent-cpd-id": "vnf-cp0-ext", "virtual-link-profile-id": "osm-ext"}}' POST Response : url=https://172.21.249.226:9999/osm/vnflcm/v1/vnf_instances status=201, reason=Created headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Mon, 19 Feb 2024 05:59:54 GMT', 'Location': '/osm/vnflcm/v1/vnf_instances/504f12c0-57cd-4179-933f-a64edb592ed5', 'Content-Length': '53', 'Set-Cookie': 'session_id=275addf6d03c8b3e1fd79cff7fead54620e3bb07; expires=Mon, 19 Feb 2024 06:59:54 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "id": "504f12c0-57cd-4179-933f-a64edb592ed5" } ${request_response} = <Response [201]> ${REQUEST_RESPONSE} ${request_response} Makes a variable available everywhere within the scope of the current suite. ${REQUEST_RESPONSE} = <Response [201]> ${response_statuscode} ${request_response.status_code} Converts the given item to a Unicode string. ${response_statuscode} = 201 ${RESPONSE_STATUSCODE} ${response_statuscode} Makes a variable available everywhere within the scope of the current suite. ${RESPONSE_STATUSCODE} = 201 ${request_response.status_code} in ${SUCCESS_STATUS_CODE_LIST} Query VNF Instance completed Conditionally skips rest of the current test, setup, or teardown with PASS status. ${id} ${request_response.json()} $..id Get Value From JSON using JSONPath ${id} = ['504f12c0-57cd-4179-933f-a64edb592ed5'] ${CREATEID} ${id[0]} Makes a variable available everywhere within the scope of the current suite. ${CREATEID} = 504f12c0-57cd-4179-933f-a64edb592ed5 Get the list of VNF packages and log it. ${rc} ${stdout} osm vnfpkg-list Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list 2>&1'. ${rc} = 0 ${stdout} = +----------------------------+--------------------------------------+-----------+ | nfpkg name | id | desc type | +----------------------------+------... ${stdout} Logs the given message with the given level. +----------------------------+--------------------------------------+-----------+ | nfpkg name | id | desc type | +----------------------------+--------------------------------------+-----------+ | hackfest_basic_metrics-vnf | 82aa16cb-2efa-4243-a703-2fb2cdb75a85 | sol006 | +----------------------------+--------------------------------------+-----------+ ${rc} Logs the given message with the given level. 0 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> Create a VNF package and update it via SOL003 interface using a JSON file cluster_osm_rest daily regression sol003_01 Get the list of NS instances and return it. ${rc} ${stdout} osm ns-list 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm ns-list 2>&1'. ${rc} = 0 ${stdout} = +--------------------+--------------------------------------+---------------------+------------------+-------------------+---------------+ | ns instance name | id |... ${stdout} Logs the given message with the given level. +--------------------+--------------------------------------+---------------------+------------------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +--------------------+--------------------------------------+---------------------+------------------+-------------------+---------------+ | sol003-instance-ns | 4dd1da3d-2da6-42c8-82b2-a72d71241526 | 2024-02-19T05:59:54 | NOT_INSTANTIATED | IDLE (None) | N/A | +--------------------+--------------------------------------+---------------------+------------------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Get the list of VNF instances and return it. ${rc} ${stdout} osm vnf-list 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm vnf-list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------+--------------------------------------+------------------+----------------------------+----------------+------------+ | vnf id ... ${stdout} Logs the given message with the given level. +--------------------------------------+------+--------------------------------------+------------------+----------------------------+----------------+------------+ | vnf id | name | ns id | vnf member index | vnfd name | vim account id | ip address | +--------------------------------------+------+--------------------------------------+------------------+----------------------------+----------------+------------+ | 504f12c0-57cd-4179-933f-a64edb592ed5 | - | 4dd1da3d-2da6-42c8-82b2-a72d71241526 | 1 | hackfest_basic_metrics-vnf | None | None | +--------------------------------------+------+--------------------------------------+------------------+----------------------------+----------------+------------+ ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Send a REST POST message to OSM to get an authentication token, and store the authentication token in a suite variable to be used later on. Set the REST_API_HOST suite variable from OSM_HOSTNAME env variable ${nbi_host} OSM_HOSTNAME Returns the value of an environment variable with the given name. ${nbi_host} = 172.21.249.226 ${passed} Should Contain ${nbi_host} : Runs the given keyword with given arguments and returns the status as a Boolean value. ${nbi_host} : Fails if ``container`` does not contain ``item`` one or more times. '172.21.249.226' does not contain ':' ${passed} = False ${nbi_host} Set the suite variable REST_API_HOST to be used in this library and the testsuites using it. This method must be used if the tests are run from a container in the same K8s cluster where OSM is running. ${nbi_host} Set a suite variable REST_API_HOST to be used in this library and the testsuites using it. This method must be used if the tests are run from any place outside the K8s cluster where OSM is running. ${REST_API_HOST} https://${env_host}:9999 Makes a variable available everywhere within the scope of the current suite. ${REST_API_HOST} = https://172.21.249.226:9999 osmhit ${REST_API_HOST} disable_warnings=1 Create Session: create a HTTP session to a server Creating Session using : alias=osmhit, url=https://172.21.249.226:9999, headers={}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 &{headers} Content-Type=application/json Accept=application/json Creates and returns a dictionary based on the given ``items``. &{headers} = { Content-Type=application/json | Accept=application/json } &{data} username=${OSM_USER} password=${OSM_PASSWORD} project-id=${OSM_PROJECT} Creates and returns a dictionary based on the given ``items``. &{data} = { username=admin | password=admin | project-id=admin } ${resp} osmhit ${AUTH_TOKEN_URI} json=${data} headers=${headers} Sends a POST request on a previously created HTTP Session. POST Request : url=https://172.21.249.226:9999/osm/admin/v1/tokens path_url=/osm/admin/v1/tokens headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Content-Length': '65'} body=b'{"username": "admin", "password": "admin", "project-id": "admin"}' POST Response : url=https://172.21.249.226:9999/osm/admin/v1/tokens status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Mon, 19 Feb 2024 05:59:58 GMT', 'Www-Authenticate': 'Bearer realm="Needed a token or Authorization http header"', 'Location': '/osm/admin/v1/tokens/7LVJi30BCJSQKnZgKvV5iykIujxt5EZZ', 'Content-Length': '656', 'Set-Cookie': 'session_id=233d12b0d63b3842be36a4304d1cb9455d15542d; expires=Mon, 19 Feb 2024 06:59:58 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "issued_at": 1708322398.7203968, "expires": 1708325998.7203968, "_id": "7LVJi30BCJSQKnZgKvV5iykIujxt5EZZ", "id": "7LVJi30BCJSQKnZgKvV5iykIujxt5EZZ", "project_id": "0658771c-e387-4292-a51e-090f213f77c7", "project_name": "admin", "username": "admin", "user_id": "6f8a9822-aeed-41ff-a40f-c415aa977b1d", "admin": true, "roles": [ { "name": "system_admin", "id": "db8ed9d6-d198-42b0-b653-bb397576f11a" } ], "login_count": 0, "last_login": 1708322397.5410101, "admin_show": true, "user_show": false, "remote_port": 20490, "remote_host": "10.244.0.1" } ${resp} = <Response [200]> ${resp} Logs the given message with the given level. <Response [200]> ${resp.status_code} in ${SUCCESS_STATUS_CODE_LIST} Get Auth Token completed Conditionally skips rest of the current test, setup, or teardown with PASS status. ${TOKEN_STATUS_CODE} ${resp.status_code} Makes a variable available everywhere within the scope of the current suite. ${TOKEN_STATUS_CODE} = 200 ${access_token} ${resp.json()} $..id Get Value From JSON using JSONPath ${access_token} = ['7LVJi30BCJSQKnZgKvV5iykIujxt5EZZ', 'db8ed9d6-d198-42b0-b653-bb397576f11a'] ${ACCESS_TOKEN} ${access_token[0]} Makes a variable available everywhere within the scope of the current test. ${ACCESS_TOKEN} = 7LVJi30BCJSQKnZgKvV5iykIujxt5EZZ ${TOKEN_RESPONSE} ${resp} Makes a variable available everywhere within the scope of the current test. ${TOKEN_RESPONSE} = <Response [200]> 2s Pauses the test executed for the given time. Slept 2 seconds ${json_path} Read Current Directory and return it ${Directory} /robot-systest/lib lib resources Replaces ``search_for`` in the given ``string`` with ``replace_with``. ${Directory} = /robot-systest/resources ${json_path} ${Directory} Returns the given values which can then be assigned to a variables. ${json_path} = /robot-systest/resources ${json_path} ${json_path} = /robot-systest/resources ${json_obj} ${json_path}/sol003_01-vnf-lifecycle-management.json Load JSON from file. ${json_obj} = {'data': [{'vnfdId': 'hackfest_basic_metrics-vnf', 'vnfInstanceName': 'sol003-instance', 'vnfInstanceDescription': 'Test vnfm instance description', 'vimAccountId': '8dc2f11d-e08a-4ec7-920c-6b8a88bff1... ${json_obj} ${json_obj['data'][1]} Returns variable value or ``default`` if the variable does not exist. ${json_obj} = {'vnfName': 'sol003-instance', 'vnfDescription': 'vnf package', 'vnfId': '70b47595-fafa-4f63-904b-fc3ada60eebb', 'vimAccountId': '8dc2f11d-e08a-4ec7-920c-6b8a88bff1e5'} ${UPDATED_JSON_OBJ} ${json_obj} $..vimAccountId ${CREATED_VIM_ACCOUNT_ID} Update value to JSON using JSONPath ${UPDATED_JSON_OBJ} = {'vnfName': 'sol003-instance', 'vnfDescription': 'vnf package', 'vnfId': '70b47595-fafa-4f63-904b-fc3ada60eebb', 'vimAccountId': '85764c05-53df-46c7-a9c8-e9e51d2283b7'} ${UPDATED_JSON_OBJ} ${UPDATED_JSON_OBJ} $..vnfId ${CREATEID} Update value to JSON using JSONPath ${UPDATED_JSON_OBJ} = {'vnfName': 'sol003-instance', 'vnfDescription': 'vnf package', 'vnfId': '504f12c0-57cd-4179-933f-a64edb592ed5', 'vimAccountId': '85764c05-53df-46c7-a9c8-e9e51d2283b7'} ${UPDATED_JSON_OBJ} Makes a variable available everywhere within the scope of the current test. ${UPDATED_JSON_OBJ} = {'vnfName': 'sol003-instance', 'vnfDescription': 'vnf package', 'vnfId': '504f12c0-57cd-4179-933f-a64edb592ed5', 'vimAccountId': '85764c05-53df-46c7-a9c8-e9e51d2283b7'} ${VNF_INSTANCE_URI}/${CREATEID}/instantiate ${UPDATED_JSON_OBJ} Send to OSM a POST API message to OSM to the given uri with the given json data, and save response and status code in suite variables to be used later on. APISession ${REST_API_HOST} Create Session: create a HTTP session to a server Creating Session using : alias=APISession, url=https://172.21.249.226:9999, headers={}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 &{headers} Content-Type=application/json Accept=application/json Authorization=Bearer ${ACCESS_TOKEN} Creates and returns a dictionary based on the given ``items``. &{headers} = { Content-Type=application/json | Accept=application/json | Authorization=Bearer 7LVJi30BCJSQKnZgKvV5iykIujxt5EZZ } ${request_response} APISession ${PostApi} json=${json_data} headers=${headers} Sends a POST request on a previously created HTTP Session. POST Request : url=https://172.21.249.226:9999/osm/vnflcm/v1/vnf_instances/504f12c0-57cd-4179-933f-a64edb592ed5/instantiate path_url=/osm/vnflcm/v1/vnf_instances/504f12c0-57cd-4179-933f-a64edb592ed5/instantiate headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer 7LVJi30BCJSQKnZgKvV5iykIujxt5EZZ', 'Content-Length': '168'} body=b'{"vnfName": "sol003-instance", "vnfDescription": "vnf package", "vnfId": "504f12c0-57cd-4179-933f-a64edb592ed5", "vimAccountId": "85764c05-53df-46c7-a9c8-e9e51d2283b7"}' POST Response : url=https://172.21.249.226:9999/osm/vnflcm/v1/vnf_instances/504f12c0-57cd-4179-933f-a64edb592ed5/instantiate status=202, reason=Accepted headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Mon, 19 Feb 2024 06:00:01 GMT', 'Location': '/osm/vnflcm/v1/vnf_lcm_op_occs/d1ad110a-b295-466c-baa3-94a995ddc96a', 'Content-Length': '53', 'Set-Cookie': 'session_id=e708c370d0302ea59b3aeb605f228386e13b741b; expires=Mon, 19 Feb 2024 07:00:01 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "id": "d1ad110a-b295-466c-baa3-94a995ddc96a" } ${request_response} = <Response [202]> ${REQUEST_RESPONSE} ${request_response} Makes a variable available everywhere within the scope of the current suite. ${REQUEST_RESPONSE} = <Response [202]> ${response_statuscode} ${request_response.status_code} Converts the given item to a Unicode string. ${response_statuscode} = 202 ${RESPONSE_STATUSCODE} ${response_statuscode} Makes a variable available everywhere within the scope of the current suite. ${RESPONSE_STATUSCODE} = 202 ${request_response.status_code} in ${SUCCESS_STATUS_CODE_LIST} Instantiate VNF Instance completed Conditionally skips rest of the current test, setup, or teardown with PASS status. ${id} ${request_response.json()} $..id Get Value From JSON using JSONPath ${id} = ['d1ad110a-b295-466c-baa3-94a995ddc96a'] ${INSTANTIATEID} ${id[0]} Makes a variable available everywhere within the scope of the current suite. ${INSTANTIATEID} = d1ad110a-b295-466c-baa3-94a995ddc96a 12s Pauses the test executed for the given time. Slept 12 seconds Get the list of NS instances and return it. ${rc} ${stdout} osm ns-list 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm ns-list 2>&1'. ${rc} = 0 ${stdout} = +--------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id ... ${stdout} Logs the given message with the given level. +--------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +--------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ | sol003-instance-ns | 4dd1da3d-2da6-42c8-82b2-a72d71241526 | 2024-02-19T05:59:54 | BUILDING | INSTANTIATING (d1ad110a-b295-466c-baa3-94a995ddc96a) | N/A | +--------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Get the list of VNF instances and return it. ${rc} ${stdout} osm vnf-list 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm vnf-list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------+--------------------------------------+------------------+----------------------------+--------------------------------------+------------+ | vnf id ... ${stdout} Logs the given message with the given level. +--------------------------------------+------+--------------------------------------+------------------+----------------------------+--------------------------------------+------------+ | vnf id | name | ns id | vnf member index | vnfd name | vim account id | ip address | +--------------------------------------+------+--------------------------------------+------------------+----------------------------+--------------------------------------+------------+ | 504f12c0-57cd-4179-933f-a64edb592ed5 | - | 4dd1da3d-2da6-42c8-82b2-a72d71241526 | 1 | hackfest_basic_metrics-vnf | 85764c05-53df-46c7-a9c8-e9e51d2283b7 | None | +--------------------------------------+------+--------------------------------------+------------------+----------------------------+--------------------------------------+------------+ ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Test case to Instantiate a VNF cluster_osm_rest daily regression sol003_01 Send a REST POST message to OSM to get an authentication token, and store the authentication token in a suite variable to be used later on. Set the REST_API_HOST suite variable from OSM_HOSTNAME env variable ${nbi_host} OSM_HOSTNAME Returns the value of an environment variable with the given name. ${nbi_host} = 172.21.249.226 ${passed} Should Contain ${nbi_host} : Runs the given keyword with given arguments and returns the status as a Boolean value. ${nbi_host} : Fails if ``container`` does not contain ``item`` one or more times. '172.21.249.226' does not contain ':' ${passed} = False ${nbi_host} Set the suite variable REST_API_HOST to be used in this library and the testsuites using it. This method must be used if the tests are run from a container in the same K8s cluster where OSM is running. ${nbi_host} Set a suite variable REST_API_HOST to be used in this library and the testsuites using it. This method must be used if the tests are run from any place outside the K8s cluster where OSM is running. ${REST_API_HOST} https://${env_host}:9999 Makes a variable available everywhere within the scope of the current suite. ${REST_API_HOST} = https://172.21.249.226:9999 osmhit ${REST_API_HOST} disable_warnings=1 Create Session: create a HTTP session to a server Creating Session using : alias=osmhit, url=https://172.21.249.226:9999, headers={}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 &{headers} Content-Type=application/json Accept=application/json Creates and returns a dictionary based on the given ``items``. &{headers} = { Content-Type=application/json | Accept=application/json } &{data} username=${OSM_USER} password=${OSM_PASSWORD} project-id=${OSM_PROJECT} Creates and returns a dictionary based on the given ``items``. &{data} = { username=admin | password=admin | project-id=admin } ${resp} osmhit ${AUTH_TOKEN_URI} json=${data} headers=${headers} Sends a POST request on a previously created HTTP Session. POST Request : url=https://172.21.249.226:9999/osm/admin/v1/tokens path_url=/osm/admin/v1/tokens headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Content-Length': '65'} body=b'{"username": "admin", "password": "admin", "project-id": "admin"}' POST Response : url=https://172.21.249.226:9999/osm/admin/v1/tokens status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Mon, 19 Feb 2024 06:00:16 GMT', 'Www-Authenticate': 'Bearer realm="Needed a token or Authorization http header"', 'Location': '/osm/admin/v1/tokens/i9j1Hiu1xIKwmXrCec7SmbdrYivoABlC', 'Content-Length': '656', 'Set-Cookie': 'session_id=dd05088d67735f47b4f3c55499307c91660e7081; expires=Mon, 19 Feb 2024 07:00:16 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "issued_at": 1708322416.3290741, "expires": 1708326016.3290741, "_id": "i9j1Hiu1xIKwmXrCec7SmbdrYivoABlC", "id": "i9j1Hiu1xIKwmXrCec7SmbdrYivoABlC", "project_id": "0658771c-e387-4292-a51e-090f213f77c7", "project_name": "admin", "username": "admin", "user_id": "6f8a9822-aeed-41ff-a40f-c415aa977b1d", "admin": true, "roles": [ { "name": "system_admin", "id": "db8ed9d6-d198-42b0-b653-bb397576f11a" } ], "login_count": 0, "last_login": 1708322415.1403425, "admin_show": true, "user_show": false, "remote_port": 54401, "remote_host": "10.244.0.1" } ${resp} = <Response [200]> ${resp} Logs the given message with the given level. <Response [200]> ${resp.status_code} in ${SUCCESS_STATUS_CODE_LIST} Get Auth Token completed Conditionally skips rest of the current test, setup, or teardown with PASS status. ${TOKEN_STATUS_CODE} ${resp.status_code} Makes a variable available everywhere within the scope of the current suite. ${TOKEN_STATUS_CODE} = 200 ${access_token} ${resp.json()} $..id Get Value From JSON using JSONPath ${access_token} = ['i9j1Hiu1xIKwmXrCec7SmbdrYivoABlC', 'db8ed9d6-d198-42b0-b653-bb397576f11a'] ${ACCESS_TOKEN} ${access_token[0]} Makes a variable available everywhere within the scope of the current test. ${ACCESS_TOKEN} = i9j1Hiu1xIKwmXrCec7SmbdrYivoABlC ${TOKEN_RESPONSE} ${resp} Makes a variable available everywhere within the scope of the current test. ${TOKEN_RESPONSE} = <Response [200]> 2s Pauses the test executed for the given time. Slept 2 seconds ${VNF_INSTANCE_URI} Send to OSM a GET API message to OSM to the given uri, and save response and status code in suite variables to be used later on. Session ${REST_API_HOST} Create Session: create a HTTP session to a server Creating Session using : alias=Session, url=https://172.21.249.226:9999, headers={}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 &{headers} Content-Type=application/json Accept=application/json Authorization=Bearer ${ACCESS_TOKEN} Creates and returns a dictionary based on the given ``items``. &{headers} = { Content-Type=application/json | Accept=application/json | Authorization=Bearer i9j1Hiu1xIKwmXrCec7SmbdrYivoABlC } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.249.226:9999/osm/vnflcm/v1/vnf_instances path_url=/osm/vnflcm/v1/vnf_instances headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer i9j1Hiu1xIKwmXrCec7SmbdrYivoABlC'} body=None GET Response : url=https://172.21.249.226:9999/osm/vnflcm/v1/vnf_instances status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Mon, 19 Feb 2024 06:00:19 GMT', 'Content-Length': '4518', 'Set-Cookie': 'session_id=f8e9d5009671c92e87c89e28806025233f2a59f6; expires=Mon, 19 Feb 2024 07:00:19 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body=[ { "_id": "504f12c0-57cd-4179-933f-a64edb592ed5", "id": "504f12c0-57cd-4179-933f-a64edb592ed5", "nsr-id-ref": "4dd1da3d-2da6-42c8-82b2-a72d71241526", "member-vnf-index-ref": "1", "additionalParamsForVnf": null, "created-time": 1708322394.823036, "vnfd-ref": "hackfest_basic_metrics-vnf", "vnfd-id": "82aa16cb-2efa-4243-a703-2fb2cdb75a85", "vim-account-id": "85764c05-53df-46c7-a9c8-e9e51d2283b7", "vca-id": null, "vdur": [ { "_id": "33a3a826-3af2-4fb1-924d-6d48db1aaf6d", "additionalParams": { "OSM": { "count_index": 0, "member_vnf_index": "1", "ns_id": "4dd1da3d-2da6-42c8-82b2-a72d71241526", "vdu": { "hackfest_basic_metrics-VM-0": { "count_index": 0, "interfaces": { "vdu-eth0": { "name": "vdu-eth0" } }, "vdu_id": "hackfest_basic_metrics-VM" } }, "vdu_id": "hackfest_basic_metrics-VM", "vim_account_id": "85764c05-53df-46c7-a9c8-e9e51d2283b7", "vnf_id": "504f12c0-57cd-4179-933f-a64edb592ed5", "vnfd_id": "82aa16cb-2efa-4243-a703-2fb2cdb75a85", "vnfd_ref": "hackfest_basic_metrics-vnf" } }, "affinity-or-anti-affinity-group-id": [], "alt-image-ids": [ "1", "2", "3" ], "cloud-init": "82aa16cb-2efa-4243-a703-2fb2cdb75a85:file:cloud-config", "count-index": 0, "id": "33a3a826-3af2-4fb1-924d-6d48db1aaf6d", "interfaces": [ { "external-connection-point-ref": "vnf-cp0-ext", "internal-connection-point-ref": "vdu-eth0-int", "mgmt-interface": true, "mgmt-vnf": true, "name": "vdu-eth0", "ns-vld-id": "osm-ext", "type": "PARAVIRT" } ], "internal-connection-point": [ { "connection-point-id": "vdu-eth0-int", "id": "vdu-eth0-int", "name": "vdu-eth0-int" } ], "ip-address": null, "ns-flavor-id": "0", "ns-image-id": "0", "vdu-id-ref": "hackfest_basic_metrics-VM", "vdu-name": "hackfest_basic_metrics-VM", "vim_info": { "vim:85764c05-53df-46c7-a9c8-e9e51d2283b7": { "interfaces": [], "interfaces_backup": [], "vim_details": null, "vim_id": "64f1d7a0-2036-4574-a385-94a2b1f857a9", "vim_message": null, "vim_status": "BUILD" } }, "virtual-storages": [ { "id": "hackfest_basic_metrics-VM-storage", "size-of-storage": "10" } ], "status": "BUILD", "vim-id": "64f1d7a0-2036-4574-a385-94a2b1f857a9" } ], "connection-point": [ { "name": "vnf-cp0-ext", "connection-point-id": "vdu-eth0-int", "connection-point-vdu-id": "hackfest_basic_metrics-VM", "id": "vnf-cp0-ext" } ], "ip-address": null, "revision": 1, "_admin": { "created": 1708322394.8231537, "modified": 1708322394.8231537, "projects_read": [ "0658771c-e387-4292-a51e-090f213f77c7" ], "projects_write": [ "0658771c-e387-4292-a51e-090f213f77c7" ], "nsState": "INSTANTIATED" } } ] ${request_response} = <Response [200]> ${REQUEST_RESPONSE} ${request_response} Makes a variable available everywhere within the scope of the current suite. ${REQUEST_RESPONSE} = <Response [200]> ${response_statuscode} ${request_response.status_code} Converts the given item to a Unicode string. ${response_statuscode} = 200 ${RESPONSE_STATUSCODE} ${response_statuscode} Makes a variable available everywhere within the scope of the current suite. ${RESPONSE_STATUSCODE} = 200 ${value} nsState Examine a REQUEST_RESPONSE dictionary as JSON and return the requested key passed as argument. ${REQUEST_RESPONSE.status_code} in ${SUCCESS_STATUS_CODE_LIST} Get Auth Token completed Conditionally skips rest of the current test, setup, or teardown with PASS status. ${id} ${REQUEST_RESPONSE.json()} $..${Key} Get Value From JSON using JSONPath ${id} = ['INSTANTIATED'] ${id[0]} ${value} = INSTANTIATED ${value} INSTANTIATED Fails if the given objects are unequal. ${request_response.status_code} in ${SUCCESS_STATUS_CODE_LIST} Query VNF Instance completed Conditionally skips rest of the current test, setup, or teardown with PASS status. ${id} ${request_response.json()} $.._id Get Value From JSON using JSONPath ${id} = ['504f12c0-57cd-4179-933f-a64edb592ed5', '33a3a826-3af2-4fb1-924d-6d48db1aaf6d'] ${QUERYID} ${id[0]} Makes a variable available everywhere within the scope of the current suite. ${QUERYID} = 504f12c0-57cd-4179-933f-a64edb592ed5 Test case to query VNF Instance cluster_osm_rest daily regression sol003_01 Send a REST POST message to OSM to get an authentication token, and store the authentication token in a suite variable to be used later on. Set the REST_API_HOST suite variable from OSM_HOSTNAME env variable ${nbi_host} OSM_HOSTNAME Returns the value of an environment variable with the given name. ${nbi_host} = 172.21.249.226 ${passed} Should Contain ${nbi_host} : Runs the given keyword with given arguments and returns the status as a Boolean value. ${nbi_host} : Fails if ``container`` does not contain ``item`` one or more times. '172.21.249.226' does not contain ':' ${passed} = False ${nbi_host} Set the suite variable REST_API_HOST to be used in this library and the testsuites using it. This method must be used if the tests are run from a container in the same K8s cluster where OSM is running. ${nbi_host} Set a suite variable REST_API_HOST to be used in this library and the testsuites using it. This method must be used if the tests are run from any place outside the K8s cluster where OSM is running. ${REST_API_HOST} https://${env_host}:9999 Makes a variable available everywhere within the scope of the current suite. ${REST_API_HOST} = https://172.21.249.226:9999 osmhit ${REST_API_HOST} disable_warnings=1 Create Session: create a HTTP session to a server Creating Session using : alias=osmhit, url=https://172.21.249.226:9999, headers={}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 &{headers} Content-Type=application/json Accept=application/json Creates and returns a dictionary based on the given ``items``. &{headers} = { Content-Type=application/json | Accept=application/json } &{data} username=${OSM_USER} password=${OSM_PASSWORD} project-id=${OSM_PROJECT} Creates and returns a dictionary based on the given ``items``. &{data} = { username=admin | password=admin | project-id=admin } ${resp} osmhit ${AUTH_TOKEN_URI} json=${data} headers=${headers} Sends a POST request on a previously created HTTP Session. POST Request : url=https://172.21.249.226:9999/osm/admin/v1/tokens path_url=/osm/admin/v1/tokens headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Content-Length': '65'} body=b'{"username": "admin", "password": "admin", "project-id": "admin"}' POST Response : url=https://172.21.249.226:9999/osm/admin/v1/tokens status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Mon, 19 Feb 2024 06:00:19 GMT', 'Www-Authenticate': 'Bearer realm="Needed a token or Authorization http header"', 'Location': '/osm/admin/v1/tokens/plddFMpdWQPWlD5vid58oKvusFt43BTP', 'Content-Length': '656', 'Set-Cookie': 'session_id=2cdb2c81e21c4f4c13c95b34de7845fce1c5313c; expires=Mon, 19 Feb 2024 07:00:19 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "issued_at": 1708322419.5412292, "expires": 1708326019.5412292, "_id": "plddFMpdWQPWlD5vid58oKvusFt43BTP", "id": "plddFMpdWQPWlD5vid58oKvusFt43BTP", "project_id": "0658771c-e387-4292-a51e-090f213f77c7", "project_name": "admin", "username": "admin", "user_id": "6f8a9822-aeed-41ff-a40f-c415aa977b1d", "admin": true, "roles": [ { "name": "system_admin", "id": "db8ed9d6-d198-42b0-b653-bb397576f11a" } ], "login_count": 0, "last_login": 1708322416.3290741, "admin_show": true, "user_show": false, "remote_port": 50730, "remote_host": "10.244.0.1" } ${resp} = <Response [200]> ${resp} Logs the given message with the given level. <Response [200]> ${resp.status_code} in ${SUCCESS_STATUS_CODE_LIST} Get Auth Token completed Conditionally skips rest of the current test, setup, or teardown with PASS status. ${TOKEN_STATUS_CODE} ${resp.status_code} Makes a variable available everywhere within the scope of the current suite. ${TOKEN_STATUS_CODE} = 200 ${access_token} ${resp.json()} $..id Get Value From JSON using JSONPath ${access_token} = ['plddFMpdWQPWlD5vid58oKvusFt43BTP', 'db8ed9d6-d198-42b0-b653-bb397576f11a'] ${ACCESS_TOKEN} ${access_token[0]} Makes a variable available everywhere within the scope of the current test. ${ACCESS_TOKEN} = plddFMpdWQPWlD5vid58oKvusFt43BTP ${TOKEN_RESPONSE} ${resp} Makes a variable available everywhere within the scope of the current test. ${TOKEN_RESPONSE} = <Response [200]> 2s Pauses the test executed for the given time. Slept 2 seconds ${VNF_INSTANCE_URI}/${QUERYID} Send to OSM a GET API message to OSM to the given uri, and save response and status code in suite variables to be used later on. Session ${REST_API_HOST} Create Session: create a HTTP session to a server Creating Session using : alias=Session, url=https://172.21.249.226:9999, headers={}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 &{headers} Content-Type=application/json Accept=application/json Authorization=Bearer ${ACCESS_TOKEN} Creates and returns a dictionary based on the given ``items``. &{headers} = { Content-Type=application/json | Accept=application/json | Authorization=Bearer plddFMpdWQPWlD5vid58oKvusFt43BTP } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.249.226:9999/osm/vnflcm/v1/vnf_instances/504f12c0-57cd-4179-933f-a64edb592ed5 path_url=/osm/vnflcm/v1/vnf_instances/504f12c0-57cd-4179-933f-a64edb592ed5 headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer plddFMpdWQPWlD5vid58oKvusFt43BTP'} body=None GET Response : url=https://172.21.249.226:9999/osm/vnflcm/v1/vnf_instances/504f12c0-57cd-4179-933f-a64edb592ed5 status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Mon, 19 Feb 2024 06:00:21 GMT', 'Content-Length': '4070', 'Set-Cookie': 'session_id=8f06f07560dd67a62ff3230e775133efa70197e7; expires=Mon, 19 Feb 2024 07:00:21 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "504f12c0-57cd-4179-933f-a64edb592ed5", "id": "504f12c0-57cd-4179-933f-a64edb592ed5", "nsr-id-ref": "4dd1da3d-2da6-42c8-82b2-a72d71241526", "member-vnf-index-ref": "1", "additionalParamsForVnf": null, "created-time": 1708322394.823036, "vnfd-ref": "hackfest_basic_metrics-vnf", "vnfd-id": "82aa16cb-2efa-4243-a703-2fb2cdb75a85", "vim-account-id": "85764c05-53df-46c7-a9c8-e9e51d2283b7", "vca-id": null, "vdur": [ { "_id": "33a3a826-3af2-4fb1-924d-6d48db1aaf6d", "additionalParams": { "OSM": { "count_index": 0, "member_vnf_index": "1", "ns_id": "4dd1da3d-2da6-42c8-82b2-a72d71241526", "vdu": { "hackfest_basic_metrics-VM-0": { "count_index": 0, "interfaces": { "vdu-eth0": { "name": "vdu-eth0" } }, "vdu_id": "hackfest_basic_metrics-VM" } }, "vdu_id": "hackfest_basic_metrics-VM", "vim_account_id": "85764c05-53df-46c7-a9c8-e9e51d2283b7", "vnf_id": "504f12c0-57cd-4179-933f-a64edb592ed5", "vnfd_id": "82aa16cb-2efa-4243-a703-2fb2cdb75a85", "vnfd_ref": "hackfest_basic_metrics-vnf" } }, "affinity-or-anti-affinity-group-id": [], "alt-image-ids": [ "1", "2", "3" ], "cloud-init": "82aa16cb-2efa-4243-a703-2fb2cdb75a85:file:cloud-config", "count-index": 0, "id": "33a3a826-3af2-4fb1-924d-6d48db1aaf6d", "interfaces": [ { "external-connection-point-ref": "vnf-cp0-ext", "internal-connection-point-ref": "vdu-eth0-int", "mgmt-interface": true, "mgmt-vnf": true, "name": "vdu-eth0", "ns-vld-id": "osm-ext", "type": "PARAVIRT" } ], "internal-connection-point": [ { "connection-point-id": "vdu-eth0-int", "id": "vdu-eth0-int", "name": "vdu-eth0-int" } ], "ip-address": null, "ns-flavor-id": "0", "ns-image-id": "0", "vdu-id-ref": "hackfest_basic_metrics-VM", "vdu-name": "hackfest_basic_metrics-VM", "vim_info": { "vim:85764c05-53df-46c7-a9c8-e9e51d2283b7": { "interfaces": [], "interfaces_backup": [], "vim_details": null, "vim_id": "64f1d7a0-2036-4574-a385-94a2b1f857a9", "vim_message": null, "vim_status": "BUILD" } }, "virtual-storages": [ { "id": "hackfest_basic_metrics-VM-storage", "size-of-storage": "10" } ], "status": "BUILD", "vim-id": "64f1d7a0-2036-4574-a385-94a2b1f857a9" } ], "connection-point": [ { "name": "vnf-cp0-ext", "connection-point-id": "vdu-eth0-int", "connection-point-vdu-id": "hackfest_basic_metrics-VM", "id": "vnf-cp0-ext" } ], "ip-address": null, "revision": 1, "_admin": { "created": 1708322394.8231537, "modified": 1708322394.8231537, "projects_read": [ "0658771c-e387-4292-a51e-090f213f77c7" ], "projects_write": [ "0658771c-e387-4292-a51e-090f213f77c7" ], "nsState": "INSTANTIATED" } } ${request_response} = <Response [200]> ${REQUEST_RESPONSE} ${request_response} Makes a variable available everywhere within the scope of the current suite. ${REQUEST_RESPONSE} = <Response [200]> ${response_statuscode} ${request_response.status_code} Converts the given item to a Unicode string. ${response_statuscode} = 200 ${RESPONSE_STATUSCODE} ${response_statuscode} Makes a variable available everywhere within the scope of the current suite. ${RESPONSE_STATUSCODE} = 200 ${value} nsState Examine a REQUEST_RESPONSE dictionary as JSON and return the requested key passed as argument. ${REQUEST_RESPONSE.status_code} in ${SUCCESS_STATUS_CODE_LIST} Get Auth Token completed Conditionally skips rest of the current test, setup, or teardown with PASS status. ${id} ${REQUEST_RESPONSE.json()} $..${Key} Get Value From JSON using JSONPath ${id} = ['INSTANTIATED'] ${id[0]} ${value} = INSTANTIATED ${value} INSTANTIATED Fails if the given objects are unequal. ${RequestResponse.status_code} 200 Fails if objects are unequal after converting them to strings. Argument types are: <class 'int'> <class 'str'> ${id} ${request_response.json()} $.._id Get Value From JSON using JSONPath ${id} = ['504f12c0-57cd-4179-933f-a64edb592ed5', '33a3a826-3af2-4fb1-924d-6d48db1aaf6d'] ${INSTANCEID} ${id[0]} Makes a variable available everywhere within the scope of the current suite. ${INSTANCEID} = 504f12c0-57cd-4179-933f-a64edb592ed5 Test case to query Vnf instance ID cluster_osm_rest daily regression sol003_01 Send a REST POST message to OSM to get an authentication token, and store the authentication token in a suite variable to be used later on. Set the REST_API_HOST suite variable from OSM_HOSTNAME env variable ${nbi_host} OSM_HOSTNAME Returns the value of an environment variable with the given name. ${nbi_host} = 172.21.249.226 ${passed} Should Contain ${nbi_host} : Runs the given keyword with given arguments and returns the status as a Boolean value. ${nbi_host} : Fails if ``container`` does not contain ``item`` one or more times. '172.21.249.226' does not contain ':' ${passed} = False ${nbi_host} Set the suite variable REST_API_HOST to be used in this library and the testsuites using it. This method must be used if the tests are run from a container in the same K8s cluster where OSM is running. ${nbi_host} Set a suite variable REST_API_HOST to be used in this library and the testsuites using it. This method must be used if the tests are run from any place outside the K8s cluster where OSM is running. ${REST_API_HOST} https://${env_host}:9999 Makes a variable available everywhere within the scope of the current suite. ${REST_API_HOST} = https://172.21.249.226:9999 osmhit ${REST_API_HOST} disable_warnings=1 Create Session: create a HTTP session to a server Creating Session using : alias=osmhit, url=https://172.21.249.226:9999, headers={}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 &{headers} Content-Type=application/json Accept=application/json Creates and returns a dictionary based on the given ``items``. &{headers} = { Content-Type=application/json | Accept=application/json } &{data} username=${OSM_USER} password=${OSM_PASSWORD} project-id=${OSM_PROJECT} Creates and returns a dictionary based on the given ``items``. &{data} = { username=admin | password=admin | project-id=admin } ${resp} osmhit ${AUTH_TOKEN_URI} json=${data} headers=${headers} Sends a POST request on a previously created HTTP Session. POST Request : url=https://172.21.249.226:9999/osm/admin/v1/tokens path_url=/osm/admin/v1/tokens headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Content-Length': '65'} body=b'{"username": "admin", "password": "admin", "project-id": "admin"}' POST Response : url=https://172.21.249.226:9999/osm/admin/v1/tokens status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Mon, 19 Feb 2024 06:00:21 GMT', 'Www-Authenticate': 'Bearer realm="Needed a token or Authorization http header"', 'Location': '/osm/admin/v1/tokens/4oYd3A3mDEpursqba5EdZ8HXmiWU2Ca0', 'Content-Length': '656', 'Set-Cookie': 'session_id=82c30f643bc8f22958791061dfa4757f66e24012; expires=Mon, 19 Feb 2024 07:00:21 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "issued_at": 1708322421.7582119, "expires": 1708326021.7582119, "_id": "4oYd3A3mDEpursqba5EdZ8HXmiWU2Ca0", "id": "4oYd3A3mDEpursqba5EdZ8HXmiWU2Ca0", "project_id": "0658771c-e387-4292-a51e-090f213f77c7", "project_name": "admin", "username": "admin", "user_id": "6f8a9822-aeed-41ff-a40f-c415aa977b1d", "admin": true, "roles": [ { "name": "system_admin", "id": "db8ed9d6-d198-42b0-b653-bb397576f11a" } ], "login_count": 0, "last_login": 1708322419.5412292, "admin_show": true, "user_show": false, "remote_port": 26472, "remote_host": "10.244.0.1" } ${resp} = <Response [200]> ${resp} Logs the given message with the given level. <Response [200]> ${resp.status_code} in ${SUCCESS_STATUS_CODE_LIST} Get Auth Token completed Conditionally skips rest of the current test, setup, or teardown with PASS status. ${TOKEN_STATUS_CODE} ${resp.status_code} Makes a variable available everywhere within the scope of the current suite. ${TOKEN_STATUS_CODE} = 200 ${access_token} ${resp.json()} $..id Get Value From JSON using JSONPath ${access_token} = ['4oYd3A3mDEpursqba5EdZ8HXmiWU2Ca0', 'db8ed9d6-d198-42b0-b653-bb397576f11a'] ${ACCESS_TOKEN} ${access_token[0]} Makes a variable available everywhere within the scope of the current test. ${ACCESS_TOKEN} = 4oYd3A3mDEpursqba5EdZ8HXmiWU2Ca0 ${TOKEN_RESPONSE} ${resp} Makes a variable available everywhere within the scope of the current test. ${TOKEN_RESPONSE} = <Response [200]> 2s Pauses the test executed for the given time. Slept 2 seconds ${VNF_INSTANCE_LCM_OPS} Send to OSM a GET API message to OSM to the given uri, and save response and status code in suite variables to be used later on. Session ${REST_API_HOST} Create Session: create a HTTP session to a server Creating Session using : alias=Session, url=https://172.21.249.226:9999, headers={}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 &{headers} Content-Type=application/json Accept=application/json Authorization=Bearer ${ACCESS_TOKEN} Creates and returns a dictionary based on the given ``items``. &{headers} = { Content-Type=application/json | Accept=application/json | Authorization=Bearer 4oYd3A3mDEpursqba5EdZ8HXmiWU2Ca0 } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.249.226:9999/osm/vnflcm/v1/vnf_lcm_op_occs path_url=/osm/vnflcm/v1/vnf_lcm_op_occs headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer 4oYd3A3mDEpursqba5EdZ8HXmiWU2Ca0'} body=None GET Response : url=https://172.21.249.226:9999/osm/vnflcm/v1/vnf_lcm_op_occs status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Mon, 19 Feb 2024 06:00:23 GMT', 'Content-Length': '1301', 'Set-Cookie': 'session_id=f17c3a1a5ac9d55fd5bf179c60fc8b7073732aae; expires=Mon, 19 Feb 2024 07:00:23 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body=[ { "_id": "d1ad110a-b295-466c-baa3-94a995ddc96a", "id": "d1ad110a-b295-466c-baa3-94a995ddc96a", "operationState": "PROCESSING", "queuePosition": 0, "stage": "Stage 2/5: deployment of KDUs, VMs and execution environments.", "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1708322401.9502718, "lcmOperationType": "instantiate", "startTime": 1708322401.9502718, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1708322401.950308, "modified": 1708322417.4274998, "projects_read": [ "0658771c-e387-4292-a51e-090f213f77c7" ], "projects_write": [ "0658771c-e387-4292-a51e-090f213f77c7" ], "worker": "2dcdf4f7479d" }, "detailed-status": "Stage 2/5: deployment of KDUs, VMs and execution environments. 0/1. VIM: (progress 2/4)", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/d1ad110a-b295-466c-baa3-94a995ddc96a", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/504f12c0-57cd-4179-933f-a64edb592ed5" }, "vnfInstanceId": "504f12c0-57cd-4179-933f-a64edb592ed5" } ] ${request_response} = <Response [200]> ${REQUEST_RESPONSE} ${request_response} Makes a variable available everywhere within the scope of the current suite. ${REQUEST_RESPONSE} = <Response [200]> ${response_statuscode} ${request_response.status_code} Converts the given item to a Unicode string. ${response_statuscode} = 200 ${RESPONSE_STATUSCODE} ${response_statuscode} Makes a variable available everywhere within the scope of the current suite. ${RESPONSE_STATUSCODE} = 200 ${id1} ${request_response.json()} $.._id Get Value From JSON using JSONPath ${id1} = ['d1ad110a-b295-466c-baa3-94a995ddc96a'] ${LCMOPS} ${id1[0]} Makes a variable available everywhere within the scope of the current suite. ${LCMOPS} = d1ad110a-b295-466c-baa3-94a995ddc96a ${index} 0 15 0 ${index} Logs the given message with the given level. 0 ${VNF_INSTANCE_LCM_OPS} Send to OSM a GET API message to OSM to the given uri, and save response and status code in suite variables to be used later on. Session ${REST_API_HOST} Create Session: create a HTTP session to a server Creating Session using : alias=Session, url=https://172.21.249.226:9999, headers={}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 &{headers} Content-Type=application/json Accept=application/json Authorization=Bearer ${ACCESS_TOKEN} Creates and returns a dictionary based on the given ``items``. &{headers} = { Content-Type=application/json | Accept=application/json | Authorization=Bearer 4oYd3A3mDEpursqba5EdZ8HXmiWU2Ca0 } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.249.226:9999/osm/vnflcm/v1/vnf_lcm_op_occs path_url=/osm/vnflcm/v1/vnf_lcm_op_occs headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer 4oYd3A3mDEpursqba5EdZ8HXmiWU2Ca0'} body=None GET Response : url=https://172.21.249.226:9999/osm/vnflcm/v1/vnf_lcm_op_occs status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Mon, 19 Feb 2024 06:00:23 GMT', 'Content-Length': '1301', 'Set-Cookie': 'session_id=947eb3c7520cc49180d854f913a276ff47dbfeca; expires=Mon, 19 Feb 2024 07:00:23 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body=[ { "_id": "d1ad110a-b295-466c-baa3-94a995ddc96a", "id": "d1ad110a-b295-466c-baa3-94a995ddc96a", "operationState": "PROCESSING", "queuePosition": 0, "stage": "Stage 2/5: deployment of KDUs, VMs and execution environments.", "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1708322401.9502718, "lcmOperationType": "instantiate", "startTime": 1708322401.9502718, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1708322401.950308, "modified": 1708322417.4274998, "projects_read": [ "0658771c-e387-4292-a51e-090f213f77c7" ], "projects_write": [ "0658771c-e387-4292-a51e-090f213f77c7" ], "worker": "2dcdf4f7479d" }, "detailed-status": "Stage 2/5: deployment of KDUs, VMs and execution environments. 0/1. VIM: (progress 2/4)", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/d1ad110a-b295-466c-baa3-94a995ddc96a", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/504f12c0-57cd-4179-933f-a64edb592ed5" }, "vnfInstanceId": "504f12c0-57cd-4179-933f-a64edb592ed5" } ] ${request_response} = <Response [200]> ${REQUEST_RESPONSE} ${request_response} Makes a variable available everywhere within the scope of the current suite. ${REQUEST_RESPONSE} = <Response [200]> ${response_statuscode} ${request_response.status_code} Converts the given item to a Unicode string. ${response_statuscode} = 200 ${RESPONSE_STATUSCODE} ${response_statuscode} Makes a variable available everywhere within the scope of the current suite. ${RESPONSE_STATUSCODE} = 200 ${value} operationState Examine a REQUEST_RESPONSE dictionary as JSON and return the requested key passed as argument. ${REQUEST_RESPONSE.status_code} in ${SUCCESS_STATUS_CODE_LIST} Get Auth Token completed Conditionally skips rest of the current test, setup, or teardown with PASS status. ${id} ${REQUEST_RESPONSE.json()} $..${Key} Get Value From JSON using JSONPath ${id} = ['PROCESSING'] ${id[0]} ${value} = PROCESSING ${status} Should Be Equal ${value} COMPLETED Runs the given keyword with given arguments and returns the status as a Boolean value. ${value} COMPLETED Fails if the given objects are unequal. PROCESSING != COMPLETED ${status} = False 10s Pauses the test executed for the given time. Slept 10 seconds 1 ${index} Logs the given message with the given level. 1 ${VNF_INSTANCE_LCM_OPS} Send to OSM a GET API message to OSM to the given uri, and save response and status code in suite variables to be used later on. Session ${REST_API_HOST} Create Session: create a HTTP session to a server Creating Session using : alias=Session, url=https://172.21.249.226:9999, headers={}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 &{headers} Content-Type=application/json Accept=application/json Authorization=Bearer ${ACCESS_TOKEN} Creates and returns a dictionary based on the given ``items``. &{headers} = { Content-Type=application/json | Accept=application/json | Authorization=Bearer 4oYd3A3mDEpursqba5EdZ8HXmiWU2Ca0 } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.249.226:9999/osm/vnflcm/v1/vnf_lcm_op_occs path_url=/osm/vnflcm/v1/vnf_lcm_op_occs headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer 4oYd3A3mDEpursqba5EdZ8HXmiWU2Ca0'} body=None GET Response : url=https://172.21.249.226:9999/osm/vnflcm/v1/vnf_lcm_op_occs status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Mon, 19 Feb 2024 06:00:34 GMT', 'Content-Length': '1154', 'Set-Cookie': 'session_id=5226da844e0a8c64526b1fa4268cc9a43d520e9a; expires=Mon, 19 Feb 2024 07:00:34 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body=[ { "_id": "d1ad110a-b295-466c-baa3-94a995ddc96a", "id": "d1ad110a-b295-466c-baa3-94a995ddc96a", "operationState": "COMPLETED", "queuePosition": 0, "stage": "", "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1708322432.5569422, "lcmOperationType": "instantiate", "startTime": 1708322401.9502718, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1708322401.950308, "modified": 1708322432.556944, "projects_read": [ "0658771c-e387-4292-a51e-090f213f77c7" ], "projects_write": [ "0658771c-e387-4292-a51e-090f213f77c7" ], "worker": "2dcdf4f7479d" }, "detailed-status": "Done", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/d1ad110a-b295-466c-baa3-94a995ddc96a", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/504f12c0-57cd-4179-933f-a64edb592ed5" }, "vnfInstanceId": "504f12c0-57cd-4179-933f-a64edb592ed5" } ] ${request_response} = <Response [200]> ${REQUEST_RESPONSE} ${request_response} Makes a variable available everywhere within the scope of the current suite. ${REQUEST_RESPONSE} = <Response [200]> ${response_statuscode} ${request_response.status_code} Converts the given item to a Unicode string. ${response_statuscode} = 200 ${RESPONSE_STATUSCODE} ${response_statuscode} Makes a variable available everywhere within the scope of the current suite. ${RESPONSE_STATUSCODE} = 200 ${value} operationState Examine a REQUEST_RESPONSE dictionary as JSON and return the requested key passed as argument. ${REQUEST_RESPONSE.status_code} in ${SUCCESS_STATUS_CODE_LIST} Get Auth Token completed Conditionally skips rest of the current test, setup, or teardown with PASS status. ${id} ${REQUEST_RESPONSE.json()} $..${Key} Get Value From JSON using JSONPath ${id} = ['COMPLETED'] ${id[0]} ${value} = COMPLETED ${status} Should Be Equal ${value} COMPLETED Runs the given keyword with given arguments and returns the status as a Boolean value. ${value} COMPLETED Fails if the given objects are unequal. ${status} = True 10s Pauses the test executed for the given time. Test case to Query VNF LCM operation cluster_osm_rest daily regression sol003_01 Send a REST POST message to OSM to get an authentication token, and store the authentication token in a suite variable to be used later on. Set the REST_API_HOST suite variable from OSM_HOSTNAME env variable ${nbi_host} OSM_HOSTNAME Returns the value of an environment variable with the given name. ${nbi_host} = 172.21.249.226 ${passed} Should Contain ${nbi_host} : Runs the given keyword with given arguments and returns the status as a Boolean value. ${nbi_host} : Fails if ``container`` does not contain ``item`` one or more times. '172.21.249.226' does not contain ':' ${passed} = False ${nbi_host} Set the suite variable REST_API_HOST to be used in this library and the testsuites using it. This method must be used if the tests are run from a container in the same K8s cluster where OSM is running. ${nbi_host} Set a suite variable REST_API_HOST to be used in this library and the testsuites using it. This method must be used if the tests are run from any place outside the K8s cluster where OSM is running. ${REST_API_HOST} https://${env_host}:9999 Makes a variable available everywhere within the scope of the current suite. ${REST_API_HOST} = https://172.21.249.226:9999 osmhit ${REST_API_HOST} disable_warnings=1 Create Session: create a HTTP session to a server Creating Session using : alias=osmhit, url=https://172.21.249.226:9999, headers={}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 &{headers} Content-Type=application/json Accept=application/json Creates and returns a dictionary based on the given ``items``. &{headers} = { Content-Type=application/json | Accept=application/json } &{data} username=${OSM_USER} password=${OSM_PASSWORD} project-id=${OSM_PROJECT} Creates and returns a dictionary based on the given ``items``. &{data} = { username=admin | password=admin | project-id=admin } ${resp} osmhit ${AUTH_TOKEN_URI} json=${data} headers=${headers} Sends a POST request on a previously created HTTP Session. POST Request : url=https://172.21.249.226:9999/osm/admin/v1/tokens path_url=/osm/admin/v1/tokens headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Content-Length': '65'} body=b'{"username": "admin", "password": "admin", "project-id": "admin"}' POST Response : url=https://172.21.249.226:9999/osm/admin/v1/tokens status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Mon, 19 Feb 2024 06:00:34 GMT', 'Www-Authenticate': 'Bearer realm="Needed a token or Authorization http header"', 'Location': '/osm/admin/v1/tokens/wlJdZ0qLWk9edMajECQUrddtP7oOguof', 'Content-Length': '656', 'Set-Cookie': 'session_id=b330199368600878a1ab3ad3f6957c3ef0aecd31; expires=Mon, 19 Feb 2024 07:00:34 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "issued_at": 1708322434.1021316, "expires": 1708326034.1021316, "_id": "wlJdZ0qLWk9edMajECQUrddtP7oOguof", "id": "wlJdZ0qLWk9edMajECQUrddtP7oOguof", "project_id": "0658771c-e387-4292-a51e-090f213f77c7", "project_name": "admin", "username": "admin", "user_id": "6f8a9822-aeed-41ff-a40f-c415aa977b1d", "admin": true, "roles": [ { "name": "system_admin", "id": "db8ed9d6-d198-42b0-b653-bb397576f11a" } ], "login_count": 0, "last_login": 1708322421.7582119, "admin_show": true, "user_show": false, "remote_port": 11666, "remote_host": "10.244.0.1" } ${resp} = <Response [200]> ${resp} Logs the given message with the given level. <Response [200]> ${resp.status_code} in ${SUCCESS_STATUS_CODE_LIST} Get Auth Token completed Conditionally skips rest of the current test, setup, or teardown with PASS status. ${TOKEN_STATUS_CODE} ${resp.status_code} Makes a variable available everywhere within the scope of the current suite. ${TOKEN_STATUS_CODE} = 200 ${access_token} ${resp.json()} $..id Get Value From JSON using JSONPath ${access_token} = ['wlJdZ0qLWk9edMajECQUrddtP7oOguof', 'db8ed9d6-d198-42b0-b653-bb397576f11a'] ${ACCESS_TOKEN} ${access_token[0]} Makes a variable available everywhere within the scope of the current test. ${ACCESS_TOKEN} = wlJdZ0qLWk9edMajECQUrddtP7oOguof ${TOKEN_RESPONSE} ${resp} Makes a variable available everywhere within the scope of the current test. ${TOKEN_RESPONSE} = <Response [200]> 2s Pauses the test executed for the given time. Slept 2 seconds ${VNF_INSTANCE_LCM_OPS}/${LCMOPS} Send to OSM a GET API message to OSM to the given uri, and save response and status code in suite variables to be used later on. Session ${REST_API_HOST} Create Session: create a HTTP session to a server Creating Session using : alias=Session, url=https://172.21.249.226:9999, headers={}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 &{headers} Content-Type=application/json Accept=application/json Authorization=Bearer ${ACCESS_TOKEN} Creates and returns a dictionary based on the given ``items``. &{headers} = { Content-Type=application/json | Accept=application/json | Authorization=Bearer wlJdZ0qLWk9edMajECQUrddtP7oOguof } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.249.226:9999/osm/vnflcm/v1/vnf_lcm_op_occs/d1ad110a-b295-466c-baa3-94a995ddc96a path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/d1ad110a-b295-466c-baa3-94a995ddc96a headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer wlJdZ0qLWk9edMajECQUrddtP7oOguof'} body=None GET Response : url=https://172.21.249.226:9999/osm/vnflcm/v1/vnf_lcm_op_occs/d1ad110a-b295-466c-baa3-94a995ddc96a status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Mon, 19 Feb 2024 06:00:36 GMT', 'Content-Length': '1026', 'Set-Cookie': 'session_id=e28ec941876cf0484e63c3119f9623d2e5e9da1b; expires=Mon, 19 Feb 2024 07:00:36 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "d1ad110a-b295-466c-baa3-94a995ddc96a", "id": "d1ad110a-b295-466c-baa3-94a995ddc96a", "operationState": "COMPLETED", "queuePosition": 0, "stage": "", "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1708322432.5569422, "lcmOperationType": "instantiate", "startTime": 1708322401.9502718, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1708322401.950308, "modified": 1708322432.556944, "projects_read": [ "0658771c-e387-4292-a51e-090f213f77c7" ], "projects_write": [ "0658771c-e387-4292-a51e-090f213f77c7" ], "worker": "2dcdf4f7479d" }, "detailed-status": "Done", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/d1ad110a-b295-466c-baa3-94a995ddc96a", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/504f12c0-57cd-4179-933f-a64edb592ed5" }, "vnfInstanceId": "504f12c0-57cd-4179-933f-a64edb592ed5" } ${request_response} = <Response [200]> ${REQUEST_RESPONSE} ${request_response} Makes a variable available everywhere within the scope of the current suite. ${REQUEST_RESPONSE} = <Response [200]> ${response_statuscode} ${request_response.status_code} Converts the given item to a Unicode string. ${response_statuscode} = 200 ${RESPONSE_STATUSCODE} ${response_statuscode} Makes a variable available everywhere within the scope of the current suite. ${RESPONSE_STATUSCODE} = 200 ${id1} ${request_response.json()} $.._id Get Value From JSON using JSONPath ${id1} = ['d1ad110a-b295-466c-baa3-94a995ddc96a'] ${LCMOPSID} ${id1[0]} Makes a variable available everywhere within the scope of the current suite. ${LCMOPSID} = d1ad110a-b295-466c-baa3-94a995ddc96a ${index} 0 15 0 ${index} Logs the given message with the given level. 0 ${VNF_INSTANCE_LCM_OPS}/${LCMOPS} Send to OSM a GET API message to OSM to the given uri, and save response and status code in suite variables to be used later on. Session ${REST_API_HOST} Create Session: create a HTTP session to a server Creating Session using : alias=Session, url=https://172.21.249.226:9999, headers={}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 &{headers} Content-Type=application/json Accept=application/json Authorization=Bearer ${ACCESS_TOKEN} Creates and returns a dictionary based on the given ``items``. &{headers} = { Content-Type=application/json | Accept=application/json | Authorization=Bearer wlJdZ0qLWk9edMajECQUrddtP7oOguof } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.249.226:9999/osm/vnflcm/v1/vnf_lcm_op_occs/d1ad110a-b295-466c-baa3-94a995ddc96a path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/d1ad110a-b295-466c-baa3-94a995ddc96a headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer wlJdZ0qLWk9edMajECQUrddtP7oOguof'} body=None GET Response : url=https://172.21.249.226:9999/osm/vnflcm/v1/vnf_lcm_op_occs/d1ad110a-b295-466c-baa3-94a995ddc96a status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Mon, 19 Feb 2024 06:00:36 GMT', 'Content-Length': '1026', 'Set-Cookie': 'session_id=94cad9088f15582ce4c677465cb4cb78f6366dca; expires=Mon, 19 Feb 2024 07:00:36 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "d1ad110a-b295-466c-baa3-94a995ddc96a", "id": "d1ad110a-b295-466c-baa3-94a995ddc96a", "operationState": "COMPLETED", "queuePosition": 0, "stage": "", "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1708322432.5569422, "lcmOperationType": "instantiate", "startTime": 1708322401.9502718, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1708322401.950308, "modified": 1708322432.556944, "projects_read": [ "0658771c-e387-4292-a51e-090f213f77c7" ], "projects_write": [ "0658771c-e387-4292-a51e-090f213f77c7" ], "worker": "2dcdf4f7479d" }, "detailed-status": "Done", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/d1ad110a-b295-466c-baa3-94a995ddc96a", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/504f12c0-57cd-4179-933f-a64edb592ed5" }, "vnfInstanceId": "504f12c0-57cd-4179-933f-a64edb592ed5" } ${request_response} = <Response [200]> ${REQUEST_RESPONSE} ${request_response} Makes a variable available everywhere within the scope of the current suite. ${REQUEST_RESPONSE} = <Response [200]> ${response_statuscode} ${request_response.status_code} Converts the given item to a Unicode string. ${response_statuscode} = 200 ${RESPONSE_STATUSCODE} ${response_statuscode} Makes a variable available everywhere within the scope of the current suite. ${RESPONSE_STATUSCODE} = 200 ${value} operationState Examine a REQUEST_RESPONSE dictionary as JSON and return the requested key passed as argument. ${REQUEST_RESPONSE.status_code} in ${SUCCESS_STATUS_CODE_LIST} Get Auth Token completed Conditionally skips rest of the current test, setup, or teardown with PASS status. ${id} ${REQUEST_RESPONSE.json()} $..${Key} Get Value From JSON using JSONPath ${id} = ['COMPLETED'] ${id[0]} ${value} = COMPLETED ${status} Should Be Equal ${value} COMPLETED Runs the given keyword with given arguments and returns the status as a Boolean value. ${value} COMPLETED Fails if the given objects are unequal. ${status} = True 10s Pauses the test executed for the given time. Check if the operation has completed. cluster_osm_rest daily regression sol003_01 Send a REST POST message to OSM to get an authentication token, and store the authentication token in a suite variable to be used later on. Set the REST_API_HOST suite variable from OSM_HOSTNAME env variable ${nbi_host} OSM_HOSTNAME Returns the value of an environment variable with the given name. ${nbi_host} = 172.21.249.226 ${passed} Should Contain ${nbi_host} : Runs the given keyword with given arguments and returns the status as a Boolean value. ${nbi_host} : Fails if ``container`` does not contain ``item`` one or more times. '172.21.249.226' does not contain ':' ${passed} = False ${nbi_host} Set the suite variable REST_API_HOST to be used in this library and the testsuites using it. This method must be used if the tests are run from a container in the same K8s cluster where OSM is running. ${nbi_host} Set a suite variable REST_API_HOST to be used in this library and the testsuites using it. This method must be used if the tests are run from any place outside the K8s cluster where OSM is running. ${REST_API_HOST} https://${env_host}:9999 Makes a variable available everywhere within the scope of the current suite. ${REST_API_HOST} = https://172.21.249.226:9999 osmhit ${REST_API_HOST} disable_warnings=1 Create Session: create a HTTP session to a server Creating Session using : alias=osmhit, url=https://172.21.249.226:9999, headers={}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 &{headers} Content-Type=application/json Accept=application/json Creates and returns a dictionary based on the given ``items``. &{headers} = { Content-Type=application/json | Accept=application/json } &{data} username=${OSM_USER} password=${OSM_PASSWORD} project-id=${OSM_PROJECT} Creates and returns a dictionary based on the given ``items``. &{data} = { username=admin | password=admin | project-id=admin } ${resp} osmhit ${AUTH_TOKEN_URI} json=${data} headers=${headers} Sends a POST request on a previously created HTTP Session. POST Request : url=https://172.21.249.226:9999/osm/admin/v1/tokens path_url=/osm/admin/v1/tokens headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Content-Length': '65'} body=b'{"username": "admin", "password": "admin", "project-id": "admin"}' POST Response : url=https://172.21.249.226:9999/osm/admin/v1/tokens status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Mon, 19 Feb 2024 06:00:36 GMT', 'Www-Authenticate': 'Bearer realm="Needed a token or Authorization http header"', 'Location': '/osm/admin/v1/tokens/UHX389B4JB9nbShVV3t2GzyhJvS6JrL3', 'Content-Length': '656', 'Set-Cookie': 'session_id=15a850d718ba2ec39de027521fe867c43210b142; expires=Mon, 19 Feb 2024 07:00:36 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "issued_at": 1708322436.3770678, "expires": 1708326036.3770678, "_id": "UHX389B4JB9nbShVV3t2GzyhJvS6JrL3", "id": "UHX389B4JB9nbShVV3t2GzyhJvS6JrL3", "project_id": "0658771c-e387-4292-a51e-090f213f77c7", "project_name": "admin", "username": "admin", "user_id": "6f8a9822-aeed-41ff-a40f-c415aa977b1d", "admin": true, "roles": [ { "name": "system_admin", "id": "db8ed9d6-d198-42b0-b653-bb397576f11a" } ], "login_count": 0, "last_login": 1708322434.1021316, "admin_show": true, "user_show": false, "remote_port": 10625, "remote_host": "10.244.0.1" } ${resp} = <Response [200]> ${resp} Logs the given message with the given level. <Response [200]> ${resp.status_code} in ${SUCCESS_STATUS_CODE_LIST} Get Auth Token completed Conditionally skips rest of the current test, setup, or teardown with PASS status. ${TOKEN_STATUS_CODE} ${resp.status_code} Makes a variable available everywhere within the scope of the current suite. ${TOKEN_STATUS_CODE} = 200 ${access_token} ${resp.json()} $..id Get Value From JSON using JSONPath ${access_token} = ['UHX389B4JB9nbShVV3t2GzyhJvS6JrL3', 'db8ed9d6-d198-42b0-b653-bb397576f11a'] ${ACCESS_TOKEN} ${access_token[0]} Makes a variable available everywhere within the scope of the current test. ${ACCESS_TOKEN} = UHX389B4JB9nbShVV3t2GzyhJvS6JrL3 ${TOKEN_RESPONSE} ${resp} Makes a variable available everywhere within the scope of the current test. ${TOKEN_RESPONSE} = <Response [200]> 2s Pauses the test executed for the given time. Slept 2 seconds ${json_path} Read Current Directory and return it ${Directory} /robot-systest/lib lib resources Replaces ``search_for`` in the given ``string`` with ``replace_with``. ${Directory} = /robot-systest/resources ${json_path} ${Directory} Returns the given values which can then be assigned to a variables. ${json_path} = /robot-systest/resources ${json_path} ${json_path} = /robot-systest/resources ${updated_json_obj} ${json_path}/sol003_01-vnf-lifecycle-management.json Load JSON from file. ${updated_json_obj} = {'data': [{'vnfdId': 'hackfest_basic_metrics-vnf', 'vnfInstanceName': 'sol003-instance', 'vnfInstanceDescription': 'Test vnfm instance description', 'vimAccountId': '8dc2f11d-e08a-4ec7-920c-6b8a88bff1... ${updated_json_obj} ${UPDATED_JSON_OBJ['data'][2]} Returns variable value or ``default`` if the variable does not exist. ${updated_json_obj} = {'type': 'SCALE_OUT', 'aspectId': 'vdu_autoscale', 'numberOfSteps': '1', 'additionalParams': {'member-vnf-index': '1'}} ${UPDATED_JSON_OBJ} Makes a variable available everywhere within the scope of the current test. ${UPDATED_JSON_OBJ} = {'type': 'SCALE_OUT', 'aspectId': 'vdu_autoscale', 'numberOfSteps': '1', 'additionalParams': {'member-vnf-index': '1'}} ${VNF_INSTANCE_URI}/${CREATEID}/scale ${UPDATED_JSON_OBJ} Send to OSM a POST API message to OSM to the given uri with the given json data, and save response and status code in suite variables to be used later on. APISession ${REST_API_HOST} Create Session: create a HTTP session to a server Creating Session using : alias=APISession, url=https://172.21.249.226:9999, headers={}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 &{headers} Content-Type=application/json Accept=application/json Authorization=Bearer ${ACCESS_TOKEN} Creates and returns a dictionary based on the given ``items``. &{headers} = { Content-Type=application/json | Accept=application/json | Authorization=Bearer UHX389B4JB9nbShVV3t2GzyhJvS6JrL3 } ${request_response} APISession ${PostApi} json=${json_data} headers=${headers} Sends a POST request on a previously created HTTP Session. POST Request : url=https://172.21.249.226:9999/osm/vnflcm/v1/vnf_instances/504f12c0-57cd-4179-933f-a64edb592ed5/scale path_url=/osm/vnflcm/v1/vnf_instances/504f12c0-57cd-4179-933f-a64edb592ed5/scale headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer UHX389B4JB9nbShVV3t2GzyhJvS6JrL3', 'Content-Length': '119'} body=b'{"type": "SCALE_OUT", "aspectId": "vdu_autoscale", "numberOfSteps": "1", "additionalParams": {"member-vnf-index": "1"}}' POST Response : url=https://172.21.249.226:9999/osm/vnflcm/v1/vnf_instances/504f12c0-57cd-4179-933f-a64edb592ed5/scale status=202, reason=Accepted headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Mon, 19 Feb 2024 06:00:38 GMT', 'Location': '/osm/vnflcm/v1/vnf_lcm_op_occs/c7ef3453-9320-47d3-b67e-ac010534c169', 'Content-Length': '53', 'Set-Cookie': 'session_id=1cec58968996aa9fb57617ddaed3ca02897d3104; expires=Mon, 19 Feb 2024 07:00:38 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "id": "c7ef3453-9320-47d3-b67e-ac010534c169" } ${request_response} = <Response [202]> ${REQUEST_RESPONSE} ${request_response} Makes a variable available everywhere within the scope of the current suite. ${REQUEST_RESPONSE} = <Response [202]> ${response_statuscode} ${request_response.status_code} Converts the given item to a Unicode string. ${response_statuscode} = 202 ${RESPONSE_STATUSCODE} ${response_statuscode} Makes a variable available everywhere within the scope of the current suite. ${RESPONSE_STATUSCODE} = 202 ${value} id Examine a REQUEST_RESPONSE dictionary as JSON and return the requested key passed as argument. ${REQUEST_RESPONSE.status_code} in ${SUCCESS_STATUS_CODE_LIST} Get Auth Token completed Conditionally skips rest of the current test, setup, or teardown with PASS status. ${id} ${REQUEST_RESPONSE.json()} $..${Key} Get Value From JSON using JSONPath ${id} = ['c7ef3453-9320-47d3-b67e-ac010534c169'] ${id[0]} ${value} = c7ef3453-9320-47d3-b67e-ac010534c169 ${id1} ${request_response.json()} $..id Get Value From JSON using JSONPath ${id1} = ['c7ef3453-9320-47d3-b67e-ac010534c169'] ${SCALEOUTID} ${id1[0]} Makes a variable available everywhere within the scope of the current suite. ${SCALEOUTID} = c7ef3453-9320-47d3-b67e-ac010534c169 ${VNF_INSTANCE_LCM_OPS}/${SCALEOUTID} Send to OSM a GET API message to OSM to the given uri, and save response and status code in suite variables to be used later on. Session ${REST_API_HOST} Create Session: create a HTTP session to a server Creating Session using : alias=Session, url=https://172.21.249.226:9999, headers={}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 &{headers} Content-Type=application/json Accept=application/json Authorization=Bearer ${ACCESS_TOKEN} Creates and returns a dictionary based on the given ``items``. &{headers} = { Content-Type=application/json | Accept=application/json | Authorization=Bearer UHX389B4JB9nbShVV3t2GzyhJvS6JrL3 } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.249.226:9999/osm/vnflcm/v1/vnf_lcm_op_occs/c7ef3453-9320-47d3-b67e-ac010534c169 path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/c7ef3453-9320-47d3-b67e-ac010534c169 headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer UHX389B4JB9nbShVV3t2GzyhJvS6JrL3'} body=None GET Response : url=https://172.21.249.226:9999/osm/vnflcm/v1/vnf_lcm_op_occs/c7ef3453-9320-47d3-b67e-ac010534c169 status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Mon, 19 Feb 2024 06:00:38 GMT', 'Content-Length': '997', 'Set-Cookie': 'session_id=8e688b896554783d95dd430e186da2e809333336; expires=Mon, 19 Feb 2024 07:00:38 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "c7ef3453-9320-47d3-b67e-ac010534c169", "id": "c7ef3453-9320-47d3-b67e-ac010534c169", "operationState": "PROCESSING", "queuePosition": null, "stage": null, "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1708322438.4899194, "lcmOperationType": "scale", "startTime": 1708322438.4899194, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1708322438.4899485, "modified": 1708322438.4899485, "projects_read": [ "0658771c-e387-4292-a51e-090f213f77c7" ], "projects_write": [ "0658771c-e387-4292-a51e-090f213f77c7" ], "worker": "2dcdf4f7479d" }, "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/c7ef3453-9320-47d3-b67e-ac010534c169", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/504f12c0-57cd-4179-933f-a64edb592ed5" }, "vnfInstanceId": "504f12c0-57cd-4179-933f-a64edb592ed5" } ${request_response} = <Response [200]> ${REQUEST_RESPONSE} ${request_response} Makes a variable available everywhere within the scope of the current suite. ${REQUEST_RESPONSE} = <Response [200]> ${response_statuscode} ${request_response.status_code} Converts the given item to a Unicode string. ${response_statuscode} = 200 ${RESPONSE_STATUSCODE} ${response_statuscode} Makes a variable available everywhere within the scope of the current suite. ${RESPONSE_STATUSCODE} = 200 ${LcmopsScale} ${request_response.json()} $.._id Get Value From JSON using JSONPath ${LcmopsScale} = ['c7ef3453-9320-47d3-b67e-ac010534c169'] ${LCMOPSSCALEID} ${LcmopsScale[0]} Makes a variable available everywhere within the scope of the current suite. ${LCMOPSSCALEID} = c7ef3453-9320-47d3-b67e-ac010534c169 ${index} 0 15 0 ${index} Logs the given message with the given level. 0 ${VNF_INSTANCE_LCM_OPS}/${SCALEOUTID} Send to OSM a GET API message to OSM to the given uri, and save response and status code in suite variables to be used later on. Session ${REST_API_HOST} Create Session: create a HTTP session to a server Creating Session using : alias=Session, url=https://172.21.249.226:9999, headers={}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 &{headers} Content-Type=application/json Accept=application/json Authorization=Bearer ${ACCESS_TOKEN} Creates and returns a dictionary based on the given ``items``. &{headers} = { Content-Type=application/json | Accept=application/json | Authorization=Bearer UHX389B4JB9nbShVV3t2GzyhJvS6JrL3 } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.249.226:9999/osm/vnflcm/v1/vnf_lcm_op_occs/c7ef3453-9320-47d3-b67e-ac010534c169 path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/c7ef3453-9320-47d3-b67e-ac010534c169 headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer UHX389B4JB9nbShVV3t2GzyhJvS6JrL3'} body=None GET Response : url=https://172.21.249.226:9999/osm/vnflcm/v1/vnf_lcm_op_occs/c7ef3453-9320-47d3-b67e-ac010534c169 status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Mon, 19 Feb 2024 06:00:38 GMT', 'Content-Length': '1040', 'Set-Cookie': 'session_id=4aa5a2ad17ff5f9b5c313a49ccf49b24d055218c; expires=Mon, 19 Feb 2024 07:00:38 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "c7ef3453-9320-47d3-b67e-ac010534c169", "id": "c7ef3453-9320-47d3-b67e-ac010534c169", "operationState": "PROCESSING", "queuePosition": 0, "stage": "", "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1708322438.4899194, "lcmOperationType": "scale", "startTime": 1708322438.4899194, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1708322438.4899485, "modified": 1708322438.6860907, "projects_read": [ "0658771c-e387-4292-a51e-090f213f77c7" ], "projects_write": [ "0658771c-e387-4292-a51e-090f213f77c7" ], "worker": "2dcdf4f7479d" }, "detailed-status": " VIM: (progress 0/1)", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/c7ef3453-9320-47d3-b67e-ac010534c169", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/504f12c0-57cd-4179-933f-a64edb592ed5" }, "vnfInstanceId": "504f12c0-57cd-4179-933f-a64edb592ed5" } ${request_response} = <Response [200]> ${REQUEST_RESPONSE} ${request_response} Makes a variable available everywhere within the scope of the current suite. ${REQUEST_RESPONSE} = <Response [200]> ${response_statuscode} ${request_response.status_code} Converts the given item to a Unicode string. ${response_statuscode} = 200 ${RESPONSE_STATUSCODE} ${response_statuscode} Makes a variable available everywhere within the scope of the current suite. ${RESPONSE_STATUSCODE} = 200 ${value} operationState Examine a REQUEST_RESPONSE dictionary as JSON and return the requested key passed as argument. ${REQUEST_RESPONSE.status_code} in ${SUCCESS_STATUS_CODE_LIST} Get Auth Token completed Conditionally skips rest of the current test, setup, or teardown with PASS status. ${id} ${REQUEST_RESPONSE.json()} $..${Key} Get Value From JSON using JSONPath ${id} = ['PROCESSING'] ${id[0]} ${value} = PROCESSING ${status} Should Be Equal ${value} COMPLETED Runs the given keyword with given arguments and returns the status as a Boolean value. ${value} COMPLETED Fails if the given objects are unequal. PROCESSING != COMPLETED ${status} = False 10s Pauses the test executed for the given time. Slept 10 seconds 1 ${index} Logs the given message with the given level. 1 ${VNF_INSTANCE_LCM_OPS}/${SCALEOUTID} Send to OSM a GET API message to OSM to the given uri, and save response and status code in suite variables to be used later on. Session ${REST_API_HOST} Create Session: create a HTTP session to a server Creating Session using : alias=Session, url=https://172.21.249.226:9999, headers={}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 &{headers} Content-Type=application/json Accept=application/json Authorization=Bearer ${ACCESS_TOKEN} Creates and returns a dictionary based on the given ``items``. &{headers} = { Content-Type=application/json | Accept=application/json | Authorization=Bearer UHX389B4JB9nbShVV3t2GzyhJvS6JrL3 } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.249.226:9999/osm/vnflcm/v1/vnf_lcm_op_occs/c7ef3453-9320-47d3-b67e-ac010534c169 path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/c7ef3453-9320-47d3-b67e-ac010534c169 headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer UHX389B4JB9nbShVV3t2GzyhJvS6JrL3'} body=None GET Response : url=https://172.21.249.226:9999/osm/vnflcm/v1/vnf_lcm_op_occs/c7ef3453-9320-47d3-b67e-ac010534c169 status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Mon, 19 Feb 2024 06:00:48 GMT', 'Content-Length': '1040', 'Set-Cookie': 'session_id=224678ea618a40107995536df8f8aeabac55dbcb; expires=Mon, 19 Feb 2024 07:00:48 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "c7ef3453-9320-47d3-b67e-ac010534c169", "id": "c7ef3453-9320-47d3-b67e-ac010534c169", "operationState": "PROCESSING", "queuePosition": 0, "stage": "", "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1708322438.4899194, "lcmOperationType": "scale", "startTime": 1708322438.4899194, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1708322438.4899485, "modified": 1708322438.6860907, "projects_read": [ "0658771c-e387-4292-a51e-090f213f77c7" ], "projects_write": [ "0658771c-e387-4292-a51e-090f213f77c7" ], "worker": "2dcdf4f7479d" }, "detailed-status": " VIM: (progress 0/1)", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/c7ef3453-9320-47d3-b67e-ac010534c169", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/504f12c0-57cd-4179-933f-a64edb592ed5" }, "vnfInstanceId": "504f12c0-57cd-4179-933f-a64edb592ed5" } ${request_response} = <Response [200]> ${REQUEST_RESPONSE} ${request_response} Makes a variable available everywhere within the scope of the current suite. ${REQUEST_RESPONSE} = <Response [200]> ${response_statuscode} ${request_response.status_code} Converts the given item to a Unicode string. ${response_statuscode} = 200 ${RESPONSE_STATUSCODE} ${response_statuscode} Makes a variable available everywhere within the scope of the current suite. ${RESPONSE_STATUSCODE} = 200 ${value} operationState Examine a REQUEST_RESPONSE dictionary as JSON and return the requested key passed as argument. ${REQUEST_RESPONSE.status_code} in ${SUCCESS_STATUS_CODE_LIST} Get Auth Token completed Conditionally skips rest of the current test, setup, or teardown with PASS status. ${id} ${REQUEST_RESPONSE.json()} $..${Key} Get Value From JSON using JSONPath ${id} = ['PROCESSING'] ${id[0]} ${value} = PROCESSING ${status} Should Be Equal ${value} COMPLETED Runs the given keyword with given arguments and returns the status as a Boolean value. ${value} COMPLETED Fails if the given objects are unequal. PROCESSING != COMPLETED ${status} = False 10s Pauses the test executed for the given time. Slept 10 seconds 2 ${index} Logs the given message with the given level. 2 ${VNF_INSTANCE_LCM_OPS}/${SCALEOUTID} Send to OSM a GET API message to OSM to the given uri, and save response and status code in suite variables to be used later on. Session ${REST_API_HOST} Create Session: create a HTTP session to a server Creating Session using : alias=Session, url=https://172.21.249.226:9999, headers={}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 &{headers} Content-Type=application/json Accept=application/json Authorization=Bearer ${ACCESS_TOKEN} Creates and returns a dictionary based on the given ``items``. &{headers} = { Content-Type=application/json | Accept=application/json | Authorization=Bearer UHX389B4JB9nbShVV3t2GzyhJvS6JrL3 } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.249.226:9999/osm/vnflcm/v1/vnf_lcm_op_occs/c7ef3453-9320-47d3-b67e-ac010534c169 path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/c7ef3453-9320-47d3-b67e-ac010534c169 headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer UHX389B4JB9nbShVV3t2GzyhJvS6JrL3'} body=None GET Response : url=https://172.21.249.226:9999/osm/vnflcm/v1/vnf_lcm_op_occs/c7ef3453-9320-47d3-b67e-ac010534c169 status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Mon, 19 Feb 2024 06:00:58 GMT', 'Content-Length': '1040', 'Set-Cookie': 'session_id=78087c89f375752a2ee4e46eeac35655c6495d1f; expires=Mon, 19 Feb 2024 07:00:58 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "c7ef3453-9320-47d3-b67e-ac010534c169", "id": "c7ef3453-9320-47d3-b67e-ac010534c169", "operationState": "PROCESSING", "queuePosition": 0, "stage": "", "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1708322438.4899194, "lcmOperationType": "scale", "startTime": 1708322438.4899194, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1708322438.4899485, "modified": 1708322438.6860907, "projects_read": [ "0658771c-e387-4292-a51e-090f213f77c7" ], "projects_write": [ "0658771c-e387-4292-a51e-090f213f77c7" ], "worker": "2dcdf4f7479d" }, "detailed-status": " VIM: (progress 0/1)", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/c7ef3453-9320-47d3-b67e-ac010534c169", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/504f12c0-57cd-4179-933f-a64edb592ed5" }, "vnfInstanceId": "504f12c0-57cd-4179-933f-a64edb592ed5" } ${request_response} = <Response [200]> ${REQUEST_RESPONSE} ${request_response} Makes a variable available everywhere within the scope of the current suite. ${REQUEST_RESPONSE} = <Response [200]> ${response_statuscode} ${request_response.status_code} Converts the given item to a Unicode string. ${response_statuscode} = 200 ${RESPONSE_STATUSCODE} ${response_statuscode} Makes a variable available everywhere within the scope of the current suite. ${RESPONSE_STATUSCODE} = 200 ${value} operationState Examine a REQUEST_RESPONSE dictionary as JSON and return the requested key passed as argument. ${REQUEST_RESPONSE.status_code} in ${SUCCESS_STATUS_CODE_LIST} Get Auth Token completed Conditionally skips rest of the current test, setup, or teardown with PASS status. ${id} ${REQUEST_RESPONSE.json()} $..${Key} Get Value From JSON using JSONPath ${id} = ['PROCESSING'] ${id[0]} ${value} = PROCESSING ${status} Should Be Equal ${value} COMPLETED Runs the given keyword with given arguments and returns the status as a Boolean value. ${value} COMPLETED Fails if the given objects are unequal. PROCESSING != COMPLETED ${status} = False 10s Pauses the test executed for the given time. Slept 10 seconds 3 ${index} Logs the given message with the given level. 3 ${VNF_INSTANCE_LCM_OPS}/${SCALEOUTID} Send to OSM a GET API message to OSM to the given uri, and save response and status code in suite variables to be used later on. Session ${REST_API_HOST} Create Session: create a HTTP session to a server Creating Session using : alias=Session, url=https://172.21.249.226:9999, headers={}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 &{headers} Content-Type=application/json Accept=application/json Authorization=Bearer ${ACCESS_TOKEN} Creates and returns a dictionary based on the given ``items``. &{headers} = { Content-Type=application/json | Accept=application/json | Authorization=Bearer UHX389B4JB9nbShVV3t2GzyhJvS6JrL3 } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.249.226:9999/osm/vnflcm/v1/vnf_lcm_op_occs/c7ef3453-9320-47d3-b67e-ac010534c169 path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/c7ef3453-9320-47d3-b67e-ac010534c169 headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer UHX389B4JB9nbShVV3t2GzyhJvS6JrL3'} body=None GET Response : url=https://172.21.249.226:9999/osm/vnflcm/v1/vnf_lcm_op_occs/c7ef3453-9320-47d3-b67e-ac010534c169 status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Mon, 19 Feb 2024 06:01:08 GMT', 'Content-Length': '1021', 'Set-Cookie': 'session_id=dbdda75d5a85ba4847c6ed57956cbe3a9670c922; expires=Mon, 19 Feb 2024 07:01:08 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "c7ef3453-9320-47d3-b67e-ac010534c169", "id": "c7ef3453-9320-47d3-b67e-ac010534c169", "operationState": "COMPLETED", "queuePosition": 0, "stage": "", "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1708322468.7986147, "lcmOperationType": "scale", "startTime": 1708322438.4899194, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1708322438.4899485, "modified": 1708322468.798618, "projects_read": [ "0658771c-e387-4292-a51e-090f213f77c7" ], "projects_write": [ "0658771c-e387-4292-a51e-090f213f77c7" ], "worker": "2dcdf4f7479d" }, "detailed-status": "Done", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/c7ef3453-9320-47d3-b67e-ac010534c169", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/504f12c0-57cd-4179-933f-a64edb592ed5" }, "vnfInstanceId": "504f12c0-57cd-4179-933f-a64edb592ed5" } ${request_response} = <Response [200]> ${REQUEST_RESPONSE} ${request_response} Makes a variable available everywhere within the scope of the current suite. ${REQUEST_RESPONSE} = <Response [200]> ${response_statuscode} ${request_response.status_code} Converts the given item to a Unicode string. ${response_statuscode} = 200 ${RESPONSE_STATUSCODE} ${response_statuscode} Makes a variable available everywhere within the scope of the current suite. ${RESPONSE_STATUSCODE} = 200 ${value} operationState Examine a REQUEST_RESPONSE dictionary as JSON and return the requested key passed as argument. ${REQUEST_RESPONSE.status_code} in ${SUCCESS_STATUS_CODE_LIST} Get Auth Token completed Conditionally skips rest of the current test, setup, or teardown with PASS status. ${id} ${REQUEST_RESPONSE.json()} $..${Key} Get Value From JSON using JSONPath ${id} = ['COMPLETED'] ${id[0]} ${value} = COMPLETED ${status} Should Be Equal ${value} COMPLETED Runs the given keyword with given arguments and returns the status as a Boolean value. ${value} COMPLETED Fails if the given objects are unequal. ${status} = True 10s Pauses the test executed for the given time. ${request_response.status_code} in ${SUCCESS_STATUS_CODE_LIST} Scale VNF instance completed Conditionally skips rest of the current test, setup, or teardown with PASS status. Scale out VNF cluster_osm_rest daily regression sol003_01 Send a REST POST message to OSM to get an authentication token, and store the authentication token in a suite variable to be used later on. Set the REST_API_HOST suite variable from OSM_HOSTNAME env variable ${nbi_host} OSM_HOSTNAME Returns the value of an environment variable with the given name. ${nbi_host} = 172.21.249.226 ${passed} Should Contain ${nbi_host} : Runs the given keyword with given arguments and returns the status as a Boolean value. ${nbi_host} : Fails if ``container`` does not contain ``item`` one or more times. '172.21.249.226' does not contain ':' ${passed} = False ${nbi_host} Set the suite variable REST_API_HOST to be used in this library and the testsuites using it. This method must be used if the tests are run from a container in the same K8s cluster where OSM is running. ${nbi_host} Set a suite variable REST_API_HOST to be used in this library and the testsuites using it. This method must be used if the tests are run from any place outside the K8s cluster where OSM is running. ${REST_API_HOST} https://${env_host}:9999 Makes a variable available everywhere within the scope of the current suite. ${REST_API_HOST} = https://172.21.249.226:9999 osmhit ${REST_API_HOST} disable_warnings=1 Create Session: create a HTTP session to a server Creating Session using : alias=osmhit, url=https://172.21.249.226:9999, headers={}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 &{headers} Content-Type=application/json Accept=application/json Creates and returns a dictionary based on the given ``items``. &{headers} = { Content-Type=application/json | Accept=application/json } &{data} username=${OSM_USER} password=${OSM_PASSWORD} project-id=${OSM_PROJECT} Creates and returns a dictionary based on the given ``items``. &{data} = { username=admin | password=admin | project-id=admin } ${resp} osmhit ${AUTH_TOKEN_URI} json=${data} headers=${headers} Sends a POST request on a previously created HTTP Session. POST Request : url=https://172.21.249.226:9999/osm/admin/v1/tokens path_url=/osm/admin/v1/tokens headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Content-Length': '65'} body=b'{"username": "admin", "password": "admin", "project-id": "admin"}' POST Response : url=https://172.21.249.226:9999/osm/admin/v1/tokens status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Mon, 19 Feb 2024 06:01:09 GMT', 'Www-Authenticate': 'Bearer realm="Needed a token or Authorization http header"', 'Location': '/osm/admin/v1/tokens/lnQLyvsWxNfkMl43qg8U7N4s7UBB3xOq', 'Content-Length': '654', 'Set-Cookie': 'session_id=7772fd9d88f8d39b609edce8738a0f26070e39c5; expires=Mon, 19 Feb 2024 07:01:09 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "issued_at": 1708322469.101131, "expires": 1708326069.101131, "_id": "lnQLyvsWxNfkMl43qg8U7N4s7UBB3xOq", "id": "lnQLyvsWxNfkMl43qg8U7N4s7UBB3xOq", "project_id": "0658771c-e387-4292-a51e-090f213f77c7", "project_name": "admin", "username": "admin", "user_id": "6f8a9822-aeed-41ff-a40f-c415aa977b1d", "admin": true, "roles": [ { "name": "system_admin", "id": "db8ed9d6-d198-42b0-b653-bb397576f11a" } ], "login_count": 0, "last_login": 1708322436.3770678, "admin_show": true, "user_show": false, "remote_port": 29747, "remote_host": "10.244.0.1" } ${resp} = <Response [200]> ${resp} Logs the given message with the given level. <Response [200]> ${resp.status_code} in ${SUCCESS_STATUS_CODE_LIST} Get Auth Token completed Conditionally skips rest of the current test, setup, or teardown with PASS status. ${TOKEN_STATUS_CODE} ${resp.status_code} Makes a variable available everywhere within the scope of the current suite. ${TOKEN_STATUS_CODE} = 200 ${access_token} ${resp.json()} $..id Get Value From JSON using JSONPath ${access_token} = ['lnQLyvsWxNfkMl43qg8U7N4s7UBB3xOq', 'db8ed9d6-d198-42b0-b653-bb397576f11a'] ${ACCESS_TOKEN} ${access_token[0]} Makes a variable available everywhere within the scope of the current test. ${ACCESS_TOKEN} = lnQLyvsWxNfkMl43qg8U7N4s7UBB3xOq ${TOKEN_RESPONSE} ${resp} Makes a variable available everywhere within the scope of the current test. ${TOKEN_RESPONSE} = <Response [200]> 2s Pauses the test executed for the given time. Slept 2 seconds ${json_path} Read Current Directory and return it ${Directory} /robot-systest/lib lib resources Replaces ``search_for`` in the given ``string`` with ``replace_with``. ${Directory} = /robot-systest/resources ${json_path} ${Directory} Returns the given values which can then be assigned to a variables. ${json_path} = /robot-systest/resources ${json_path} ${json_path} = /robot-systest/resources ${updated_json_obj} ${json_path}/sol003_01-vnf-lifecycle-management.json Load JSON from file. ${updated_json_obj} = {'data': [{'vnfdId': 'hackfest_basic_metrics-vnf', 'vnfInstanceName': 'sol003-instance', 'vnfInstanceDescription': 'Test vnfm instance description', 'vimAccountId': '8dc2f11d-e08a-4ec7-920c-6b8a88bff1... ${updated_json_obj} ${UPDATED_JSON_OBJ['data'][3]} Returns variable value or ``default`` if the variable does not exist. ${updated_json_obj} = {'terminationType': 'GRACEFUL', 'gracefulTerminationTimeout': '5'} ${UPDATED_JSON_OBJ} Makes a variable available everywhere within the scope of the current suite. ${UPDATED_JSON_OBJ} = {'terminationType': 'GRACEFUL', 'gracefulTerminationTimeout': '5'} ${VNF_INSTANCE_URI}/${CREATEID}/terminate ${UPDATED_JSON_OBJ} Send to OSM a POST API message to OSM to the given uri with the given json data, and save response and status code in suite variables to be used later on. APISession ${REST_API_HOST} Create Session: create a HTTP session to a server Creating Session using : alias=APISession, url=https://172.21.249.226:9999, headers={}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 &{headers} Content-Type=application/json Accept=application/json Authorization=Bearer ${ACCESS_TOKEN} Creates and returns a dictionary based on the given ``items``. &{headers} = { Content-Type=application/json | Accept=application/json | Authorization=Bearer lnQLyvsWxNfkMl43qg8U7N4s7UBB3xOq } ${request_response} APISession ${PostApi} json=${json_data} headers=${headers} Sends a POST request on a previously created HTTP Session. POST Request : url=https://172.21.249.226:9999/osm/vnflcm/v1/vnf_instances/504f12c0-57cd-4179-933f-a64edb592ed5/terminate path_url=/osm/vnflcm/v1/vnf_instances/504f12c0-57cd-4179-933f-a64edb592ed5/terminate headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer lnQLyvsWxNfkMl43qg8U7N4s7UBB3xOq', 'Content-Length': '66'} body=b'{"terminationType": "GRACEFUL", "gracefulTerminationTimeout": "5"}' POST Response : url=https://172.21.249.226:9999/osm/vnflcm/v1/vnf_instances/504f12c0-57cd-4179-933f-a64edb592ed5/terminate status=202, reason=Accepted headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Mon, 19 Feb 2024 06:01:11 GMT', 'Location': '/osm/vnflcm/v1/vnf_lcm_op_occs/a6358281-9688-424d-b9fa-a8d639d3fb32', 'Content-Length': '53', 'Set-Cookie': 'session_id=999245b535a773f9fc497c1a5819f82432e3cc18; expires=Mon, 19 Feb 2024 07:01:11 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "id": "a6358281-9688-424d-b9fa-a8d639d3fb32" } ${request_response} = <Response [202]> ${REQUEST_RESPONSE} ${request_response} Makes a variable available everywhere within the scope of the current suite. ${REQUEST_RESPONSE} = <Response [202]> ${response_statuscode} ${request_response.status_code} Converts the given item to a Unicode string. ${response_statuscode} = 202 ${RESPONSE_STATUSCODE} ${response_statuscode} Makes a variable available everywhere within the scope of the current suite. ${RESPONSE_STATUSCODE} = 202 ${id} ${request_response.json()} $..id Get Value From JSON using JSONPath ${id} = ['a6358281-9688-424d-b9fa-a8d639d3fb32'] ${TERMINATEID} ${id[0]} Makes a variable available everywhere within the scope of the current suite. ${TERMINATEID} = a6358281-9688-424d-b9fa-a8d639d3fb32 ${VNF_INSTANCE_LCM_OPS}/${TERMINATEID} Send to OSM a GET API message to OSM to the given uri, and save response and status code in suite variables to be used later on. Session ${REST_API_HOST} Create Session: create a HTTP session to a server Creating Session using : alias=Session, url=https://172.21.249.226:9999, headers={}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 &{headers} Content-Type=application/json Accept=application/json Authorization=Bearer ${ACCESS_TOKEN} Creates and returns a dictionary based on the given ``items``. &{headers} = { Content-Type=application/json | Accept=application/json | Authorization=Bearer lnQLyvsWxNfkMl43qg8U7N4s7UBB3xOq } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.249.226:9999/osm/vnflcm/v1/vnf_lcm_op_occs/a6358281-9688-424d-b9fa-a8d639d3fb32 path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/a6358281-9688-424d-b9fa-a8d639d3fb32 headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer lnQLyvsWxNfkMl43qg8U7N4s7UBB3xOq'} body=None GET Response : url=https://172.21.249.226:9999/osm/vnflcm/v1/vnf_lcm_op_occs/a6358281-9688-424d-b9fa-a8d639d3fb32 status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Mon, 19 Feb 2024 06:01:11 GMT', 'Content-Length': '1071', 'Set-Cookie': 'session_id=0e405bcb60a01a14ca460c00881bb6ee8ce9e604; expires=Mon, 19 Feb 2024 07:01:11 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "a6358281-9688-424d-b9fa-a8d639d3fb32", "id": "a6358281-9688-424d-b9fa-a8d639d3fb32", "operationState": "PROCESSING", "queuePosition": 0, "stage": "Stage 3/3 delete all.", "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1708322471.2364242, "lcmOperationType": "terminate", "startTime": 1708322471.2364242, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1708322471.2364547, "modified": 1708322471.3585274, "projects_read": [ "0658771c-e387-4292-a51e-090f213f77c7" ], "projects_write": [ "0658771c-e387-4292-a51e-090f213f77c7" ], "worker": "2dcdf4f7479d" }, "detailed-status": "Stage 3/3 delete all. 0/1. ", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/a6358281-9688-424d-b9fa-a8d639d3fb32", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/504f12c0-57cd-4179-933f-a64edb592ed5" }, "vnfInstanceId": "504f12c0-57cd-4179-933f-a64edb592ed5" } ${request_response} = <Response [200]> ${REQUEST_RESPONSE} ${request_response} Makes a variable available everywhere within the scope of the current suite. ${REQUEST_RESPONSE} = <Response [200]> ${response_statuscode} ${request_response.status_code} Converts the given item to a Unicode string. ${response_statuscode} = 200 ${RESPONSE_STATUSCODE} ${response_statuscode} Makes a variable available everywhere within the scope of the current suite. ${RESPONSE_STATUSCODE} = 200 ${LcmopsTerminate} ${request_response.json()} $.._id Get Value From JSON using JSONPath ${LcmopsTerminate} = ['a6358281-9688-424d-b9fa-a8d639d3fb32'] ${LCMOPSSCALEID} ${LcmopsTerminate[0]} Makes a variable available everywhere within the scope of the current suite. ${LCMOPSSCALEID} = a6358281-9688-424d-b9fa-a8d639d3fb32 ${index} 0 15 0 ${index} Logs the given message with the given level. 0 ${VNF_INSTANCE_LCM_OPS}/${TERMINATEID} Send to OSM a GET API message to OSM to the given uri, and save response and status code in suite variables to be used later on. Session ${REST_API_HOST} Create Session: create a HTTP session to a server Creating Session using : alias=Session, url=https://172.21.249.226:9999, headers={}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 &{headers} Content-Type=application/json Accept=application/json Authorization=Bearer ${ACCESS_TOKEN} Creates and returns a dictionary based on the given ``items``. &{headers} = { Content-Type=application/json | Accept=application/json | Authorization=Bearer lnQLyvsWxNfkMl43qg8U7N4s7UBB3xOq } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.249.226:9999/osm/vnflcm/v1/vnf_lcm_op_occs/a6358281-9688-424d-b9fa-a8d639d3fb32 path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/a6358281-9688-424d-b9fa-a8d639d3fb32 headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer lnQLyvsWxNfkMl43qg8U7N4s7UBB3xOq'} body=None GET Response : url=https://172.21.249.226:9999/osm/vnflcm/v1/vnf_lcm_op_occs/a6358281-9688-424d-b9fa-a8d639d3fb32 status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Mon, 19 Feb 2024 06:01:11 GMT', 'Content-Length': '1071', 'Set-Cookie': 'session_id=b872d6f5f4b58b1491a5f5f223dbd93a30114c48; expires=Mon, 19 Feb 2024 07:01:11 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "a6358281-9688-424d-b9fa-a8d639d3fb32", "id": "a6358281-9688-424d-b9fa-a8d639d3fb32", "operationState": "PROCESSING", "queuePosition": 0, "stage": "Stage 3/3 delete all.", "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1708322471.2364242, "lcmOperationType": "terminate", "startTime": 1708322471.2364242, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1708322471.2364547, "modified": 1708322471.3585274, "projects_read": [ "0658771c-e387-4292-a51e-090f213f77c7" ], "projects_write": [ "0658771c-e387-4292-a51e-090f213f77c7" ], "worker": "2dcdf4f7479d" }, "detailed-status": "Stage 3/3 delete all. 0/1. ", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/a6358281-9688-424d-b9fa-a8d639d3fb32", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/504f12c0-57cd-4179-933f-a64edb592ed5" }, "vnfInstanceId": "504f12c0-57cd-4179-933f-a64edb592ed5" } ${request_response} = <Response [200]> ${REQUEST_RESPONSE} ${request_response} Makes a variable available everywhere within the scope of the current suite. ${REQUEST_RESPONSE} = <Response [200]> ${response_statuscode} ${request_response.status_code} Converts the given item to a Unicode string. ${response_statuscode} = 200 ${RESPONSE_STATUSCODE} ${response_statuscode} Makes a variable available everywhere within the scope of the current suite. ${RESPONSE_STATUSCODE} = 200 ${value} operationState Examine a REQUEST_RESPONSE dictionary as JSON and return the requested key passed as argument. ${REQUEST_RESPONSE.status_code} in ${SUCCESS_STATUS_CODE_LIST} Get Auth Token completed Conditionally skips rest of the current test, setup, or teardown with PASS status. ${id} ${REQUEST_RESPONSE.json()} $..${Key} Get Value From JSON using JSONPath ${id} = ['PROCESSING'] ${id[0]} ${value} = PROCESSING ${status} Should Be Equal ${value} COMPLETED Runs the given keyword with given arguments and returns the status as a Boolean value. ${value} COMPLETED Fails if the given objects are unequal. PROCESSING != COMPLETED ${status} = False 10s Pauses the test executed for the given time. Slept 10 seconds 1 ${index} Logs the given message with the given level. 1 ${VNF_INSTANCE_LCM_OPS}/${TERMINATEID} Send to OSM a GET API message to OSM to the given uri, and save response and status code in suite variables to be used later on. Session ${REST_API_HOST} Create Session: create a HTTP session to a server Creating Session using : alias=Session, url=https://172.21.249.226:9999, headers={}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 &{headers} Content-Type=application/json Accept=application/json Authorization=Bearer ${ACCESS_TOKEN} Creates and returns a dictionary based on the given ``items``. &{headers} = { Content-Type=application/json | Accept=application/json | Authorization=Bearer lnQLyvsWxNfkMl43qg8U7N4s7UBB3xOq } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.249.226:9999/osm/vnflcm/v1/vnf_lcm_op_occs/a6358281-9688-424d-b9fa-a8d639d3fb32 path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/a6358281-9688-424d-b9fa-a8d639d3fb32 headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer lnQLyvsWxNfkMl43qg8U7N4s7UBB3xOq'} body=None GET Response : url=https://172.21.249.226:9999/osm/vnflcm/v1/vnf_lcm_op_occs/a6358281-9688-424d-b9fa-a8d639d3fb32 status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Mon, 19 Feb 2024 06:01:21 GMT', 'Content-Length': '1090', 'Set-Cookie': 'session_id=564b6d817d965a5488f7202617a0d596814ac17e; expires=Mon, 19 Feb 2024 07:01:21 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "a6358281-9688-424d-b9fa-a8d639d3fb32", "id": "a6358281-9688-424d-b9fa-a8d639d3fb32", "operationState": "PROCESSING", "queuePosition": 0, "stage": "Stage 3/3 delete all.", "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1708322471.2364242, "lcmOperationType": "terminate", "startTime": 1708322471.2364242, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1708322471.2364547, "modified": 1708322471.5129204, "projects_read": [ "0658771c-e387-4292-a51e-090f213f77c7" ], "projects_write": [ "0658771c-e387-4292-a51e-090f213f77c7" ], "worker": "2dcdf4f7479d" }, "detailed-status": "Stage 3/3 delete all. 0/1. VIM: (progress 0/5)", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/a6358281-9688-424d-b9fa-a8d639d3fb32", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/504f12c0-57cd-4179-933f-a64edb592ed5" }, "vnfInstanceId": "504f12c0-57cd-4179-933f-a64edb592ed5" } ${request_response} = <Response [200]> ${REQUEST_RESPONSE} ${request_response} Makes a variable available everywhere within the scope of the current suite. ${REQUEST_RESPONSE} = <Response [200]> ${response_statuscode} ${request_response.status_code} Converts the given item to a Unicode string. ${response_statuscode} = 200 ${RESPONSE_STATUSCODE} ${response_statuscode} Makes a variable available everywhere within the scope of the current suite. ${RESPONSE_STATUSCODE} = 200 ${value} operationState Examine a REQUEST_RESPONSE dictionary as JSON and return the requested key passed as argument. ${REQUEST_RESPONSE.status_code} in ${SUCCESS_STATUS_CODE_LIST} Get Auth Token completed Conditionally skips rest of the current test, setup, or teardown with PASS status. ${id} ${REQUEST_RESPONSE.json()} $..${Key} Get Value From JSON using JSONPath ${id} = ['PROCESSING'] ${id[0]} ${value} = PROCESSING ${status} Should Be Equal ${value} COMPLETED Runs the given keyword with given arguments and returns the status as a Boolean value. ${value} COMPLETED Fails if the given objects are unequal. PROCESSING != COMPLETED ${status} = False 10s Pauses the test executed for the given time. Slept 10 seconds 2 ${index} Logs the given message with the given level. 2 ${VNF_INSTANCE_LCM_OPS}/${TERMINATEID} Send to OSM a GET API message to OSM to the given uri, and save response and status code in suite variables to be used later on. Session ${REST_API_HOST} Create Session: create a HTTP session to a server Creating Session using : alias=Session, url=https://172.21.249.226:9999, headers={}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 &{headers} Content-Type=application/json Accept=application/json Authorization=Bearer ${ACCESS_TOKEN} Creates and returns a dictionary based on the given ``items``. &{headers} = { Content-Type=application/json | Accept=application/json | Authorization=Bearer lnQLyvsWxNfkMl43qg8U7N4s7UBB3xOq } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.249.226:9999/osm/vnflcm/v1/vnf_lcm_op_occs/a6358281-9688-424d-b9fa-a8d639d3fb32 path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/a6358281-9688-424d-b9fa-a8d639d3fb32 headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer lnQLyvsWxNfkMl43qg8U7N4s7UBB3xOq'} body=None GET Response : url=https://172.21.249.226:9999/osm/vnflcm/v1/vnf_lcm_op_occs/a6358281-9688-424d-b9fa-a8d639d3fb32 status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Mon, 19 Feb 2024 06:01:31 GMT', 'Content-Length': '1025', 'Set-Cookie': 'session_id=4cafa0a963a6e997b2d349a034bd83d93b206b51; expires=Mon, 19 Feb 2024 07:01:31 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "a6358281-9688-424d-b9fa-a8d639d3fb32", "id": "a6358281-9688-424d-b9fa-a8d639d3fb32", "operationState": "COMPLETED", "queuePosition": 0, "stage": "", "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1708322486.612541, "lcmOperationType": "terminate", "startTime": 1708322471.2364242, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1708322471.2364547, "modified": 1708322486.6125433, "projects_read": [ "0658771c-e387-4292-a51e-090f213f77c7" ], "projects_write": [ "0658771c-e387-4292-a51e-090f213f77c7" ], "worker": "2dcdf4f7479d" }, "detailed-status": "Done", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/a6358281-9688-424d-b9fa-a8d639d3fb32", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/504f12c0-57cd-4179-933f-a64edb592ed5" }, "vnfInstanceId": "504f12c0-57cd-4179-933f-a64edb592ed5" } ${request_response} = <Response [200]> ${REQUEST_RESPONSE} ${request_response} Makes a variable available everywhere within the scope of the current suite. ${REQUEST_RESPONSE} = <Response [200]> ${response_statuscode} ${request_response.status_code} Converts the given item to a Unicode string. ${response_statuscode} = 200 ${RESPONSE_STATUSCODE} ${response_statuscode} Makes a variable available everywhere within the scope of the current suite. ${RESPONSE_STATUSCODE} = 200 ${value} operationState Examine a REQUEST_RESPONSE dictionary as JSON and return the requested key passed as argument. ${REQUEST_RESPONSE.status_code} in ${SUCCESS_STATUS_CODE_LIST} Get Auth Token completed Conditionally skips rest of the current test, setup, or teardown with PASS status. ${id} ${REQUEST_RESPONSE.json()} $..${Key} Get Value From JSON using JSONPath ${id} = ['COMPLETED'] ${id[0]} ${value} = COMPLETED ${status} Should Be Equal ${value} COMPLETED Runs the given keyword with given arguments and returns the status as a Boolean value. ${value} COMPLETED Fails if the given objects are unequal. ${status} = True 10s Pauses the test executed for the given time. ${request_response.status_code} in ${SUCCESS_STATUS_CODE_LIST} Terminate VNF instance completed Conditionally skips rest of the current test, setup, or teardown with PASS status. Test case to terminate the VNF cluster_osm_rest daily regression sol003_01 Send a REST POST message to OSM to get an authentication token, and store the authentication token in a suite variable to be used later on. Set the REST_API_HOST suite variable from OSM_HOSTNAME env variable ${nbi_host} OSM_HOSTNAME Returns the value of an environment variable with the given name. ${nbi_host} = 172.21.249.226 ${passed} Should Contain ${nbi_host} : Runs the given keyword with given arguments and returns the status as a Boolean value. ${nbi_host} : Fails if ``container`` does not contain ``item`` one or more times. '172.21.249.226' does not contain ':' ${passed} = False ${nbi_host} Set the suite variable REST_API_HOST to be used in this library and the testsuites using it. This method must be used if the tests are run from a container in the same K8s cluster where OSM is running. ${nbi_host} Set a suite variable REST_API_HOST to be used in this library and the testsuites using it. This method must be used if the tests are run from any place outside the K8s cluster where OSM is running. ${REST_API_HOST} https://${env_host}:9999 Makes a variable available everywhere within the scope of the current suite. ${REST_API_HOST} = https://172.21.249.226:9999 osmhit ${REST_API_HOST} disable_warnings=1 Create Session: create a HTTP session to a server Creating Session using : alias=osmhit, url=https://172.21.249.226:9999, headers={}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 &{headers} Content-Type=application/json Accept=application/json Creates and returns a dictionary based on the given ``items``. &{headers} = { Content-Type=application/json | Accept=application/json } &{data} username=${OSM_USER} password=${OSM_PASSWORD} project-id=${OSM_PROJECT} Creates and returns a dictionary based on the given ``items``. &{data} = { username=admin | password=admin | project-id=admin } ${resp} osmhit ${AUTH_TOKEN_URI} json=${data} headers=${headers} Sends a POST request on a previously created HTTP Session. POST Request : url=https://172.21.249.226:9999/osm/admin/v1/tokens path_url=/osm/admin/v1/tokens headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Content-Length': '65'} body=b'{"username": "admin", "password": "admin", "project-id": "admin"}' POST Response : url=https://172.21.249.226:9999/osm/admin/v1/tokens status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Mon, 19 Feb 2024 06:01:31 GMT', 'Www-Authenticate': 'Bearer realm="Needed a token or Authorization http header"', 'Location': '/osm/admin/v1/tokens/6XbvawgYRe6e4Wu0Hz13qClKgXpN8fEi', 'Content-Length': '654', 'Set-Cookie': 'session_id=3b314d2ffef771cae678dd5a593f06a2998ca28f; expires=Mon, 19 Feb 2024 07:01:31 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "issued_at": 1708322491.7222352, "expires": 1708326091.7222352, "_id": "6XbvawgYRe6e4Wu0Hz13qClKgXpN8fEi", "id": "6XbvawgYRe6e4Wu0Hz13qClKgXpN8fEi", "project_id": "0658771c-e387-4292-a51e-090f213f77c7", "project_name": "admin", "username": "admin", "user_id": "6f8a9822-aeed-41ff-a40f-c415aa977b1d", "admin": true, "roles": [ { "name": "system_admin", "id": "db8ed9d6-d198-42b0-b653-bb397576f11a" } ], "login_count": 0, "last_login": 1708322469.101131, "admin_show": true, "user_show": false, "remote_port": 1972, "remote_host": "10.244.0.1" } ${resp} = <Response [200]> ${resp} Logs the given message with the given level. <Response [200]> ${resp.status_code} in ${SUCCESS_STATUS_CODE_LIST} Get Auth Token completed Conditionally skips rest of the current test, setup, or teardown with PASS status. ${TOKEN_STATUS_CODE} ${resp.status_code} Makes a variable available everywhere within the scope of the current suite. ${TOKEN_STATUS_CODE} = 200 ${access_token} ${resp.json()} $..id Get Value From JSON using JSONPath ${access_token} = ['6XbvawgYRe6e4Wu0Hz13qClKgXpN8fEi', 'db8ed9d6-d198-42b0-b653-bb397576f11a'] ${ACCESS_TOKEN} ${access_token[0]} Makes a variable available everywhere within the scope of the current test. ${ACCESS_TOKEN} = 6XbvawgYRe6e4Wu0Hz13qClKgXpN8fEi ${TOKEN_RESPONSE} ${resp} Makes a variable available everywhere within the scope of the current test. ${TOKEN_RESPONSE} = <Response [200]> 2s Pauses the test executed for the given time. Slept 2 seconds APISession ${REST_API_HOST} Create Session: create a HTTP session to a server Creating Session using : alias=APISession, url=https://172.21.249.226:9999, headers={}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 &{Headers} Content-Type=application/json Accept=application/json Authorization=Bearer ${ACCESS_TOKEN} Creates and returns a dictionary based on the given ``items``. &{Headers} = { Content-Type=application/json | Accept=application/json | Authorization=Bearer 6XbvawgYRe6e4Wu0Hz13qClKgXpN8fEi } ${resp} APISession ${VNF_INSTANCE_URI}/${CREATEID} headers=${Headers} Sends a DELETE request on a previously created HTTP Session. DELETE Request : url=https://172.21.249.226:9999/osm/vnflcm/v1/vnf_instances/504f12c0-57cd-4179-933f-a64edb592ed5 path_url=/osm/vnflcm/v1/vnf_instances/504f12c0-57cd-4179-933f-a64edb592ed5 headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer 6XbvawgYRe6e4Wu0Hz13qClKgXpN8fEi', 'Content-Length': '0'} body=None DELETE Response : url=https://172.21.249.226:9999/osm/vnflcm/v1/vnf_instances/504f12c0-57cd-4179-933f-a64edb592ed5 status=204, reason=No Content headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Mon, 19 Feb 2024 06:01:33 GMT', 'Set-Cookie': 'session_id=5f8f6ebc390f962f80740e9c7782a46ff53c15a8; expires=Mon, 19 Feb 2024 07:01:33 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body=None ${resp} = <Response [204]> ${resp.status_code} in ${SUCCESS_STATUS_CODE_LIST} Delete VNF Instance completed Conditionally skips rest of the current test, setup, or teardown with PASS status. Delete VNF instance. cluster_osm_rest daily regression sol003_01 ${VNFD_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete hackfest_basic_metrics-vnf 2>&1'. ${rc} = 0 ${stdout} = Deleted ${stdout} Logs the given message with the given level. Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep hackfest_basic_metrics-vnf 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. Delete VNF package from OSM. cleanup cluster_osm_rest daily regression sol003_01 Suite Cleanup Runs the given keyword with the given arguments and ignores possible error. Test Suit Cleanup: Deleting Descriptor Delete VNFD ${VNFD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. [SOL003-01] Sol003 Api testing ${VNFD_ID} %{PACKAGES_FOLDER}/${VNFD_PKG} Onboards ("creates") a NF Package into OSM. - Parameters: - vnfd_pkg: Name (and location) of the NF Package - overrides (optional): String with options to override the EPA and/or interface properties of the Package. This is very useful to allow to deploy e.g. non-EPA packages in EPA VIMs (or vice-versa). Valid strings are the same as in the command. E.g.: - `--override-epa`: adds EPA attributes to all VDUs. - `--override-nonepa`: removes all EPA attributes from all VDUs. - `--override-paravirt`: converts all interfaces to `PARAVIRT`. This one can be combined with the others above (e.g. '--override-nonepa --override-paravirt'). - Relevant environment variables: - OVERRIDES: If the environment variable "OVERRIDES" exists, it prevails over the value in the argument. This is often more convenient to enforce the same behaviour for every test run in a given VIM. ${overrides} OVERRIDES default=${overrides} Returns the value of an environment variable with the given name. ${overrides} = ${rc} ${stdout} osm vnfpkg-create ${overrides} ${vnfd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-create /robot-systest/osm-packages/hackfest_basic_vnf 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/hackfest_basic_vnf Validation OK List of charms in the descriptor: set() Adding File: hackfest_basic_vnf Package created: /robot-systest/osm-packages/hac... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/hackfest_basic_vnf Validation OK List of charms in the descriptor: set() Adding File: hackfest_basic_vnf Package created: /robot-systest/osm-packages/hackfest_basic_vnf.tar.gz Uploading package /robot-systest/osm-packages/hackfest_basic_vnf.tar.gz 9d0aa2ba-98fe-4bdb-8a76-13f3d16872af ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${lines} ${stdout} Returns and logs the number of lines in the given string. 7 lines ${lines} = 7 ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${last} = 6 ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} = 9d0aa2ba-98fe-4bdb-8a76-13f3d16872af ${id} ${VNFD_ID} = 9d0aa2ba-98fe-4bdb-8a76-13f3d16872af ${VNFD_ID} Makes a variable available everywhere within the scope of the current suite. ${VNFD_ID} = 9d0aa2ba-98fe-4bdb-8a76-13f3d16872af ${CREATED_VIM_ACCOUNT_ID} %{VIM_TARGET} Get from OSM the VIM account id associated to the VIM account name passed as parameter. ${rc} ${stdout} osm vim-list | grep " ${vim_name} " | awk '{print $4}' Runs the given command in the system and returns the RC and output. Running command 'osm vim-list | grep " osm " | awk '{print $4}' 2>&1'. ${rc} = 0 ${stdout} = 85764c05-53df-46c7-a9c8-e9e51d2283b7 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${EMPTY} msg=VIM Target '${vim_name}' not found values=false Fails if objects are equal after converting them to strings. ${stdout} ${CREATED_VIM_ACCOUNT_ID} = 85764c05-53df-46c7-a9c8-e9e51d2283b7 ${CREATED_VIM_ACCOUNT_ID} Makes a variable available everywhere within the scope of the current suite. ${CREATED_VIM_ACCOUNT_ID} = 85764c05-53df-46c7-a9c8-e9e51d2283b7 Send a REST POST message to OSM to get an authentication token, and store the authentication token in a suite variable to be used later on. Set the REST_API_HOST suite variable from OSM_HOSTNAME env variable ${nbi_host} OSM_HOSTNAME Returns the value of an environment variable with the given name. ${nbi_host} = 172.21.249.226 ${passed} Should Contain ${nbi_host} : Runs the given keyword with given arguments and returns the status as a Boolean value. ${nbi_host} : Fails if ``container`` does not contain ``item`` one or more times. '172.21.249.226' does not contain ':' ${passed} = False ${nbi_host} Set the suite variable REST_API_HOST to be used in this library and the testsuites using it. This method must be used if the tests are run from a container in the same K8s cluster where OSM is running. ${nbi_host} Set a suite variable REST_API_HOST to be used in this library and the testsuites using it. This method must be used if the tests are run from any place outside the K8s cluster where OSM is running. ${REST_API_HOST} https://${env_host}:9999 Makes a variable available everywhere within the scope of the current suite. ${REST_API_HOST} = https://172.21.249.226:9999 osmhit ${REST_API_HOST} disable_warnings=1 Create Session: create a HTTP session to a server Creating Session using : alias=osmhit, url=https://172.21.249.226:9999, headers={}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 &{headers} Content-Type=application/json Accept=application/json Creates and returns a dictionary based on the given ``items``. &{headers} = { Content-Type=application/json | Accept=application/json } &{data} username=${OSM_USER} password=${OSM_PASSWORD} project-id=${OSM_PROJECT} Creates and returns a dictionary based on the given ``items``. &{data} = { username=admin | password=admin | project-id=admin } ${resp} osmhit ${AUTH_TOKEN_URI} json=${data} headers=${headers} Sends a POST request on a previously created HTTP Session. POST Request : url=https://172.21.249.226:9999/osm/admin/v1/tokens path_url=/osm/admin/v1/tokens headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Content-Length': '65'} body=b'{"username": "admin", "password": "admin", "project-id": "admin"}' POST Response : url=https://172.21.249.226:9999/osm/admin/v1/tokens status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Mon, 19 Feb 2024 06:01:39 GMT', 'Www-Authenticate': 'Bearer realm="Needed a token or Authorization http header"', 'Location': '/osm/admin/v1/tokens/UXRtc08XPuAIsdQKoTg6qPZZQBmR82h2', 'Content-Length': '654', 'Set-Cookie': 'session_id=da78e6da852ca742cdad78d316bd488d9b60c96d; expires=Mon, 19 Feb 2024 07:01:39 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "issued_at": 1708322499.635081, "expires": 1708326099.635081, "_id": "UXRtc08XPuAIsdQKoTg6qPZZQBmR82h2", "id": "UXRtc08XPuAIsdQKoTg6qPZZQBmR82h2", "project_id": "0658771c-e387-4292-a51e-090f213f77c7", "project_name": "admin", "username": "admin", "user_id": "6f8a9822-aeed-41ff-a40f-c415aa977b1d", "admin": true, "roles": [ { "name": "system_admin", "id": "db8ed9d6-d198-42b0-b653-bb397576f11a" } ], "login_count": 0, "last_login": 1708322499.4645176, "admin_show": true, "user_show": false, "remote_port": 32420, "remote_host": "10.244.0.1" } ${resp} = <Response [200]> ${resp} Logs the given message with the given level. <Response [200]> ${resp.status_code} in ${SUCCESS_STATUS_CODE_LIST} Get Auth Token completed Conditionally skips rest of the current test, setup, or teardown with PASS status. ${TOKEN_STATUS_CODE} ${resp.status_code} Makes a variable available everywhere within the scope of the current suite. ${TOKEN_STATUS_CODE} = 200 ${access_token} ${resp.json()} $..id Get Value From JSON using JSONPath ${access_token} = ['UXRtc08XPuAIsdQKoTg6qPZZQBmR82h2', 'db8ed9d6-d198-42b0-b653-bb397576f11a'] ${ACCESS_TOKEN} ${access_token[0]} Makes a variable available everywhere within the scope of the current test. ${ACCESS_TOKEN} = UXRtc08XPuAIsdQKoTg6qPZZQBmR82h2 ${TOKEN_RESPONSE} ${resp} Makes a variable available everywhere within the scope of the current test. ${TOKEN_RESPONSE} = <Response [200]> 2s Pauses the test executed for the given time. Slept 2 seconds ${json_path} Read Current Directory and return it ${Directory} /robot-systest/lib lib resources Replaces ``search_for`` in the given ``string`` with ``replace_with``. ${Directory} = /robot-systest/resources ${json_path} ${Directory} Returns the given values which can then be assigned to a variables. ${json_path} = /robot-systest/resources ${json_path} ${json_path} = /robot-systest/resources ${json_obj} ${json_path}/sol003_02-dualstack_ip_vnfm.json Load JSON from file. ${json_obj} = {'data': [{'vnfdId': 'hackfest_basic-vnf', 'vnfInstanceName': 'sol003-instance', 'vnfInstanceDescription': 'Test vnfm instance description', 'vimAccountId': '8dc2f11d-e08a-4ec7-920c-6b8a88bff1e5', 'ad... ${json_obj} ${json_obj['data'][0]} Returns variable value or ``default`` if the variable does not exist. ${json_obj} = {'vnfdId': 'hackfest_basic-vnf', 'vnfInstanceName': 'sol003-instance', 'vnfInstanceDescription': 'Test vnfm instance description', 'vimAccountId': '8dc2f11d-e08a-4ec7-920c-6b8a88bff1e5', 'additionalPa... ${NS_NAME} ${json_obj['vnfInstanceName']} Returns variable value or ``default`` if the variable does not exist. ${NS_NAME} = sol003-instance ${NS_NAME} Makes a variable available everywhere within the scope of the current suite. ${NS_NAME} = sol003-instance ${UPDATED_JSON_OBJ} ${json_obj} $..vimAccountId ${CREATED_VIM_ACCOUNT_ID} Update value to JSON using JSONPath ${UPDATED_JSON_OBJ} = {'vnfdId': 'hackfest_basic-vnf', 'vnfInstanceName': 'sol003-instance', 'vnfInstanceDescription': 'Test vnfm instance description', 'vimAccountId': '85764c05-53df-46c7-a9c8-e9e51d2283b7', 'additionalPa... ${UPDATED_JSON_OBJ} Logs the given message with the given level. {'vnfdId': 'hackfest_basic-vnf', 'vnfInstanceName': 'sol003-instance', 'vnfInstanceDescription': 'Test vnfm instance description', 'vimAccountId': '85764c05-53df-46c7-a9c8-e9e51d2283b7', 'additionalParams': {'virtual-link-desc': [{'id': 'mgmtnet', 'mgmt-network': True, 'vim-network-name': 'IPv6'}], 'constituent-cpd-id': 'vnf-cp0-ext', 'ip-address': ['2001:db8::5', '192.168.158.6'], 'virtual-link-profile-id': 'mgmtnet'}} ${UPDATED_JSON_OBJ} ${UPDATED_JSON_OBJ} $..additionalParams.virtual-link-desc[0][id] %{VIM_MGMT_NET} Update value to JSON using JSONPath ${UPDATED_JSON_OBJ} = {'vnfdId': 'hackfest_basic-vnf', 'vnfInstanceName': 'sol003-instance', 'vnfInstanceDescription': 'Test vnfm instance description', 'vimAccountId': '85764c05-53df-46c7-a9c8-e9e51d2283b7', 'additionalPa... ${UPDATED_JSON_OBJ} Logs the given message with the given level. {'vnfdId': 'hackfest_basic-vnf', 'vnfInstanceName': 'sol003-instance', 'vnfInstanceDescription': 'Test vnfm instance description', 'vimAccountId': '85764c05-53df-46c7-a9c8-e9e51d2283b7', 'additionalParams': {'virtual-link-desc': [{'id': 'osm-ext', 'mgmt-network': True, 'vim-network-name': 'IPv6'}], 'constituent-cpd-id': 'vnf-cp0-ext', 'ip-address': ['2001:db8::5', '192.168.158.6'], 'virtual-link-profile-id': 'mgmtnet'}} ${UPDATED_JSON_OBJ} ${UPDATED_JSON_OBJ} $..additionalParams.virtual-link-profile-id %{VIM_MGMT_NET} Update value to JSON using JSONPath ${UPDATED_JSON_OBJ} = {'vnfdId': 'hackfest_basic-vnf', 'vnfInstanceName': 'sol003-instance', 'vnfInstanceDescription': 'Test vnfm instance description', 'vimAccountId': '85764c05-53df-46c7-a9c8-e9e51d2283b7', 'additionalPa... ${UPDATED_JSON_OBJ} Logs the given message with the given level. {'vnfdId': 'hackfest_basic-vnf', 'vnfInstanceName': 'sol003-instance', 'vnfInstanceDescription': 'Test vnfm instance description', 'vimAccountId': '85764c05-53df-46c7-a9c8-e9e51d2283b7', 'additionalParams': {'virtual-link-desc': [{'id': 'osm-ext', 'mgmt-network': True, 'vim-network-name': 'IPv6'}], 'constituent-cpd-id': 'vnf-cp0-ext', 'ip-address': ['2001:db8::5', '192.168.158.6'], 'virtual-link-profile-id': 'osm-ext'}} ${UPDATED_JSON_OBJ} Makes a variable available everywhere within the scope of the current test. ${UPDATED_JSON_OBJ} = {'vnfdId': 'hackfest_basic-vnf', 'vnfInstanceName': 'sol003-instance', 'vnfInstanceDescription': 'Test vnfm instance description', 'vimAccountId': '85764c05-53df-46c7-a9c8-e9e51d2283b7', 'additionalPa... ${VNF_INSTANCE_URI} ${UPDATED_JSON_OBJ} Send to OSM a POST API message to OSM to the given uri with the given json data, and save response and status code in suite variables to be used later on. APISession ${REST_API_HOST} Create Session: create a HTTP session to a server Creating Session using : alias=APISession, url=https://172.21.249.226:9999, headers={}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 &{headers} Content-Type=application/json Accept=application/json Authorization=Bearer ${ACCESS_TOKEN} Creates and returns a dictionary based on the given ``items``. &{headers} = { Content-Type=application/json | Accept=application/json | Authorization=Bearer UXRtc08XPuAIsdQKoTg6qPZZQBmR82h2 } ${request_response} APISession ${PostApi} json=${json_data} headers=${headers} Sends a POST request on a previously created HTTP Session. POST Request : url=https://172.21.249.226:9999/osm/vnflcm/v1/vnf_instances path_url=/osm/vnflcm/v1/vnf_instances headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer UXRtc08XPuAIsdQKoTg6qPZZQBmR82h2', 'Content-Length': '423'} body=b'{"vnfdId": "hackfest_basic-vnf", "vnfInstanceName": "sol003-instance", "vnfInstanceDescription": "Test vnfm instance description", "vimAccountId": "85764c05-53df-46c7-a9c8-e9e51d2283b7", "additionalParams": {"virtual-link-desc": [{"id": "osm-ext", "mgmt-network": true, "vim-network-name": "IPv6"}], "constituent-cpd-id": "vnf-cp0-ext", "ip-address": ["2001:db8::5", "192.168.158.6"], "virtual-link-profile-id": "osm-ext"}}' POST Response : url=https://172.21.249.226:9999/osm/vnflcm/v1/vnf_instances status=201, reason=Created headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Mon, 19 Feb 2024 06:01:42 GMT', 'Location': '/osm/vnflcm/v1/vnf_instances/55e375bf-b3ce-4dd3-b7f0-8a61d5fc005b', 'Content-Length': '53', 'Set-Cookie': 'session_id=b1be6981bae19e80c5c9f2e6db2b6995e87fa2c8; expires=Mon, 19 Feb 2024 07:01:42 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "id": "55e375bf-b3ce-4dd3-b7f0-8a61d5fc005b" } ${request_response} = <Response [201]> ${REQUEST_RESPONSE} ${request_response} Makes a variable available everywhere within the scope of the current suite. ${REQUEST_RESPONSE} = <Response [201]> ${response_statuscode} ${request_response.status_code} Converts the given item to a Unicode string. ${response_statuscode} = 201 ${RESPONSE_STATUSCODE} ${response_statuscode} Makes a variable available everywhere within the scope of the current suite. ${RESPONSE_STATUSCODE} = 201 ${request_response.status_code} in ${success_status_code_list} Query VNF Instance completed Conditionally skips rest of the current test, setup, or teardown with PASS status. ${id} ${request_response.json()} $..id Get Value From JSON using JSONPath ${id} = ['55e375bf-b3ce-4dd3-b7f0-8a61d5fc005b'] ${CREATEID} ${id[0]} Makes a variable available everywhere within the scope of the current suite. ${CREATEID} = 55e375bf-b3ce-4dd3-b7f0-8a61d5fc005b Get the list of VNF packages and log it. ${rc} ${stdout} osm vnfpkg-list Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list 2>&1'. ${rc} = 0 ${stdout} = +--------------------+--------------------------------------+-----------+ | nfpkg name | id | desc type | +--------------------+------------------------------... ${stdout} Logs the given message with the given level. +--------------------+--------------------------------------+-----------+ | nfpkg name | id | desc type | +--------------------+--------------------------------------+-----------+ | hackfest_basic-vnf | 9d0aa2ba-98fe-4bdb-8a76-13f3d16872af | sol006 | +--------------------+--------------------------------------+-----------+ ${rc} Logs the given message with the given level. 0 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> Test case to create a VNF Identifier cluster_osm_rest daily sol003_02 Get the list of NS instances and return it. ${rc} ${stdout} osm ns-list 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm ns-list 2>&1'. ${rc} = 0 ${stdout} = +--------------------+--------------------------------------+---------------------+------------------+-------------------+---------------+ | ns instance name | id |... ${stdout} Logs the given message with the given level. +--------------------+--------------------------------------+---------------------+------------------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +--------------------+--------------------------------------+---------------------+------------------+-------------------+---------------+ | sol003-instance-ns | ef177ed3-3009-4159-86ce-f77cbd091229 | 2024-02-19T06:01:43 | NOT_INSTANTIATED | IDLE (None) | N/A | +--------------------+--------------------------------------+---------------------+------------------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Get the list of VNF instances and return it. ${rc} ${stdout} osm vnf-list 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm vnf-list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------+--------------------------------------+------------------+--------------------+----------------+------------+ | vnf id | na... ${stdout} Logs the given message with the given level. +--------------------------------------+------+--------------------------------------+------------------+--------------------+----------------+------------+ | vnf id | name | ns id | vnf member index | vnfd name | vim account id | ip address | +--------------------------------------+------+--------------------------------------+------------------+--------------------+----------------+------------+ | 55e375bf-b3ce-4dd3-b7f0-8a61d5fc005b | - | ef177ed3-3009-4159-86ce-f77cbd091229 | 1 | hackfest_basic-vnf | None | None | +--------------------------------------+------+--------------------------------------+------------------+--------------------+----------------+------------+ ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Send a REST POST message to OSM to get an authentication token, and store the authentication token in a suite variable to be used later on. Set the REST_API_HOST suite variable from OSM_HOSTNAME env variable ${nbi_host} OSM_HOSTNAME Returns the value of an environment variable with the given name. ${nbi_host} = 172.21.249.226 ${passed} Should Contain ${nbi_host} : Runs the given keyword with given arguments and returns the status as a Boolean value. ${nbi_host} : Fails if ``container`` does not contain ``item`` one or more times. '172.21.249.226' does not contain ':' ${passed} = False ${nbi_host} Set the suite variable REST_API_HOST to be used in this library and the testsuites using it. This method must be used if the tests are run from a container in the same K8s cluster where OSM is running. ${nbi_host} Set a suite variable REST_API_HOST to be used in this library and the testsuites using it. This method must be used if the tests are run from any place outside the K8s cluster where OSM is running. ${REST_API_HOST} https://${env_host}:9999 Makes a variable available everywhere within the scope of the current suite. ${REST_API_HOST} = https://172.21.249.226:9999 osmhit ${REST_API_HOST} disable_warnings=1 Create Session: create a HTTP session to a server Creating Session using : alias=osmhit, url=https://172.21.249.226:9999, headers={}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 &{headers} Content-Type=application/json Accept=application/json Creates and returns a dictionary based on the given ``items``. &{headers} = { Content-Type=application/json | Accept=application/json } &{data} username=${OSM_USER} password=${OSM_PASSWORD} project-id=${OSM_PROJECT} Creates and returns a dictionary based on the given ``items``. &{data} = { username=admin | password=admin | project-id=admin } ${resp} osmhit ${AUTH_TOKEN_URI} json=${data} headers=${headers} Sends a POST request on a previously created HTTP Session. POST Request : url=https://172.21.249.226:9999/osm/admin/v1/tokens path_url=/osm/admin/v1/tokens headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Content-Length': '65'} body=b'{"username": "admin", "password": "admin", "project-id": "admin"}' POST Response : url=https://172.21.249.226:9999/osm/admin/v1/tokens status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Mon, 19 Feb 2024 06:01:46 GMT', 'Www-Authenticate': 'Bearer realm="Needed a token or Authorization http header"', 'Location': '/osm/admin/v1/tokens/h8c8BhWonPd6WZ4kOZ1cIvUGa72y5dxI', 'Content-Length': '650', 'Set-Cookie': 'session_id=bdb2c6f9810fdc2cddb828a245efbb8377a861d2; expires=Mon, 19 Feb 2024 07:01:46 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "issued_at": 1708322506.89393, "expires": 1708326106.89393, "_id": "h8c8BhWonPd6WZ4kOZ1cIvUGa72y5dxI", "id": "h8c8BhWonPd6WZ4kOZ1cIvUGa72y5dxI", "project_id": "0658771c-e387-4292-a51e-090f213f77c7", "project_name": "admin", "username": "admin", "user_id": "6f8a9822-aeed-41ff-a40f-c415aa977b1d", "admin": true, "roles": [ { "name": "system_admin", "id": "db8ed9d6-d198-42b0-b653-bb397576f11a" } ], "login_count": 0, "last_login": 1708322505.73065, "admin_show": true, "user_show": false, "remote_port": 31945, "remote_host": "10.244.0.1" } ${resp} = <Response [200]> ${resp} Logs the given message with the given level. <Response [200]> ${resp.status_code} in ${SUCCESS_STATUS_CODE_LIST} Get Auth Token completed Conditionally skips rest of the current test, setup, or teardown with PASS status. ${TOKEN_STATUS_CODE} ${resp.status_code} Makes a variable available everywhere within the scope of the current suite. ${TOKEN_STATUS_CODE} = 200 ${access_token} ${resp.json()} $..id Get Value From JSON using JSONPath ${access_token} = ['h8c8BhWonPd6WZ4kOZ1cIvUGa72y5dxI', 'db8ed9d6-d198-42b0-b653-bb397576f11a'] ${ACCESS_TOKEN} ${access_token[0]} Makes a variable available everywhere within the scope of the current test. ${ACCESS_TOKEN} = h8c8BhWonPd6WZ4kOZ1cIvUGa72y5dxI ${TOKEN_RESPONSE} ${resp} Makes a variable available everywhere within the scope of the current test. ${TOKEN_RESPONSE} = <Response [200]> 2s Pauses the test executed for the given time. Slept 2 seconds ${json_path} Read Current Directory and return it ${Directory} /robot-systest/lib lib resources Replaces ``search_for`` in the given ``string`` with ``replace_with``. ${Directory} = /robot-systest/resources ${json_path} ${Directory} Returns the given values which can then be assigned to a variables. ${json_path} = /robot-systest/resources ${json_path} ${json_path} = /robot-systest/resources ${json_obj} ${json_path}/sol003_02-dualstack_ip_vnfm.json Load JSON from file. ${json_obj} = {'data': [{'vnfdId': 'hackfest_basic-vnf', 'vnfInstanceName': 'sol003-instance', 'vnfInstanceDescription': 'Test vnfm instance description', 'vimAccountId': '8dc2f11d-e08a-4ec7-920c-6b8a88bff1e5', 'ad... ${json_obj} ${json_obj['data'][1]} Returns variable value or ``default`` if the variable does not exist. ${json_obj} = {'vnfName': 'sol003-instance', 'vnfDescription': 'vnf package', 'vnfId': '70b47595-fafa-4f63-904b-fc3ada60eebb', 'vimAccountId': '8dc2f11d-e08a-4ec7-920c-6b8a88bff1e5'} ${UPDATED_JSON_OBJ} ${json_obj} $..vimAccountId ${CREATED_VIM_ACCOUNT_ID} Update value to JSON using JSONPath ${UPDATED_JSON_OBJ} = {'vnfName': 'sol003-instance', 'vnfDescription': 'vnf package', 'vnfId': '70b47595-fafa-4f63-904b-fc3ada60eebb', 'vimAccountId': '85764c05-53df-46c7-a9c8-e9e51d2283b7'} ${UPDATED_JSON_OBJ} ${UPDATED_JSON_OBJ} $..vnfId ${CREATEID} Update value to JSON using JSONPath ${UPDATED_JSON_OBJ} = {'vnfName': 'sol003-instance', 'vnfDescription': 'vnf package', 'vnfId': '55e375bf-b3ce-4dd3-b7f0-8a61d5fc005b', 'vimAccountId': '85764c05-53df-46c7-a9c8-e9e51d2283b7'} ${UPDATED_JSON_OBJ} Makes a variable available everywhere within the scope of the current test. ${UPDATED_JSON_OBJ} = {'vnfName': 'sol003-instance', 'vnfDescription': 'vnf package', 'vnfId': '55e375bf-b3ce-4dd3-b7f0-8a61d5fc005b', 'vimAccountId': '85764c05-53df-46c7-a9c8-e9e51d2283b7'} ${VNF_INSTANCE_URI}/${CREATEID}/instantiate ${UPDATED_JSON_OBJ} Send to OSM a POST API message to OSM to the given uri with the given json data, and save response and status code in suite variables to be used later on. APISession ${REST_API_HOST} Create Session: create a HTTP session to a server Creating Session using : alias=APISession, url=https://172.21.249.226:9999, headers={}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 &{headers} Content-Type=application/json Accept=application/json Authorization=Bearer ${ACCESS_TOKEN} Creates and returns a dictionary based on the given ``items``. &{headers} = { Content-Type=application/json | Accept=application/json | Authorization=Bearer h8c8BhWonPd6WZ4kOZ1cIvUGa72y5dxI } ${request_response} APISession ${PostApi} json=${json_data} headers=${headers} Sends a POST request on a previously created HTTP Session. POST Request : url=https://172.21.249.226:9999/osm/vnflcm/v1/vnf_instances/55e375bf-b3ce-4dd3-b7f0-8a61d5fc005b/instantiate path_url=/osm/vnflcm/v1/vnf_instances/55e375bf-b3ce-4dd3-b7f0-8a61d5fc005b/instantiate headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer h8c8BhWonPd6WZ4kOZ1cIvUGa72y5dxI', 'Content-Length': '168'} body=b'{"vnfName": "sol003-instance", "vnfDescription": "vnf package", "vnfId": "55e375bf-b3ce-4dd3-b7f0-8a61d5fc005b", "vimAccountId": "85764c05-53df-46c7-a9c8-e9e51d2283b7"}' POST Response : url=https://172.21.249.226:9999/osm/vnflcm/v1/vnf_instances/55e375bf-b3ce-4dd3-b7f0-8a61d5fc005b/instantiate status=202, reason=Accepted headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Mon, 19 Feb 2024 06:01:50 GMT', 'Location': '/osm/vnflcm/v1/vnf_lcm_op_occs/405f31b4-131d-4546-a2fe-87bc6cee5fa4', 'Content-Length': '53', 'Set-Cookie': 'session_id=c0e32e7f82d29659a1511580d665c670ff167205; expires=Mon, 19 Feb 2024 07:01:50 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "id": "405f31b4-131d-4546-a2fe-87bc6cee5fa4" } ${request_response} = <Response [202]> ${REQUEST_RESPONSE} ${request_response} Makes a variable available everywhere within the scope of the current suite. ${REQUEST_RESPONSE} = <Response [202]> ${response_statuscode} ${request_response.status_code} Converts the given item to a Unicode string. ${response_statuscode} = 202 ${RESPONSE_STATUSCODE} ${response_statuscode} Makes a variable available everywhere within the scope of the current suite. ${RESPONSE_STATUSCODE} = 202 ${request_response.status_code} in ${success_status_code_list} Instantiate VNF Instance completed Conditionally skips rest of the current test, setup, or teardown with PASS status. ${id} ${request_response.json()} $..id Get Value From JSON using JSONPath ${id} = ['405f31b4-131d-4546-a2fe-87bc6cee5fa4'] ${VNF_INSTANCE_ID} ${id[0]} Makes a variable available everywhere within the scope of the current suite. ${VNF_INSTANCE_ID} = 405f31b4-131d-4546-a2fe-87bc6cee5fa4 12s Pauses the test executed for the given time. Slept 12 seconds ${ns_name} Check if a given NS instance has not failed in the instantiation (the status should not be BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+---------------------------------------------+--------+------------------------+-------------+-----------------------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+---------------------------------------------+--------+------------------------+-------------+-----------------------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+---------------------------------------------+--------+------------------------+-------------+-----------------------------------------+ | db156f3b-e935-463f-9a0a-3a12de64492a | heal_04-autoheal-basic-1-autoheal_vnfd-VM-0 | ERROR | osm-ext=172.21.249.13 | ubuntu20.04 | autoheal_vnfd-VM-autoheal-basic-1-1-flv | | 830c26ca-2afa-470c-be93-a475d1855270 | sliceshared.slic-edge-ubuntu_slice-VM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 5a28ca1a-a684-4cdd-b2af-034638fe6d8e | slicebasic.slice-edge-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | cd640d3e-20bf-40a8-80cf-24db4e42b3c4 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | cba2464a-9385-44bc-875f-3157b232a32c | slicebasic.slice-middle-ubuntu_slice-VM-0 | ERROR | | ubuntu18.04 | simple_requires-1-1-flv | | 99bb8e9d-080c-49eb-9f8f-ade65871cbbd | osm-v150-merge-64 | ACTIVE | osm-ext=172.21.249.217 | ubuntu22.04 | osm.sanity | | 345fd1bc-a6fe-4aee-8ce4-293e6985e3c7 | osm-master-merge-2899 | ACTIVE | osm-ext=172.21.249.226 | ubuntu22.04 | osm.sanity | | 5e92f989-2244-431f-b618-c88dd1874921 | osm-v120-merge-657 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+---------------------------------------------+--------+------------------------+-------------+-----------------------------------------+ ${rc} ${stdout} osm ns-list --filter name="${ns_name}" Runs the given command in the system and returns the RC and output. Running command 'osm ns-list --filter name="sol003-instance" 2>&1'. ${rc} = 0 ${stdout} = +------------------+----+------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+----+------+--------... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+----+------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+----+------+----------+-------------------+---------------+ +------------------+----+------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} BROKEN Fails if ``container`` contains ``item`` one or more times. Get the list of NS instances and return it. ${rc} ${stdout} osm ns-list 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm ns-list 2>&1'. ${rc} = 0 ${stdout} = +--------------------+--------------------------------------+---------------------+----------+-------------------+------------------------------------------+ | ns instance name | id ... ${stdout} Logs the given message with the given level. +--------------------+--------------------------------------+---------------------+----------+-------------------+------------------------------------------+ | ns instance name | id | date | ns state | current operation | error details | +--------------------+--------------------------------------+---------------------+----------+-------------------+------------------------------------------+ | sol003-instance-ns | ef177ed3-3009-4159-86ce-f77cbd091229 | 2024-02-19T06:01:43 | BROKEN | IDLE (None) | Operation: INSTANTIATING.405f31b4-131d- | | | | | | | 4546-a2fe-87bc6cee5fa4, Stage 2/5: | | | | | | | deployment of KDUs, VMs and execution | | | | | | | environments. | | | | | | | Detail: Deploying at VIM: Error at | | | | | | | create vdu: InvalidIpForNetworkClient: | | | | | | | IP address 192.168.158.6 is not a valid | | | | | | | IP for any of the subnets on the | | | | | | | specified network. | | | | | | | Neutron server returns request_ids: ['re | | | | | | | q-1c98943e-3923-4eff-9343-803ad157607b'] | +--------------------+--------------------------------------+---------------------+----------+-------------------+------------------------------------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Get the list of VNF instances and return it. ${rc} ${stdout} osm vnf-list 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm vnf-list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------+--------------------------------------+------------------+--------------------+--------------------------------------+------------+ | vnf id ... ${stdout} Logs the given message with the given level. +--------------------------------------+------+--------------------------------------+------------------+--------------------+--------------------------------------+------------+ | vnf id | name | ns id | vnf member index | vnfd name | vim account id | ip address | +--------------------------------------+------+--------------------------------------+------------------+--------------------+--------------------------------------+------------+ | 55e375bf-b3ce-4dd3-b7f0-8a61d5fc005b | - | ef177ed3-3009-4159-86ce-f77cbd091229 | 1 | hackfest_basic-vnf | 85764c05-53df-46c7-a9c8-e9e51d2283b7 | None | +--------------------------------------+------+--------------------------------------+------------------+--------------------+--------------------------------------+------------+ ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Test case to Instantiate a VNF cluster_osm_rest daily sol003_02 ${id} ${ns_name} Get the NS instance ID from a NS instance name passed as argument, and return it. ${ns_name} Verifies that the given item is not empty. Length is 15 ${rc} ${stdout} osm ns-list | grep ${ns_name} | awk '{print $4}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | grep sol003-instance | awk '{print $4}' 2>&1'. ${rc} = 0 ${stdout} = ef177ed3-3009-4159-86ce-f77cbd091229 ${stdout} Logs the given message with the given level. ef177ed3-3009-4159-86ce-f77cbd091229 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Verifies that the given item is not empty. Length is 36 ${stdout} ${id} = ef177ed3-3009-4159-86ce-f77cbd091229 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = ef177ed3-3009-4159-86ce-f77cbd091229 Get the NS instance id cluster_osm_rest daily sol003_02 ${id} ${NS_ID} Get the nsd id from the ns ${ns_id} Verifies that the given item is not empty. Length is 36 ${stdout} osm ns-show ${ns_id} --literal | grep nsd-id | awk '{print $2}' Runs the given command in the system and returns the output. Running command 'osm ns-show ef177ed3-3009-4159-86ce-f77cbd091229 --literal | grep nsd-id | awk '{print $2}' 2>&1'. ${stdout} = 25ce6873-cd8d-4078-ba98-a3c0a727a955 ${stdout} Logs the given message with the given level. 25ce6873-cd8d-4078-ba98-a3c0a727a955 ${stdout} ${id} = 25ce6873-cd8d-4078-ba98-a3c0a727a955 ${NSD_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NSD_ID} = 25ce6873-cd8d-4078-ba98-a3c0a727a955 ${Nsd_IP} ${NSD_ID} To get the Ip from the Nsd ${stdout} osm nsd-show ${nsd_id} --literal | grep -A2 ip-address | grep -v "ip-address:" | awk '{print $2}' | tr -d ',-' Runs the given command in the system and returns the output. Running command 'osm nsd-show 25ce6873-cd8d-4078-ba98-a3c0a727a955 --literal | grep -A2 ip-address | grep -v "ip-address:" | awk '{print $2}' | tr -d ',-' 2>&1'. ${stdout} = 2001:db8::5 192.168.158.6 ${stdout} Logs the given message with the given level. 2001:db8::5 192.168.158.6 ${stdout} ${Nsd_IP} = 2001:db8::5 192.168.158.6 ${Nsd_IP} Logs the given message with the given level. 2001:db8::5 192.168.158.6 ${Nsd_IP} ${Nsd_IP} Splits the ``string`` using ``separator`` as a delimiter string. ${Nsd_IP} = ['2001:db8::5', '192.168.158.6'] ${IPV6NSD} ${Nsd_IP}[0] Makes a variable available everywhere within the scope of the current suite. ${IPV6NSD} = 2001:db8::5 ${IPV4NSD} ${Nsd_IP}[1] Makes a variable available everywhere within the scope of the current suite. ${IPV4NSD} = 192.168.158.6 ${IPV4NSD} Logs the given message with the given level. 192.168.158.6 ${IPV6NSD} Logs the given message with the given level. 2001:db8::5 Get the IP address from the NSD cluster_osm_rest daily sol003_02 ${Ns_IP} ${NS_ID} Get dual ip from the ns list ${ns_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} osm ns-show ${ns_id} --literal | grep -A2 ip-address | grep -v "ip-address:" | awk '{print $2}' | tr -d ',-' Runs the given command in the system and returns the RC and output. Running command 'osm ns-show ef177ed3-3009-4159-86ce-f77cbd091229 --literal | grep -A2 ip-address | grep -v "ip-address:" | awk '{print $2}' | tr -d ',-' 2>&1'. ${rc} = 0 ${stdout} = 2001:db8::5 192.168.158.6 ${rc},${stdout} Logs the given message with the given level. 0,2001:db8::5 192.168.158.6 ${stdout} ${Ns_IP} = 2001:db8::5 192.168.158.6 ${Ns_IP} Logs the given message with the given level. 2001:db8::5 192.168.158.6 ${Ns_IP} ${Ns_IP} Splits the ``string`` using ``separator`` as a delimiter string. ${Ns_IP} = ['2001:db8::5', '192.168.158.6'] ${IPV6NS} ${Ns_IP}[0] Makes a variable available everywhere within the scope of the current suite. ${IPV6NS} = 2001:db8::5 ${IPV4NS} ${Ns_IP}[1] Makes a variable available everywhere within the scope of the current suite. ${IPV4NS} = 192.168.158.6 ${IPV4NS} Logs the given message with the given level. 192.168.158.6 ${IPV6NS} Logs the given message with the given level. 2001:db8::5 Get the IP address from the NS cluster_osm_rest daily sol003_02 ${IPV4NS} ${IPV4NSD} Fails if the given objects are unequal. ${IPV6NS} ${IPV6NSD} Fails if the given objects are unequal. Test case to validate the IP address. cluster_osm_rest daily sol003_02 Send a REST POST message to OSM to get an authentication token, and store the authentication token in a suite variable to be used later on. Set the REST_API_HOST suite variable from OSM_HOSTNAME env variable ${nbi_host} OSM_HOSTNAME Returns the value of an environment variable with the given name. ${nbi_host} = 172.21.249.226 ${passed} Should Contain ${nbi_host} : Runs the given keyword with given arguments and returns the status as a Boolean value. ${nbi_host} : Fails if ``container`` does not contain ``item`` one or more times. '172.21.249.226' does not contain ':' ${passed} = False ${nbi_host} Set the suite variable REST_API_HOST to be used in this library and the testsuites using it. This method must be used if the tests are run from a container in the same K8s cluster where OSM is running. ${nbi_host} Set a suite variable REST_API_HOST to be used in this library and the testsuites using it. This method must be used if the tests are run from any place outside the K8s cluster where OSM is running. ${REST_API_HOST} https://${env_host}:9999 Makes a variable available everywhere within the scope of the current suite. ${REST_API_HOST} = https://172.21.249.226:9999 osmhit ${REST_API_HOST} disable_warnings=1 Create Session: create a HTTP session to a server Creating Session using : alias=osmhit, url=https://172.21.249.226:9999, headers={}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 &{headers} Content-Type=application/json Accept=application/json Creates and returns a dictionary based on the given ``items``. &{headers} = { Content-Type=application/json | Accept=application/json } &{data} username=${OSM_USER} password=${OSM_PASSWORD} project-id=${OSM_PROJECT} Creates and returns a dictionary based on the given ``items``. &{data} = { username=admin | password=admin | project-id=admin } ${resp} osmhit ${AUTH_TOKEN_URI} json=${data} headers=${headers} Sends a POST request on a previously created HTTP Session. POST Request : url=https://172.21.249.226:9999/osm/admin/v1/tokens path_url=/osm/admin/v1/tokens headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Content-Length': '65'} body=b'{"username": "admin", "password": "admin", "project-id": "admin"}' POST Response : url=https://172.21.249.226:9999/osm/admin/v1/tokens status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Mon, 19 Feb 2024 06:02:15 GMT', 'Www-Authenticate': 'Bearer realm="Needed a token or Authorization http header"', 'Location': '/osm/admin/v1/tokens/7yyjiwRAf6Te15iwtRgdIHiNmvWhRpDC', 'Content-Length': '656', 'Set-Cookie': 'session_id=2dafdbd03d63382d4b6b183efa1cae4ca6942dc0; expires=Mon, 19 Feb 2024 07:02:15 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "issued_at": 1708322535.4408367, "expires": 1708326135.4408367, "_id": "7yyjiwRAf6Te15iwtRgdIHiNmvWhRpDC", "id": "7yyjiwRAf6Te15iwtRgdIHiNmvWhRpDC", "project_id": "0658771c-e387-4292-a51e-090f213f77c7", "project_name": "admin", "username": "admin", "user_id": "6f8a9822-aeed-41ff-a40f-c415aa977b1d", "admin": true, "roles": [ { "name": "system_admin", "id": "db8ed9d6-d198-42b0-b653-bb397576f11a" } ], "login_count": 0, "last_login": 1708322534.2149322, "admin_show": true, "user_show": false, "remote_port": 14437, "remote_host": "10.244.0.1" } ${resp} = <Response [200]> ${resp} Logs the given message with the given level. <Response [200]> ${resp.status_code} in ${SUCCESS_STATUS_CODE_LIST} Get Auth Token completed Conditionally skips rest of the current test, setup, or teardown with PASS status. ${TOKEN_STATUS_CODE} ${resp.status_code} Makes a variable available everywhere within the scope of the current suite. ${TOKEN_STATUS_CODE} = 200 ${access_token} ${resp.json()} $..id Get Value From JSON using JSONPath ${access_token} = ['7yyjiwRAf6Te15iwtRgdIHiNmvWhRpDC', 'db8ed9d6-d198-42b0-b653-bb397576f11a'] ${ACCESS_TOKEN} ${access_token[0]} Makes a variable available everywhere within the scope of the current test. ${ACCESS_TOKEN} = 7yyjiwRAf6Te15iwtRgdIHiNmvWhRpDC ${TOKEN_RESPONSE} ${resp} Makes a variable available everywhere within the scope of the current test. ${TOKEN_RESPONSE} = <Response [200]> 2s Pauses the test executed for the given time. Slept 2 seconds ${json_path} Read Current Directory and return it ${Directory} /robot-systest/lib lib resources Replaces ``search_for`` in the given ``string`` with ``replace_with``. ${Directory} = /robot-systest/resources ${json_path} ${Directory} Returns the given values which can then be assigned to a variables. ${json_path} = /robot-systest/resources ${json_path} ${json_path} = /robot-systest/resources ${UPDATED_JSON_OBJ} ${json_path}/sol003_02-dualstack_ip_vnfm.json Load JSON from file. ${UPDATED_JSON_OBJ} = {'data': [{'vnfdId': 'hackfest_basic-vnf', 'vnfInstanceName': 'sol003-instance', 'vnfInstanceDescription': 'Test vnfm instance description', 'vimAccountId': '8dc2f11d-e08a-4ec7-920c-6b8a88bff1e5', 'ad... ${UPDATED_JSON_OBJ} ${UPDATED_JSON_OBJ['data'][3]} Returns variable value or ``default`` if the variable does not exist. ${UPDATED_JSON_OBJ} = {'terminationType': 'GRACEFUL', 'gracefulTerminationTimeout': '5'} ${UPDATED_JSON_OBJ} Makes a variable available everywhere within the scope of the current suite. ${UPDATED_JSON_OBJ} = {'terminationType': 'GRACEFUL', 'gracefulTerminationTimeout': '5'} ${VNF_INSTANCE_URI}/${CREATEID}/terminate ${UPDATED_JSON_OBJ} Send to OSM a POST API message to OSM to the given uri with the given json data, and save response and status code in suite variables to be used later on. APISession ${REST_API_HOST} Create Session: create a HTTP session to a server Creating Session using : alias=APISession, url=https://172.21.249.226:9999, headers={}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 &{headers} Content-Type=application/json Accept=application/json Authorization=Bearer ${ACCESS_TOKEN} Creates and returns a dictionary based on the given ``items``. &{headers} = { Content-Type=application/json | Accept=application/json | Authorization=Bearer 7yyjiwRAf6Te15iwtRgdIHiNmvWhRpDC } ${request_response} APISession ${PostApi} json=${json_data} headers=${headers} Sends a POST request on a previously created HTTP Session. POST Request : url=https://172.21.249.226:9999/osm/vnflcm/v1/vnf_instances/55e375bf-b3ce-4dd3-b7f0-8a61d5fc005b/terminate path_url=/osm/vnflcm/v1/vnf_instances/55e375bf-b3ce-4dd3-b7f0-8a61d5fc005b/terminate headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer 7yyjiwRAf6Te15iwtRgdIHiNmvWhRpDC', 'Content-Length': '66'} body=b'{"terminationType": "GRACEFUL", "gracefulTerminationTimeout": "5"}' POST Response : url=https://172.21.249.226:9999/osm/vnflcm/v1/vnf_instances/55e375bf-b3ce-4dd3-b7f0-8a61d5fc005b/terminate status=202, reason=Accepted headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Mon, 19 Feb 2024 06:02:18 GMT', 'Location': '/osm/vnflcm/v1/vnf_lcm_op_occs/a1d3a9d2-3f0b-4704-a38c-4b78040349cb', 'Content-Length': '53', 'Set-Cookie': 'session_id=bb1652743c7a907aa46ec102f9e448b7cbaa186f; expires=Mon, 19 Feb 2024 07:02:18 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "id": "a1d3a9d2-3f0b-4704-a38c-4b78040349cb" } ${request_response} = <Response [202]> ${REQUEST_RESPONSE} ${request_response} Makes a variable available everywhere within the scope of the current suite. ${REQUEST_RESPONSE} = <Response [202]> ${response_statuscode} ${request_response.status_code} Converts the given item to a Unicode string. ${response_statuscode} = 202 ${RESPONSE_STATUSCODE} ${response_statuscode} Makes a variable available everywhere within the scope of the current suite. ${RESPONSE_STATUSCODE} = 202 ${id} ${request_response.json()} $..id Get Value From JSON using JSONPath ${id} = ['a1d3a9d2-3f0b-4704-a38c-4b78040349cb'] ${terminateid} ${id[0]} Returns the given values which can then be assigned to a variables. ${terminateid} = a1d3a9d2-3f0b-4704-a38c-4b78040349cb ${VNF_INSTANCE_LCM_OPS}/${terminateid} Send to OSM a GET API message to OSM to the given uri, and save response and status code in suite variables to be used later on. Session ${REST_API_HOST} Create Session: create a HTTP session to a server Creating Session using : alias=Session, url=https://172.21.249.226:9999, headers={}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 &{headers} Content-Type=application/json Accept=application/json Authorization=Bearer ${ACCESS_TOKEN} Creates and returns a dictionary based on the given ``items``. &{headers} = { Content-Type=application/json | Accept=application/json | Authorization=Bearer 7yyjiwRAf6Te15iwtRgdIHiNmvWhRpDC } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.249.226:9999/osm/vnflcm/v1/vnf_lcm_op_occs/a1d3a9d2-3f0b-4704-a38c-4b78040349cb path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/a1d3a9d2-3f0b-4704-a38c-4b78040349cb headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer 7yyjiwRAf6Te15iwtRgdIHiNmvWhRpDC'} body=None GET Response : url=https://172.21.249.226:9999/osm/vnflcm/v1/vnf_lcm_op_occs/a1d3a9d2-3f0b-4704-a38c-4b78040349cb status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Mon, 19 Feb 2024 06:02:18 GMT', 'Content-Length': '1070', 'Set-Cookie': 'session_id=e013b6438e84e134bfa31e212a27c23655fdbf2f; expires=Mon, 19 Feb 2024 07:02:18 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "a1d3a9d2-3f0b-4704-a38c-4b78040349cb", "id": "a1d3a9d2-3f0b-4704-a38c-4b78040349cb", "operationState": "PROCESSING", "queuePosition": 0, "stage": "Stage 3/3 delete all.", "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1708322538.5674028, "lcmOperationType": "terminate", "startTime": 1708322538.5674028, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1708322538.5674317, "modified": 1708322538.639123, "projects_read": [ "0658771c-e387-4292-a51e-090f213f77c7" ], "projects_write": [ "0658771c-e387-4292-a51e-090f213f77c7" ], "worker": "2dcdf4f7479d" }, "detailed-status": "Stage 3/3 delete all. 0/1. ", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/a1d3a9d2-3f0b-4704-a38c-4b78040349cb", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/55e375bf-b3ce-4dd3-b7f0-8a61d5fc005b" }, "vnfInstanceId": "55e375bf-b3ce-4dd3-b7f0-8a61d5fc005b" } ${request_response} = <Response [200]> ${REQUEST_RESPONSE} ${request_response} Makes a variable available everywhere within the scope of the current suite. ${REQUEST_RESPONSE} = <Response [200]> ${response_statuscode} ${request_response.status_code} Converts the given item to a Unicode string. ${response_statuscode} = 200 ${RESPONSE_STATUSCODE} ${response_statuscode} Makes a variable available everywhere within the scope of the current suite. ${RESPONSE_STATUSCODE} = 200 ${LcmopsTerminate} ${request_response.json()} $.._id Get Value From JSON using JSONPath ${LcmopsTerminate} = ['a1d3a9d2-3f0b-4704-a38c-4b78040349cb'] ${LcmopsTerminate[0]} Logs the given message with the given level. a1d3a9d2-3f0b-4704-a38c-4b78040349cb ${index} 0 15 0 ${index} Logs the given message with the given level. 0 ${VNF_INSTANCE_LCM_OPS}/${terminateid} Send to OSM a GET API message to OSM to the given uri, and save response and status code in suite variables to be used later on. Session ${REST_API_HOST} Create Session: create a HTTP session to a server Creating Session using : alias=Session, url=https://172.21.249.226:9999, headers={}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 &{headers} Content-Type=application/json Accept=application/json Authorization=Bearer ${ACCESS_TOKEN} Creates and returns a dictionary based on the given ``items``. &{headers} = { Content-Type=application/json | Accept=application/json | Authorization=Bearer 7yyjiwRAf6Te15iwtRgdIHiNmvWhRpDC } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.249.226:9999/osm/vnflcm/v1/vnf_lcm_op_occs/a1d3a9d2-3f0b-4704-a38c-4b78040349cb path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/a1d3a9d2-3f0b-4704-a38c-4b78040349cb headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer 7yyjiwRAf6Te15iwtRgdIHiNmvWhRpDC'} body=None GET Response : url=https://172.21.249.226:9999/osm/vnflcm/v1/vnf_lcm_op_occs/a1d3a9d2-3f0b-4704-a38c-4b78040349cb status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Mon, 19 Feb 2024 06:02:18 GMT', 'Content-Length': '1090', 'Set-Cookie': 'session_id=e97bda07a8312d051d7c7009cd4e8ad684ffdc24; expires=Mon, 19 Feb 2024 07:02:18 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "a1d3a9d2-3f0b-4704-a38c-4b78040349cb", "id": "a1d3a9d2-3f0b-4704-a38c-4b78040349cb", "operationState": "PROCESSING", "queuePosition": 0, "stage": "Stage 3/3 delete all.", "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1708322538.5674028, "lcmOperationType": "terminate", "startTime": 1708322538.5674028, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1708322538.5674317, "modified": 1708322538.7414389, "projects_read": [ "0658771c-e387-4292-a51e-090f213f77c7" ], "projects_write": [ "0658771c-e387-4292-a51e-090f213f77c7" ], "worker": "2dcdf4f7479d" }, "detailed-status": "Stage 3/3 delete all. 0/1. VIM: (progress 0/4)", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/a1d3a9d2-3f0b-4704-a38c-4b78040349cb", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/55e375bf-b3ce-4dd3-b7f0-8a61d5fc005b" }, "vnfInstanceId": "55e375bf-b3ce-4dd3-b7f0-8a61d5fc005b" } ${request_response} = <Response [200]> ${REQUEST_RESPONSE} ${request_response} Makes a variable available everywhere within the scope of the current suite. ${REQUEST_RESPONSE} = <Response [200]> ${response_statuscode} ${request_response.status_code} Converts the given item to a Unicode string. ${response_statuscode} = 200 ${RESPONSE_STATUSCODE} ${response_statuscode} Makes a variable available everywhere within the scope of the current suite. ${RESPONSE_STATUSCODE} = 200 ${value} operationState Examine a REQUEST_RESPONSE dictionary as JSON and return the requested key passed as argument. ${REQUEST_RESPONSE.status_code} in ${SUCCESS_STATUS_CODE_LIST} Get Auth Token completed Conditionally skips rest of the current test, setup, or teardown with PASS status. ${id} ${REQUEST_RESPONSE.json()} $..${Key} Get Value From JSON using JSONPath ${id} = ['PROCESSING'] ${id[0]} ${value} = PROCESSING ${status} Should Be Equal ${value} COMPLETED Runs the given keyword with given arguments and returns the status as a Boolean value. ${value} COMPLETED Fails if the given objects are unequal. PROCESSING != COMPLETED ${status} = False 10s Pauses the test executed for the given time. Slept 10 seconds 1 ${index} Logs the given message with the given level. 1 ${VNF_INSTANCE_LCM_OPS}/${terminateid} Send to OSM a GET API message to OSM to the given uri, and save response and status code in suite variables to be used later on. Session ${REST_API_HOST} Create Session: create a HTTP session to a server Creating Session using : alias=Session, url=https://172.21.249.226:9999, headers={}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 &{headers} Content-Type=application/json Accept=application/json Authorization=Bearer ${ACCESS_TOKEN} Creates and returns a dictionary based on the given ``items``. &{headers} = { Content-Type=application/json | Accept=application/json | Authorization=Bearer 7yyjiwRAf6Te15iwtRgdIHiNmvWhRpDC } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.249.226:9999/osm/vnflcm/v1/vnf_lcm_op_occs/a1d3a9d2-3f0b-4704-a38c-4b78040349cb path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/a1d3a9d2-3f0b-4704-a38c-4b78040349cb headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer 7yyjiwRAf6Te15iwtRgdIHiNmvWhRpDC'} body=None GET Response : url=https://172.21.249.226:9999/osm/vnflcm/v1/vnf_lcm_op_occs/a1d3a9d2-3f0b-4704-a38c-4b78040349cb status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Mon, 19 Feb 2024 06:02:28 GMT', 'Content-Length': '1090', 'Set-Cookie': 'session_id=5d26ae173336c5bc10f07d2d1914a84993960273; expires=Mon, 19 Feb 2024 07:02:28 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "a1d3a9d2-3f0b-4704-a38c-4b78040349cb", "id": "a1d3a9d2-3f0b-4704-a38c-4b78040349cb", "operationState": "PROCESSING", "queuePosition": 0, "stage": "Stage 3/3 delete all.", "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1708322538.5674028, "lcmOperationType": "terminate", "startTime": 1708322538.5674028, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1708322538.5674317, "modified": 1708322538.7414389, "projects_read": [ "0658771c-e387-4292-a51e-090f213f77c7" ], "projects_write": [ "0658771c-e387-4292-a51e-090f213f77c7" ], "worker": "2dcdf4f7479d" }, "detailed-status": "Stage 3/3 delete all. 0/1. VIM: (progress 0/4)", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/a1d3a9d2-3f0b-4704-a38c-4b78040349cb", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/55e375bf-b3ce-4dd3-b7f0-8a61d5fc005b" }, "vnfInstanceId": "55e375bf-b3ce-4dd3-b7f0-8a61d5fc005b" } ${request_response} = <Response [200]> ${REQUEST_RESPONSE} ${request_response} Makes a variable available everywhere within the scope of the current suite. ${REQUEST_RESPONSE} = <Response [200]> ${response_statuscode} ${request_response.status_code} Converts the given item to a Unicode string. ${response_statuscode} = 200 ${RESPONSE_STATUSCODE} ${response_statuscode} Makes a variable available everywhere within the scope of the current suite. ${RESPONSE_STATUSCODE} = 200 ${value} operationState Examine a REQUEST_RESPONSE dictionary as JSON and return the requested key passed as argument. ${REQUEST_RESPONSE.status_code} in ${SUCCESS_STATUS_CODE_LIST} Get Auth Token completed Conditionally skips rest of the current test, setup, or teardown with PASS status. ${id} ${REQUEST_RESPONSE.json()} $..${Key} Get Value From JSON using JSONPath ${id} = ['PROCESSING'] ${id[0]} ${value} = PROCESSING ${status} Should Be Equal ${value} COMPLETED Runs the given keyword with given arguments and returns the status as a Boolean value. ${value} COMPLETED Fails if the given objects are unequal. PROCESSING != COMPLETED ${status} = False 10s Pauses the test executed for the given time. Slept 10 seconds 2 ${index} Logs the given message with the given level. 2 ${VNF_INSTANCE_LCM_OPS}/${terminateid} Send to OSM a GET API message to OSM to the given uri, and save response and status code in suite variables to be used later on. Session ${REST_API_HOST} Create Session: create a HTTP session to a server Creating Session using : alias=Session, url=https://172.21.249.226:9999, headers={}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 &{headers} Content-Type=application/json Accept=application/json Authorization=Bearer ${ACCESS_TOKEN} Creates and returns a dictionary based on the given ``items``. &{headers} = { Content-Type=application/json | Accept=application/json | Authorization=Bearer 7yyjiwRAf6Te15iwtRgdIHiNmvWhRpDC } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.249.226:9999/osm/vnflcm/v1/vnf_lcm_op_occs/a1d3a9d2-3f0b-4704-a38c-4b78040349cb path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/a1d3a9d2-3f0b-4704-a38c-4b78040349cb headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer 7yyjiwRAf6Te15iwtRgdIHiNmvWhRpDC'} body=None GET Response : url=https://172.21.249.226:9999/osm/vnflcm/v1/vnf_lcm_op_occs/a1d3a9d2-3f0b-4704-a38c-4b78040349cb status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Mon, 19 Feb 2024 06:02:38 GMT', 'Content-Length': '1026', 'Set-Cookie': 'session_id=d3697fd722a45140f9515a4e83ab1b72d8373b87; expires=Mon, 19 Feb 2024 07:02:38 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "a1d3a9d2-3f0b-4704-a38c-4b78040349cb", "id": "a1d3a9d2-3f0b-4704-a38c-4b78040349cb", "operationState": "COMPLETED", "queuePosition": 0, "stage": "", "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1708322553.8375385, "lcmOperationType": "terminate", "startTime": 1708322538.5674028, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1708322538.5674317, "modified": 1708322553.8375409, "projects_read": [ "0658771c-e387-4292-a51e-090f213f77c7" ], "projects_write": [ "0658771c-e387-4292-a51e-090f213f77c7" ], "worker": "2dcdf4f7479d" }, "detailed-status": "Done", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/a1d3a9d2-3f0b-4704-a38c-4b78040349cb", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/55e375bf-b3ce-4dd3-b7f0-8a61d5fc005b" }, "vnfInstanceId": "55e375bf-b3ce-4dd3-b7f0-8a61d5fc005b" } ${request_response} = <Response [200]> ${REQUEST_RESPONSE} ${request_response} Makes a variable available everywhere within the scope of the current suite. ${REQUEST_RESPONSE} = <Response [200]> ${response_statuscode} ${request_response.status_code} Converts the given item to a Unicode string. ${response_statuscode} = 200 ${RESPONSE_STATUSCODE} ${response_statuscode} Makes a variable available everywhere within the scope of the current suite. ${RESPONSE_STATUSCODE} = 200 ${value} operationState Examine a REQUEST_RESPONSE dictionary as JSON and return the requested key passed as argument. ${REQUEST_RESPONSE.status_code} in ${SUCCESS_STATUS_CODE_LIST} Get Auth Token completed Conditionally skips rest of the current test, setup, or teardown with PASS status. ${id} ${REQUEST_RESPONSE.json()} $..${Key} Get Value From JSON using JSONPath ${id} = ['COMPLETED'] ${id[0]} ${value} = COMPLETED ${status} Should Be Equal ${value} COMPLETED Runs the given keyword with given arguments and returns the status as a Boolean value. ${value} COMPLETED Fails if the given objects are unequal. ${status} = True 10s Pauses the test executed for the given time. ${request_response.status_code} in ${success_status_code_list} Terminate VNF instance completed Conditionally skips rest of the current test, setup, or teardown with PASS status. Test case to terminate the VNF cluster_osm_rest daily sol003_02 Send a REST POST message to OSM to get an authentication token, and store the authentication token in a suite variable to be used later on. Set the REST_API_HOST suite variable from OSM_HOSTNAME env variable ${nbi_host} OSM_HOSTNAME Returns the value of an environment variable with the given name. ${nbi_host} = 172.21.249.226 ${passed} Should Contain ${nbi_host} : Runs the given keyword with given arguments and returns the status as a Boolean value. ${nbi_host} : Fails if ``container`` does not contain ``item`` one or more times. '172.21.249.226' does not contain ':' ${passed} = False ${nbi_host} Set the suite variable REST_API_HOST to be used in this library and the testsuites using it. This method must be used if the tests are run from a container in the same K8s cluster where OSM is running. ${nbi_host} Set a suite variable REST_API_HOST to be used in this library and the testsuites using it. This method must be used if the tests are run from any place outside the K8s cluster where OSM is running. ${REST_API_HOST} https://${env_host}:9999 Makes a variable available everywhere within the scope of the current suite. ${REST_API_HOST} = https://172.21.249.226:9999 osmhit ${REST_API_HOST} disable_warnings=1 Create Session: create a HTTP session to a server Creating Session using : alias=osmhit, url=https://172.21.249.226:9999, headers={}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 &{headers} Content-Type=application/json Accept=application/json Creates and returns a dictionary based on the given ``items``. &{headers} = { Content-Type=application/json | Accept=application/json } &{data} username=${OSM_USER} password=${OSM_PASSWORD} project-id=${OSM_PROJECT} Creates and returns a dictionary based on the given ``items``. &{data} = { username=admin | password=admin | project-id=admin } ${resp} osmhit ${AUTH_TOKEN_URI} json=${data} headers=${headers} Sends a POST request on a previously created HTTP Session. POST Request : url=https://172.21.249.226:9999/osm/admin/v1/tokens path_url=/osm/admin/v1/tokens headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Content-Length': '65'} body=b'{"username": "admin", "password": "admin", "project-id": "admin"}' POST Response : url=https://172.21.249.226:9999/osm/admin/v1/tokens status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Mon, 19 Feb 2024 06:02:39 GMT', 'Www-Authenticate': 'Bearer realm="Needed a token or Authorization http header"', 'Location': '/osm/admin/v1/tokens/JmuAO3YGcmNf3N5f0C0MD5wE23AvWSXf', 'Content-Length': '656', 'Set-Cookie': 'session_id=333347ac284e19b2735327da8274e201523a403a; expires=Mon, 19 Feb 2024 07:02:39 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "issued_at": 1708322559.0176203, "expires": 1708326159.0176203, "_id": "JmuAO3YGcmNf3N5f0C0MD5wE23AvWSXf", "id": "JmuAO3YGcmNf3N5f0C0MD5wE23AvWSXf", "project_id": "0658771c-e387-4292-a51e-090f213f77c7", "project_name": "admin", "username": "admin", "user_id": "6f8a9822-aeed-41ff-a40f-c415aa977b1d", "admin": true, "roles": [ { "name": "system_admin", "id": "db8ed9d6-d198-42b0-b653-bb397576f11a" } ], "login_count": 0, "last_login": 1708322535.4408367, "admin_show": true, "user_show": false, "remote_port": 26398, "remote_host": "10.244.0.1" } ${resp} = <Response [200]> ${resp} Logs the given message with the given level. <Response [200]> ${resp.status_code} in ${SUCCESS_STATUS_CODE_LIST} Get Auth Token completed Conditionally skips rest of the current test, setup, or teardown with PASS status. ${TOKEN_STATUS_CODE} ${resp.status_code} Makes a variable available everywhere within the scope of the current suite. ${TOKEN_STATUS_CODE} = 200 ${access_token} ${resp.json()} $..id Get Value From JSON using JSONPath ${access_token} = ['JmuAO3YGcmNf3N5f0C0MD5wE23AvWSXf', 'db8ed9d6-d198-42b0-b653-bb397576f11a'] ${ACCESS_TOKEN} ${access_token[0]} Makes a variable available everywhere within the scope of the current test. ${ACCESS_TOKEN} = JmuAO3YGcmNf3N5f0C0MD5wE23AvWSXf ${TOKEN_RESPONSE} ${resp} Makes a variable available everywhere within the scope of the current test. ${TOKEN_RESPONSE} = <Response [200]> 2s Pauses the test executed for the given time. Slept 2 seconds APISession ${REST_API_HOST} Create Session: create a HTTP session to a server Creating Session using : alias=APISession, url=https://172.21.249.226:9999, headers={}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 &{Headers} Content-Type=application/json Accept=application/json Authorization=Bearer ${AccessToken} Creates and returns a dictionary based on the given ``items``. &{Headers} = { Content-Type=application/json | Accept=application/json | Authorization=Bearer JmuAO3YGcmNf3N5f0C0MD5wE23AvWSXf } ${resp} APISession ${VNF_INSTANCE_URI}/${CREATEID} headers=${Headers} Sends a DELETE request on a previously created HTTP Session. DELETE Request : url=https://172.21.249.226:9999/osm/vnflcm/v1/vnf_instances/55e375bf-b3ce-4dd3-b7f0-8a61d5fc005b path_url=/osm/vnflcm/v1/vnf_instances/55e375bf-b3ce-4dd3-b7f0-8a61d5fc005b headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer JmuAO3YGcmNf3N5f0C0MD5wE23AvWSXf', 'Content-Length': '0'} body=None DELETE Response : url=https://172.21.249.226:9999/osm/vnflcm/v1/vnf_instances/55e375bf-b3ce-4dd3-b7f0-8a61d5fc005b status=204, reason=No Content headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Mon, 19 Feb 2024 06:02:41 GMT', 'Set-Cookie': 'session_id=8d446462ef3508dbe7a3fd1b6ec72c42e00c22ee; expires=Mon, 19 Feb 2024 07:02:41 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body=None ${resp} = <Response [204]> ${resp.status_code} in ${success_status_code_list} Delete VNF Instance completed Conditionally skips rest of the current test, setup, or teardown with PASS status. Test case to delete VNF cluster_osm_rest daily sol003_02 ${VNFD_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete hackfest_basic-vnf 2>&1'. ${rc} = 0 ${stdout} = Deleted ${stdout} Logs the given message with the given level. Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep hackfest_basic-vnf 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. Test case to delete the VNF descriptor. cleanup cluster_osm_rest daily sol003_02 Suite Cleanup Runs the given keyword with the given arguments and ignores possible error. Test Suit Cleanup: Deleting Descriptor Delete VNFD ${VNFD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. [Sol003-02] Sol003 Dual Stack IP in VNFM NB interface All Tests cluster_ee_config cluster_epa cluster_heal cluster_k8s cluster_lcmop cluster_main cluster_osm_rest cluster_sa cluster_slices Testsuite Testsuite.Basic 01-Crud Operations On Vim Targets Testsuite.Basic 05-Instantiation Parameters In Cloud Init Testsuite.Basic 08-Disable Port Security Network Level Testsuite.Basic 09-Manual Vdu Scaling Testsuite.Basic 15-Rbac Configurations Testsuite.Basic 16-Advanced Onboarding And Scaling Testsuite.Basic 17-Delete Vnf Package Testsuite.Basic 18-Ns Ip Profile Testsuite.Basic 19-Vnf Ip Profile Testsuite.Basic 21-Support Of Volumes Testsuite.Basic 23-Sol004 Sol007 Packages Testsuite.Basic 24-Affinity Groups Testsuite.Basic 27-Update Helm Ee In Running Vnf Instance Testsuite.Basic 28-Keep Persistent Volumes Testsuite.Basic 29-Vnf Ipv6 Profile Testsuite.Basic 30-Ns Ipv6 Profile Testsuite.Basic 31-Multivdu Volume Multiattach Testsuite.Epa 01-Epa Sriov Testsuite.Epa 02-Additional Capabilities Testsuite.Epa 03-Crud Operations On Sdnc Testsuite.Epa 04-Epa Underlay Sriov Testsuite.Fail 01-Insufficient Resources Testsuite.Hackfest Basic Testsuite.Hackfest Cloudinit Testsuite.Hackfest Multivdu Testsuite.Heal 01-Volume Vdu Healing Testsuite.Heal 02-Scale Vdu Healing Testsuite.Heal 03-Multiple Healing Testsuite.Heal 04-Autohealing Testsuite.K8S 02-K8Scluster Creation Testsuite.K8S 04-Openldap Helm Testsuite.K8S 07-Dummy Helm Testsuite.K8S 13-Two Helm Kdu Testsuite.Lcmop 01-Cancel Operation Basic Testsuite.Quotas 01-Quota Enforcement Testsuite.Sa 01-Vnf With Vim Metrics Testsuite.Sa 02-Vnf With Vim Metrics And Autoscaling Testsuite.Sa 07-Alarms From Sa-Related Vnfs Testsuite.Sa 08-Vnf With Vnf Indicators Snmp Testsuite.Slice 01-Network Slicing Testsuite.Slice 02-Shared Network Slicing Testsuite.Sol003 01-Vnf-Lifecycle-Management Testsuite.Sol003 02-Dualstack Ip Vnfm