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.108 == '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} = 438321 ${VIM_NAME} SEPARATOR=_ ${vim_name_prefix} ${rand} Catenates the given items together and returns the resulted string. ${VIM_NAME} = basic01_438321 ${VIM_NAME} Makes a variable available everywhere within the scope of the current suite. ${VIM_NAME} = basic01_438321 ${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_438321 --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_438321 --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_438321 --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} = 6dda8d21-e4b6-4f92-91dc-2b8bc063836a ${stdout} Logs the given message with the given level. 6dda8d21-e4b6-4f92-91dc-2b8bc063836a ${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} = 6dda8d21-e4b6-4f92-91dc-2b8bc063836a ${CREATED_VIM_ACCOUNT_ID} Makes a variable available everywhere within the scope of the current suite. ${CREATED_VIM_ACCOUNT_ID} = 6dda8d21-e4b6-4f92-91dc-2b8bc063836a ${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_438321 " | 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_438321 " | awk '{print $4}' 2>&1'. ${rc} = 0 ${stdout} = 6dda8d21-e4b6-4f92-91dc-2b8bc063836a ${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} = 6dda8d21-e4b6-4f92-91dc-2b8bc063836a ${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=6dda8d21-e4b6-4f92-91dc-2b8bc063836a ${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=6dda8d21-e4b6-4f92-91dc-2b8bc063836a ${param_name} = vim_account_id ${param_value} = 6dda8d21-e4b6-4f92-91dc-2b8bc063836a ${match},${param_name},${param_value} Logs the given message with the given level. vim_account_id=6dda8d21-e4b6-4f92-91dc-2b8bc063836a,vim_account_id,6dda8d21-e4b6-4f92-91dc-2b8bc063836a ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = vim_account_id="6dda8d21-e4b6-4f92-91dc-2b8bc063836a", ${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.108:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7fcbd79815a0>, 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.108:9091/api/v1/query?query=osm_vim_status%7Bvim_account_id=%226dda8d21-e4b6-4f92-91dc-2b8bc063836a%22,%7D path_url=/api/v1/query?query=osm_vim_status%7Bvim_account_id=%226dda8d21-e4b6-4f92-91dc-2b8bc063836a%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.108:9091/api/v1/query?query=osm_vim_status%7Bvim_account_id=%226dda8d21-e4b6-4f92-91dc-2b8bc063836a%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 21 Apr 2024 01:42:44 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=6dda8d21-e4b6-4f92-91dc-2b8bc063836a ${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=6dda8d21-e4b6-4f92-91dc-2b8bc063836a ${param_name} = vim_account_id ${param_value} = 6dda8d21-e4b6-4f92-91dc-2b8bc063836a ${match},${param_name},${param_value} Logs the given message with the given level. vim_account_id=6dda8d21-e4b6-4f92-91dc-2b8bc063836a,vim_account_id,6dda8d21-e4b6-4f92-91dc-2b8bc063836a ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = vim_account_id="6dda8d21-e4b6-4f92-91dc-2b8bc063836a", ${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.108:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7fcbd7980880>, 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.108:9091/api/v1/query?query=osm_vim_status%7Bvim_account_id=%226dda8d21-e4b6-4f92-91dc-2b8bc063836a%22,%7D path_url=/api/v1/query?query=osm_vim_status%7Bvim_account_id=%226dda8d21-e4b6-4f92-91dc-2b8bc063836a%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.108:9091/api/v1/query?query=osm_vim_status%7Bvim_account_id=%226dda8d21-e4b6-4f92-91dc-2b8bc063836a%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 21 Apr 2024 01: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_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=6dda8d21-e4b6-4f92-91dc-2b8bc063836a ${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=6dda8d21-e4b6-4f92-91dc-2b8bc063836a ${param_name} = vim_account_id ${param_value} = 6dda8d21-e4b6-4f92-91dc-2b8bc063836a ${match},${param_name},${param_value} Logs the given message with the given level. vim_account_id=6dda8d21-e4b6-4f92-91dc-2b8bc063836a,vim_account_id,6dda8d21-e4b6-4f92-91dc-2b8bc063836a ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = vim_account_id="6dda8d21-e4b6-4f92-91dc-2b8bc063836a", ${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.108:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7fcbd7982380>, 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.108:9091/api/v1/query?query=osm_vim_status%7Bvim_account_id=%226dda8d21-e4b6-4f92-91dc-2b8bc063836a%22,%7D path_url=/api/v1/query?query=osm_vim_status%7Bvim_account_id=%226dda8d21-e4b6-4f92-91dc-2b8bc063836a%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.108:9091/api/v1/query?query=osm_vim_status%7Bvim_account_id=%226dda8d21-e4b6-4f92-91dc-2b8bc063836a%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 21 Apr 2024 01:43:14 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=6dda8d21-e4b6-4f92-91dc-2b8bc063836a ${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=6dda8d21-e4b6-4f92-91dc-2b8bc063836a ${param_name} = vim_account_id ${param_value} = 6dda8d21-e4b6-4f92-91dc-2b8bc063836a ${match},${param_name},${param_value} Logs the given message with the given level. vim_account_id=6dda8d21-e4b6-4f92-91dc-2b8bc063836a,vim_account_id,6dda8d21-e4b6-4f92-91dc-2b8bc063836a ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = vim_account_id="6dda8d21-e4b6-4f92-91dc-2b8bc063836a", ${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.108:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7fcbd79ce5c0>, 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.108:9091/api/v1/query?query=osm_vim_status%7Bvim_account_id=%226dda8d21-e4b6-4f92-91dc-2b8bc063836a%22,%7D path_url=/api/v1/query?query=osm_vim_status%7Bvim_account_id=%226dda8d21-e4b6-4f92-91dc-2b8bc063836a%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.108:9091/api/v1/query?query=osm_vim_status%7Bvim_account_id=%226dda8d21-e4b6-4f92-91dc-2b8bc063836a%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 21 Apr 2024 01:43:29 GMT', 'Content-Length': '195'} body={"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"osm_vim_status","job":"airflow_osm_vim_status_6dda8d21-e4b6-4f92-91dc-2b8bc063836a","vim_account_id":"6dda8d21-e4b6-4f92-91dc-2b8bc063836a"},"value":[1713663809.243,"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_6dda8d21-e4b6-4f92-91dc-2b8bc063836a', 'vim_account_id': '6dd... ${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_6dda8d21-e4b6-4f92-91dc-2b8bc063836a', 'vim_account_id': '6dda8d21-e4b6-4f92-91dc-2b8bc063836a'}, 'value': [1713663809.243, '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_438321 " | awk '{print $4}' 2>&1'. ${rc} = 0 ${stdout} = 6dda8d21-e4b6-4f92-91dc-2b8bc063836a ${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} = 6dda8d21-e4b6-4f92-91dc-2b8bc063836a ${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 6dda8d21-e4b6-4f92-91dc-2b8bc063836a 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 6dda8d21-e4b6-4f92-91dc-2b8bc063836a 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 d17f37e8-1fd8-4b07-be37-384093fb0ab8 ${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} = d17f37e8-1fd8-4b07-be37-384093fb0ab8 ${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 567a209d-95ad-476c-b98a-310c917511c8 ${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} = 567a209d-95ad-476c-b98a-310c917511c8 ${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} = 7c3bc5f6-5f2c-4e82-a549-399abe5bf5c1 ${stdout} Logs the given message with the given level. 7c3bc5f6-5f2c-4e82-a549-399abe5bf5c1 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 7c3bc5f6-5f2c-4e82-a549-399abe5bf5c1 ${ns_id} Logs the given message with the given level. 7c3bc5f6-5f2c-4e82-a549-399abe5bf5c1 ${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 | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | 7c3bc5f6-5f2c-4e82-a549-399abe5bf5c1 | 2024-04-21T01:43:38 | BUILDING | INSTANTIATING (3ab98d72-fc97-408f-bd41-f2b145d5e78f) | N/A | +------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | 7c3bc5f6-5f2c-4e82-a549-399abe5bf5c1 | 2024-04-21T01:43:38 | BUILDING | INSTANTIATING (3ab98d72-fc97-408f-bd41-f2b145d5e78f) | N/A | +------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-----------------------------------+ | 1706e050-0a97-42bf-90fe-968e6f12792e | basic_05_instant-vnf-ubuntu_cloudinit-vnf-VM-0 | ACTIVE | osm-ext=172.21.248.113 | ubuntu18.04 | ubuntu_cloudinit-vnf-VM-vnf-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | 7c3bc5f6-5f2c-4e82-a549-399abe5bf5c1 | 2024-04-21T01:43:38 | BUILDING | INSTANTIATING (3ab98d72-fc97-408f-bd41-f2b145d5e78f) | N/A | +------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | 7c3bc5f6-5f2c-4e82-a549-399abe5bf5c1 | 2024-04-21T01:43:38 | BUILDING | INSTANTIATING (3ab98d72-fc97-408f-bd41-f2b145d5e78f) | N/A | +------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-----------------------------------+ | 1706e050-0a97-42bf-90fe-968e6f12792e | basic_05_instant-vnf-ubuntu_cloudinit-vnf-VM-0 | ACTIVE | osm-ext=172.21.248.113 | ubuntu18.04 | ubuntu_cloudinit-vnf-VM-vnf-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | 7c3bc5f6-5f2c-4e82-a549-399abe5bf5c1 | 2024-04-21T01:43: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} = +--------------------------------------+-------------------------------------------------+--------+------------------------+-------------+-----------------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-------------------------------------------------+--------+------------------------+-------------+-----------------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-------------------------------------------------+--------+------------------------+-------------+-----------------------------------+ | 5e967cc6-603b-4731-9a50-0849478d2bcd | basic_24-affinity-basic-1-affinity_basic-VM-1-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 1706e050-0a97-42bf-90fe-968e6f12792e | basic_05_instant-vnf-ubuntu_cloudinit-vnf-VM-0 | ACTIVE | osm-ext=172.21.248.113 | ubuntu18.04 | ubuntu_cloudinit-vnf-VM-vnf-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | 7c3bc5f6-5f2c-4e82-a549-399abe5bf5c1 | 2024-04-21T01:43: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} = 7c3bc5f6-5f2c-4e82-a549-399abe5bf5c1 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 7c3bc5f6-5f2c-4e82-a549-399abe5bf5c1 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 7c3bc5f6-5f2c-4e82-a549-399abe5bf5c1 | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.248.113 ${stdout} Logs the given message with the given level. 172.21.248.113 ${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.113 ${ip_addr} Logs the given message with the given level. 172.21.248.113 ${VNF_IP_ADDR} ${ip_addr} Makes a variable available everywhere within the scope of the current suite. ${VNF_IP_ADDR} = 172.21.248.113 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.113: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 Sun Apr 21 01:45:22 UTC 2024 System load: 0.33 Processes: 97 Usage of /: 11.5% of 9.52GB Users logged in: 0 Memory usage: 6% IP address for ens3: 172.21.248.113 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 | +--------------------------------------+-------------------------------------------------+--------+----------------------------------------------------------------+-------------+-----------------------------------+ | 92dbdabe-6d05-4f92-885f-c44c3b49acf0 | k8s_06-nopasswd_-vnf2-mgmtVM-0 | ACTIVE | k8s_06-nopasswd_-datanet=192.168.211.37; osm-ext=172.21.249.68 | ubuntu18.04 | simple_requires-1-1-flv | | 2008f58c-2e6f-423c-9ba7-4a3ecab03d4c | k8s_06-nopasswd_-vnf1-mgmtVM-0 | ACTIVE | k8s_06-nopasswd_-datanet=192.168.211.73; osm-ext=172.21.248.57 | ubuntu18.04 | simple_requires-1-1-flv | | e4b51539-aad4-4f10-90cd-df3f4e8fe2bb | basic_24-affinity-basic-1-affinity_basic-VM-2-0 | ACTIVE | osm-ext=172.21.249.214 | ubuntu20.04 | simple_requires-1-1-flv | | 5e967cc6-603b-4731-9a50-0849478d2bcd | basic_24-affinity-basic-1-affinity_basic-VM-1-0 | ACTIVE | osm-ext=172.21.248.181 | ubuntu20.04 | simple_requires-1-1-flv | | 1706e050-0a97-42bf-90fe-968e6f12792e | basic_05_instant-vnf-ubuntu_cloudinit-vnf-VM-0 | ACTIVE | osm-ext=172.21.248.113 | ubuntu18.04 | ubuntu_cloudinit-vnf-VM-vnf-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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} = +--------------------------------------+-------------------------------------------------+--------+----------------------------------------------------------------+-------------+----------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-------------------------------------------------+--------+----------------------------------------------------------------+-------------+-----------------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-------------------------------------------------+--------+----------------------------------------------------------------+-------------+-----------------------------------+ | 13c8f3d3-120f-46d4-9d28-64f2ab5e773b | basic_05_instant-vnf-ubuntu_cloudinit-vnf-VM-0 | ACTIVE | osm-ext=172.21.249.127 | ubuntu18.04 | ubuntu_cloudinit-vnf-VM-vnf-1-flv | | 92dbdabe-6d05-4f92-885f-c44c3b49acf0 | k8s_06-nopasswd_-vnf2-mgmtVM-0 | ACTIVE | k8s_06-nopasswd_-datanet=192.168.211.37; osm-ext=172.21.249.68 | ubuntu18.04 | simple_requires-1-1-flv | | 2008f58c-2e6f-423c-9ba7-4a3ecab03d4c | k8s_06-nopasswd_-vnf1-mgmtVM-0 | ACTIVE | k8s_06-nopasswd_-datanet=192.168.211.73; osm-ext=172.21.248.57 | ubuntu18.04 | simple_requires-1-1-flv | | e4b51539-aad4-4f10-90cd-df3f4e8fe2bb | basic_24-affinity-basic-1-affinity_basic-VM-2-0 | ACTIVE | osm-ext=172.21.249.214 | ubuntu20.04 | simple_requires-1-1-flv | | 5e967cc6-603b-4731-9a50-0849478d2bcd | basic_24-affinity-basic-1-affinity_basic-VM-1-0 | ACTIVE | osm-ext=172.21.248.181 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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.108 == '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} = 56ccec7e-d5a7-4de5-8611-1904e60feb18 ${stdout} Logs the given message with the given level. 56ccec7e-d5a7-4de5-8611-1904e60feb18 ${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} = 56ccec7e-d5a7-4de5-8611-1904e60feb18 ${created_vim_account_id} Logs the given message with the given level. 56ccec7e-d5a7-4de5-8611-1904e60feb18 ${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} = 56ccec7e-d5a7-4de5-8611-1904e60feb18 ${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} = 56ccec7e-d5a7-4de5-8611-1904e60feb18 ${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=56ccec7e-d5a7-4de5-8611-1904e60feb18 ${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=56ccec7e-d5a7-4de5-8611-1904e60feb18 ${param_name} = vim_account_id ${param_value} = 56ccec7e-d5a7-4de5-8611-1904e60feb18 ${match},${param_name},${param_value} Logs the given message with the given level. vim_account_id=56ccec7e-d5a7-4de5-8611-1904e60feb18,vim_account_id,56ccec7e-d5a7-4de5-8611-1904e60feb18 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = vim_account_id="56ccec7e-d5a7-4de5-8611-1904e60feb18", ${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.108:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7fcbd6a84c40>, 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.108:9091/api/v1/query?query=osm_vim_status%7Bvim_account_id=%2256ccec7e-d5a7-4de5-8611-1904e60feb18%22,%7D path_url=/api/v1/query?query=osm_vim_status%7Bvim_account_id=%2256ccec7e-d5a7-4de5-8611-1904e60feb18%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.108:9091/api/v1/query?query=osm_vim_status%7Bvim_account_id=%2256ccec7e-d5a7-4de5-8611-1904e60feb18%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 21 Apr 2024 01:45:56 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=56ccec7e-d5a7-4de5-8611-1904e60feb18 ${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=56ccec7e-d5a7-4de5-8611-1904e60feb18 ${param_name} = vim_account_id ${param_value} = 56ccec7e-d5a7-4de5-8611-1904e60feb18 ${match},${param_name},${param_value} Logs the given message with the given level. vim_account_id=56ccec7e-d5a7-4de5-8611-1904e60feb18,vim_account_id,56ccec7e-d5a7-4de5-8611-1904e60feb18 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = vim_account_id="56ccec7e-d5a7-4de5-8611-1904e60feb18", ${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.108:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7fcbd6a5ac80>, 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.108:9091/api/v1/query?query=osm_vim_status%7Bvim_account_id=%2256ccec7e-d5a7-4de5-8611-1904e60feb18%22,%7D path_url=/api/v1/query?query=osm_vim_status%7Bvim_account_id=%2256ccec7e-d5a7-4de5-8611-1904e60feb18%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.108:9091/api/v1/query?query=osm_vim_status%7Bvim_account_id=%2256ccec7e-d5a7-4de5-8611-1904e60feb18%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 21 Apr 2024 01:46:11 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=56ccec7e-d5a7-4de5-8611-1904e60feb18 ${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=56ccec7e-d5a7-4de5-8611-1904e60feb18 ${param_name} = vim_account_id ${param_value} = 56ccec7e-d5a7-4de5-8611-1904e60feb18 ${match},${param_name},${param_value} Logs the given message with the given level. vim_account_id=56ccec7e-d5a7-4de5-8611-1904e60feb18,vim_account_id,56ccec7e-d5a7-4de5-8611-1904e60feb18 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = vim_account_id="56ccec7e-d5a7-4de5-8611-1904e60feb18", ${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.108:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7fcbd6ab4460>, 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.108:9091/api/v1/query?query=osm_vim_status%7Bvim_account_id=%2256ccec7e-d5a7-4de5-8611-1904e60feb18%22,%7D path_url=/api/v1/query?query=osm_vim_status%7Bvim_account_id=%2256ccec7e-d5a7-4de5-8611-1904e60feb18%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.108:9091/api/v1/query?query=osm_vim_status%7Bvim_account_id=%2256ccec7e-d5a7-4de5-8611-1904e60feb18%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 21 Apr 2024 01:46:26 GMT', 'Content-Length': '195'} body={"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"osm_vim_status","job":"airflow_osm_vim_status_56ccec7e-d5a7-4de5-8611-1904e60feb18","vim_account_id":"56ccec7e-d5a7-4de5-8611-1904e60feb18"},"value":[1713663986.284,"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_56ccec7e-d5a7-4de5-8611-1904e60feb18', 'vim_account_id': '56c... ${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_56ccec7e-d5a7-4de5-8611-1904e60feb18', 'vim_account_id': '56ccec7e-d5a7-4de5-8611-1904e60feb18'}, 'value': [1713663986.284, '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 60bf5aad-be37-4213-88c2-f0fb1a790a1d ${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} = 60bf5aad-be37-4213-88c2-f0fb1a790a1d ${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 3faa33bd-d970-45c1-b81f-703e17b025a6 ${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} = 3faa33bd-d970-45c1-b81f-703e17b025a6 ${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} = 2d3ce4ae-d0a3-4d4d-aba6-0cd3d7b397bc ${stdout} Logs the given message with the given level. 2d3ce4ae-d0a3-4d4d-aba6-0cd3d7b397bc ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 2d3ce4ae-d0a3-4d4d-aba6-0cd3d7b397bc ${ns_id} Logs the given message with the given level. 2d3ce4ae-d0a3-4d4d-aba6-0cd3d7b397bc ${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 | +--------------------------------------+------------------------------------------------+--------+----------------------------------------------------------------+-------------+-----------------------------------+ | 13c8f3d3-120f-46d4-9d28-64f2ab5e773b | basic_05_instant-vnf-ubuntu_cloudinit-vnf-VM-0 | ACTIVE | osm-ext=172.21.249.127 | ubuntu18.04 | ubuntu_cloudinit-vnf-VM-vnf-1-flv | | 92dbdabe-6d05-4f92-885f-c44c3b49acf0 | k8s_06-nopasswd_-vnf2-mgmtVM-0 | ACTIVE | k8s_06-nopasswd_-datanet=192.168.211.37; osm-ext=172.21.249.68 | ubuntu18.04 | simple_requires-1-1-flv | | 2008f58c-2e6f-423c-9ba7-4a3ecab03d4c | k8s_06-nopasswd_-vnf1-mgmtVM-0 | ACTIVE | k8s_06-nopasswd_-datanet=192.168.211.73; osm-ext=172.21.248.57 | ubuntu18.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | 2d3ce4ae-d0a3-4d4d-aba6-0cd3d7b397bc | 2024-04-21T01:46:30 | BUILDING | INSTANTIATING (2625cbec-c2d1-45f7-ac53-4aa3ad8fe8d2) | N/A | +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | 2d3ce4ae-d0a3-4d4d-aba6-0cd3d7b397bc | 2024-04-21T01:46:30 | BUILDING | INSTANTIATING (2625cbec-c2d1-45f7-ac53-4aa3ad8fe8d2) | N/A | +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+------------------------------------------------+--------+-----------------------------------------------------------------+-------------+-----------------------------------+ | 258ddb4d-003c-4dd0-8044-f2aedee4663e | basic_08_disable-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | e9e489d2-d0ce-4a0a-b127-091bd2ab14a7 | basic_08_disable-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 2dba9a85-b924-4cb7-bd9e-95268e67dd2e | basic_08_disable-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 4a246a02-2e44-4565-8615-3ea92048d72e | basic_25_charm_u-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 64c7075c-6114-47f0-b911-56aaade04df7 | basic_25_charm_u-vnf1-mgmtVM-0 | ACTIVE | basic_25_charm_u-datanet=192.168.141.203; osm-ext=172.21.249.30 | ubuntu18.04 | simple_requires-1-1-flv | | 13c8f3d3-120f-46d4-9d28-64f2ab5e773b | basic_05_instant-vnf-ubuntu_cloudinit-vnf-VM-0 | ACTIVE | osm-ext=172.21.249.127 | ubuntu18.04 | ubuntu_cloudinit-vnf-VM-vnf-1-flv | | 92dbdabe-6d05-4f92-885f-c44c3b49acf0 | k8s_06-nopasswd_-vnf2-mgmtVM-0 | ACTIVE | k8s_06-nopasswd_-datanet=192.168.211.37; osm-ext=172.21.249.68 | ubuntu18.04 | simple_requires-1-1-flv | | 2008f58c-2e6f-423c-9ba7-4a3ecab03d4c | k8s_06-nopasswd_-vnf1-mgmtVM-0 | ACTIVE | k8s_06-nopasswd_-datanet=192.168.211.73; osm-ext=172.21.248.57 | ubuntu18.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | 2d3ce4ae-d0a3-4d4d-aba6-0cd3d7b397bc | 2024-04-21T01:46:30 | BUILDING | INSTANTIATING (2625cbec-c2d1-45f7-ac53-4aa3ad8fe8d2) | N/A | +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | 2d3ce4ae-d0a3-4d4d-aba6-0cd3d7b397bc | 2024-04-21T01:46:30 | BUILDING | INSTANTIATING (2625cbec-c2d1-45f7-ac53-4aa3ad8fe8d2) | N/A | +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+--------------------------------+--------+-----------------------------------------------------------------------------------+-------------+-------------------------+ | 37adfd83-2983-4642-a38c-b994a36b99f6 | basic_08_disable-vnf2-dataVM-0 | ACTIVE | basic_08_disable-datanet=192.168.65.165; basic_08_disable-internal=192.168.39.246 | ubuntu20.04 | simple_requires-1-1-flv | | 258ddb4d-003c-4dd0-8044-f2aedee4663e | basic_08_disable-vnf2-mgmtVM-0 | ACTIVE | basic_08_disable-internal=192.168.39.103; osm-ext=172.21.249.148 | ubuntu20.04 | simple_requires-1-1-flv | | e9e489d2-d0ce-4a0a-b127-091bd2ab14a7 | basic_08_disable-vnf1-dataVM-0 | ACTIVE | basic_08_disable-datanet=192.168.65.105; basic_08_disable-internal=192.168.73.92 | ubuntu20.04 | simple_requires-1-1-flv | | 2dba9a85-b924-4cb7-bd9e-95268e67dd2e | basic_08_disable-vnf1-mgmtVM-0 | ACTIVE | basic_08_disable-internal=192.168.73.207; osm-ext=172.21.248.46 | ubuntu20.04 | simple_requires-1-1-flv | | 4a246a02-2e44-4565-8615-3ea92048d72e | basic_25_charm_u-vnf2-mgmtVM-0 | ACTIVE | basic_25_charm_u-datanet=192.168.141.109; osm-ext=172.21.249.15 | ubuntu18.04 | simple_requires-1-1-flv | | 64c7075c-6114-47f0-b911-56aaade04df7 | basic_25_charm_u-vnf1-mgmtVM-0 | ACTIVE | basic_25_charm_u-datanet=192.168.141.203; osm-ext=172.21.249.30 | ubuntu18.04 | simple_requires-1-1-flv | | 92dbdabe-6d05-4f92-885f-c44c3b49acf0 | k8s_06-nopasswd_-vnf2-mgmtVM-0 | ACTIVE | k8s_06-nopasswd_-datanet=192.168.211.37; osm-ext=172.21.249.68 | ubuntu18.04 | simple_requires-1-1-flv | | 2008f58c-2e6f-423c-9ba7-4a3ecab03d4c | k8s_06-nopasswd_-vnf1-mgmtVM-0 | ACTIVE | k8s_06-nopasswd_-datanet=192.168.211.73; osm-ext=172.21.248.57 | ubuntu18.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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} = +---------------------------------------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | 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_08_disable_port_security_network_level_test | 2d3ce4ae-d0a3-4d4d-aba6-0cd3d7b397bc | 2024-04-21T01:46: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 | +--------------------------------------+--------------------------------+--------+-----------------------------------------------------------------------------------+-------------+-------------------------+ | 37adfd83-2983-4642-a38c-b994a36b99f6 | basic_08_disable-vnf2-dataVM-0 | ACTIVE | basic_08_disable-datanet=192.168.65.165; basic_08_disable-internal=192.168.39.246 | ubuntu20.04 | simple_requires-1-1-flv | | 258ddb4d-003c-4dd0-8044-f2aedee4663e | basic_08_disable-vnf2-mgmtVM-0 | ACTIVE | basic_08_disable-internal=192.168.39.103; osm-ext=172.21.249.148 | ubuntu20.04 | simple_requires-1-1-flv | | e9e489d2-d0ce-4a0a-b127-091bd2ab14a7 | basic_08_disable-vnf1-dataVM-0 | ACTIVE | basic_08_disable-datanet=192.168.65.105; basic_08_disable-internal=192.168.73.92 | ubuntu20.04 | simple_requires-1-1-flv | | 2dba9a85-b924-4cb7-bd9e-95268e67dd2e | basic_08_disable-vnf1-mgmtVM-0 | ACTIVE | basic_08_disable-internal=192.168.73.207; osm-ext=172.21.248.46 | ubuntu20.04 | simple_requires-1-1-flv | | 4a246a02-2e44-4565-8615-3ea92048d72e | basic_25_charm_u-vnf2-mgmtVM-0 | ACTIVE | basic_25_charm_u-datanet=192.168.141.109; osm-ext=172.21.249.15 | ubuntu18.04 | simple_requires-1-1-flv | | 64c7075c-6114-47f0-b911-56aaade04df7 | basic_25_charm_u-vnf1-mgmtVM-0 | ACTIVE | basic_25_charm_u-datanet=192.168.141.203; osm-ext=172.21.249.30 | ubuntu18.04 | simple_requires-1-1-flv | | 92dbdabe-6d05-4f92-885f-c44c3b49acf0 | k8s_06-nopasswd_-vnf2-mgmtVM-0 | ACTIVE | k8s_06-nopasswd_-datanet=192.168.211.37; osm-ext=172.21.249.68 | ubuntu18.04 | simple_requires-1-1-flv | | 2008f58c-2e6f-423c-9ba7-4a3ecab03d4c | k8s_06-nopasswd_-vnf1-mgmtVM-0 | ACTIVE | k8s_06-nopasswd_-datanet=192.168.211.73; osm-ext=172.21.248.57 | ubuntu18.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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} = +---------------------------------------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | 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_08_disable_port_security_network_level_test | 2d3ce4ae-d0a3-4d4d-aba6-0cd3d7b397bc | 2024-04-21T01:46: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} = 2d3ce4ae-d0a3-4d4d-aba6-0cd3d7b397bc ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 2d3ce4ae-d0a3-4d4d-aba6-0cd3d7b397bc Instantiate NS for the testsuite. basic_08 cluster_main daily regression ${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} = +--------------------------------------+--------------------------------+--------+-----------------------------------------------------------------------------------+-------------+--------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------+--------+-----------------------------------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------+--------+-----------------------------------------------------------------------------------+-------------+-------------------------+ | 37adfd83-2983-4642-a38c-b994a36b99f6 | basic_08_disable-vnf2-dataVM-0 | ACTIVE | basic_08_disable-datanet=192.168.65.165; basic_08_disable-internal=192.168.39.246 | ubuntu20.04 | simple_requires-1-1-flv | | 258ddb4d-003c-4dd0-8044-f2aedee4663e | basic_08_disable-vnf2-mgmtVM-0 | ACTIVE | basic_08_disable-internal=192.168.39.103; osm-ext=172.21.249.148 | ubuntu20.04 | simple_requires-1-1-flv | | e9e489d2-d0ce-4a0a-b127-091bd2ab14a7 | basic_08_disable-vnf1-dataVM-0 | ACTIVE | basic_08_disable-datanet=192.168.65.105; basic_08_disable-internal=192.168.73.92 | ubuntu20.04 | simple_requires-1-1-flv | | 2dba9a85-b924-4cb7-bd9e-95268e67dd2e | basic_08_disable-vnf1-mgmtVM-0 | ACTIVE | basic_08_disable-internal=192.168.73.207; osm-ext=172.21.248.46 | ubuntu20.04 | simple_requires-1-1-flv | | 4a246a02-2e44-4565-8615-3ea92048d72e | basic_25_charm_u-vnf2-mgmtVM-0 | ACTIVE | basic_25_charm_u-datanet=192.168.141.109; osm-ext=172.21.249.15 | ubuntu18.04 | simple_requires-1-1-flv | | 64c7075c-6114-47f0-b911-56aaade04df7 | basic_25_charm_u-vnf1-mgmtVM-0 | ACTIVE | basic_25_charm_u-datanet=192.168.141.203; osm-ext=172.21.249.30 | ubuntu18.04 | simple_requires-1-1-flv | | 92dbdabe-6d05-4f92-885f-c44c3b49acf0 | k8s_06-nopasswd_-vnf2-mgmtVM-0 | ACTIVE | k8s_06-nopasswd_-datanet=192.168.211.37; osm-ext=172.21.249.68 | ubuntu18.04 | simple_requires-1-1-flv | | 2008f58c-2e6f-423c-9ba7-4a3ecab03d4c | k8s_06-nopasswd_-vnf1-mgmtVM-0 | ACTIVE | k8s_06-nopasswd_-datanet=192.168.211.73; osm-ext=172.21.248.57 | ubuntu18.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | +--------------------------------------+--------------------------------+--------+------------------------------------------------------------------+-------------+-------------------------+ | 37adfd83-2983-4642-a38c-b994a36b99f6 | basic_08_disable-vnf2-dataVM-0 | ACTIVE | basic_08_disable-internal=192.168.39.246 | ubuntu20.04 | simple_requires-1-1-flv | | 258ddb4d-003c-4dd0-8044-f2aedee4663e | basic_08_disable-vnf2-mgmtVM-0 | ACTIVE | basic_08_disable-internal=192.168.39.103; osm-ext=172.21.249.148 | ubuntu20.04 | simple_requires-1-1-flv | | e9e489d2-d0ce-4a0a-b127-091bd2ab14a7 | basic_08_disable-vnf1-dataVM-0 | ACTIVE | | ubuntu20.04 | simple_requires-1-1-flv | | 2dba9a85-b924-4cb7-bd9e-95268e67dd2e | basic_08_disable-vnf1-mgmtVM-0 | ACTIVE | basic_08_disable-internal=192.168.73.207; osm-ext=172.21.248.46 | ubuntu20.04 | simple_requires-1-1-flv | | 4a246a02-2e44-4565-8615-3ea92048d72e | basic_25_charm_u-vnf2-mgmtVM-0 | ACTIVE | basic_25_charm_u-datanet=192.168.141.109; osm-ext=172.21.249.15 | ubuntu18.04 | simple_requires-1-1-flv | | 64c7075c-6114-47f0-b911-56aaade04df7 | basic_25_charm_u-vnf1-mgmtVM-0 | ACTIVE | basic_25_charm_u-datanet=192.168.141.203; osm-ext=172.21.249.30 | ubuntu18.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | +--------------------------------------+--------------------------------+--------+-----------------------------------------------------------------+-------------+-------------------------+ | 4a246a02-2e44-4565-8615-3ea92048d72e | basic_25_charm_u-vnf2-mgmtVM-0 | ACTIVE | basic_25_charm_u-datanet=192.168.141.109; osm-ext=172.21.249.15 | ubuntu18.04 | simple_requires-1-1-flv | | 64c7075c-6114-47f0-b911-56aaade04df7 | basic_25_charm_u-vnf1-mgmtVM-0 | ACTIVE | basic_25_charm_u-datanet=192.168.141.203; osm-ext=172.21.249.30 | ubuntu18.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | +--------------------------------------+--------------------------------+--------+-----------------------------------------------------------------+-------------+-------------------------+ | 0a894be5-b4d5-40bb-8c54-f0e8959e1707 | basic_08_disable-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | f3eef8a4-f977-49d4-9392-e62009b8264b | basic_08_disable-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 5fd64868-d99f-47cb-8ae0-fce70cb6c7f8 | basic_08_disable-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | b524e795-5dca-4eca-870e-4bfe4350c206 | basic_08_disable-vnf1-mgmtVM-0 | ACTIVE | basic_08_disable-internal=192.168.185.78; osm-ext=172.21.249.36 | ubuntu20.04 | simple_requires-1-1-flv | | 4a246a02-2e44-4565-8615-3ea92048d72e | basic_25_charm_u-vnf2-mgmtVM-0 | ACTIVE | basic_25_charm_u-datanet=192.168.141.109; osm-ext=172.21.249.15 | ubuntu18.04 | simple_requires-1-1-flv | | 64c7075c-6114-47f0-b911-56aaade04df7 | basic_25_charm_u-vnf1-mgmtVM-0 | ACTIVE | basic_25_charm_u-datanet=192.168.141.203; osm-ext=172.21.249.30 | ubuntu18.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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. 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 VIM Target ${VIM_NAME} Runs the given keyword with the given arguments, if one or more tests failed. [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 6fe99d25-863c-4388-a512-8e9138a2e67c ${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} = 6fe99d25-863c-4388-a512-8e9138a2e67c ${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 c0adba14-cb1f-47e1-9af9-3c0509b20ff1 ${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} = c0adba14-cb1f-47e1-9af9-3c0509b20ff1 ${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} = 266ca4c9-ee83-4ff8-8f6c-631ccccd8e72 ${stdout} Logs the given message with the given level. 266ca4c9-ee83-4ff8-8f6c-631ccccd8e72 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 266ca4c9-ee83-4ff8-8f6c-631ccccd8e72 ${ns_id} Logs the given message with the given level. 266ca4c9-ee83-4ff8-8f6c-631ccccd8e72 ${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 | +--------------------------------------+--------------------------------+--------+----------------------------------------------------------------------------------+-------------+-------------------------+ | 0a894be5-b4d5-40bb-8c54-f0e8959e1707 | basic_08_disable-vnf2-dataVM-0 | ACTIVE | basic_08_disable-datanet=192.168.1.9; basic_08_disable-internal=192.168.37.102 | ubuntu20.04 | simple_requires-1-1-flv | | f3eef8a4-f977-49d4-9392-e62009b8264b | basic_08_disable-vnf2-mgmtVM-0 | ACTIVE | basic_08_disable-internal=192.168.37.18; osm-ext=172.21.248.7 | ubuntu20.04 | simple_requires-1-1-flv | | 5fd64868-d99f-47cb-8ae0-fce70cb6c7f8 | basic_08_disable-vnf1-dataVM-0 | ACTIVE | basic_08_disable-datanet=192.168.1.206; basic_08_disable-internal=192.168.185.96 | ubuntu20.04 | simple_requires-1-1-flv | | b524e795-5dca-4eca-870e-4bfe4350c206 | basic_08_disable-vnf1-mgmtVM-0 | ACTIVE | basic_08_disable-internal=192.168.185.78; osm-ext=172.21.249.36 | ubuntu20.04 | simple_requires-1-1-flv | | 4a246a02-2e44-4565-8615-3ea92048d72e | basic_25_charm_u-vnf2-mgmtVM-0 | ACTIVE | basic_25_charm_u-datanet=192.168.141.109; osm-ext=172.21.249.15 | ubuntu18.04 | simple_requires-1-1-flv | | 64c7075c-6114-47f0-b911-56aaade04df7 | basic_25_charm_u-vnf1-mgmtVM-0 | ACTIVE | basic_25_charm_u-datanet=192.168.141.203; osm-ext=172.21.249.30 | ubuntu18.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | 266ca4c9-ee83-4ff8-8f6c-631ccccd8e72 | 2024-04-21T01:49:02 | BUILDING | INSTANTIATING (ad285086-606b-48e5-b45c-9144702aa05f) | N/A | +------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | 266ca4c9-ee83-4ff8-8f6c-631ccccd8e72 | 2024-04-21T01:49:02 | BUILDING | INSTANTIATING (ad285086-606b-48e5-b45c-9144702aa05f) | N/A | +------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+--------------------------------------------------+--------+-----------------------------------------------------------------+-------------+-------------------------+ | 703c6a85-8475-4d8e-9e09-45e11468299a | basic_09_manual_-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.150 | ubuntu20.04 | simple_requires-1-1-flv | | 0a894be5-b4d5-40bb-8c54-f0e8959e1707 | basic_08_disable-vnf2-dataVM-0 | ACTIVE | basic_08_disable-internal=192.168.37.102 | ubuntu20.04 | simple_requires-1-1-flv | | f3eef8a4-f977-49d4-9392-e62009b8264b | basic_08_disable-vnf2-mgmtVM-0 | ACTIVE | basic_08_disable-internal=192.168.37.18; osm-ext=172.21.248.7 | ubuntu20.04 | simple_requires-1-1-flv | | 5fd64868-d99f-47cb-8ae0-fce70cb6c7f8 | basic_08_disable-vnf1-dataVM-0 | ACTIVE | basic_08_disable-internal=192.168.185.96 | ubuntu20.04 | simple_requires-1-1-flv | | b524e795-5dca-4eca-870e-4bfe4350c206 | basic_08_disable-vnf1-mgmtVM-0 | ACTIVE | basic_08_disable-internal=192.168.185.78; osm-ext=172.21.249.36 | ubuntu20.04 | simple_requires-1-1-flv | | 4a246a02-2e44-4565-8615-3ea92048d72e | basic_25_charm_u-vnf2-mgmtVM-0 | ACTIVE | basic_25_charm_u-datanet=192.168.141.109; osm-ext=172.21.249.15 | ubuntu18.04 | simple_requires-1-1-flv | | 64c7075c-6114-47f0-b911-56aaade04df7 | basic_25_charm_u-vnf1-mgmtVM-0 | ACTIVE | basic_25_charm_u-datanet=192.168.141.203; osm-ext=172.21.249.30 | ubuntu18.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | 266ca4c9-ee83-4ff8-8f6c-631ccccd8e72 | 2024-04-21T01:49: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} = +--------------------------------------+--------------------------------------------------+--------+-----------------------------------------------------------------+-------------+--------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+-----------------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+-----------------------------------------------------------------+-------------+-------------------------+ | 703c6a85-8475-4d8e-9e09-45e11468299a | basic_09_manual_-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.150 | ubuntu20.04 | simple_requires-1-1-flv | | 0a894be5-b4d5-40bb-8c54-f0e8959e1707 | basic_08_disable-vnf2-dataVM-0 | ACTIVE | basic_08_disable-internal=192.168.37.102 | ubuntu20.04 | simple_requires-1-1-flv | | f3eef8a4-f977-49d4-9392-e62009b8264b | basic_08_disable-vnf2-mgmtVM-0 | ACTIVE | basic_08_disable-internal=192.168.37.18; osm-ext=172.21.248.7 | ubuntu20.04 | simple_requires-1-1-flv | | 5fd64868-d99f-47cb-8ae0-fce70cb6c7f8 | basic_08_disable-vnf1-dataVM-0 | ACTIVE | | ubuntu20.04 | simple_requires-1-1-flv | | b524e795-5dca-4eca-870e-4bfe4350c206 | basic_08_disable-vnf1-mgmtVM-0 | ACTIVE | osm-ext=172.21.249.36 | ubuntu20.04 | simple_requires-1-1-flv | | 4a246a02-2e44-4565-8615-3ea92048d72e | basic_25_charm_u-vnf2-mgmtVM-0 | ACTIVE | basic_25_charm_u-datanet=192.168.141.109; osm-ext=172.21.249.15 | ubuntu18.04 | simple_requires-1-1-flv | | 64c7075c-6114-47f0-b911-56aaade04df7 | basic_25_charm_u-vnf1-mgmtVM-0 | ACTIVE | basic_25_charm_u-datanet=192.168.141.203; osm-ext=172.21.249.30 | ubuntu18.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | 266ca4c9-ee83-4ff8-8f6c-631ccccd8e72 | 2024-04-21T01:49: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} = 266ca4c9-ee83-4ff8-8f6c-631ccccd8e72 ${id} Logs the given message with the given level. 266ca4c9-ee83-4ff8-8f6c-631ccccd8e72 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} = 266ca4c9-ee83-4ff8-8f6c-631ccccd8e72 ${stdout} Logs the given message with the given level. 266ca4c9-ee83-4ff8-8f6c-631ccccd8e72 ${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} = 266ca4c9-ee83-4ff8-8f6c-631ccccd8e72 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 266ca4c9-ee83-4ff8-8f6c-631ccccd8e72 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 266ca4c9-ee83-4ff8-8f6c-631ccccd8e72 | grep 266ca4c9-ee83-4ff8-8f6c-631ccccd8e72 | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = 42013cc9-a098-4132-a192-fa47ddcbf815 ${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} = [ 42013cc9-a098-4132-a192-fa47ddcbf815 ] @{vdur} @{vnfr_list} = [ 42013cc9-a098-4132-a192-fa47ddcbf815 ] ${vnfr_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: 42013cc9-a098-4132-a192-fa47ddcbf815 ${VNF_ID} ${vnfr_list}[0] Makes a variable available everywhere within the scope of the current suite. ${VNF_ID} = 42013cc9-a098-4132-a192-fa47ddcbf815 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 42013cc9-a098-4132-a192-fa47ddcbf815 --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} = efc999a2-cac7-403e-b3d8-5873fbe9e64f ${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 efc999a2-cac7-403e-b3d8-5873fbe9e64f --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 efc999a2-cac7-403e-b3d8-5873fbe9e64f ${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 efc999a2-cac7-403e-b3d8-5873fbe9e64f --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 efc999a2-cac7-403e-b3d8-5873fbe9e64f ${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 efc999a2-cac7-403e-b3d8-5873fbe9e64f --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 efc999a2-cac7-403e-b3d8-5873fbe9e64f --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} = efc999a2-cac7-403e-b3d8-5873fbe9e64f ${ns_op_id} Logs the given message with the given level. efc999a2-cac7-403e-b3d8-5873fbe9e64f 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 42013cc9-a098-4132-a192-fa47ddcbf815 --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} = 636c26c2-a608-46be-a776-232626af50f0 ${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 636c26c2-a608-46be-a776-232626af50f0 --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 636c26c2-a608-46be-a776-232626af50f0 ${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 636c26c2-a608-46be-a776-232626af50f0 --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 636c26c2-a608-46be-a776-232626af50f0 --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} = 636c26c2-a608-46be-a776-232626af50f0 ${ns_op_id} Logs the given message with the given level. 636c26c2-a608-46be-a776-232626af50f0 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 42013cc9-a098-4132-a192-fa47ddcbf815 --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 | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 08065418-6f74-4666-91f8-6d3986753f59 | basic_09_manual_-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.234 | ubuntu20.04 | simple_requires-1-1-flv | | 703c6a85-8475-4d8e-9e09-45e11468299a | basic_09_manual_-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.150 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 2a64b679-d93c-49e1-99bc-0a844a709a57 | basic_09_manual_-vnf-hackfest_basic_metrics-VM-1 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 08065418-6f74-4666-91f8-6d3986753f59 | basic_09_manual_-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.234 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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} = 4efbaecb-ef77-4a2d-bcf1-ca17b9ec1c53 ${stdout} Logs the given message with the given level. 4efbaecb-ef77-4a2d-bcf1-ca17b9ec1c53 ${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} = 230c6326-9e1b-4023-9954-025db4b1a499 ${stdout} Logs the given message with the given level. 230c6326-9e1b-4023-9954-025db4b1a499 ${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} = ffce682c-fb63-48cb-825a-6e5d8a76a3d2 ${stdout} Logs the given message with the given level. ffce682c-fb63-48cb-825a-6e5d8a76a3d2 ${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 8d3b879b-14e5-4885-9129-c765c6f02b49 ${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} = 8d3b879b-14e5-4885-9129-c765c6f02b49 ${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 63138156-c92b-4af8-a68b-8d738868f3f3 ${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} = 63138156-c92b-4af8-a68b-8d738868f3f3 ${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} = 8e802689-e710-48e2-bdee-a24cabb531f7 ${stdout} Logs the given message with the given level. 8e802689-e710-48e2-bdee-a24cabb531f7 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 8e802689-e710-48e2-bdee-a24cabb531f7 ${ns_id} Logs the given message with the given level. 8e802689-e710-48e2-bdee-a24cabb531f7 ${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 | +--------------------------------------+--------------------------------------------------+--------+-------------------------------------------------------------------+-------------+-----------------------------+ | 50dd415b-8820-4c3c-8d86-2c0dcbd256af | epa_01-epa_sriov-vnf-hackfest_basic-VM-0 | ACTIVE | epa_01-epa_sriov-sriov_vld=192.168.52.235; osm-ext=172.21.249.169 | ubuntu18.04 | hackfest_basic-VM-vnf-1-flv | | 08065418-6f74-4666-91f8-6d3986753f59 | basic_09_manual_-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.234 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | 8e802689-e710-48e2-bdee-a24cabb531f7 | 2024-04-21T01:51:49 | BUILDING | INSTANTIATING (13ea488b-fb20-48fe-bbf5-65a90368c25e) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | 8e802689-e710-48e2-bdee-a24cabb531f7 | 2024-04-21T01:51:49 | BUILDING | INSTANTIATING (13ea488b-fb20-48fe-bbf5-65a90368c25e) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+------------------------------------------+--------+-------------------------------------------------------------------+-------------+-----------------------------+ | 31690084-2595-4d57-87ac-b675537f83f9 | basic_16-vnf-hackfest_basic_metrics-VM-2 | ACTIVE | osm-ext=172.21.248.142 | ubuntu20.04 | simple_requires-1-1-flv | | 72efc1be-f239-455e-a1a5-cbd7cc85efe1 | basic_16-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.248.33 | ubuntu20.04 | simple_requires-1-1-flv | | 622aa591-1ed6-4d5c-8b67-886792ea9179 | basic_16-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.238 | ubuntu20.04 | simple_requires-1-1-flv | | 50dd415b-8820-4c3c-8d86-2c0dcbd256af | epa_01-epa_sriov-vnf-hackfest_basic-VM-0 | ACTIVE | epa_01-epa_sriov-sriov_vld=192.168.52.235; osm-ext=172.21.249.169 | ubuntu18.04 | hackfest_basic-VM-vnf-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | 8e802689-e710-48e2-bdee-a24cabb531f7 | 2024-04-21T01:51:49 | BUILDING | INSTANTIATING (13ea488b-fb20-48fe-bbf5-65a90368c25e) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | 8e802689-e710-48e2-bdee-a24cabb531f7 | 2024-04-21T01:51:49 | BUILDING | INSTANTIATING (13ea488b-fb20-48fe-bbf5-65a90368c25e) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+------------------------------------------+--------+-------------------------------------------------------------------+-------------+-----------------------------+ | 8451e2eb-e2de-4589-ab92-9416f70a2c1c | k8s_10-k8s_proxy-vnf2-mgmtVM-0 | ACTIVE | k8s_10-k8s_proxy-datanet=192.168.231.58; osm-ext=172.21.248.135 | ubuntu18.04 | simple_requires-1-1-flv | | 812a086a-03b5-475f-8900-b5598cbad541 | k8s_10-k8s_proxy-vnf1-mgmtVM-0 | ACTIVE | k8s_10-k8s_proxy-datanet=192.168.231.156; osm-ext=172.21.248.210 | ubuntu18.04 | simple_requires-1-1-flv | | 31690084-2595-4d57-87ac-b675537f83f9 | basic_16-vnf-hackfest_basic_metrics-VM-2 | ACTIVE | osm-ext=172.21.248.142 | ubuntu20.04 | simple_requires-1-1-flv | | 72efc1be-f239-455e-a1a5-cbd7cc85efe1 | basic_16-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.248.33 | ubuntu20.04 | simple_requires-1-1-flv | | 622aa591-1ed6-4d5c-8b67-886792ea9179 | basic_16-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.238 | ubuntu20.04 | simple_requires-1-1-flv | | 50dd415b-8820-4c3c-8d86-2c0dcbd256af | epa_01-epa_sriov-vnf-hackfest_basic-VM-0 | ACTIVE | epa_01-epa_sriov-sriov_vld=192.168.52.235; osm-ext=172.21.249.169 | ubuntu18.04 | hackfest_basic-VM-vnf-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | 8e802689-e710-48e2-bdee-a24cabb531f7 | 2024-04-21T01:51: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} = +--------------------------------------+------------------------------------------+--------+-------------------------------------------------------------------+-------------+--------------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------+--------+-------------------------------------------------------------------+-------------+-----------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------+--------+-------------------------------------------------------------------+-------------+-----------------------------+ | 8451e2eb-e2de-4589-ab92-9416f70a2c1c | k8s_10-k8s_proxy-vnf2-mgmtVM-0 | ACTIVE | k8s_10-k8s_proxy-datanet=192.168.231.58; osm-ext=172.21.248.135 | ubuntu18.04 | simple_requires-1-1-flv | | 812a086a-03b5-475f-8900-b5598cbad541 | k8s_10-k8s_proxy-vnf1-mgmtVM-0 | ACTIVE | k8s_10-k8s_proxy-datanet=192.168.231.156; osm-ext=172.21.248.210 | ubuntu18.04 | simple_requires-1-1-flv | | 31690084-2595-4d57-87ac-b675537f83f9 | basic_16-vnf-hackfest_basic_metrics-VM-2 | ACTIVE | osm-ext=172.21.248.142 | ubuntu20.04 | simple_requires-1-1-flv | | 72efc1be-f239-455e-a1a5-cbd7cc85efe1 | basic_16-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.248.33 | ubuntu20.04 | simple_requires-1-1-flv | | 622aa591-1ed6-4d5c-8b67-886792ea9179 | basic_16-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.238 | ubuntu20.04 | simple_requires-1-1-flv | | 50dd415b-8820-4c3c-8d86-2c0dcbd256af | epa_01-epa_sriov-vnf-hackfest_basic-VM-0 | ACTIVE | epa_01-epa_sriov-sriov_vld=192.168.52.235; osm-ext=172.21.249.169 | ubuntu18.04 | hackfest_basic-VM-vnf-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | 8e802689-e710-48e2-bdee-a24cabb531f7 | 2024-04-21T01:51: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} = 8e802689-e710-48e2-bdee-a24cabb531f7 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 8e802689-e710-48e2-bdee-a24cabb531f7 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 8e802689-e710-48e2-bdee-a24cabb531f7 | grep 8e802689-e710-48e2-bdee-a24cabb531f7 | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = d18e1a02-e1a8-4ee1-989c-d0aed556eb07 ${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} = [ d18e1a02-e1a8-4ee1-989c-d0aed556eb07 ] @{vdur} @{vnfr_list} = [ d18e1a02-e1a8-4ee1-989c-d0aed556eb07 ] ${vnfr_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: d18e1a02-e1a8-4ee1-989c-d0aed556eb07 ${VNF_ID} ${vnfr_list}[0] Makes a variable available everywhere within the scope of the current suite. ${VNF_ID} = d18e1a02-e1a8-4ee1-989c-d0aed556eb07 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 d18e1a02-e1a8-4ee1-989c-d0aed556eb07 --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} = bc5abdf5-2eb8-4f30-9f29-4b1e9414b9d8 ${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 bc5abdf5-2eb8-4f30-9f29-4b1e9414b9d8 --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 bc5abdf5-2eb8-4f30-9f29-4b1e9414b9d8 ${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 bc5abdf5-2eb8-4f30-9f29-4b1e9414b9d8 --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 bc5abdf5-2eb8-4f30-9f29-4b1e9414b9d8 ${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 bc5abdf5-2eb8-4f30-9f29-4b1e9414b9d8 --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 bc5abdf5-2eb8-4f30-9f29-4b1e9414b9d8 --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} = bc5abdf5-2eb8-4f30-9f29-4b1e9414b9d8 ${ns_op_id} Logs the given message with the given level. bc5abdf5-2eb8-4f30-9f29-4b1e9414b9d8 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 d18e1a02-e1a8-4ee1-989c-d0aed556eb07 --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} = 688409b4-bd6d-45b6-9189-6a14b0af9bb9 ${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 688409b4-bd6d-45b6-9189-6a14b0af9bb9 --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 688409b4-bd6d-45b6-9189-6a14b0af9bb9 ${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 688409b4-bd6d-45b6-9189-6a14b0af9bb9 --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 688409b4-bd6d-45b6-9189-6a14b0af9bb9 --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} = 688409b4-bd6d-45b6-9189-6a14b0af9bb9 ${ns_op_id} Logs the given message with the given level. 688409b4-bd6d-45b6-9189-6a14b0af9bb9 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 d18e1a02-e1a8-4ee1-989c-d0aed556eb07 --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} = +--------------------------------------+------------------------------------------+--------+------------------------------------------------------------------+-------------+-------------------------+ ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------+--------+------------------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------+--------+------------------------------------------------------------------+-------------+-------------------------+ | 8b6f3b97-dd7a-4bff-b91d-27e5e0563f21 | epa_02-epa_quota-vnf-epa_quota-VM-0 | ACTIVE | osm-ext=172.21.249.89 | ubuntu18.04 | epa_quota-VM-vnf-1-flv | | 63c5c00d-be49-443d-a490-5688342bf2f7 | basic_16-vnf-hackfest_basic_metrics-VM-2 | ACTIVE | osm-ext=172.21.248.242 | ubuntu20.04 | simple_requires-1-1-flv | | 6ed33507-a5d4-44e9-9eb2-d82a5ddbb9c6 | basic_16-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.249.93 | ubuntu20.04 | simple_requires-1-1-flv | | 3ad1659d-5f40-4e98-94ae-292e768dfee4 | basic_16-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.153 | ubuntu20.04 | simple_requires-1-1-flv | | 8451e2eb-e2de-4589-ab92-9416f70a2c1c | k8s_10-k8s_proxy-vnf2-mgmtVM-0 | ACTIVE | k8s_10-k8s_proxy-datanet=192.168.231.58; osm-ext=172.21.248.135 | ubuntu18.04 | simple_requires-1-1-flv | | 812a086a-03b5-475f-8900-b5598cbad541 | k8s_10-k8s_proxy-vnf1-mgmtVM-0 | ACTIVE | k8s_10-k8s_proxy-datanet=192.168.231.156; osm-ext=172.21.248.210 | ubuntu18.04 | simple_requires-1-1-flv | | 31690084-2595-4d57-87ac-b675537f83f9 | basic_16-vnf-hackfest_basic_metrics-VM-2 | ACTIVE | osm-ext=172.21.248.142 | ubuntu20.04 | simple_requires-1-1-flv | | 72efc1be-f239-455e-a1a5-cbd7cc85efe1 | basic_16-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.248.33 | ubuntu20.04 | simple_requires-1-1-flv | | 622aa591-1ed6-4d5c-8b67-886792ea9179 | basic_16-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.238 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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} = +--------------------------------------+------------------------------------------+--------+------------------------------------------------------------------+-------------+-------------------------+ ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------+--------+------------------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------+--------+------------------------------------------------------------------+-------------+-------------------------+ | 36ec0b12-3e2b-4642-b4e3-56b9da1286b7 | basic_16-vnf-hackfest_basic_metrics-VM-3 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 8b6f3b97-dd7a-4bff-b91d-27e5e0563f21 | epa_02-epa_quota-vnf-epa_quota-VM-0 | ACTIVE | osm-ext=172.21.249.89 | ubuntu18.04 | epa_quota-VM-vnf-1-flv | | 63c5c00d-be49-443d-a490-5688342bf2f7 | basic_16-vnf-hackfest_basic_metrics-VM-2 | ACTIVE | osm-ext=172.21.248.242 | ubuntu20.04 | simple_requires-1-1-flv | | 6ed33507-a5d4-44e9-9eb2-d82a5ddbb9c6 | basic_16-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.249.93 | ubuntu20.04 | simple_requires-1-1-flv | | 3ad1659d-5f40-4e98-94ae-292e768dfee4 | basic_16-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.153 | ubuntu20.04 | simple_requires-1-1-flv | | 8451e2eb-e2de-4589-ab92-9416f70a2c1c | k8s_10-k8s_proxy-vnf2-mgmtVM-0 | ACTIVE | k8s_10-k8s_proxy-datanet=192.168.231.58; osm-ext=172.21.248.135 | ubuntu18.04 | simple_requires-1-1-flv | | 812a086a-03b5-475f-8900-b5598cbad541 | k8s_10-k8s_proxy-vnf1-mgmtVM-0 | ACTIVE | k8s_10-k8s_proxy-datanet=192.168.231.156; osm-ext=172.21.248.210 | ubuntu18.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 7c4a9d8b-c8ce-4329-a58c-4cd4c58f9ab8 ${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} = 7c4a9d8b-c8ce-4329-a58c-4cd4c58f9ab8 ${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 f9e7e7ab-8d81-4465-9503-cba2c57b942e ${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} = f9e7e7ab-8d81-4465-9503-cba2c57b942e ${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 04fa61ac-4203-4c94-be7f-1b6cef98f258 ${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} = 04fa61ac-4203-4c94-be7f-1b6cef98f258 ${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 423508d0-dd7e-47e2-9064-97270e5c7a6f ${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} = 423508d0-dd7e-47e2-9064-97270e5c7a6f ${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} = 88e41d43-4ce4-4c72-b9a5-e66b97a63e39 ${stdout} Logs the given message with the given level. 88e41d43-4ce4-4c72-b9a5-e66b97a63e39 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 88e41d43-4ce4-4c72-b9a5-e66b97a63e39 ${ns_id} Logs the given message with the given level. 88e41d43-4ce4-4c72-b9a5-e66b97a63e39 ${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 | +--------------------------------------+------------------------------------------+--------+------------------------------------------------------------------+-------------+-------------------------+ | 622c00c4-0d39-4ff3-a48a-aa88130fe861 | basic_16-vnf-hackfest_basic_metrics-VM-4 | ACTIVE | osm-ext=172.21.248.148 | ubuntu20.04 | simple_requires-1-1-flv | | 36ec0b12-3e2b-4642-b4e3-56b9da1286b7 | basic_16-vnf-hackfest_basic_metrics-VM-3 | ACTIVE | osm-ext=172.21.249.75 | ubuntu20.04 | simple_requires-1-1-flv | | 63c5c00d-be49-443d-a490-5688342bf2f7 | basic_16-vnf-hackfest_basic_metrics-VM-2 | ACTIVE | osm-ext=172.21.248.242 | ubuntu20.04 | simple_requires-1-1-flv | | 6ed33507-a5d4-44e9-9eb2-d82a5ddbb9c6 | basic_16-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.249.93 | ubuntu20.04 | simple_requires-1-1-flv | | 3ad1659d-5f40-4e98-94ae-292e768dfee4 | basic_16-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.153 | ubuntu20.04 | simple_requires-1-1-flv | | 8451e2eb-e2de-4589-ab92-9416f70a2c1c | k8s_10-k8s_proxy-vnf2-mgmtVM-0 | ACTIVE | k8s_10-k8s_proxy-datanet=192.168.231.58; osm-ext=172.21.248.135 | ubuntu18.04 | simple_requires-1-1-flv | | 812a086a-03b5-475f-8900-b5598cbad541 | k8s_10-k8s_proxy-vnf1-mgmtVM-0 | ACTIVE | k8s_10-k8s_proxy-datanet=192.168.231.156; osm-ext=172.21.248.210 | ubuntu18.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | 88e41d43-4ce4-4c72-b9a5-e66b97a63e39 | 2024-04-21T01:54:53 | BUILDING | INSTANTIATING (8a94537d-beaf-4c02-9bd7-8407e19f81a6) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | 88e41d43-4ce4-4c72-b9a5-e66b97a63e39 | 2024-04-21T01:54:53 | BUILDING | INSTANTIATING (8a94537d-beaf-4c02-9bd7-8407e19f81a6) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+------------------------------------------+--------+------------------------------------------------------------------+-------------+-------------------------+ | 4ccccdcf-f82c-4432-8de0-b67e9195537b | basic_18-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | d592aa93-4f26-43bc-83f1-e8e2cc4900a2 | basic_18-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 63c5c00d-be49-443d-a490-5688342bf2f7 | basic_16-vnf-hackfest_basic_metrics-VM-2 | ACTIVE | osm-ext=172.21.248.242 | ubuntu20.04 | simple_requires-1-1-flv | | 6ed33507-a5d4-44e9-9eb2-d82a5ddbb9c6 | basic_16-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.249.93 | ubuntu20.04 | simple_requires-1-1-flv | | 3ad1659d-5f40-4e98-94ae-292e768dfee4 | basic_16-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.153 | ubuntu20.04 | simple_requires-1-1-flv | | 8451e2eb-e2de-4589-ab92-9416f70a2c1c | k8s_10-k8s_proxy-vnf2-mgmtVM-0 | ACTIVE | k8s_10-k8s_proxy-datanet=192.168.231.58; osm-ext=172.21.248.135 | ubuntu18.04 | simple_requires-1-1-flv | | 812a086a-03b5-475f-8900-b5598cbad541 | k8s_10-k8s_proxy-vnf1-mgmtVM-0 | ACTIVE | k8s_10-k8s_proxy-datanet=192.168.231.156; osm-ext=172.21.248.210 | ubuntu18.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | 88e41d43-4ce4-4c72-b9a5-e66b97a63e39 | 2024-04-21T01:54:53 | BUILDING | INSTANTIATING (8a94537d-beaf-4c02-9bd7-8407e19f81a6) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | 88e41d43-4ce4-4c72-b9a5-e66b97a63e39 | 2024-04-21T01:54:53 | BUILDING | INSTANTIATING (8a94537d-beaf-4c02-9bd7-8407e19f81a6) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+--------------------------+--------+------------------------------------------------------------------------------------------------------------------------------+-------------+----------------------+ | 4ccccdcf-f82c-4432-8de0-b67e9195537b | basic_18-vnf2-dataVM-0 | ACTIVE | basic_18-datanet1=192.168.10.132; basic_18-datanet2=192.168.20.245; basic_18-datanet3=192.168.30.183; osm-ext=172.21.249.212 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | d592aa93-4f26-43bc-83f1-e8e2cc4900a2 | basic_18-vnf1-dataVM-0 | ACTIVE | basic_18-datanet1=192.168.10.233; basic_18-datanet2=192.168.20.17; basic_18-datanet3=192.168.30.90; osm-ext=172.21.249.19 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | 88e41d43-4ce4-4c72-b9a5-e66b97a63e39 | 2024-04-21T01:54:53 | BUILDING | INSTANTIATING (8a94537d-beaf-4c02-9bd7-8407e19f81a6) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | 88e41d43-4ce4-4c72-b9a5-e66b97a63e39 | 2024-04-21T01:54:53 | BUILDING | INSTANTIATING (8a94537d-beaf-4c02-9bd7-8407e19f81a6) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+--------------------------+--------+------------------------------------------------------------------------------------------------------------------------------+-------------+----------------------+ | 662baea2-bb0a-44f0-b704-8d1e825456a7 | basic_18-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf2-1-flv-3 | | aa7a5c2e-d809-418f-b59d-20a302fa3153 | basic_18-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf1-1-flv-3 | | 00dd50f6-87d3-4d58-bfb1-e48f5ba93fbe | epa_04-vnf2-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.22; osm-ext=172.21.248.229 | ubuntu20.04 | dataVM-vnf2-1-flv-2 | | 7434a98d-d142-4671-aa72-bf6aca6e2550 | epa_04-vnf1-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.11; osm-ext=172.21.249.113 | ubuntu20.04 | dataVM-vnf1-1-flv-2 | | 4ccccdcf-f82c-4432-8de0-b67e9195537b | basic_18-vnf2-dataVM-0 | ACTIVE | basic_18-datanet1=192.168.10.132; basic_18-datanet2=192.168.20.245; basic_18-datanet3=192.168.30.183; osm-ext=172.21.249.212 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | d592aa93-4f26-43bc-83f1-e8e2cc4900a2 | basic_18-vnf1-dataVM-0 | ACTIVE | basic_18-datanet1=192.168.10.233; basic_18-datanet2=192.168.20.17; basic_18-datanet3=192.168.30.90; osm-ext=172.21.249.19 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | 88e41d43-4ce4-4c72-b9a5-e66b97a63e39 | 2024-04-21T01:54:53 | 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 | +--------------------------------------+--------------------------+--------+------------------------------------------------------------------------------------------------------------------------------+-------------+----------------------+ | 662baea2-bb0a-44f0-b704-8d1e825456a7 | basic_18-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf2-1-flv-3 | | aa7a5c2e-d809-418f-b59d-20a302fa3153 | basic_18-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf1-1-flv-3 | | 00dd50f6-87d3-4d58-bfb1-e48f5ba93fbe | epa_04-vnf2-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.22; osm-ext=172.21.248.229 | ubuntu20.04 | dataVM-vnf2-1-flv-2 | | 7434a98d-d142-4671-aa72-bf6aca6e2550 | epa_04-vnf1-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.11; osm-ext=172.21.249.113 | ubuntu20.04 | dataVM-vnf1-1-flv-2 | | 4ccccdcf-f82c-4432-8de0-b67e9195537b | basic_18-vnf2-dataVM-0 | ACTIVE | basic_18-datanet1=192.168.10.132; basic_18-datanet2=192.168.20.245; basic_18-datanet3=192.168.30.183; osm-ext=172.21.249.212 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | d592aa93-4f26-43bc-83f1-e8e2cc4900a2 | basic_18-vnf1-dataVM-0 | ACTIVE | basic_18-datanet1=192.168.10.233; basic_18-datanet2=192.168.20.17; basic_18-datanet3=192.168.30.90; osm-ext=172.21.249.19 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | 88e41d43-4ce4-4c72-b9a5-e66b97a63e39 | 2024-04-21T01:54:53 | 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} = 88e41d43-4ce4-4c72-b9a5-e66b97a63e39 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 88e41d43-4ce4-4c72-b9a5-e66b97a63e39 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 88e41d43-4ce4-4c72-b9a5-e66b97a63e39 | grep 88e41d43-4ce4-4c72-b9a5-e66b97a63e39 | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = d0239f17-cedc-4581-95a9-b9a3518d7f3d ccf039bb-db10-4e62-9113-bac457aeb6f7 ${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} = [ d0239f17-cedc-4581-95a9-b9a3518d7f3d | ccf039bb-db10-4e62-9113-bac457aeb6f7 ] @{vdur} @{vnfr_list} = [ d0239f17-cedc-4581-95a9-b9a3518d7f3d | ccf039bb-db10-4e62-9113-bac457aeb6f7 ] ${vnfr_list} Logs the length and contents of the ``list`` using given ``level``. List length is 2 and it contains following items: 0: d0239f17-cedc-4581-95a9-b9a3518d7f3d 1: ccf039bb-db10-4e62-9113-bac457aeb6f7 ${VNF_ID1} ${vnfr_list}[0] Makes a variable available everywhere within the scope of the current suite. ${VNF_ID1} = d0239f17-cedc-4581-95a9-b9a3518d7f3d ${VNF_ID2} ${vnfr_list}[1] Makes a variable available everywhere within the scope of the current suite. ${VNF_ID2} = ccf039bb-db10-4e62-9113-bac457aeb6f7 ${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 88e41d43-4ce4-4c72-b9a5-e66b97a63e39 | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.249.19 ${stdout} Logs the given message with the given level. 172.21.249.19 ${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.19 ${VNF1_IPMGMT} ${ip} Makes a variable available everywhere within the scope of the current suite. ${VNF1_IPMGMT} = 172.21.249.19 ${VNF1_IPMGMT} Logs the given message with the given level. 172.21.249.19 ${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 88e41d43-4ce4-4c72-b9a5-e66b97a63e39 | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.249.212 ${stdout} Logs the given message with the given level. 172.21.249.212 ${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.212 ${VNF2_IPMGMT} ${ip} Makes a variable available everywhere within the scope of the current suite. ${VNF2_IPMGMT} = 172.21.249.212 ${VNF2_IPMGMT} Logs the given message with the given level. 172.21.249.212 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 d0239f17-cedc-4581-95a9-b9a3518d7f3d --literal | yq '.vdur[0].interfaces[] | select(.name == "eth1")' | yq -r '."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 192.168.10.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'> ${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.233 ${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 d0239f17-cedc-4581-95a9-b9a3518d7f3d --literal | yq '.vdur[0].interfaces[] | select(.name == "eth2")' | yq -r '."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 192.168.20.17 ${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.17 ${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 d0239f17-cedc-4581-95a9-b9a3518d7f3d --literal | yq '.vdur[0].interfaces[] | select(.name == "eth3")' | yq -r '."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 192.168.30.90 ${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.90 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 ccf039bb-db10-4e62-9113-bac457aeb6f7 --literal | yq '.vdur[0].interfaces[] | select(.name == "eth1")' | yq -r '."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 192.168.10.132 ${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.132 ${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 ccf039bb-db10-4e62-9113-bac457aeb6f7 --literal | yq '.vdur[0].interfaces[] | select(.name == "eth2")' | yq -r '."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 192.168.20.245 ${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.245 ${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 ccf039bb-db10-4e62-9113-bac457aeb6f7 --literal | yq '.vdur[0].interfaces[] | select(.name == "eth3")' | yq -r '."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 192.168.30.183 ${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.183 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.19: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 Sun Apr 21 01:57:04 UTC 2024 System load: 0.11 Users logged in: 0 Usage of /: 14.0% of 9.52GB IPv4 address for ens3: 172.21.249.19 Memory usage: 10% IPv4 address for ens4: 192.168.10.233 Swap usage: 0% IPv4 address for ens5: 192.168.20.17 Processes: 110 IPv4 address for ens6: 192.168.30.90 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.19/22 192.168.10.233/24 192.168.20.17/24 192.168.30.90/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.19/22 192.168.10.233/24 192.168.20.17/24 192.168.30.90/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.19/22 192.168.10.233/24 192.168.20.17/24 192.168.30.90/24 ${stdout} Logs the given message with the given level. 172.21.249.19/22 192.168.10.233/24 192.168.20.17/24 192.168.30.90/24 @{ip} ${stdout} Splits the ``string`` using ``separator`` as a delimiter string. @{ip} = [ 172.21.249.19/22 | 192.168.10.233/24 | 192.168.20.17/24 | 192.168.30.90/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.249.212: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 Sun Apr 21 01:57:07 UTC 2024 System load: 0.35 Users logged in: 0 Usage of /: 14.0% of 9.52GB IPv4 address for ens3: 172.21.249.212 Memory usage: 10% IPv4 address for ens4: 192.168.10.132 Swap usage: 0% IPv4 address for ens5: 192.168.20.245 Processes: 109 IPv4 address for ens6: 192.168.30.183 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.249.212/22 192.168.10.132/24 192.168.20.245/24 192.168.30.183/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.212/22 192.168.10.132/24 192.168.20.245/24 192.168.30.183/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.212/22 192.168.10.132/24 192.168.20.245/24 192.168.30.183/24 ${stdout} Logs the given message with the given level. 172.21.249.212/22 192.168.10.132/24 192.168.20.245/24 192.168.30.183/24 @{ip} ${stdout} Splits the ``string`` using ``separator`` as a delimiter string. @{ip} = [ 172.21.249.212/22 | 192.168.10.132/24 | 192.168.20.245/24 | 192.168.30.183/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.19: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 Sun Apr 21 01:57:09 UTC 2024 System load: 0.1 Users logged in: 0 Usage of /: 14.2% of 9.52GB IPv4 address for ens3: 172.21.249.19 Memory usage: 10% IPv4 address for ens4: 192.168.10.233 Swap usage: 0% IPv4 address for ens5: 192.168.20.17 Processes: 110 IPv4 address for ens6: 192.168.30.90 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: Sun Apr 21 01:57:06 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.249.212'. 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:68:9a:e6 brd ff:ff:ff:ff:ff:ff inet 172.21.249.19/22 brd 172.21.251.255 scope global dynamic ens3 valid_lft 86318sec preferred_lft 86318sec inet6 fe80::f816:3eff:fe68:9ae6/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:28:44:9e brd ff:ff:ff:ff:ff:ff inet 192.168.10.233/24 brd 192.168.10.255 scope global ens4 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe28:449e/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:e0:c9:df brd ff:ff:ff:ff:ff:ff inet 192.168.20.17/24 brd 192.168.20.255 scope global ens5 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fee0:c9df/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:f0:b3:48 brd ff:ff:ff:ff:ff:ff inet 192.168.30.90/24 brd 192.168.30.255 scope global ens6 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fef0:b348/64 scope link valid_lft forever preferred_lft forever PING 172.21.249.212 (172.21.249.212) 56(84) bytes of data. 64 bytes from 172.21.249.212: icmp_seq=1 ttl=64 time=2.50 ms 64 bytes from 172.21.249.212: icmp_seq=2 ttl=64 time=0.644 ms 64 bytes from 172.21.249.212: icmp_seq=3 ttl=64 time=0.377 ms 64 bytes from 172.21.249.212: icmp_seq=4 ttl=64 time=0.654 ms 64 bytes from 172.21.249.212: icmp_seq=5 ttl=64 time=0.682 ms --- 172.21.249.212 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4075ms rtt min/avg/max/mdev = 0.377/0.971/2.499/0.771 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:68:9a:e6 brd ff:ff:ff:ff:ff:ff inet 172.21.249.19/22 brd 172.21.251.255 scope global dynamic ens3 valid_lft 86318sec preferred_lft 86318sec inet6 fe80::f816:3eff:fe68:9ae6/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:28:44:9e brd ff:ff:ff:ff:ff:ff inet 192.168.10.233/24 brd 192.168.10.255 scope global ens4 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe28:449e/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:e0:c9:df brd ff:ff:ff:ff:ff:ff inet 192.168.20.17/24 brd 192.168.20.255 scope global ens5 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fee0:c9df/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:f0:b3:48 brd ff:ff:ff:ff:ff:ff inet 192.168.30.90/24 brd 192.168.30.255 scope global ens6 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fef0:b348/64 scope link valid_lft forever preferred_lft forever PING 172.21.249.212 (172.21.249.212) 56(84) bytes of data. 64 bytes from 172.21.249.212: icmp_seq=1 ttl=64 time=2.50 ms 64 bytes from 172.21.249.212: icmp_seq=2 ttl=64 time=0.644 ms 64 bytes from 172.21.249.212: icmp_seq=3 ttl=64 time=0.377 ms 64 bytes from 172.21.249.212: icmp_seq=4 ttl=64 time=0.654 ms 64 bytes from 172.21.249.212: icmp_seq=5 ttl=64 time=0.682 ms --- 172.21.249.212 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4075ms rtt min/avg/max/mdev = 0.377/0.971/2.499/0.771 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.19: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 Sun Apr 21 01:57:15 UTC 2024 System load: 0.1 Users logged in: 0 Usage of /: 14.2% of 9.52GB IPv4 address for ens3: 172.21.249.19 Memory usage: 10% IPv4 address for ens4: 192.168.10.233 Swap usage: 0% IPv4 address for ens5: 192.168.20.17 Processes: 110 IPv4 address for ens6: 192.168.30.90 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: Sun Apr 21 01:57:10 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.132'. Command exited with return code 0. ${stdout} = PING 192.168.10.132 (192.168.10.132) 56(84) bytes of data. 64 bytes from 192.168.10.132: icmp_seq=1 ttl=64 time=2.11 ms 64 bytes from 192.168.10.132: icmp_seq=2 ttl=64 time=0.721 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.132 (192.168.10.132) 56(84) bytes of data. 64 bytes from 192.168.10.132: icmp_seq=1 ttl=64 time=2.11 ms 64 bytes from 192.168.10.132: icmp_seq=2 ttl=64 time=0.721 ms 64 bytes from 192.168.10.132: icmp_seq=3 ttl=64 time=0.682 ms 64 bytes from 192.168.10.132: icmp_seq=4 ttl=64 time=0.495 ms 64 bytes from 192.168.10.132: icmp_seq=5 ttl=64 time=0.675 ms --- 192.168.10.132 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4060ms rtt min/avg/max/mdev = 0.495/0.935/2.105/0.589 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.132 (192.168.10.132) 56(84) bytes of data. 64 bytes from 192.168.10.132: icmp_seq=1 ttl=64 time=2.11 ms 64 bytes from 192.168.10.132: icmp_seq=2 ttl=64 time=0.721 ms 64 bytes from 192.... ${stdout} Logs the given message with the given level. PING 192.168.10.132 (192.168.10.132) 56(84) bytes of data. 64 bytes from 192.168.10.132: icmp_seq=1 ttl=64 time=2.11 ms 64 bytes from 192.168.10.132: icmp_seq=2 ttl=64 time=0.721 ms 64 bytes from 192.168.10.132: icmp_seq=3 ttl=64 time=0.682 ms 64 bytes from 192.168.10.132: icmp_seq=4 ttl=64 time=0.495 ms 64 bytes from 192.168.10.132: icmp_seq=5 ttl=64 time=0.675 ms --- 192.168.10.132 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4060ms rtt min/avg/max/mdev = 0.495/0.935/2.105/0.589 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.19: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 Sun Apr 21 01:57:21 UTC 2024 System load: 0.09 Users logged in: 0 Usage of /: 14.2% of 9.52GB IPv4 address for ens3: 172.21.249.19 Memory usage: 10% IPv4 address for ens4: 192.168.10.233 Swap usage: 0% IPv4 address for ens5: 192.168.20.17 Processes: 110 IPv4 address for ens6: 192.168.30.90 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: Sun Apr 21 01:57: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-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.245'. Command exited with return code 0. ${stdout} = PING 192.168.20.245 (192.168.20.245) 56(84) bytes of data. 64 bytes from 192.168.20.245: icmp_seq=1 ttl=64 time=2.72 ms 64 bytes from 192.168.20.245: icmp_seq=2 ttl=64 time=0.853 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.20.245 (192.168.20.245) 56(84) bytes of data. 64 bytes from 192.168.20.245: icmp_seq=1 ttl=64 time=2.72 ms 64 bytes from 192.168.20.245: icmp_seq=2 ttl=64 time=0.853 ms 64 bytes from 192.168.20.245: icmp_seq=3 ttl=64 time=0.759 ms 64 bytes from 192.168.20.245: icmp_seq=4 ttl=64 time=0.837 ms 64 bytes from 192.168.20.245: icmp_seq=5 ttl=64 time=0.847 ms --- 192.168.20.245 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4038ms rtt min/avg/max/mdev = 0.759/1.202/2.716/0.757 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.245 (192.168.20.245) 56(84) bytes of data. 64 bytes from 192.168.20.245: icmp_seq=1 ttl=64 time=2.72 ms 64 bytes from 192.168.20.245: icmp_seq=2 ttl=64 time=0.853 ms 64 bytes from 192.... ${stdout} Logs the given message with the given level. PING 192.168.20.245 (192.168.20.245) 56(84) bytes of data. 64 bytes from 192.168.20.245: icmp_seq=1 ttl=64 time=2.72 ms 64 bytes from 192.168.20.245: icmp_seq=2 ttl=64 time=0.853 ms 64 bytes from 192.168.20.245: icmp_seq=3 ttl=64 time=0.759 ms 64 bytes from 192.168.20.245: icmp_seq=4 ttl=64 time=0.837 ms 64 bytes from 192.168.20.245: icmp_seq=5 ttl=64 time=0.847 ms --- 192.168.20.245 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4038ms rtt min/avg/max/mdev = 0.759/1.202/2.716/0.757 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.19: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 Sun Apr 21 01:57:27 UTC 2024 System load: 0.08 Users logged in: 0 Usage of /: 14.2% of 9.52GB IPv4 address for ens3: 172.21.249.19 Memory usage: 10% IPv4 address for ens4: 192.168.10.233 Swap usage: 0% IPv4 address for ens5: 192.168.20.17 Processes: 110 IPv4 address for ens6: 192.168.30.90 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: Sun Apr 21 01:57:21 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.183'. Command exited with return code 0. ${stdout} = PING 192.168.30.183 (192.168.30.183) 56(84) bytes of data. 64 bytes from 192.168.30.183: icmp_seq=1 ttl=64 time=2.48 ms 64 bytes from 192.168.30.183: icmp_seq=2 ttl=64 time=0.663 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.30.183 (192.168.30.183) 56(84) bytes of data. 64 bytes from 192.168.30.183: icmp_seq=1 ttl=64 time=2.48 ms 64 bytes from 192.168.30.183: icmp_seq=2 ttl=64 time=0.663 ms 64 bytes from 192.168.30.183: icmp_seq=3 ttl=64 time=7.31 ms 64 bytes from 192.168.30.183: icmp_seq=4 ttl=64 time=0.941 ms 64 bytes from 192.168.30.183: icmp_seq=5 ttl=64 time=0.696 ms --- 192.168.30.183 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4019ms rtt min/avg/max/mdev = 0.663/2.418/7.310/2.536 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.183 (192.168.30.183) 56(84) bytes of data. 64 bytes from 192.168.30.183: icmp_seq=1 ttl=64 time=2.48 ms 64 bytes from 192.168.30.183: icmp_seq=2 ttl=64 time=0.663 ms 64 bytes from 192.... ${stdout} Logs the given message with the given level. PING 192.168.30.183 (192.168.30.183) 56(84) bytes of data. 64 bytes from 192.168.30.183: icmp_seq=1 ttl=64 time=2.48 ms 64 bytes from 192.168.30.183: icmp_seq=2 ttl=64 time=0.663 ms 64 bytes from 192.168.30.183: icmp_seq=3 ttl=64 time=7.31 ms 64 bytes from 192.168.30.183: icmp_seq=4 ttl=64 time=0.941 ms 64 bytes from 192.168.30.183: icmp_seq=5 ttl=64 time=0.696 ms --- 192.168.30.183 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4019ms rtt min/avg/max/mdev = 0.663/2.418/7.310/2.536 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.249.212: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 Sun Apr 21 01:57:33 UTC 2024 System load: 0.23 Users logged in: 0 Usage of /: 14.2% of 9.52GB IPv4 address for ens3: 172.21.249.212 Memory usage: 10% IPv4 address for ens4: 192.168.10.132 Swap usage: 0% IPv4 address for ens5: 192.168.20.245 Processes: 108 IPv4 address for ens6: 192.168.30.183 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: Sun Apr 21 01:57:08 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.19'. 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:d8:8a:fa brd ff:ff:ff:ff:ff:ff inet 172.21.249.212/22 brd 172.21.251.255 scope global dynamic ens3 valid_lft 86304sec preferred_lft 86304sec inet6 fe80::f816:3eff:fed8:8afa/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:76:2a:7f brd ff:ff:ff:ff:ff:ff inet 192.168.10.132/24 brd 192.168.10.255 scope global ens4 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe76:2a7f/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:4d:0f:1f brd ff:ff:ff:ff:ff:ff inet 192.168.20.245/24 brd 192.168.20.255 scope global ens5 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe4d:f1f/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:3a:21:b5 brd ff:ff:ff:ff:ff:ff inet 192.168.30.183/24 brd 192.168.30.255 scope global ens6 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe3a:21b5/64 scope link valid_lft forever preferred_lft forever PING 172.21.249.19 (172.21.249.19) 56(84) bytes of data. 64 bytes from 172.21.249.19: icmp_seq=1 ttl=64 time=1.36 ms 64 bytes from 172.21.249.19: icmp_seq=2 ttl=64 time=5.17 ms 64 bytes from 172.21.249.19: icmp_seq=3 ttl=64 time=0.854 ms 64 bytes from 172.21.249.19: icmp_seq=4 ttl=64 time=0.648 ms 64 bytes from 172.21.249.19: icmp_seq=5 ttl=64 time=0.760 ms --- 172.21.249.19 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4024ms rtt min/avg/max/mdev = 0.648/1.758/5.169/1.722 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:d8:8a:fa brd ff:ff:ff:ff:ff:ff inet 172.21.249.212/22 brd 172.21.251.255 scope global dynamic ens3 valid_lft 86304sec preferred_lft 86304sec inet6 fe80::f816:3eff:fed8:8afa/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:76:2a:7f brd ff:ff:ff:ff:ff:ff inet 192.168.10.132/24 brd 192.168.10.255 scope global ens4 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe76:2a7f/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:4d:0f:1f brd ff:ff:ff:ff:ff:ff inet 192.168.20.245/24 brd 192.168.20.255 scope global ens5 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe4d:f1f/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:3a:21:b5 brd ff:ff:ff:ff:ff:ff inet 192.168.30.183/24 brd 192.168.30.255 scope global ens6 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe3a:21b5/64 scope link valid_lft forever preferred_lft forever PING 172.21.249.19 (172.21.249.19) 56(84) bytes of data. 64 bytes from 172.21.249.19: icmp_seq=1 ttl=64 time=1.36 ms 64 bytes from 172.21.249.19: icmp_seq=2 ttl=64 time=5.17 ms 64 bytes from 172.21.249.19: icmp_seq=3 ttl=64 time=0.854 ms 64 bytes from 172.21.249.19: icmp_seq=4 ttl=64 time=0.648 ms 64 bytes from 172.21.249.19: icmp_seq=5 ttl=64 time=0.760 ms --- 172.21.249.19 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4024ms rtt min/avg/max/mdev = 0.648/1.758/5.169/1.722 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.249.212: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 Sun Apr 21 01:57:38 UTC 2024 System load: 0.21 Users logged in: 0 Usage of /: 14.2% of 9.52GB IPv4 address for ens3: 172.21.249.212 Memory usage: 10% IPv4 address for ens4: 192.168.10.132 Swap usage: 0% IPv4 address for ens5: 192.168.20.245 Processes: 108 IPv4 address for ens6: 192.168.30.183 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: Sun Apr 21 01:57:33 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.233'. 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:d8:8a:fa brd ff:ff:ff:ff:ff:ff inet 172.21.249.212/22 brd 172.21.251.255 scope global dynamic ens3 valid_lft 86298sec preferred_lft 86298sec inet6 fe80::f816:3eff:fed8:8afa/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:76:2a:7f brd ff:ff:ff:ff:ff:ff inet 192.168.10.132/24 brd 192.168.10.255 scope global ens4 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe76:2a7f/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:4d:0f:1f brd ff:ff:ff:ff:ff:ff inet 192.168.20.245/24 brd 192.168.20.255 scope global ens5 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe4d:f1f/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:3a:21:b5 brd ff:ff:ff:ff:ff:ff inet 192.168.30.183/24 brd 192.168.30.255 scope global ens6 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe3a:21b5/64 scope link valid_lft forever preferred_lft forever PING 192.168.10.233 (192.168.10.233) 56(84) bytes of data. 64 bytes from 192.168.10.233: icmp_seq=1 ttl=64 time=1.83 ms 64 bytes from 192.168.10.233: icmp_seq=2 ttl=64 time=0.966 ms 64 bytes from 192.168.10.233: icmp_seq=3 ttl=64 time=1.01 ms 64 bytes from 192.168.10.233: icmp_seq=4 ttl=64 time=0.705 ms 64 bytes from 192.168.10.233: icmp_seq=5 ttl=64 time=16.3 ms --- 192.168.10.233 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4019ms rtt min/avg/max/mdev = 0.705/4.156/16.272/6.069 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:d8:8a:fa brd ff:ff:ff:ff:ff:ff inet 172.21.249.212/22 brd 172.21.251.255 scope global dynamic ens3 valid_lft 86298sec preferred_lft 86298sec inet6 fe80::f816:3eff:fed8:8afa/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:76:2a:7f brd ff:ff:ff:ff:ff:ff inet 192.168.10.132/24 brd 192.168.10.255 scope global ens4 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe76:2a7f/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:4d:0f:1f brd ff:ff:ff:ff:ff:ff inet 192.168.20.245/24 brd 192.168.20.255 scope global ens5 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe4d:f1f/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:3a:21:b5 brd ff:ff:ff:ff:ff:ff inet 192.168.30.183/24 brd 192.168.30.255 scope global ens6 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe3a:21b5/64 scope link valid_lft forever preferred_lft forever PING 192.168.10.233 (192.168.10.233) 56(84) bytes of data. 64 bytes from 192.168.10.233: icmp_seq=1 ttl=64 time=1.83 ms 64 bytes from 192.168.10.233: icmp_seq=2 ttl=64 time=0.966 ms 64 bytes from 192.168.10.233: icmp_seq=3 ttl=64 time=1.01 ms 64 bytes from 192.168.10.233: icmp_seq=4 ttl=64 time=0.705 ms 64 bytes from 192.168.10.233: icmp_seq=5 ttl=64 time=16.3 ms --- 192.168.10.233 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4019ms rtt min/avg/max/mdev = 0.705/4.156/16.272/6.069 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.249.212: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 Sun Apr 21 01:57:44 UTC 2024 System load: 0.19 Users logged in: 0 Usage of /: 14.2% of 9.52GB IPv4 address for ens3: 172.21.249.212 Memory usage: 10% IPv4 address for ens4: 192.168.10.132 Swap usage: 0% IPv4 address for ens5: 192.168.20.245 Processes: 109 IPv4 address for ens6: 192.168.30.183 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: Sun Apr 21 01:57:39 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.17'. 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:d8:8a:fa brd ff:ff:ff:ff:ff:ff inet 172.21.249.212/22 brd 172.21.251.255 scope global dynamic ens3 valid_lft 86292sec preferred_lft 86292sec inet6 fe80::f816:3eff:fed8:8afa/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:76:2a:7f brd ff:ff:ff:ff:ff:ff inet 192.168.10.132/24 brd 192.168.10.255 scope global ens4 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe76:2a7f/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:4d:0f:1f brd ff:ff:ff:ff:ff:ff inet 192.168.20.245/24 brd 192.168.20.255 scope global ens5 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe4d:f1f/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:3a:21:b5 brd ff:ff:ff:ff:ff:ff inet 192.168.30.183/24 brd 192.168.30.255 scope global ens6 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe3a:21b5/64 scope link valid_lft forever preferred_lft forever PING 192.168.20.17 (192.168.20.17) 56(84) bytes of data. 64 bytes from 192.168.20.17: icmp_seq=1 ttl=64 time=1.65 ms 64 bytes from 192.168.20.17: icmp_seq=2 ttl=64 time=0.762 ms 64 bytes from 192.168.20.17: icmp_seq=3 ttl=64 time=0.776 ms 64 bytes from 192.168.20.17: icmp_seq=4 ttl=64 time=0.757 ms 64 bytes from 192.168.20.17: icmp_seq=5 ttl=64 time=0.665 ms --- 192.168.20.17 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4022ms rtt min/avg/max/mdev = 0.665/0.922/1.651/0.366 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:d8:8a:fa brd ff:ff:ff:ff:ff:ff inet 172.21.249.212/22 brd 172.21.251.255 scope global dynamic ens3 valid_lft 86292sec preferred_lft 86292sec inet6 fe80::f816:3eff:fed8:8afa/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:76:2a:7f brd ff:ff:ff:ff:ff:ff inet 192.168.10.132/24 brd 192.168.10.255 scope global ens4 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe76:2a7f/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:4d:0f:1f brd ff:ff:ff:ff:ff:ff inet 192.168.20.245/24 brd 192.168.20.255 scope global ens5 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe4d:f1f/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:3a:21:b5 brd ff:ff:ff:ff:ff:ff inet 192.168.30.183/24 brd 192.168.30.255 scope global ens6 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe3a:21b5/64 scope link valid_lft forever preferred_lft forever PING 192.168.20.17 (192.168.20.17) 56(84) bytes of data. 64 bytes from 192.168.20.17: icmp_seq=1 ttl=64 time=1.65 ms 64 bytes from 192.168.20.17: icmp_seq=2 ttl=64 time=0.762 ms 64 bytes from 192.168.20.17: icmp_seq=3 ttl=64 time=0.776 ms 64 bytes from 192.168.20.17: icmp_seq=4 ttl=64 time=0.757 ms 64 bytes from 192.168.20.17: icmp_seq=5 ttl=64 time=0.665 ms --- 192.168.20.17 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4022ms rtt min/avg/max/mdev = 0.665/0.922/1.651/0.366 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.249.212: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 Sun Apr 21 01:57:50 UTC 2024 System load: 0.18 Users logged in: 0 Usage of /: 14.2% of 9.52GB IPv4 address for ens3: 172.21.249.212 Memory usage: 10% IPv4 address for ens4: 192.168.10.132 Swap usage: 0% IPv4 address for ens5: 192.168.20.245 Processes: 109 IPv4 address for ens6: 192.168.30.183 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: Sun Apr 21 01:57:45 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.90'. 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:d8:8a:fa brd ff:ff:ff:ff:ff:ff inet 172.21.249.212/22 brd 172.21.251.255 scope global dynamic ens3 valid_lft 86286sec preferred_lft 86286sec inet6 fe80::f816:3eff:fed8:8afa/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:76:2a:7f brd ff:ff:ff:ff:ff:ff inet 192.168.10.132/24 brd 192.168.10.255 scope global ens4 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe76:2a7f/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:4d:0f:1f brd ff:ff:ff:ff:ff:ff inet 192.168.20.245/24 brd 192.168.20.255 scope global ens5 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe4d:f1f/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:3a:21:b5 brd ff:ff:ff:ff:ff:ff inet 192.168.30.183/24 brd 192.168.30.255 scope global ens6 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe3a:21b5/64 scope link valid_lft forever preferred_lft forever PING 192.168.30.90 (192.168.30.90) 56(84) bytes of data. 64 bytes from 192.168.30.90: icmp_seq=1 ttl=64 time=1.64 ms 64 bytes from 192.168.30.90: icmp_seq=2 ttl=64 time=0.716 ms 64 bytes from 192.168.30.90: icmp_seq=3 ttl=64 time=8.45 ms 64 bytes from 192.168.30.90: icmp_seq=4 ttl=64 time=0.740 ms 64 bytes from 192.168.30.90: icmp_seq=5 ttl=64 time=0.565 ms --- 192.168.30.90 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4030ms rtt min/avg/max/mdev = 0.565/2.422/8.450/3.037 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:d8:8a:fa brd ff:ff:ff:ff:ff:ff inet 172.21.249.212/22 brd 172.21.251.255 scope global dynamic ens3 valid_lft 86286sec preferred_lft 86286sec inet6 fe80::f816:3eff:fed8:8afa/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:76:2a:7f brd ff:ff:ff:ff:ff:ff inet 192.168.10.132/24 brd 192.168.10.255 scope global ens4 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe76:2a7f/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:4d:0f:1f brd ff:ff:ff:ff:ff:ff inet 192.168.20.245/24 brd 192.168.20.255 scope global ens5 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe4d:f1f/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:3a:21:b5 brd ff:ff:ff:ff:ff:ff inet 192.168.30.183/24 brd 192.168.30.255 scope global ens6 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe3a:21b5/64 scope link valid_lft forever preferred_lft forever PING 192.168.30.90 (192.168.30.90) 56(84) bytes of data. 64 bytes from 192.168.30.90: icmp_seq=1 ttl=64 time=1.64 ms 64 bytes from 192.168.30.90: icmp_seq=2 ttl=64 time=0.716 ms 64 bytes from 192.168.30.90: icmp_seq=3 ttl=64 time=8.45 ms 64 bytes from 192.168.30.90: icmp_seq=4 ttl=64 time=0.740 ms 64 bytes from 192.168.30.90: icmp_seq=5 ttl=64 time=0.565 ms --- 192.168.30.90 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4030ms rtt min/avg/max/mdev = 0.565/2.422/8.450/3.037 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 | +--------------------------------------+--------------------------+--------+------------------------------------------------------------------------------------------------------------------------------+-------------+----------------------+ | 662baea2-bb0a-44f0-b704-8d1e825456a7 | basic_18-vnf2-dataVM-0 | ACTIVE | basic_18-datanet1=192.168.10.22; basic_18-datanet2=192.168.20.115; basic_18-datanet3=192.168.30.8; osm-ext=172.21.248.134 | ubuntu20.04 | dataVM-vnf2-1-flv-3 | | aa7a5c2e-d809-418f-b59d-20a302fa3153 | basic_18-vnf1-dataVM-0 | ACTIVE | basic_18-datanet1=192.168.10.146; basic_18-datanet2=192.168.20.234; basic_18-datanet3=192.168.30.19; osm-ext=172.21.249.18 | ubuntu20.04 | dataVM-vnf1-1-flv-3 | | 00dd50f6-87d3-4d58-bfb1-e48f5ba93fbe | epa_04-vnf2-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.22; osm-ext=172.21.248.229 | ubuntu20.04 | dataVM-vnf2-1-flv-2 | | 7434a98d-d142-4671-aa72-bf6aca6e2550 | epa_04-vnf1-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.11; osm-ext=172.21.249.113 | ubuntu20.04 | dataVM-vnf1-1-flv-2 | | 4ccccdcf-f82c-4432-8de0-b67e9195537b | basic_18-vnf2-dataVM-0 | ACTIVE | basic_18-datanet1=192.168.10.132; basic_18-datanet2=192.168.20.245; basic_18-datanet3=192.168.30.183; osm-ext=172.21.249.212 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | d592aa93-4f26-43bc-83f1-e8e2cc4900a2 | basic_18-vnf1-dataVM-0 | ACTIVE | basic_18-datanet1=192.168.10.233; basic_18-datanet2=192.168.20.17; basic_18-datanet3=192.168.30.90; osm-ext=172.21.249.19 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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} = +--------------------------------------+--------------------------+--------+----------------------------------------------------------------------------------------------------------------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------+--------+----------------------------------------------------------------------------------------------------------------------------+-------------+----------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------+--------+----------------------------------------------------------------------------------------------------------------------------+-------------+----------------------+ | 662baea2-bb0a-44f0-b704-8d1e825456a7 | basic_18-vnf2-dataVM-0 | ACTIVE | basic_18-datanet1=192.168.10.22; basic_18-datanet2=192.168.20.115; basic_18-datanet3=192.168.30.8; osm-ext=172.21.248.134 | ubuntu20.04 | dataVM-vnf2-1-flv-3 | | aa7a5c2e-d809-418f-b59d-20a302fa3153 | basic_18-vnf1-dataVM-0 | ACTIVE | basic_18-datanet1=192.168.10.146; basic_18-datanet2=192.168.20.234; basic_18-datanet3=192.168.30.19; osm-ext=172.21.249.18 | ubuntu20.04 | dataVM-vnf1-1-flv-3 | | 00dd50f6-87d3-4d58-bfb1-e48f5ba93fbe | epa_04-vnf2-dataVM-0 | ACTIVE | osm-ext=172.21.248.229 | ubuntu20.04 | dataVM-vnf2-1-flv-2 | | 7434a98d-d142-4671-aa72-bf6aca6e2550 | epa_04-vnf1-dataVM-0 | ACTIVE | osm-ext=172.21.249.113 | ubuntu20.04 | dataVM-vnf1-1-flv-2 | | 4ccccdcf-f82c-4432-8de0-b67e9195537b | basic_18-vnf2-dataVM-0 | ACTIVE | osm-ext=172.21.249.212 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | d592aa93-4f26-43bc-83f1-e8e2cc4900a2 | basic_18-vnf1-dataVM-0 | ACTIVE | osm-ext=172.21.249.19 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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} = +--------------------------------------+--------------------------+--------+----------------------------------------------------------------------------------------------------------------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------+--------+----------------------------------------------------------------------------------------------------------------------------+-------------+----------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------+--------+----------------------------------------------------------------------------------------------------------------------------+-------------+----------------------+ | 662baea2-bb0a-44f0-b704-8d1e825456a7 | basic_18-vnf2-dataVM-0 | ACTIVE | basic_18-datanet1=192.168.10.22; basic_18-datanet2=192.168.20.115; basic_18-datanet3=192.168.30.8; osm-ext=172.21.248.134 | ubuntu20.04 | dataVM-vnf2-1-flv-3 | | aa7a5c2e-d809-418f-b59d-20a302fa3153 | basic_18-vnf1-dataVM-0 | ACTIVE | basic_18-datanet1=192.168.10.146; basic_18-datanet2=192.168.20.234; basic_18-datanet3=192.168.30.19; osm-ext=172.21.249.18 | ubuntu20.04 | dataVM-vnf1-1-flv-3 | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 f6b3db1d-644d-44b9-886c-3119f6ee27f3 ${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} = f6b3db1d-644d-44b9-886c-3119f6ee27f3 ${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 1b7c22cc-ded1-4dae-8832-6fcadbd1e3f5 ${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} = 1b7c22cc-ded1-4dae-8832-6fcadbd1e3f5 ${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} = d2bf9378-a873-4c3b-b646-e7cfcd991d52 ${stdout} Logs the given message with the given level. d2bf9378-a873-4c3b-b646-e7cfcd991d52 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = d2bf9378-a873-4c3b-b646-e7cfcd991d52 ${ns_id} Logs the given message with the given level. d2bf9378-a873-4c3b-b646-e7cfcd991d52 ${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 | +--------------------------------------+--------------------------+--------+----------------------------------------------------------------------------------------------------------------------------+-------------+----------------------+ | 662baea2-bb0a-44f0-b704-8d1e825456a7 | basic_18-vnf2-dataVM-0 | ACTIVE | basic_18-datanet1=192.168.10.22; basic_18-datanet2=192.168.20.115; basic_18-datanet3=192.168.30.8; osm-ext=172.21.248.134 | ubuntu20.04 | dataVM-vnf2-1-flv-3 | | aa7a5c2e-d809-418f-b59d-20a302fa3153 | basic_18-vnf1-dataVM-0 | ACTIVE | basic_18-datanet1=192.168.10.146; basic_18-datanet2=192.168.20.234; basic_18-datanet3=192.168.30.19; osm-ext=172.21.249.18 | ubuntu20.04 | dataVM-vnf1-1-flv-3 | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | d2bf9378-a873-4c3b-b646-e7cfcd991d52 | 2024-04-21T01:58:47 | BUILDING | INSTANTIATING (71ed5267-b203-44bb-9c32-2e8b6e046aa1) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | d2bf9378-a873-4c3b-b646-e7cfcd991d52 | 2024-04-21T01:58:47 | BUILDING | INSTANTIATING (71ed5267-b203-44bb-9c32-2e8b6e046aa1) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+---------------------------+--------+-----------------------------------------------------------+-------------+-------------------------+ | 02283bd0-afcb-4d86-b993-db600c58bc50 | fail_01_5746-vnf-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 3d0a820d-84c2-4e41-8359-ff44a0108e15 | basic_19-vnf-dataVM-0 | ACTIVE | basic_19-internal=192.168.200.182 | ubuntu20.04 | simple_requires-1-1-flv | | f4d7ba01-0132-4b3c-a6cb-f686bcd56f55 | basic_19-vnf-mgmtVM-0 | ACTIVE | basic_19-internal=192.168.200.229; osm-ext=172.21.248.207 | ubuntu20.04 | simple_requires-1-1-flv | | 662baea2-bb0a-44f0-b704-8d1e825456a7 | basic_18-vnf2-dataVM-0 | ACTIVE | osm-ext=172.21.248.134 | ubuntu20.04 | dataVM-vnf2-1-flv-3 | | aa7a5c2e-d809-418f-b59d-20a302fa3153 | basic_18-vnf1-dataVM-0 | ACTIVE | basic_18-datanet3=192.168.30.19; osm-ext=172.21.249.18 | ubuntu20.04 | dataVM-vnf1-1-flv-3 | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | d2bf9378-a873-4c3b-b646-e7cfcd991d52 | 2024-04-21T01:58:47 | BUILDING | INSTANTIATING (71ed5267-b203-44bb-9c32-2e8b6e046aa1) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | d2bf9378-a873-4c3b-b646-e7cfcd991d52 | 2024-04-21T01:58:47 | BUILDING | INSTANTIATING (71ed5267-b203-44bb-9c32-2e8b6e046aa1) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+--------------------------+--------+-----------------------------------------------------------+-------------+-------------------------+ | 3d0a820d-84c2-4e41-8359-ff44a0108e15 | basic_19-vnf-dataVM-0 | ACTIVE | basic_19-internal=192.168.200.182 | ubuntu20.04 | simple_requires-1-1-flv | | f4d7ba01-0132-4b3c-a6cb-f686bcd56f55 | basic_19-vnf-mgmtVM-0 | ACTIVE | basic_19-internal=192.168.200.229; osm-ext=172.21.248.207 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | d2bf9378-a873-4c3b-b646-e7cfcd991d52 | 2024-04-21T01:58:47 | 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 | +--------------------------------------+--------------------------+--------+-----------------------------------------------------------+-------------+-------------------------+ | 3d0a820d-84c2-4e41-8359-ff44a0108e15 | basic_19-vnf-dataVM-0 | ACTIVE | basic_19-internal=192.168.200.182 | ubuntu20.04 | simple_requires-1-1-flv | | f4d7ba01-0132-4b3c-a6cb-f686bcd56f55 | basic_19-vnf-mgmtVM-0 | ACTIVE | basic_19-internal=192.168.200.229; osm-ext=172.21.248.207 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | d2bf9378-a873-4c3b-b646-e7cfcd991d52 | 2024-04-21T01:58:47 | 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} = d2bf9378-a873-4c3b-b646-e7cfcd991d52 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = d2bf9378-a873-4c3b-b646-e7cfcd991d52 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 d2bf9378-a873-4c3b-b646-e7cfcd991d52 | grep d2bf9378-a873-4c3b-b646-e7cfcd991d52 | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = f785a26c-1590-4f43-b47a-a8babb0d8615 ${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} = [ f785a26c-1590-4f43-b47a-a8babb0d8615 ] @{vdur} @{vnfr_list} = [ f785a26c-1590-4f43-b47a-a8babb0d8615 ] ${vnfr_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: f785a26c-1590-4f43-b47a-a8babb0d8615 ${VNF_ID} ${vnfr_list}[0] Makes a variable available everywhere within the scope of the current suite. ${VNF_ID} = f785a26c-1590-4f43-b47a-a8babb0d8615 ${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 d2bf9378-a873-4c3b-b646-e7cfcd991d52 | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.248.207 ${stdout} Logs the given message with the given level. 172.21.248.207 ${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.207 ${VNF_IPMGMT} ${ip} Makes a variable available everywhere within the scope of the current suite. ${VNF_IPMGMT} = 172.21.248.207 ${VNF_IPMGMT} Logs the given message with the given level. 172.21.248.207 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 f785a26c-1590-4f43-b47a-a8babb0d8615 --literal | yq '.vdur[0].interfaces[] | select(."vnf-vld-id" == "internal")' | yq -r '."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 192.168.200.229 ${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 f785a26c-1590-4f43-b47a-a8babb0d8615 --literal | yq '.vdur[1].interfaces[] | select(."vnf-vld-id" == "internal")' | yq -r '."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 192.168.200.182 ${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 | +--------------------------------------+--------------------------+--------+-----------------------------------------------------------+-------------+-------------------------+ | 3d0a820d-84c2-4e41-8359-ff44a0108e15 | basic_19-vnf-dataVM-0 | ACTIVE | basic_19-internal=192.168.200.182 | ubuntu20.04 | simple_requires-1-1-flv | | f4d7ba01-0132-4b3c-a6cb-f686bcd56f55 | basic_19-vnf-mgmtVM-0 | ACTIVE | basic_19-internal=192.168.200.229; osm-ext=172.21.248.207 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+---------------------------------+--------+-----------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+---------------------------------+--------+-----------------------------------------------------------+-------------+-------------------------+ | 2a7022d4-7cba-46f8-9b09-620a40ff877b | hfbasic-vnf-hackfest_basic-VM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | caaf970c-1e13-41b9-9182-d41a1bae066c | basic_19-vnf-dataVM-0 | ACTIVE | basic_19-internal=192.168.200.161 | ubuntu20.04 | simple_requires-1-1-flv | | a3a6d222-629a-489d-992a-3e56a67156c1 | basic_19-vnf-mgmtVM-0 | ACTIVE | basic_19-internal=192.168.200.238; osm-ext=172.21.249.139 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 414b4993-61be-407d-adaa-dc826af86e9c ${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} = 414b4993-61be-407d-adaa-dc826af86e9c ${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 405bf159-89fc-4129-91f3-f5be0b2ebedd ${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} = 405bf159-89fc-4129-91f3-f5be0b2ebedd ${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} = a57db0ea-24a3-436d-8d7d-83375b61a5af ${stdout} Logs the given message with the given level. a57db0ea-24a3-436d-8d7d-83375b61a5af ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = a57db0ea-24a3-436d-8d7d-83375b61a5af ${ns_id} Logs the given message with the given level. a57db0ea-24a3-436d-8d7d-83375b61a5af ${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 | +--------------------------------------+---------------------------------+--------+-----------------------------------------------------------------+-------------+-------------------------+ | 6d8ea0c1-907a-4100-8ebe-25fc9eb22bbc | k8s_10-k8s_proxy-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 62576506-e5a8-4e68-a2f7-a14c27e56168 | k8s_10-k8s_proxy-vnf1-mgmtVM-0 | ACTIVE | k8s_10-k8s_proxy-datanet=192.168.37.137; osm-ext=172.21.249.201 | ubuntu18.04 | simple_requires-1-1-flv | | 2a7022d4-7cba-46f8-9b09-620a40ff877b | hfbasic-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.249.89 | ubuntu20.04 | simple_requires-1-1-flv | | caaf970c-1e13-41b9-9182-d41a1bae066c | basic_19-vnf-dataVM-0 | ACTIVE | basic_19-internal=192.168.200.161 | ubuntu20.04 | simple_requires-1-1-flv | | a3a6d222-629a-489d-992a-3e56a67156c1 | basic_19-vnf-mgmtVM-0 | ACTIVE | basic_19-internal=192.168.200.238; osm-ext=172.21.249.139 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | a57db0ea-24a3-436d-8d7d-83375b61a5af | 2024-04-21T02:00:40 | BUILDING | INSTANTIATING (40ac678a-8ee3-4767-b5b8-e54008186998) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | a57db0ea-24a3-436d-8d7d-83375b61a5af | 2024-04-21T02:00:40 | BUILDING | INSTANTIATING (40ac678a-8ee3-4767-b5b8-e54008186998) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+------------------------------------------------+--------+-----------------------------------------------------------------+-------------+-------------------------+ | 99de517b-994b-4662-87a6-a5e900f454c0 | basic_21-vnf-several-volu-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.126 | ubuntu20.04 | several_volumes-VM-flv | | 6d8ea0c1-907a-4100-8ebe-25fc9eb22bbc | k8s_10-k8s_proxy-vnf2-mgmtVM-0 | ACTIVE | k8s_10-k8s_proxy-datanet=192.168.37.32; osm-ext=172.21.248.207 | ubuntu18.04 | simple_requires-1-1-flv | | 62576506-e5a8-4e68-a2f7-a14c27e56168 | k8s_10-k8s_proxy-vnf1-mgmtVM-0 | ACTIVE | k8s_10-k8s_proxy-datanet=192.168.37.137; osm-ext=172.21.249.201 | ubuntu18.04 | simple_requires-1-1-flv | | 2a7022d4-7cba-46f8-9b09-620a40ff877b | hfbasic-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.249.89 | ubuntu20.04 | simple_requires-1-1-flv | | caaf970c-1e13-41b9-9182-d41a1bae066c | basic_19-vnf-dataVM-0 | ACTIVE | basic_19-internal=192.168.200.161 | ubuntu20.04 | simple_requires-1-1-flv | | a3a6d222-629a-489d-992a-3e56a67156c1 | basic_19-vnf-mgmtVM-0 | ACTIVE | basic_19-internal=192.168.200.238; osm-ext=172.21.249.139 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | a57db0ea-24a3-436d-8d7d-83375b61a5af | 2024-04-21T02:00:40 | BUILDING | INSTANTIATING (40ac678a-8ee3-4767-b5b8-e54008186998) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | a57db0ea-24a3-436d-8d7d-83375b61a5af | 2024-04-21T02:00:40 | BUILDING | INSTANTIATING (40ac678a-8ee3-4767-b5b8-e54008186998) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+------------------------------------------------+--------+-----------------------------------------------------------------+-------------+-------------------------+ | 99de517b-994b-4662-87a6-a5e900f454c0 | basic_21-vnf-several-volu-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.126 | ubuntu20.04 | several_volumes-VM-flv | | 6d8ea0c1-907a-4100-8ebe-25fc9eb22bbc | k8s_10-k8s_proxy-vnf2-mgmtVM-0 | ACTIVE | k8s_10-k8s_proxy-datanet=192.168.37.32; osm-ext=172.21.248.207 | ubuntu18.04 | simple_requires-1-1-flv | | 62576506-e5a8-4e68-a2f7-a14c27e56168 | k8s_10-k8s_proxy-vnf1-mgmtVM-0 | ACTIVE | k8s_10-k8s_proxy-datanet=192.168.37.137; osm-ext=172.21.249.201 | ubuntu18.04 | simple_requires-1-1-flv | | 2a7022d4-7cba-46f8-9b09-620a40ff877b | hfbasic-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.249.89 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | a57db0ea-24a3-436d-8d7d-83375b61a5af | 2024-04-21T02:00:40 | 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 | +--------------------------------------+------------------------------------------------+--------+-----------------------------------------------------------------+-------------+-------------------------+ | 99de517b-994b-4662-87a6-a5e900f454c0 | basic_21-vnf-several-volu-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.126 | ubuntu20.04 | several_volumes-VM-flv | | 6d8ea0c1-907a-4100-8ebe-25fc9eb22bbc | k8s_10-k8s_proxy-vnf2-mgmtVM-0 | ACTIVE | k8s_10-k8s_proxy-datanet=192.168.37.32; osm-ext=172.21.248.207 | ubuntu18.04 | simple_requires-1-1-flv | | 62576506-e5a8-4e68-a2f7-a14c27e56168 | k8s_10-k8s_proxy-vnf1-mgmtVM-0 | ACTIVE | k8s_10-k8s_proxy-datanet=192.168.37.137; osm-ext=172.21.249.201 | ubuntu18.04 | simple_requires-1-1-flv | | 2a7022d4-7cba-46f8-9b09-620a40ff877b | hfbasic-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.249.89 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | a57db0ea-24a3-436d-8d7d-83375b61a5af | 2024-04-21T02:00:40 | 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} = a57db0ea-24a3-436d-8d7d-83375b61a5af ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = a57db0ea-24a3-436d-8d7d-83375b61a5af 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} = a57db0ea-24a3-436d-8d7d-83375b61a5af ${stdout} Logs the given message with the given level. a57db0ea-24a3-436d-8d7d-83375b61a5af ${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} = a57db0ea-24a3-436d-8d7d-83375b61a5af ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = a57db0ea-24a3-436d-8d7d-83375b61a5af 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 a57db0ea-24a3-436d-8d7d-83375b61a5af | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.248.126 ${stdout} Logs the given message with the given level. 172.21.248.126 ${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.126 ${ip_addr} Logs the given message with the given level. 172.21.248.126 ${VNF_IP_ADDR} ${ip_addr} Makes a variable available everywhere within the scope of the current suite. ${VNF_IP_ADDR} = 172.21.248.126 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.126: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 Sun Apr 21 02:02:29 UTC 2024 System load: 0.13 Processes: 104 Usage of /: 14.0% of 9.52GB Users logged in: 0 Memory usage: 21% IPv4 address for ens3: 172.21.248.126 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} = +--------------------------------------+------------------------------------------------+--------+-----------------------------------------------------------------+-------------+----------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------------+--------+-----------------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------------+--------+-----------------------------------------------------------------+-------------+-------------------------+ | 404b3a76-8a92-48c1-b527-f3326d843e84 | basic_21-vnf-several-volu-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.249 | ubuntu20.04 | several_volumes-VM-flv | | 99de517b-994b-4662-87a6-a5e900f454c0 | basic_21-vnf-several-volu-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.126 | ubuntu20.04 | several_volumes-VM-flv | | 6d8ea0c1-907a-4100-8ebe-25fc9eb22bbc | k8s_10-k8s_proxy-vnf2-mgmtVM-0 | ACTIVE | k8s_10-k8s_proxy-datanet=192.168.37.32; osm-ext=172.21.248.207 | ubuntu18.04 | simple_requires-1-1-flv | | 62576506-e5a8-4e68-a2f7-a14c27e56168 | k8s_10-k8s_proxy-vnf1-mgmtVM-0 | ACTIVE | k8s_10-k8s_proxy-datanet=192.168.37.137; osm-ext=172.21.249.201 | ubuntu18.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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} = +--------------------------------------+------------------------------------------------+--------+-----------------------------------------------------------------+-------------+----------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------------+--------+-----------------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------------+--------+-----------------------------------------------------------------+-------------+-------------------------+ | 5da1844f-0273-423d-8a14-499bc1ad9eca | hfcloudinit-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 404b3a76-8a92-48c1-b527-f3326d843e84 | basic_21-vnf-several-volu-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.249 | ubuntu20.04 | several_volumes-VM-flv | | 6d8ea0c1-907a-4100-8ebe-25fc9eb22bbc | k8s_10-k8s_proxy-vnf2-mgmtVM-0 | ACTIVE | k8s_10-k8s_proxy-datanet=192.168.37.32; osm-ext=172.21.248.207 | ubuntu18.04 | simple_requires-1-1-flv | | 62576506-e5a8-4e68-a2f7-a14c27e56168 | k8s_10-k8s_proxy-vnf1-mgmtVM-0 | ACTIVE | k8s_10-k8s_proxy-datanet=192.168.37.137; osm-ext=172.21.249.201 | ubuntu18.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 9f907eae-7889-4101-abc9-903528020321 ${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} = 9f907eae-7889-4101-abc9-903528020321 ${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 13c97a... ${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 13c97aaf-5a21-4ead-9ece-15e47011fff2 ${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} = 13c97aaf-5a21-4ead-9ece-15e47011fff2 ${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 861bf3c4-7a5d-4dfa-a6d6-2ff234699fc9 ${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} = 861bf3c4-7a5d-4dfa-a6d6-2ff234699fc9 ${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 b2d78fa3-1db2-4711-abc9-67008f49ddc4 ${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} = b2d78fa3-1db2-4711-abc9-67008f49ddc4 ${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} = 8cacd232-df55-4b0a-a1b0-26c3476273d8 ${stdout} Logs the given message with the given level. 8cacd232-df55-4b0a-a1b0-26c3476273d8 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 8cacd232-df55-4b0a-a1b0-26c3476273d8 ${ns_id} Logs the given message with the given level. 8cacd232-df55-4b0a-a1b0-26c3476273d8 ${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 | +--------------------------------------+------------------------------------------------+--------+---------------------------------------------------------------------------+-------------+-------------------------+ | af791c67-1f47-4004-9ef6-5f2344ac2f45 | hfcloudinit-vnf2-dataVM-0 | ACTIVE | hfcloudinit-datanet=192.168.107.124; hfcloudinit-internal=192.168.15.163 | ubuntu20.04 | simple_requires-1-1-flv | | 039fb1b4-cfca-4224-9cdf-356850e69c33 | hfcloudinit-vnf2-mgmtVM-0 | ACTIVE | hfcloudinit-internal=192.168.15.205; osm-ext=172.21.248.87 | ubuntu20.04 | simple_requires-1-1-flv | | 5c61e05f-e391-468d-99b2-d0894a4ddfcc | hfcloudinit-vnf1-dataVM-0 | ACTIVE | hfcloudinit-datanet=192.168.107.170; hfcloudinit-internal=192.168.148.137 | ubuntu20.04 | simple_requires-1-1-flv | | 5da1844f-0273-423d-8a14-499bc1ad9eca | hfcloudinit-vnf1-mgmtVM-0 | ACTIVE | hfcloudinit-internal=192.168.148.72; osm-ext=172.21.249.102 | ubuntu20.04 | simple_requires-1-1-flv | | 404b3a76-8a92-48c1-b527-f3326d843e84 | basic_21-vnf-several-volu-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.249 | ubuntu20.04 | several_volumes-VM-flv | | 6d8ea0c1-907a-4100-8ebe-25fc9eb22bbc | k8s_10-k8s_proxy-vnf2-mgmtVM-0 | ACTIVE | k8s_10-k8s_proxy-datanet=192.168.37.32; osm-ext=172.21.248.207 | ubuntu18.04 | simple_requires-1-1-flv | | 62576506-e5a8-4e68-a2f7-a14c27e56168 | k8s_10-k8s_proxy-vnf1-mgmtVM-0 | ACTIVE | k8s_10-k8s_proxy-datanet=192.168.37.137; osm-ext=172.21.249.201 | ubuntu18.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | 8cacd232-df55-4b0a-a1b0-26c3476273d8 | 2024-04-21T02:03:17 | BUILDING | INSTANTIATING (e9ad6dce-d28f-497b-b0d6-9907db2f9198) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | 8cacd232-df55-4b0a-a1b0-26c3476273d8 | 2024-04-21T02:03:17 | BUILDING | INSTANTIATING (e9ad6dce-d28f-497b-b0d6-9907db2f9198) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+--------------------------------------------------+--------+---------------------------------------------------------------------------+-------------+-------------------------+ | 1354d91d-2c77-4000-8680-1dd8eda430f4 | basic_24-affinity-basic-1-affinity_basic-VM-2-0 | ACTIVE | osm-ext=172.21.249.128 | ubuntu20.04 | simple_requires-1-1-flv | | 298799f7-0075-4ee5-b056-22ebbdda3280 | basic_24-affinity-basic-1-affinity_basic-VM-1-0 | ACTIVE | osm-ext=172.21.249.116 | ubuntu20.04 | simple_requires-1-1-flv | | 26c43d5d-f66c-4671-9cf1-ee979593728d | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.60 | ubuntu20.04 | simple_requires-1-1-flv | | af791c67-1f47-4004-9ef6-5f2344ac2f45 | hfcloudinit-vnf2-dataVM-0 | ACTIVE | hfcloudinit-datanet=192.168.107.124; hfcloudinit-internal=192.168.15.163 | ubuntu20.04 | simple_requires-1-1-flv | | 039fb1b4-cfca-4224-9cdf-356850e69c33 | hfcloudinit-vnf2-mgmtVM-0 | ACTIVE | hfcloudinit-internal=192.168.15.205; osm-ext=172.21.248.87 | ubuntu20.04 | simple_requires-1-1-flv | | 5c61e05f-e391-468d-99b2-d0894a4ddfcc | hfcloudinit-vnf1-dataVM-0 | ACTIVE | hfcloudinit-datanet=192.168.107.170; hfcloudinit-internal=192.168.148.137 | ubuntu20.04 | simple_requires-1-1-flv | | 5da1844f-0273-423d-8a14-499bc1ad9eca | hfcloudinit-vnf1-mgmtVM-0 | ACTIVE | hfcloudinit-internal=192.168.148.72; osm-ext=172.21.249.102 | ubuntu20.04 | simple_requires-1-1-flv | | 404b3a76-8a92-48c1-b527-f3326d843e84 | basic_21-vnf-several-volu-several_volumes-VM-0 | ACTIVE | | ubuntu20.04 | several_volumes-VM-flv | | 6d8ea0c1-907a-4100-8ebe-25fc9eb22bbc | k8s_10-k8s_proxy-vnf2-mgmtVM-0 | ACTIVE | k8s_10-k8s_proxy-datanet=192.168.37.32; osm-ext=172.21.248.207 | ubuntu18.04 | simple_requires-1-1-flv | | 62576506-e5a8-4e68-a2f7-a14c27e56168 | k8s_10-k8s_proxy-vnf1-mgmtVM-0 | ACTIVE | k8s_10-k8s_proxy-datanet=192.168.37.137; osm-ext=172.21.249.201 | ubuntu18.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | 8cacd232-df55-4b0a-a1b0-26c3476273d8 | 2024-04-21T02:03:17 | BUILDING | INSTANTIATING (e9ad6dce-d28f-497b-b0d6-9907db2f9198) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | 8cacd232-df55-4b0a-a1b0-26c3476273d8 | 2024-04-21T02:03:17 | BUILDING | INSTANTIATING (e9ad6dce-d28f-497b-b0d6-9907db2f9198) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+--------------------------------------------------+--------+---------------------------------------------------------------------------+-------------+-------------------------+ | 1354d91d-2c77-4000-8680-1dd8eda430f4 | basic_24-affinity-basic-1-affinity_basic-VM-2-0 | ACTIVE | osm-ext=172.21.249.128 | ubuntu20.04 | simple_requires-1-1-flv | | 298799f7-0075-4ee5-b056-22ebbdda3280 | basic_24-affinity-basic-1-affinity_basic-VM-1-0 | ACTIVE | osm-ext=172.21.249.116 | ubuntu20.04 | simple_requires-1-1-flv | | 26c43d5d-f66c-4671-9cf1-ee979593728d | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.60 | ubuntu20.04 | simple_requires-1-1-flv | | af791c67-1f47-4004-9ef6-5f2344ac2f45 | hfcloudinit-vnf2-dataVM-0 | ACTIVE | hfcloudinit-datanet=192.168.107.124; hfcloudinit-internal=192.168.15.163 | ubuntu20.04 | simple_requires-1-1-flv | | 039fb1b4-cfca-4224-9cdf-356850e69c33 | hfcloudinit-vnf2-mgmtVM-0 | ACTIVE | hfcloudinit-internal=192.168.15.205; osm-ext=172.21.248.87 | ubuntu20.04 | simple_requires-1-1-flv | | 5c61e05f-e391-468d-99b2-d0894a4ddfcc | hfcloudinit-vnf1-dataVM-0 | ACTIVE | hfcloudinit-datanet=192.168.107.170; hfcloudinit-internal=192.168.148.137 | ubuntu20.04 | simple_requires-1-1-flv | | 5da1844f-0273-423d-8a14-499bc1ad9eca | hfcloudinit-vnf1-mgmtVM-0 | ACTIVE | hfcloudinit-internal=192.168.148.72; osm-ext=172.21.249.102 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | 8cacd232-df55-4b0a-a1b0-26c3476273d8 | 2024-04-21T02:03:17 | 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 | +--------------------------------------+--------------------------------------------------+--------+-------------------------------------------------------------+-------------+-------------------------+ | 1354d91d-2c77-4000-8680-1dd8eda430f4 | basic_24-affinity-basic-1-affinity_basic-VM-2-0 | ACTIVE | osm-ext=172.21.249.128 | ubuntu20.04 | simple_requires-1-1-flv | | 298799f7-0075-4ee5-b056-22ebbdda3280 | basic_24-affinity-basic-1-affinity_basic-VM-1-0 | ACTIVE | osm-ext=172.21.249.116 | ubuntu20.04 | simple_requires-1-1-flv | | 26c43d5d-f66c-4671-9cf1-ee979593728d | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.60 | ubuntu20.04 | simple_requires-1-1-flv | | af791c67-1f47-4004-9ef6-5f2344ac2f45 | hfcloudinit-vnf2-dataVM-0 | ACTIVE | hfcloudinit-internal=192.168.15.163 | ubuntu20.04 | simple_requires-1-1-flv | | 039fb1b4-cfca-4224-9cdf-356850e69c33 | hfcloudinit-vnf2-mgmtVM-0 | ACTIVE | hfcloudinit-internal=192.168.15.205; osm-ext=172.21.248.87 | ubuntu20.04 | simple_requires-1-1-flv | | 5c61e05f-e391-468d-99b2-d0894a4ddfcc | hfcloudinit-vnf1-dataVM-0 | ACTIVE | hfcloudinit-internal=192.168.148.137 | ubuntu20.04 | simple_requires-1-1-flv | | 5da1844f-0273-423d-8a14-499bc1ad9eca | hfcloudinit-vnf1-mgmtVM-0 | ACTIVE | hfcloudinit-internal=192.168.148.72; osm-ext=172.21.249.102 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | 8cacd232-df55-4b0a-a1b0-26c3476273d8 | 2024-04-21T02:03:17 | 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} = 8cacd232-df55-4b0a-a1b0-26c3476273d8 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 8cacd232-df55-4b0a-a1b0-26c3476273d8 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 8cacd232-df55-4b0a-a1b0-26c3476273d8 | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = baca029c-13bf-45ab-b81d-d2abdfab79fc ${stdout} Logs the given message with the given level. baca029c-13bf-45ab-b81d-d2abdfab79fc ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${vnf_id} = baca029c-13bf-45ab-b81d-d2abdfab79fc @{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 baca029c-13bf-45ab-b81d-d2abdfab79fc --literal | yq '.vdur[].id' 2>&1'. ${rc} = 0 ${stdout} = "efd85a0c-f4b3-46a1-888e-8a27fd3469fd" "8d1c52e2-b60e-4ee1-8be1-f072f1dd7853" ${stdout} Logs the given message with the given level. "efd85a0c-f4b3-46a1-888e-8a27fd3469fd" "8d1c52e2-b60e-4ee1-8be1-f072f1dd7853" ${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} = [ "efd85a0c-f4b3-46a1-888e-8a27fd3469fd" | "8d1c52e2-b60e-4ee1-8be1-f072f1dd7853" ] @{vdur_ids} @{vdur_id_list} = [ "efd85a0c-f4b3-46a1-888e-8a27fd3469fd" | "8d1c52e2-b60e-4ee1-8be1-f072f1dd7853" ] ${vdur_id} @{vdur_id_list} "efd85a0c-f4b3-46a1-888e-8a27fd3469fd" ${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 baca029c-13bf-45ab-b81d-d2abdfab79fc --literal | yq '.vdur[] | select(.id == "'"efd85a0c-f4b3-46a1-888e-8a27fd3469fd"'")' | 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 baca029c-13bf-45ab-b81d-d2abdfab79fc --literal | yq '.vdur[] | select(.id == "'"efd85a0c-f4b3-46a1-888e-8a27fd3469fd"'")' | yq -r '."vim-id"' 2>&1'. ${rc} = 0 ${vm_vim_id} = 298799f7-0075-4ee5-b056-22ebbdda3280 ${vm_vim_id} Logs the given message with the given level. 298799f7-0075-4ee5-b056-22ebbdda3280 ${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} = 298799f7-0075-4ee5-b056-22ebbdda3280 ${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} = ['1354d91d-2c77-4000-8680-1dd8eda430f4', '298799f7-0075-4ee5-b056-22ebbdda3280'] ${stdout} Logs the given message with the given level. ['1354d91d-2c77-4000-8680-1dd8eda430f4', '298799f7-0075-4ee5-b056-22ebbdda3280'] ${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. "8d1c52e2-b60e-4ee1-8be1-f072f1dd7853" ${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 baca029c-13bf-45ab-b81d-d2abdfab79fc --literal | yq '.vdur[] | select(.id == "'"8d1c52e2-b60e-4ee1-8be1-f072f1dd7853"'")' | 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 baca029c-13bf-45ab-b81d-d2abdfab79fc --literal | yq '.vdur[] | select(.id == "'"8d1c52e2-b60e-4ee1-8be1-f072f1dd7853"'")' | yq -r '."vim-id"' 2>&1'. ${rc} = 0 ${vm_vim_id} = 1354d91d-2c77-4000-8680-1dd8eda430f4 ${vm_vim_id} Logs the given message with the given level. 1354d91d-2c77-4000-8680-1dd8eda430f4 ${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} = 1354d91d-2c77-4000-8680-1dd8eda430f4 ${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} = 1 ${stdout} = More than one ServerGroup exists with the name 'basic_24-affinity-basic-1-affinity-group-1'. ${stdout} Logs the given message with the given level. More than one ServerGroup exists with the name 'basic_24-affinity-basic-1-affinity-group-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} ${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 1 != 0 ${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 | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 32b2065a-0410-452b-8395-c43dd7f9c09a | basic_24-affinity-basic-1-affinity_basic-VM-1-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 1354d91d-2c77-4000-8680-1dd8eda430f4 | basic_24-affinity-basic-1-affinity_basic-VM-2-0 | ACTIVE | osm-ext=172.21.249.128 | ubuntu20.04 | simple_requires-1-1-flv | | 298799f7-0075-4ee5-b056-22ebbdda3280 | basic_24-affinity-basic-1-affinity_basic-VM-1-0 | ACTIVE | osm-ext=172.21.249.116 | ubuntu20.04 | simple_requires-1-1-flv | | 26c43d5d-f66c-4671-9cf1-ee979593728d | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.60 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 9ab588d5-5e4e-47be-a459-2f9df09341e4 | basic_24-affinity-basic-1-affinity_basic-VM-2-0 | ACTIVE | osm-ext=172.21.249.113 | ubuntu20.04 | simple_requires-1-1-flv | | 32b2065a-0410-452b-8395-c43dd7f9c09a | basic_24-affinity-basic-1-affinity_basic-VM-1-0 | ACTIVE | osm-ext=172.21.249.215 | ubuntu20.04 | simple_requires-1-1-flv | | 26c43d5d-f66c-4671-9cf1-ee979593728d | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.60 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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. ${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} = 1 ${stdout} = ERROR: ns 'basic_24' not found ${stdout} Logs the given message with the given level. ERROR: ns 'basic_24' 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 | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 9ab588d5-5e4e-47be-a459-2f9df09341e4 | basic_24-affinity-basic-1-affinity_basic-VM-2-0 | ACTIVE | osm-ext=172.21.249.113 | ubuntu20.04 | simple_requires-1-1-flv | | 32b2065a-0410-452b-8395-c43dd7f9c09a | basic_24-affinity-basic-1-affinity_basic-VM-1-0 | ACTIVE | osm-ext=172.21.249.215 | ubuntu20.04 | simple_requires-1-1-flv | | 26c43d5d-f66c-4671-9cf1-ee979593728d | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.60 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 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 affinity_basic-ns 2>&1'. ${rc} = 1 ${stdout} = ERROR: nsd affinity_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 affinity_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 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 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 affinity_basic-vnf 2>&1'. ${rc} = 1 ${stdout} = ERROR: vnfd affinity_basic-vnf not found ${stdout} Logs the given message with the given level. ERROR: vnfd affinity_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 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. [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 6d75e614-e4f4-4e9c-bf1f-6299132d48a5 ${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} = 6d75e614-e4f4-4e9c-bf1f-6299132d48a5 ${id} ${id} = 6d75e614-e4f4-4e9c-bf1f-6299132d48a5 ${VNFD_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${VNFD_ID} = 6d75e614-e4f4-4e9c-bf1f-6299132d48a5 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 64c2285d-ddfc-4ec7-a7f6-8ec100ee565c ${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} = 64c2285d-ddfc-4ec7-a7f6-8ec100ee565c ${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} = 18e370ae-b4b4-4569-9c94-930077c90b9e ${stdout} Logs the given message with the given level. 18e370ae-b4b4-4569-9c94-930077c90b9e ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 18e370ae-b4b4-4569-9c94-930077c90b9e ${ns_id} Logs the given message with the given level. 18e370ae-b4b4-4569-9c94-930077c90b9e ${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 | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 5bb8985e-3591-471c-bc7d-c85d9d9c09cb | hfmultivdu-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | cfad2017-f568-4b95-8dca-0d0c7f7295c8 | hfmultivdu-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 9ab588d5-5e4e-47be-a459-2f9df09341e4 | basic_24-affinity-basic-1-affinity_basic-VM-2-0 | ACTIVE | osm-ext=172.21.249.113 | ubuntu20.04 | simple_requires-1-1-flv | | 32b2065a-0410-452b-8395-c43dd7f9c09a | basic_24-affinity-basic-1-affinity_basic-VM-1-0 | ACTIVE | osm-ext=172.21.249.215 | ubuntu20.04 | simple_requires-1-1-flv | | 26c43d5d-f66c-4671-9cf1-ee979593728d | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.60 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | 18e370ae-b4b4-4569-9c94-930077c90b9e | 2024-04-21T02:05:29 | BUILDING | INSTANTIATING (6439e079-1158-450f-9ae5-bdd9d182fad1) | N/A | +------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | 18e370ae-b4b4-4569-9c94-930077c90b9e | 2024-04-21T02:05:29 | BUILDING | INSTANTIATING (6439e079-1158-450f-9ae5-bdd9d182fad1) | N/A | +------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+--------------------------------------------------+--------+-----------------------------------------------------------------------+-------------+-------------------------+ | 3126dec6-eec5-4f43-9546-2a3a1633f4ec | hfmultivdu-vnf2-dataVM-0 | ACTIVE | hfmultivdu-datanet=192.168.60.95; hfmultivdu-internal=192.168.7.168 | ubuntu20.04 | simple_requires-1-1-flv | | 04a66925-eebd-48f4-9a12-1567f4900f56 | basic_27_helm_ee-simple-mgmtVM-0 | ACTIVE | osm-ext=172.21.248.122 | ubuntu18.04 | mgmtVM-simple-1-flv-64 | | d85818c0-7eaa-4a85-ae1d-d34570e2ee98 | hfmultivdu-vnf2-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.7.138; osm-ext=172.21.248.90 | ubuntu20.04 | simple_requires-1-1-flv | | 5bb8985e-3591-471c-bc7d-c85d9d9c09cb | hfmultivdu-vnf1-dataVM-0 | ACTIVE | hfmultivdu-datanet=192.168.60.184; hfmultivdu-internal=192.168.43.170 | ubuntu20.04 | simple_requires-1-1-flv | | cfad2017-f568-4b95-8dca-0d0c7f7295c8 | hfmultivdu-vnf1-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.43.191; osm-ext=172.21.248.105 | ubuntu20.04 | simple_requires-1-1-flv | | 9ab588d5-5e4e-47be-a459-2f9df09341e4 | basic_24-affinity-basic-1-affinity_basic-VM-2-0 | ACTIVE | osm-ext=172.21.249.113 | ubuntu20.04 | simple_requires-1-1-flv | | 32b2065a-0410-452b-8395-c43dd7f9c09a | basic_24-affinity-basic-1-affinity_basic-VM-1-0 | ACTIVE | osm-ext=172.21.249.215 | ubuntu20.04 | simple_requires-1-1-flv | | 26c43d5d-f66c-4671-9cf1-ee979593728d | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.60 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | 18e370ae-b4b4-4569-9c94-930077c90b9e | 2024-04-21T02:05:29 | BUILDING | INSTANTIATING (6439e079-1158-450f-9ae5-bdd9d182fad1) | N/A | +------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | 18e370ae-b4b4-4569-9c94-930077c90b9e | 2024-04-21T02:05:29 | BUILDING | INSTANTIATING (6439e079-1158-450f-9ae5-bdd9d182fad1) | N/A | +------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+--------------------------------------------------+--------+-----------------------------------------------------------------------+-------------+-------------------------+ | 3126dec6-eec5-4f43-9546-2a3a1633f4ec | hfmultivdu-vnf2-dataVM-0 | ACTIVE | hfmultivdu-datanet=192.168.60.95; hfmultivdu-internal=192.168.7.168 | ubuntu20.04 | simple_requires-1-1-flv | | 04a66925-eebd-48f4-9a12-1567f4900f56 | basic_27_helm_ee-simple-mgmtVM-0 | ACTIVE | osm-ext=172.21.248.122 | ubuntu18.04 | mgmtVM-simple-1-flv-64 | | d85818c0-7eaa-4a85-ae1d-d34570e2ee98 | hfmultivdu-vnf2-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.7.138; osm-ext=172.21.248.90 | ubuntu20.04 | simple_requires-1-1-flv | | 5bb8985e-3591-471c-bc7d-c85d9d9c09cb | hfmultivdu-vnf1-dataVM-0 | ACTIVE | hfmultivdu-datanet=192.168.60.184; hfmultivdu-internal=192.168.43.170 | ubuntu20.04 | simple_requires-1-1-flv | | cfad2017-f568-4b95-8dca-0d0c7f7295c8 | hfmultivdu-vnf1-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.43.191; osm-ext=172.21.248.105 | ubuntu20.04 | simple_requires-1-1-flv | | 26c43d5d-f66c-4671-9cf1-ee979593728d | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.60 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | 18e370ae-b4b4-4569-9c94-930077c90b9e | 2024-04-21T02:05:29 | 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 | +--------------------------------------+--------------------------------------------------+--------+-----------------------------------------------------------------------+-------------+-------------------------+ | c24fe91f-6b1f-47a4-a9dc-4acb3b515eb2 | basic_27_helm_ee-simple-mgmtVM-0 | BUILD | | ubuntu18.04 | mgmtVM-simple-1-flv-65 | | 3126dec6-eec5-4f43-9546-2a3a1633f4ec | hfmultivdu-vnf2-dataVM-0 | ACTIVE | hfmultivdu-datanet=192.168.60.95; hfmultivdu-internal=192.168.7.168 | ubuntu20.04 | simple_requires-1-1-flv | | 04a66925-eebd-48f4-9a12-1567f4900f56 | basic_27_helm_ee-simple-mgmtVM-0 | ACTIVE | osm-ext=172.21.248.122 | ubuntu18.04 | mgmtVM-simple-1-flv-64 | | d85818c0-7eaa-4a85-ae1d-d34570e2ee98 | hfmultivdu-vnf2-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.7.138; osm-ext=172.21.248.90 | ubuntu20.04 | simple_requires-1-1-flv | | 5bb8985e-3591-471c-bc7d-c85d9d9c09cb | hfmultivdu-vnf1-dataVM-0 | ACTIVE | hfmultivdu-datanet=192.168.60.184; hfmultivdu-internal=192.168.43.170 | ubuntu20.04 | simple_requires-1-1-flv | | cfad2017-f568-4b95-8dca-0d0c7f7295c8 | hfmultivdu-vnf1-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.43.191; osm-ext=172.21.248.105 | ubuntu20.04 | simple_requires-1-1-flv | | 26c43d5d-f66c-4671-9cf1-ee979593728d | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.60 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | 18e370ae-b4b4-4569-9c94-930077c90b9e | 2024-04-21T02:05:29 | 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} = 18e370ae-b4b4-4569-9c94-930077c90b9e ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 18e370ae-b4b4-4569-9c94-930077c90b9e 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 18e370ae-b4b4-4569-9c94-930077c90b9e | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = b2a88070-bc64-4d01-bfd8-903b94f29be7 ${stdout} Logs the given message with the given level. b2a88070-bc64-4d01-bfd8-903b94f29be7 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = b2a88070-bc64-4d01-bfd8-903b94f29be7 ${id} Logs the given message with the given level. b2a88070-bc64-4d01-bfd8-903b94f29be7 ${VNF_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${VNF_ID} = b2a88070-bc64-4d01-bfd8-903b94f29be7 ${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: "b2a88070-bc64-4d01-bfd8-903b94f29be7", vnfdId: "6d75e614-e4f4-4e9c-bf1f-6299132d48a5"}]}' 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 18e370ae-b4b4-4569-9c94-930077c90b9e | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.248.122 ${stdout} Logs the given message with the given level. 172.21.248.122 ${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.122 ${ip_addr} Logs the given message with the given level. 172.21.248.122 ${VNF_IP_ADDR} ${ip_addr} Makes a variable available everywhere within the scope of the current suite. ${VNF_IP_ADDR} = 172.21.248.122 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.248.122: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 Sun Apr 21 02:07:18 UTC 2024 System load: 0.48 Processes: 86 Usage of /: 5.9% of 19.21GB Users logged in: 0 Memory usage: 12% IP address for ens3: 172.21.248.122 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.248.122: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 Sun Apr 21 02:07:19 UTC 2024 System load: 0.48 Processes: 86 Usage of /: 5.9% of 19.21GB Users logged in: 0 Memory usage: 12% IP address for ens3: 172.21.248.122 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: Sun Apr 21 02: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@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} = 54887563-566c-40bf-8af0-a7a4038e2464 ${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 54887563-566c-40bf-8af0-a7a4038e2464 --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 54887563-566c-40bf-8af0-a7a4038e2464 --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} = 54887563-566c-40bf-8af0-a7a4038e2464 ${ns_op_id_1} Logs the given message with the given level. 54887563-566c-40bf-8af0-a7a4038e2464 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.248.122: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 Sun Apr 21 02:07:25 UTC 2024 System load: 0.4 Processes: 86 Usage of /: 5.9% of 19.21GB Users logged in: 0 Memory usage: 12% IP address for ens3: 172.21.248.122 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: Sun Apr 21 02:07:20 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 18e370ae-b4b4-4569-9c94-930077c90b9e --updatetype CHANGE_VNFPKG --config '{changeVnfPackageData: [{vnfInstanceId: "b2a88070-bc64-4d01-bfd8-903b94f29be7", vnfdId: "6d75e614-e4f4-4e9c-bf1f-6299132d48a5"}]}' --timeout 500 --wait 2>&1'. ${rc} = 0 ${stdout} = detailed-status: In progress detailed-status: Done 2a6328cc-5a18-46f5-9105-40c46fa99275 ${stdout} Logs the given message with the given level. detailed-status: In progress detailed-status: Done 2a6328cc-5a18-46f5-9105-40c46fa99275 ${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} = 955a2fef-b70d-4bcf-8a40-b553f3720d11 ${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 955a2fef-b70d-4bcf-8a40-b553f3720d11 --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 955a2fef-b70d-4bcf-8a40-b553f3720d11 --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} = 955a2fef-b70d-4bcf-8a40-b553f3720d11 ${ns_op_id_2} Logs the given message with the given level. 955a2fef-b70d-4bcf-8a40-b553f3720d11 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.248.122: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 Sun Apr 21 02:08:49 UTC 2024 System load: 0.17 Processes: 88 Usage of /: 5.9% of 19.21GB Users logged in: 0 Memory usage: 12% IP address for ens3: 172.21.248.122 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: Sun Apr 21 02:07:25 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} = +--------------------------------------+--------------------------------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | I... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | c22b5c4a-c298-4fce-a88f-d6861d22a48b | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.55.53; osm-ext=172.21.249.107 | ubuntu18.04 | simple_requires-1-1-flv | | 3aec5271-f1f2-4c72-9fa3-851f15a7d17b | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.55.216; osm-ext=172.21.249.93 | ubuntu18.04 | simple_requires-1-1-flv | | 3b6511e4-7f87-420d-bbc9-0ac21b6ebff6 | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.190 | ubuntu20.04 | several_volumes-VM-flv | | c24fe91f-6b1f-47a4-a9dc-4acb3b515eb2 | basic_27_helm_ee-simple-mgmtVM-0 | ACTIVE | osm-ext=172.21.249.43 | ubuntu18.04 | mgmtVM-simple-1-flv-65 | | 04a66925-eebd-48f4-9a12-1567f4900f56 | basic_27_helm_ee-simple-mgmtVM-0 | ACTIVE | osm-ext=172.21.248.122 | ubuntu18.04 | mgmtVM-simple-1-flv-64 | | 26c43d5d-f66c-4671-9cf1-ee979593728d | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.60 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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} = +--------------------------------------+--------------------------------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | I... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | c22b5c4a-c298-4fce-a88f-d6861d22a48b | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.55.53; osm-ext=172.21.249.107 | ubuntu18.04 | simple_requires-1-1-flv | | 3aec5271-f1f2-4c72-9fa3-851f15a7d17b | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.55.216; osm-ext=172.21.249.93 | ubuntu18.04 | simple_requires-1-1-flv | | 3b6511e4-7f87-420d-bbc9-0ac21b6ebff6 | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.190 | ubuntu20.04 | several_volumes-VM-flv | | c24fe91f-6b1f-47a4-a9dc-4acb3b515eb2 | basic_27_helm_ee-simple-mgmtVM-0 | ACTIVE | osm-ext=172.21.249.43 | ubuntu18.04 | mgmtVM-simple-1-flv-65 | | 26c43d5d-f66c-4671-9cf1-ee979593728d | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.60 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 742c15f3-b36b-465f-bfff-0f27e3c31d9b ${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} = 742c15f3-b36b-465f-bfff-0f27e3c31d9b ${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 82e29002-c486-4cf1-94cb-58a5dddcab0b ${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} = 82e29002-c486-4cf1-94cb-58a5dddcab0b ${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} = b07d5449-bcce-445f-a061-5255a0158cc8 ${stdout} Logs the given message with the given level. b07d5449-bcce-445f-a061-5255a0158cc8 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = b07d5449-bcce-445f-a061-5255a0158cc8 ${ns_id} Logs the given message with the given level. b07d5449-bcce-445f-a061-5255a0158cc8 ${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} = +--------------------------------------+--------------------------------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | I... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | c22b5c4a-c298-4fce-a88f-d6861d22a48b | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.55.53; osm-ext=172.21.249.107 | ubuntu18.04 | simple_requires-1-1-flv | | 3aec5271-f1f2-4c72-9fa3-851f15a7d17b | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.55.216; osm-ext=172.21.249.93 | ubuntu18.04 | simple_requires-1-1-flv | | 3b6511e4-7f87-420d-bbc9-0ac21b6ebff6 | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.190 | ubuntu20.04 | several_volumes-VM-flv | | c24fe91f-6b1f-47a4-a9dc-4acb3b515eb2 | basic_27_helm_ee-simple-mgmtVM-0 | ACTIVE | osm-ext=172.21.249.43 | ubuntu18.04 | mgmtVM-simple-1-flv-65 | | 26c43d5d-f66c-4671-9cf1-ee979593728d | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.60 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | b07d5449-bcce-445f-a061-5255a0158cc8 | 2024-04-21T02:09:24 | BUILDING | INSTANTIATING (dcfad2fe-08bc-405f-81e7-f1f2a6c0d999) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | b07d5449-bcce-445f-a061-5255a0158cc8 | 2024-04-21T02:09:24 | BUILDING | INSTANTIATING (dcfad2fe-08bc-405f-81e7-f1f2a6c0d999) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+----------------------------------------------------+--------+-------------------------------------------------------+-------------+-----------------------------------------------------+ | 2192d5ea-2e01-49e1-8ce5-1bd744d62b57 | basic_28-vnf-persistent-v-keep-persistent-vol-VM-0 | BUILD | | ubuntu20.04 | keep-persistent-vol-VM-vnf-persistent-volumes-1-flv | | c22b5c4a-c298-4fce-a88f-d6861d22a48b | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.55.53; osm-ext=172.21.249.107 | ubuntu18.04 | simple_requires-1-1-flv | | 3aec5271-f1f2-4c72-9fa3-851f15a7d17b | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.55.216; osm-ext=172.21.249.93 | ubuntu18.04 | simple_requires-1-1-flv | | 3b6511e4-7f87-420d-bbc9-0ac21b6ebff6 | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.190 | ubuntu20.04 | several_volumes-VM-flv | | c24fe91f-6b1f-47a4-a9dc-4acb3b515eb2 | basic_27_helm_ee-simple-mgmtVM-0 | ACTIVE | osm-ext=172.21.249.43 | ubuntu18.04 | mgmtVM-simple-1-flv-65 | | 26c43d5d-f66c-4671-9cf1-ee979593728d | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.60 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | b07d5449-bcce-445f-a061-5255a0158cc8 | 2024-04-21T02:09:24 | BUILDING | INSTANTIATING (dcfad2fe-08bc-405f-81e7-f1f2a6c0d999) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | b07d5449-bcce-445f-a061-5255a0158cc8 | 2024-04-21T02:09:24 | BUILDING | INSTANTIATING (dcfad2fe-08bc-405f-81e7-f1f2a6c0d999) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+----------------------------------------------------+--------+-------------------------------------------------------+-------------+-----------------------------------------------------+ | 2192d5ea-2e01-49e1-8ce5-1bd744d62b57 | basic_28-vnf-persistent-v-keep-persistent-vol-VM-0 | ACTIVE | osm-ext=172.21.248.78 | ubuntu20.04 | keep-persistent-vol-VM-vnf-persistent-volumes-1-flv | | c22b5c4a-c298-4fce-a88f-d6861d22a48b | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.55.53; osm-ext=172.21.249.107 | ubuntu18.04 | simple_requires-1-1-flv | | 3aec5271-f1f2-4c72-9fa3-851f15a7d17b | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.55.216; osm-ext=172.21.249.93 | ubuntu18.04 | simple_requires-1-1-flv | | 3b6511e4-7f87-420d-bbc9-0ac21b6ebff6 | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.190 | ubuntu20.04 | several_volumes-VM-flv | | 26c43d5d-f66c-4671-9cf1-ee979593728d | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.60 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | b07d5449-bcce-445f-a061-5255a0158cc8 | 2024-04-21T02:09: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} = +--------------------------------------+----------------------------------------------------+--------+-------------------------------------------------------+-------------+----------------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+----------------------------------------------------+--------+-------------------------------------------------------+-------------+-----------------------------------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+----------------------------------------------------+--------+-------------------------------------------------------+-------------+-----------------------------------------------------+ | 2192d5ea-2e01-49e1-8ce5-1bd744d62b57 | basic_28-vnf-persistent-v-keep-persistent-vol-VM-0 | ACTIVE | osm-ext=172.21.248.78 | ubuntu20.04 | keep-persistent-vol-VM-vnf-persistent-volumes-1-flv | | c22b5c4a-c298-4fce-a88f-d6861d22a48b | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.55.53; osm-ext=172.21.249.107 | ubuntu18.04 | simple_requires-1-1-flv | | 3aec5271-f1f2-4c72-9fa3-851f15a7d17b | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.55.216; osm-ext=172.21.249.93 | ubuntu18.04 | simple_requires-1-1-flv | | 3b6511e4-7f87-420d-bbc9-0ac21b6ebff6 | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.190 | ubuntu20.04 | several_volumes-VM-flv | | 26c43d5d-f66c-4671-9cf1-ee979593728d | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.60 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | b07d5449-bcce-445f-a061-5255a0158cc8 | 2024-04-21T02:09: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} = b07d5449-bcce-445f-a061-5255a0158cc8 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = b07d5449-bcce-445f-a061-5255a0158cc8 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 b07d5449-bcce-445f-a061-5255a0158cc8 | grep b07d5449-bcce-445f-a061-5255a0158cc8 | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | 8145e76a-219a-48e9-94b8-ff6800a79f88 ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ 8145e76a-219a-48e9-94b8-ff6800a79f88 ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: 8145e76a-219a-48e9-94b8-ff6800a79f88 @{vnf_list} ${vnfs_list} = ['8145e76a-219a-48e9-94b8-ff6800a79f88'] ${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 8145e76a-219a-48e9-94b8-ff6800a79f88 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 2192d5ea-2e01-49e1-8ce5-1bd744d62b57 ${stdout} Logs the given message with the given level. 2192d5ea-2e01-49e1-8ce5-1bd744d62b57 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${vim_id} = 2192d5ea-2e01-49e1-8ce5-1bd744d62b57 ${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 2192d5ea-2e01-49e1-8ce5-1bd744d62b57 -c volumes_attached -f value 2>&1'. ${rc} = 0 ${stdout} = [{'device': None, 'id': 'c9eacfa9-901e-4ccd-94fd-d62e8b44a389', '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': 'c9eacfa9-901e-4ccd-94fd-d62e8b44a389', 'volume_id': None, 'attachment_id': None, 'bdm_id': None, 'tag': None, 'delete_on_termination': False, 'name': None, 'location': None}, {'device': None, 'id': 'f63b3058-b640-40e2-9f1c-0e3cc41fd0fd', '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': 'c9eacfa9-901e-4ccd-94fd-d62e8b44a389', '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': 'c9eacfa9-901e-4ccd-94fd-d62e8b44a389', 'volume_id': None, 'attachment_id': None, 'bdm_id': None, 'tag': None, 'delete_on_termination': False, 'name': None, 'location': None}, {'device': None, 'id': 'f63b3058-b640-40e2-9f1c-0e3cc41fd0fd', '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} = ['c9eacfa9-901e-4ccd-94fd-d62e8b44a389', 'f63b3058-b640-40e2-9f1c-0e3cc41fd0fd'] ${stdout} Logs the given message with the given level. ['c9eacfa9-901e-4ccd-94fd-d62e8b44a389', 'f63b3058-b640-40e2-9f1c-0e3cc41fd0fd'] ${stdout} ${VOLUME_MATCH} = ['c9eacfa9-901e-4ccd-94fd-d62e8b44a389', 'f63b3058-b640-40e2-9f1c-0e3cc41fd0fd'] ${VOLUME_MATCH} Makes a variable available everywhere within the scope of the current suite. ${VOLUME_MATCH} = ['c9eacfa9-901e-4ccd-94fd-d62e8b44a389', 'f63b3058-b640-40e2-9f1c-0e3cc41fd0fd'] ${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 c9eacfa9-901e-4ccd-94fd-d62e8b44a389 | 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} = c9eacfa9-901e-4ccd-94fd-d62e8b44a389 ${ORDINARY_VOL_ID} ${volume_match}[1] Makes a variable available everywhere within the scope of the current suite. ${ORDINARY_VOL_ID} = f63b3058-b640-40e2-9f1c-0e3cc41fd0fd ${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 f63b3058-b640-40e2-9f1c-0e3cc41fd0fd | 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} = +--------------------------------------+----------------------------------------------------+--------+-------------------------------------------------------+-------------+----------------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+----------------------------------------------------+--------+-------------------------------------------------------+-------------+-----------------------------------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+----------------------------------------------------+--------+-------------------------------------------------------+-------------+-----------------------------------------------------+ | 2192d5ea-2e01-49e1-8ce5-1bd744d62b57 | basic_28-vnf-persistent-v-keep-persistent-vol-VM-0 | ACTIVE | osm-ext=172.21.248.78 | ubuntu20.04 | keep-persistent-vol-VM-vnf-persistent-volumes-1-flv | | c22b5c4a-c298-4fce-a88f-d6861d22a48b | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.55.53; osm-ext=172.21.249.107 | ubuntu18.04 | simple_requires-1-1-flv | | 3aec5271-f1f2-4c72-9fa3-851f15a7d17b | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.55.216; osm-ext=172.21.249.93 | ubuntu18.04 | simple_requires-1-1-flv | | 3b6511e4-7f87-420d-bbc9-0ac21b6ebff6 | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.190 | ubuntu20.04 | several_volumes-VM-flv | | 26c43d5d-f66c-4671-9cf1-ee979593728d | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.60 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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} = +--------------------------------------+--------------------------------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | I... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | c22b5c4a-c298-4fce-a88f-d6861d22a48b | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.55.53; osm-ext=172.21.249.107 | ubuntu18.04 | simple_requires-1-1-flv | | 3aec5271-f1f2-4c72-9fa3-851f15a7d17b | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.55.216; osm-ext=172.21.249.93 | ubuntu18.04 | simple_requires-1-1-flv | | 3b6511e4-7f87-420d-bbc9-0ac21b6ebff6 | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.190 | ubuntu20.04 | several_volumes-VM-flv | | 26c43d5d-f66c-4671-9cf1-ee979593728d | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 c9eacfa9-901e-4ccd-94fd-d62e8b44a389 | 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 f63b3058-b640-40e2-9f1c-0e3cc41fd0fd | 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: c9eacfa9-901e-... 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: c9ea... ${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: c9eacfa9-901e-4ccd-94fd-d62e8b44a389}, {"name": persistent-volume, vim-volume-id: f63b3058-b640-40e2-9f1c-0e3cc41fd0fd}] } ] } ] }' --ssh_keys /root/.ssh/id_rsa.pub 2>&1'. ${rc} = 0 ${stdout} = d9c732db-ad6c-42e5-9169-065cd856ca24 ${stdout} Logs the given message with the given level. d9c732db-ad6c-42e5-9169-065cd856ca24 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = d9c732db-ad6c-42e5-9169-065cd856ca24 ${ns_id} Logs the given message with the given level. d9c732db-ad6c-42e5-9169-065cd856ca24 ${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 | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | c22b5c4a-c298-4fce-a88f-d6861d22a48b | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.55.53; osm-ext=172.21.249.107 | ubuntu18.04 | simple_requires-1-1-flv | | 3aec5271-f1f2-4c72-9fa3-851f15a7d17b | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.55.216; osm-ext=172.21.249.93 | ubuntu18.04 | simple_requires-1-1-flv | | 3b6511e4-7f87-420d-bbc9-0ac21b6ebff6 | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.190 | ubuntu20.04 | several_volumes-VM-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | d9c732db-ad6c-42e5-9169-065cd856ca24 | 2024-04-21T02:11:12 | BUILDING | INSTANTIATING (bb33ce9e-333e-4722-bbca-646e9ac670bd) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | d9c732db-ad6c-42e5-9169-065cd856ca24 | 2024-04-21T02:11:12 | BUILDING | INSTANTIATING (bb33ce9e-333e-4722-bbca-646e9ac670bd) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+----------------------------------------------------+--------+-------------------------------------------------------+-------------+-----------------------------------------------------+ | 4274907d-def0-430f-a5ee-a36d4fc825eb | basic_28-vnf-persistent-v-keep-persistent-vol-VM-0 | ACTIVE | osm-ext=172.21.248.53 | ubuntu20.04 | keep-persistent-vol-VM-vnf-persistent-volumes-1-flv | | c22b5c4a-c298-4fce-a88f-d6861d22a48b | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.55.53; osm-ext=172.21.249.107 | ubuntu18.04 | simple_requires-1-1-flv | | 3aec5271-f1f2-4c72-9fa3-851f15a7d17b | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.55.216; osm-ext=172.21.249.93 | ubuntu18.04 | simple_requires-1-1-flv | | 3b6511e4-7f87-420d-bbc9-0ac21b6ebff6 | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.190 | ubuntu20.04 | several_volumes-VM-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | d9c732db-ad6c-42e5-9169-065cd856ca24 | 2024-04-21T02:11:12 | BUILDING | INSTANTIATING (bb33ce9e-333e-4722-bbca-646e9ac670bd) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | d9c732db-ad6c-42e5-9169-065cd856ca24 | 2024-04-21T02:11:12 | BUILDING | INSTANTIATING (bb33ce9e-333e-4722-bbca-646e9ac670bd) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+----------------------------------------------------+--------+---------------------------------------------------------+-------------+-----------------------------------------------------+ | e1a8b5d1-2a37-4a40-b71c-097e214b476d | basic_29-vnf-dataVM-0 | ACTIVE | basic_29-internal=2001:db8::353 | ubuntu20.04 | simple_requires-1-1-flv | | 6449558f-fe9c-4dc8-a03a-3e2017a030d6 | basic_29-vnf-mgmtVM-0 | ACTIVE | basic_29-internal=2001:db8::2bc; osm-ext=172.21.248.135 | ubuntu20.04 | simple_requires-1-1-flv | | b4789280-7313-48f2-9550-f7243c3122bb | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.241 | ubuntu20.04 | simple_requires-1-1-flv | | 4274907d-def0-430f-a5ee-a36d4fc825eb | basic_28-vnf-persistent-v-keep-persistent-vol-VM-0 | ACTIVE | osm-ext=172.21.248.53 | ubuntu20.04 | keep-persistent-vol-VM-vnf-persistent-volumes-1-flv | | c22b5c4a-c298-4fce-a88f-d6861d22a48b | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.55.53; osm-ext=172.21.249.107 | ubuntu18.04 | simple_requires-1-1-flv | | 3aec5271-f1f2-4c72-9fa3-851f15a7d17b | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.55.216; osm-ext=172.21.249.93 | ubuntu18.04 | simple_requires-1-1-flv | | 3b6511e4-7f87-420d-bbc9-0ac21b6ebff6 | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.190 | ubuntu20.04 | several_volumes-VM-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | d9c732db-ad6c-42e5-9169-065cd856ca24 | 2024-04-21T02:11:12 | 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 | +--------------------------------------+----------------------------------------------------+--------+---------------------------------------------------------+-------------+-----------------------------------------------------+ | e1a8b5d1-2a37-4a40-b71c-097e214b476d | basic_29-vnf-dataVM-0 | ACTIVE | basic_29-internal=2001:db8::353 | ubuntu20.04 | simple_requires-1-1-flv | | 6449558f-fe9c-4dc8-a03a-3e2017a030d6 | basic_29-vnf-mgmtVM-0 | ACTIVE | basic_29-internal=2001:db8::2bc; osm-ext=172.21.248.135 | ubuntu20.04 | simple_requires-1-1-flv | | b4789280-7313-48f2-9550-f7243c3122bb | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.241 | ubuntu20.04 | simple_requires-1-1-flv | | 4274907d-def0-430f-a5ee-a36d4fc825eb | basic_28-vnf-persistent-v-keep-persistent-vol-VM-0 | ACTIVE | osm-ext=172.21.248.53 | ubuntu20.04 | keep-persistent-vol-VM-vnf-persistent-volumes-1-flv | | c22b5c4a-c298-4fce-a88f-d6861d22a48b | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.55.53; osm-ext=172.21.249.107 | ubuntu18.04 | simple_requires-1-1-flv | | 3aec5271-f1f2-4c72-9fa3-851f15a7d17b | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.55.216; osm-ext=172.21.249.93 | ubuntu18.04 | simple_requires-1-1-flv | | 3b6511e4-7f87-420d-bbc9-0ac21b6ebff6 | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.190 | ubuntu20.04 | several_volumes-VM-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | d9c732db-ad6c-42e5-9169-065cd856ca24 | 2024-04-21T02:11:12 | 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} = d9c732db-ad6c-42e5-9169-065cd856ca24 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = d9c732db-ad6c-42e5-9169-065cd856ca24 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} = c9eacfa9-901e-4ccd-94fd-d62e8b44a389 ${PREV_ORDINARY_VOL_ID} ${ORDINARY_VOL_ID} Makes a variable available everywhere within the scope of the current suite. ${PREV_ORDINARY_VOL_ID} = f63b3058-b640-40e2-9f1c-0e3cc41fd0fd ${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 d9c732db-ad6c-42e5-9169-065cd856ca24 | grep d9c732db-ad6c-42e5-9169-065cd856ca24 | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | 93fd6b92-3962-4282-9a06-eed5fa3d0d88 ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ 93fd6b92-3962-4282-9a06-eed5fa3d0d88 ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: 93fd6b92-3962-4282-9a06-eed5fa3d0d88 @{vnf_list} ${vnfs_list} = ['93fd6b92-3962-4282-9a06-eed5fa3d0d88'] ${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 93fd6b92-3962-4282-9a06-eed5fa3d0d88 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 4274907d-def0-430f-a5ee-a36d4fc825eb ${stdout} Logs the given message with the given level. 4274907d-def0-430f-a5ee-a36d4fc825eb ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${vim_id} = 4274907d-def0-430f-a5ee-a36d4fc825eb ${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 4274907d-def0-430f-a5ee-a36d4fc825eb -c volumes_attached -f value 2>&1'. ${rc} = 0 ${stdout} = [{'device': None, 'id': 'c9eacfa9-901e-4ccd-94fd-d62e8b44a389', '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': 'c9eacfa9-901e-4ccd-94fd-d62e8b44a389', 'volume_id': None, 'attachment_id': None, 'bdm_id': None, 'tag': None, 'delete_on_termination': False, 'name': None, 'location': None}, {'device': None, 'id': 'f63b3058-b640-40e2-9f1c-0e3cc41fd0fd', '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': 'c9eacfa9-901e-4ccd-94fd-d62e8b44a389', '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': 'c9eacfa9-901e-4ccd-94fd-d62e8b44a389', 'volume_id': None, 'attachment_id': None, 'bdm_id': None, 'tag': None, 'delete_on_termination': False, 'name': None, 'location': None}, {'device': None, 'id': 'f63b3058-b640-40e2-9f1c-0e3cc41fd0fd', '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} = ['c9eacfa9-901e-4ccd-94fd-d62e8b44a389', 'f63b3058-b640-40e2-9f1c-0e3cc41fd0fd'] ${stdout} Logs the given message with the given level. ['c9eacfa9-901e-4ccd-94fd-d62e8b44a389', 'f63b3058-b640-40e2-9f1c-0e3cc41fd0fd'] ${stdout} ${volume_match} = ['c9eacfa9-901e-4ccd-94fd-d62e8b44a389', 'f63b3058-b640-40e2-9f1c-0e3cc41fd0fd'] ${VOLUME_MATCH} Makes a variable available everywhere within the scope of the current suite. ${VOLUME_MATCH} = ['c9eacfa9-901e-4ccd-94fd-d62e8b44a389', 'f63b3058-b640-40e2-9f1c-0e3cc41fd0fd'] ${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 c9eacfa9-901e-4ccd-94fd-d62e8b44a389 | 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} = c9eacfa9-901e-4ccd-94fd-d62e8b44a389 ${ORDINARY_VOL_ID} ${volume_match}[1] Makes a variable available everywhere within the scope of the current suite. ${ORDINARY_VOL_ID} = f63b3058-b640-40e2-9f1c-0e3cc41fd0fd ${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 f63b3058-b640-40e2-9f1c-0e3cc41fd0fd | 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} = +--------------------------------------+----------------------------------------------------+--------+---------------------------------------------------------+-------------+--------------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+----------------------------------------------------+--------+---------------------------------------------------------+-------------+-----------------------------------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+----------------------------------------------------+--------+---------------------------------------------------------+-------------+-----------------------------------------------------+ | e1a8b5d1-2a37-4a40-b71c-097e214b476d | basic_29-vnf-dataVM-0 | ACTIVE | basic_29-internal=2001:db8::353 | ubuntu20.04 | simple_requires-1-1-flv | | 6449558f-fe9c-4dc8-a03a-3e2017a030d6 | basic_29-vnf-mgmtVM-0 | ACTIVE | basic_29-internal=2001:db8::2bc; osm-ext=172.21.248.135 | ubuntu20.04 | simple_requires-1-1-flv | | b4789280-7313-48f2-9550-f7243c3122bb | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.241 | ubuntu20.04 | simple_requires-1-1-flv | | 4274907d-def0-430f-a5ee-a36d4fc825eb | basic_28-vnf-persistent-v-keep-persistent-vol-VM-0 | ACTIVE | osm-ext=172.21.248.53 | ubuntu20.04 | keep-persistent-vol-VM-vnf-persistent-volumes-1-flv | | c22b5c4a-c298-4fce-a88f-d6861d22a48b | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.55.53; osm-ext=172.21.249.107 | ubuntu18.04 | simple_requires-1-1-flv | | 3aec5271-f1f2-4c72-9fa3-851f15a7d17b | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.55.216; osm-ext=172.21.249.93 | ubuntu18.04 | simple_requires-1-1-flv | | 3b6511e4-7f87-420d-bbc9-0ac21b6ebff6 | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.190 | ubuntu20.04 | several_volumes-VM-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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} = +--------------------------------------+--------------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ |... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | 73fd926f-2249-4276-b8b0-a8fa08bf2cd3 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.213 | ubuntu20.04 | simple_requires-1-1-flv | | e1a8b5d1-2a37-4a40-b71c-097e214b476d | basic_29-vnf-dataVM-0 | ACTIVE | basic_29-internal=2001:db8::353 | ubuntu20.04 | simple_requires-1-1-flv | | 6449558f-fe9c-4dc8-a03a-3e2017a030d6 | basic_29-vnf-mgmtVM-0 | ACTIVE | basic_29-internal=2001:db8::2bc; osm-ext=172.21.248.135 | ubuntu20.04 | simple_requires-1-1-flv | | b4789280-7313-48f2-9550-f7243c3122bb | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.241 | ubuntu20.04 | simple_requires-1-1-flv | | c22b5c4a-c298-4fce-a88f-d6861d22a48b | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.55.53; osm-ext=172.21.249.107 | ubuntu18.04 | simple_requires-1-1-flv | | 3aec5271-f1f2-4c72-9fa3-851f15a7d17b | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.55.216; osm-ext=172.21.249.93 | ubuntu18.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 c9eacfa9-901e-4ccd-94fd-d62e8b44a389 | 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 f63b3058-b640-40e2-9f1c-0e3cc41fd0fd | 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 c9eacfa9-901e-4ccd-94fd-d62e8b44a389 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 f63b3058-b640-40e2-9f1c-0e3cc41fd0fd 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 489fdfb4-d02a-4dbb-89d3-7dee8cfd8dee ${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} = 489fdfb4-d02a-4dbb-89d3-7dee8cfd8dee ${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 29517998-a173-45e7-804f-6b49e817e4ff ${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} = 29517998-a173-45e7-804f-6b49e817e4ff ${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} = 3c8053e8-8f96-4ba4-9aff-42c74ec6526b ${stdout} Logs the given message with the given level. 3c8053e8-8f96-4ba4-9aff-42c74ec6526b ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 3c8053e8-8f96-4ba4-9aff-42c74ec6526b ${ns_id} Logs the given message with the given level. 3c8053e8-8f96-4ba4-9aff-42c74ec6526b ${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 | +--------------------------------------+--------------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | 73fd926f-2249-4276-b8b0-a8fa08bf2cd3 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.213 | ubuntu20.04 | simple_requires-1-1-flv | | e1a8b5d1-2a37-4a40-b71c-097e214b476d | basic_29-vnf-dataVM-0 | ACTIVE | basic_29-internal=2001:db8::353 | ubuntu20.04 | simple_requires-1-1-flv | | 6449558f-fe9c-4dc8-a03a-3e2017a030d6 | basic_29-vnf-mgmtVM-0 | ACTIVE | basic_29-internal=2001:db8::2bc; osm-ext=172.21.248.135 | ubuntu20.04 | simple_requires-1-1-flv | | b4789280-7313-48f2-9550-f7243c3122bb | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.241 | ubuntu20.04 | simple_requires-1-1-flv | | c22b5c4a-c298-4fce-a88f-d6861d22a48b | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.55.53; osm-ext=172.21.249.107 | ubuntu18.04 | simple_requires-1-1-flv | | 3aec5271-f1f2-4c72-9fa3-851f15a7d17b | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.55.216; osm-ext=172.21.249.93 | ubuntu18.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | 3c8053e8-8f96-4ba4-9aff-42c74ec6526b | 2024-04-21T02:13:14 | BUILDING | INSTANTIATING (00acb828-f605-4bc7-9bd9-a51925963597) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | 3c8053e8-8f96-4ba4-9aff-42c74ec6526b | 2024-04-21T02:13:14 | BUILDING | INSTANTIATING (00acb828-f605-4bc7-9bd9-a51925963597) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+--------------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | 85f4bfeb-9b3a-445e-ae77-2e784f0eb839 | basic_29-vnf-dataVM-0 | ACTIVE | basic_29-internal=2001:db8::301 | ubuntu20.04 | simple_requires-1-1-flv | | f8e95bdd-e237-4c64-bf79-b78ec92a31dd | basic_29-vnf-mgmtVM-0 | ACTIVE | basic_29-internal=2001:db8::3c4; osm-ext=172.21.249.254 | ubuntu20.04 | simple_requires-1-1-flv | | 63facc08-2c89-41de-adfb-b09a7c163e29 | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.190 | ubuntu20.04 | several_volumes-VM-flv | | 73fd926f-2249-4276-b8b0-a8fa08bf2cd3 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.213 | ubuntu20.04 | simple_requires-1-1-flv | | b4789280-7313-48f2-9550-f7243c3122bb | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.241 | ubuntu20.04 | simple_requires-1-1-flv | | c22b5c4a-c298-4fce-a88f-d6861d22a48b | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.55.53; osm-ext=172.21.249.107 | ubuntu18.04 | simple_requires-1-1-flv | | 3aec5271-f1f2-4c72-9fa3-851f15a7d17b | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.55.216; osm-ext=172.21.249.93 | ubuntu18.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | 3c8053e8-8f96-4ba4-9aff-42c74ec6526b | 2024-04-21T02:13:14 | BUILDING | INSTANTIATING (00acb828-f605-4bc7-9bd9-a51925963597) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | 3c8053e8-8f96-4ba4-9aff-42c74ec6526b | 2024-04-21T02:13:14 | BUILDING | INSTANTIATING (00acb828-f605-4bc7-9bd9-a51925963597) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+--------------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | 488113d5-ba4c-42d2-94d7-e30a05b70dac | basic_30-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 52f0ed72-17be-464e-817c-49ec950c2934 | basic_30-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 85f4bfeb-9b3a-445e-ae77-2e784f0eb839 | basic_29-vnf-dataVM-0 | ACTIVE | basic_29-internal=2001:db8::301 | ubuntu20.04 | simple_requires-1-1-flv | | f8e95bdd-e237-4c64-bf79-b78ec92a31dd | basic_29-vnf-mgmtVM-0 | ACTIVE | basic_29-internal=2001:db8::3c4; osm-ext=172.21.249.254 | ubuntu20.04 | simple_requires-1-1-flv | | 63facc08-2c89-41de-adfb-b09a7c163e29 | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.190 | ubuntu20.04 | several_volumes-VM-flv | | 73fd926f-2249-4276-b8b0-a8fa08bf2cd3 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.213 | ubuntu20.04 | simple_requires-1-1-flv | | b4789280-7313-48f2-9550-f7243c3122bb | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.241 | ubuntu20.04 | simple_requires-1-1-flv | | c22b5c4a-c298-4fce-a88f-d6861d22a48b | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.55.53; osm-ext=172.21.249.107 | ubuntu18.04 | simple_requires-1-1-flv | | 3aec5271-f1f2-4c72-9fa3-851f15a7d17b | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.55.216; osm-ext=172.21.249.93 | ubuntu18.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | date ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | basic_29 | 3c8053e8-8f96-4ba4-9aff-42c74ec6526b | 2024-04-21T02:13: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} = +--------------------------------------+--------------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ |... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | 488113d5-ba4c-42d2-94d7-e30a05b70dac | basic_30-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 52f0ed72-17be-464e-817c-49ec950c2934 | basic_30-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 85f4bfeb-9b3a-445e-ae77-2e784f0eb839 | basic_29-vnf-dataVM-0 | ACTIVE | basic_29-internal=2001:db8::301 | ubuntu20.04 | simple_requires-1-1-flv | | f8e95bdd-e237-4c64-bf79-b78ec92a31dd | basic_29-vnf-mgmtVM-0 | ACTIVE | basic_29-internal=2001:db8::3c4; osm-ext=172.21.249.254 | ubuntu20.04 | simple_requires-1-1-flv | | 63facc08-2c89-41de-adfb-b09a7c163e29 | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.190 | ubuntu20.04 | several_volumes-VM-flv | | 73fd926f-2249-4276-b8b0-a8fa08bf2cd3 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.213 | ubuntu20.04 | simple_requires-1-1-flv | | b4789280-7313-48f2-9550-f7243c3122bb | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.241 | ubuntu20.04 | simple_requires-1-1-flv | | c22b5c4a-c298-4fce-a88f-d6861d22a48b | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.55.53; osm-ext=172.21.249.107 | ubuntu18.04 | simple_requires-1-1-flv | | 3aec5271-f1f2-4c72-9fa3-851f15a7d17b | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.55.216; osm-ext=172.21.249.93 | ubuntu18.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | date ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | basic_29 | 3c8053e8-8f96-4ba4-9aff-42c74ec6526b | 2024-04-21T02:13: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} = 3c8053e8-8f96-4ba4-9aff-42c74ec6526b ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 3c8053e8-8f96-4ba4-9aff-42c74ec6526b Instantiate NS for the testsuite. basic_29 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 3c8053e8-8f96-4ba4-9aff-42c74ec6526b | grep 3c8053e8-8f96-4ba4-9aff-42c74ec6526b | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = 94ee9ab9-cb28-4c1e-b7a9-338269348793 ${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} = [ 94ee9ab9-cb28-4c1e-b7a9-338269348793 ] @{vdur} @{vnfr_list} = [ 94ee9ab9-cb28-4c1e-b7a9-338269348793 ] ${vnfr_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: 94ee9ab9-cb28-4c1e-b7a9-338269348793 ${VNF_ID} ${vnfr_list}[0] Makes a variable available everywhere within the scope of the current suite. ${VNF_ID} = 94ee9ab9-cb28-4c1e-b7a9-338269348793 ${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 3c8053e8-8f96-4ba4-9aff-42c74ec6526b | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.249.254 ${stdout} Logs the given message with the given level. 172.21.249.254 ${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.254 ${VNF_IPMGMT} ${ip} Makes a variable available everywhere within the scope of the current suite. ${VNF_IPMGMT} = 172.21.249.254 ${VNF_IPMGMT} Logs the given message with the given level. 172.21.249.254 Get VNF information, specifically VNF instance id and mgmt IP address. basic_29 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 94ee9ab9-cb28-4c1e-b7a9-338269348793 --literal | yq '.vdur[0].interfaces[] | select(."vnf-vld-id" == "internal")' | yq -r '."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 2001:db8::3c4 ${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 94ee9ab9-cb28-4c1e-b7a9-338269348793 --literal | yq '.vdur[1].interfaces[] | select(."vnf-vld-id" == "internal")' | yq -r '."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 2001:db8::301 ${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_29 cluster_main daily regression ${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. Running command 'osm vnf-show 94ee9ab9-cb28-4c1e-b7a9-338269348793 --literal | yq '.vdur[] | select(."count-index" == 0)' | yq -r '.vim_info[].interfaces[].vim_info' 2>&1'. ${rc} = 1 ${vim_info} = yq: Error running jq: ParserError: did not find expected <document start> in "<stdin>", line 161, column 1. {admin_state_up: true, allowed_address_pairs: [], 'binding:host_id': nfvisrv13, 'binding:p... ${rc},${vim_info} Logs the given message with the given level. 1,yq: Error running jq: ParserError: did not find expected <document start> in "<stdin>", line 161, column 1. {admin_state_up: true, allowed_address_pairs: [], 'binding:host_id': nfvisrv13, 'binding:profile': {}, 'binding:vif_details': {bridge_name: br-int, connectivity: l2, datapath_type: system, ovs_hybrid_plug: true, port_filter: true}, 'binding:vif_type': ovs, 'binding:vnic_type': normal, created_at: '2024-04-21T02:13:24Z', description: '', device_id: f8e95bdd-e237-4c64-bf79-b78ec92a31dd, device_owner: 'compute:nova', extra_dhcp_opts: [], fixed_ips: [{ip_address: 172.21.249.254, subnet_id: d14f68b7-8287-41fe-b533-dafb2240680a}], id: ecdde397-895a-4007-9be5-bedf852f9c01, mac_address: 'fa:16:3e:55:43:66', name: mgmtVM-eth0, network_id: 21ea5d92-24f1-40ab-8d28-83230e277a49, port_security_enabled: true, project_id: 34a71bb7d82f4ec691d8cc11045ae83e, revision_number: 4, security_groups: [0f7058a8-cb26-4c54-8fad-9c8de3dbc154], status: ACTIVE, tags: [], tenant_id: 34a71bb7d82f4ec691d8cc11045ae83e, updated_at: '2024-04-21T02:13:35Z'} {admin_state_up: true, allowed_address_pairs: [], 'binding:host_id': nfvisrv13, 'binding:profile': {}, 'binding:vif_details': {bridge_name: br-int, connectivity: l2, datapath_type: system, ovs_hybrid_plug: true, port_filter: true}, 'binding:vif_type': ovs, 'binding:vnic_type': normal, created_at: '2024-04-21T02:13:25Z', description: '', device_id: f8e95bdd-e237-4c64-bf79-b78ec92a31dd, device_owner: 'compute:nova', extra_dhcp_opts: [], fixed_ips: [{ip_address: '2001:db8::3c4', subnet_id: dee38281-2f7c-411b-925c-84458206e9eb}], id: f0d0dc15-a6dc-4745-bbd6-72a26d3bd0cf, mac_address: 'fa:16:3e:f1:fc:e2', name: mgmtVM-eth1, network_id: a03040e0-e305-438a-855c-494f7d9c7fc0, port_security_enabled: true, project_id: 34a71bb7d82f4ec691d8cc11045ae83e, revision_number: 4, security_groups: [0f7058a8-cb26-4c54-8fad-9c8de3dbc154], status: ACTIVE, tags: [], tenant_id: 34a71bb7d82f4ec691d8cc11045ae83e, updated_at: '2024-04-21T02:13:34Z'} ${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_id} = ['dee38281-2f7c-411b-925c-84458206e9eb'] ${subnet_info} ${subnet_id}[0] Get subnet information in JSON format ${subnet_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} openstack subnet show ${subnet_id} -f json Runs the given command in the system and returns the RC and output. Running command 'openstack subnet show dee38281-2f7c-411b-925c-84458206e9eb -f json 2>&1'. ${rc} = 0 ${stdout} = { "allocation_pools": [ { "start": "2001:db8::2", "end": "2001:db8::ffff:ffff:ffff:ffff" } ], "cidr": "2001:db8::/64", "created_at": "2024-04-21T02:13:23Z", "description"... ${stdout} Logs the given message with the given level. { "allocation_pools": [ { "start": "2001:db8::2", "end": "2001:db8::ffff:ffff:ffff:ffff" } ], "cidr": "2001:db8::/64", "created_at": "2024-04-21T02:13:23Z", "description": "", "dns_nameservers": [], "dns_publish_fixed_ip": null, "enable_dhcp": true, "gateway_ip": "2001:db8::1", "host_routes": [], "id": "dee38281-2f7c-411b-925c-84458206e9eb", "ip_version": 6, "ipv6_address_mode": "dhcpv6-stateful", "ipv6_ra_mode": "dhcpv6-stateful", "name": "basic_29-internal-subnet", "network_id": "a03040e0-e305-438a-855c-494f7d9c7fc0", "project_id": "34a71bb7d82f4ec691d8cc11045ae83e", "revision_number": 0, "segment_id": null, "service_types": [], "subnetpool_id": null, "tags": [], "updated_at": "2024-04-21T02:13:23Z" } ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${subnet_info} = { "allocation_pools": [ { "start": "2001:db8::2", "end": "2001:db8::ffff:ffff:ffff:ffff" } ], "cidr": "2001:db8::/64", "created_at": "2024-04-21T02:13:23Z", "description"... ${json_object} ${subnet_info} Convert String to JSON object ${json_object} = {'allocation_pools': [{'start': '2001:db8::2', 'end': '2001:db8::ffff:ffff:ffff:ffff'}], 'cidr': '2001:db8::/64', 'created_at': '2024-04-21T02:13:23Z', 'description': '', 'dns_nameservers': [], 'dns_p... ${address_mode} ${json_object} ipv6_address_mode Returns a value from the given ``dictionary`` based on the given ``key``. ${address_mode} = dhcpv6-stateful ${ra_mode} ${json_object} ipv6_ra_mode Returns a value from the given ``dictionary`` based on the given ``key``. ${ra_mode} = dhcpv6-stateful ${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 ${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} = +--------------------------------------+--------------------------------------------------+--------+----------------------------------------------------------------------------------------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+-----------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+-----------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------+ | 488113d5-ba4c-42d2-94d7-e30a05b70dac | basic_30-vnf2-dataVM-0 | ACTIVE | basic_30-datanet1=2001:db8::365; basic_30-datanet2=192.168.20.109; basic_30-datanet3=192.168.30.180; osm-ext=172.21.248.184 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 52f0ed72-17be-464e-817c-49ec950c2934 | basic_30-vnf1-dataVM-0 | ACTIVE | basic_30-datanet1=2001:db8::345; basic_30-datanet2=192.168.20.179; basic_30-datanet3=192.168.30.67; osm-ext=172.21.249.206 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 85f4bfeb-9b3a-445e-ae77-2e784f0eb839 | basic_29-vnf-dataVM-0 | ACTIVE | basic_29-internal=2001:db8::301 | ubuntu20.04 | simple_requires-1-1-flv | | f8e95bdd-e237-4c64-bf79-b78ec92a31dd | basic_29-vnf-mgmtVM-0 | ACTIVE | basic_29-internal=2001:db8::3c4; osm-ext=172.21.249.254 | ubuntu20.04 | simple_requires-1-1-flv | | 63facc08-2c89-41de-adfb-b09a7c163e29 | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.190 | ubuntu20.04 | several_volumes-VM-flv | | 73fd926f-2249-4276-b8b0-a8fa08bf2cd3 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.213 | ubuntu20.04 | simple_requires-1-1-flv | | b4789280-7313-48f2-9550-f7243c3122bb | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.241 | ubuntu20.04 | simple_requires-1-1-flv | | c22b5c4a-c298-4fce-a88f-d6861d22a48b | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.55.53; osm-ext=172.21.249.107 | ubuntu18.04 | simple_requires-1-1-flv | | 3aec5271-f1f2-4c72-9fa3-851f15a7d17b | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.55.216; osm-ext=172.21.249.93 | ubuntu18.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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} = +--------------------------------------+--------------------------------------------------+--------+----------------------------------------------------------------------------------------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+-----------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+-----------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------+ | 488113d5-ba4c-42d2-94d7-e30a05b70dac | basic_30-vnf2-dataVM-0 | ACTIVE | basic_30-datanet1=2001:db8::365; basic_30-datanet2=192.168.20.109; basic_30-datanet3=192.168.30.180; osm-ext=172.21.248.184 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 52f0ed72-17be-464e-817c-49ec950c2934 | basic_30-vnf1-dataVM-0 | ACTIVE | basic_30-datanet1=2001:db8::345; basic_30-datanet2=192.168.20.179; basic_30-datanet3=192.168.30.67; osm-ext=172.21.249.206 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 63facc08-2c89-41de-adfb-b09a7c163e29 | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.190 | ubuntu20.04 | several_volumes-VM-flv | | 73fd926f-2249-4276-b8b0-a8fa08bf2cd3 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.213 | ubuntu20.04 | simple_requires-1-1-flv | | b4789280-7313-48f2-9550-f7243c3122bb | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.241 | ubuntu20.04 | simple_requires-1-1-flv | | c22b5c4a-c298-4fce-a88f-d6861d22a48b | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | osm-ext=172.21.249.107 | ubuntu18.04 | simple_requires-1-1-flv | | 3aec5271-f1f2-4c72-9fa3-851f15a7d17b | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | osm-ext=172.21.249.93 | ubuntu18.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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. 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-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 3a61f0aa-2401-4875-9e16-34b163bbf90e ${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} = 3a61f0aa-2401-4875-9e16-34b163bbf90e ${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 1d1e6287-e6e5-4c93-ba9c-c047460364d1 ${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} = 1d1e6287-e6e5-4c93-ba9c-c047460364d1 ${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} = dc633d87-608f-405d-9363-adf7bccaa38e ${stdout} Logs the given message with the given level. dc633d87-608f-405d-9363-adf7bccaa38e ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = dc633d87-608f-405d-9363-adf7bccaa38e ${ns_id} Logs the given message with the given level. dc633d87-608f-405d-9363-adf7bccaa38e ${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 | +--------------------------------------+--------------------------------------------------+--------+-----------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------+ | 488113d5-ba4c-42d2-94d7-e30a05b70dac | basic_30-vnf2-dataVM-0 | ACTIVE | basic_30-datanet1=2001:db8::365; basic_30-datanet2=192.168.20.109; basic_30-datanet3=192.168.30.180; osm-ext=172.21.248.184 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 52f0ed72-17be-464e-817c-49ec950c2934 | basic_30-vnf1-dataVM-0 | ACTIVE | basic_30-datanet1=2001:db8::345; basic_30-datanet2=192.168.20.179; basic_30-datanet3=192.168.30.67; osm-ext=172.21.249.206 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 73fd926f-2249-4276-b8b0-a8fa08bf2cd3 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.213 | ubuntu20.04 | simple_requires-1-1-flv | | b4789280-7313-48f2-9550-f7243c3122bb | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.241 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | dc633d87-608f-405d-9363-adf7bccaa38e | 2024-04-21T02:15:11 | BUILDING | INSTANTIATING (e74dc418-9239-4714-bf5b-8fc31c87579a) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | dc633d87-608f-405d-9363-adf7bccaa38e | 2024-04-21T02:15:11 | BUILDING | INSTANTIATING (e74dc418-9239-4714-bf5b-8fc31c87579a) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+--------------------------------------------------+--------+-----------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------+ | 3050380a-e6b3-4bd2-a36a-9971a9abf41a | basic_30-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf2-1-flv-2 | | 6c34c0c1-8e86-465e-9fd3-671b69845d56 | basic_30-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf1-1-flv-2 | | 488113d5-ba4c-42d2-94d7-e30a05b70dac | basic_30-vnf2-dataVM-0 | ACTIVE | basic_30-datanet1=2001:db8::365; basic_30-datanet2=192.168.20.109; basic_30-datanet3=192.168.30.180; osm-ext=172.21.248.184 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 52f0ed72-17be-464e-817c-49ec950c2934 | basic_30-vnf1-dataVM-0 | ACTIVE | basic_30-datanet1=2001:db8::345; basic_30-datanet2=192.168.20.179; basic_30-datanet3=192.168.30.67; osm-ext=172.21.249.206 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 73fd926f-2249-4276-b8b0-a8fa08bf2cd3 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.213 | ubuntu20.04 | simple_requires-1-1-flv | | b4789280-7313-48f2-9550-f7243c3122bb | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.241 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | dc633d87-608f-405d-9363-adf7bccaa38e | 2024-04-21T02:15:11 | BUILDING | INSTANTIATING (e74dc418-9239-4714-bf5b-8fc31c87579a) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | dc633d87-608f-405d-9363-adf7bccaa38e | 2024-04-21T02:15:11 | BUILDING | INSTANTIATING (e74dc418-9239-4714-bf5b-8fc31c87579a) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+--------------------------------------------------+--------+-----------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------+ | 52b76791-8feb-4ce4-a2e4-989bd4e92834 | heal_02-several_volumes_-several_volumes-VM-0 | BUILD | | ubuntu20.04 | several_volumes-VM-flv | | 3050380a-e6b3-4bd2-a36a-9971a9abf41a | basic_30-vnf2-dataVM-0 | ACTIVE | basic_30-datanet1=2001:db8::5d; basic_30-datanet2=192.168.20.96; basic_30-datanet3=192.168.30.188; osm-ext=172.21.248.100 | ubuntu20.04 | dataVM-vnf2-1-flv-2 | | 6c34c0c1-8e86-465e-9fd3-671b69845d56 | basic_30-vnf1-dataVM-0 | ACTIVE | basic_30-datanet1=2001:db8::20c; basic_30-datanet2=192.168.20.201; basic_30-datanet3=192.168.30.110; osm-ext=172.21.248.7 | ubuntu20.04 | dataVM-vnf1-1-flv-2 | | 488113d5-ba4c-42d2-94d7-e30a05b70dac | basic_30-vnf2-dataVM-0 | ACTIVE | basic_30-datanet1=2001:db8::365; basic_30-datanet2=192.168.20.109; basic_30-datanet3=192.168.30.180; osm-ext=172.21.248.184 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 52f0ed72-17be-464e-817c-49ec950c2934 | basic_30-vnf1-dataVM-0 | ACTIVE | basic_30-datanet1=2001:db8::345; basic_30-datanet2=192.168.20.179; basic_30-datanet3=192.168.30.67; osm-ext=172.21.249.206 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 73fd926f-2249-4276-b8b0-a8fa08bf2cd3 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.213 | ubuntu20.04 | simple_requires-1-1-flv | | b4789280-7313-48f2-9550-f7243c3122bb | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.241 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | dc633d87-608f-405d-9363-adf7bccaa38e | 2024-04-21T02:15:11 | BUILDING | INSTANTIATING (e74dc418-9239-4714-bf5b-8fc31c87579a) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | dc633d87-608f-405d-9363-adf7bccaa38e | 2024-04-21T02:15:11 | BUILDING | INSTANTIATING (e74dc418-9239-4714-bf5b-8fc31c87579a) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+--------------------------------------------------+--------+-----------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------+ | 24a918b2-abb2-46df-b83a-a24e36ef5856 | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.33.106; osm-ext=172.21.248.215 | ubuntu18.04 | simple_requires-1-1-flv | | 38c36eab-334d-4526-a81a-6c6124c36cb8 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.33.253; osm-ext=172.21.249.7 | ubuntu18.04 | simple_requires-1-1-flv | | 52b76791-8feb-4ce4-a2e4-989bd4e92834 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.164 | ubuntu20.04 | several_volumes-VM-flv | | 3050380a-e6b3-4bd2-a36a-9971a9abf41a | basic_30-vnf2-dataVM-0 | ACTIVE | basic_30-datanet1=2001:db8::5d; basic_30-datanet2=192.168.20.96; basic_30-datanet3=192.168.30.188; osm-ext=172.21.248.100 | ubuntu20.04 | dataVM-vnf2-1-flv-2 | | 6c34c0c1-8e86-465e-9fd3-671b69845d56 | basic_30-vnf1-dataVM-0 | ACTIVE | basic_30-datanet1=2001:db8::20c; basic_30-datanet2=192.168.20.201; basic_30-datanet3=192.168.30.110; osm-ext=172.21.248.7 | ubuntu20.04 | dataVM-vnf1-1-flv-2 | | 488113d5-ba4c-42d2-94d7-e30a05b70dac | basic_30-vnf2-dataVM-0 | ACTIVE | basic_30-datanet1=2001:db8::365; basic_30-datanet2=192.168.20.109; basic_30-datanet3=192.168.30.180; osm-ext=172.21.248.184 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 52f0ed72-17be-464e-817c-49ec950c2934 | basic_30-vnf1-dataVM-0 | ACTIVE | basic_30-datanet1=2001:db8::345; basic_30-datanet2=192.168.20.179; basic_30-datanet3=192.168.30.67; osm-ext=172.21.249.206 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 73fd926f-2249-4276-b8b0-a8fa08bf2cd3 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.213 | ubuntu20.04 | simple_requires-1-1-flv | | b4789280-7313-48f2-9550-f7243c3122bb | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.241 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | date ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | basic_30 | dc633d87-608f-405d-9363-adf7bccaa38e | 2024-04-21T02:15: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} = +--------------------------------------+--------------------------------------------------+--------+----------------------------------------------------------------------------------------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+-----------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+-----------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------+ | 24a918b2-abb2-46df-b83a-a24e36ef5856 | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.33.106; osm-ext=172.21.248.215 | ubuntu18.04 | simple_requires-1-1-flv | | 38c36eab-334d-4526-a81a-6c6124c36cb8 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.33.253; osm-ext=172.21.249.7 | ubuntu18.04 | simple_requires-1-1-flv | | 52b76791-8feb-4ce4-a2e4-989bd4e92834 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.164 | ubuntu20.04 | several_volumes-VM-flv | | 3050380a-e6b3-4bd2-a36a-9971a9abf41a | basic_30-vnf2-dataVM-0 | ACTIVE | basic_30-datanet1=2001:db8::5d; basic_30-datanet2=192.168.20.96; basic_30-datanet3=192.168.30.188; osm-ext=172.21.248.100 | ubuntu20.04 | dataVM-vnf2-1-flv-2 | | 6c34c0c1-8e86-465e-9fd3-671b69845d56 | basic_30-vnf1-dataVM-0 | ACTIVE | basic_30-datanet1=2001:db8::20c; basic_30-datanet2=192.168.20.201; basic_30-datanet3=192.168.30.110; osm-ext=172.21.248.7 | ubuntu20.04 | dataVM-vnf1-1-flv-2 | | 488113d5-ba4c-42d2-94d7-e30a05b70dac | basic_30-vnf2-dataVM-0 | ACTIVE | basic_30-datanet1=2001:db8::365; basic_30-datanet2=192.168.20.109; basic_30-datanet3=192.168.30.180; osm-ext=172.21.248.184 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 52f0ed72-17be-464e-817c-49ec950c2934 | basic_30-vnf1-dataVM-0 | ACTIVE | basic_30-datanet1=2001:db8::345; basic_30-datanet2=192.168.20.179; basic_30-datanet3=192.168.30.67; osm-ext=172.21.249.206 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 73fd926f-2249-4276-b8b0-a8fa08bf2cd3 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.213 | ubuntu20.04 | simple_requires-1-1-flv | | b4789280-7313-48f2-9550-f7243c3122bb | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.241 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | date ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | basic_30 | dc633d87-608f-405d-9363-adf7bccaa38e | 2024-04-21T02:15: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} = dc633d87-608f-405d-9363-adf7bccaa38e ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = dc633d87-608f-405d-9363-adf7bccaa38e Instantiate NS for the testsuite. basic_30 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 dc633d87-608f-405d-9363-adf7bccaa38e | grep dc633d87-608f-405d-9363-adf7bccaa38e | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = eaf3ea64-d7c9-4f66-b62a-7df8ebfc6d41 38458479-4aef-41b4-9b46-ee190810db24 ${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} = [ eaf3ea64-d7c9-4f66-b62a-7df8ebfc6d41 | 38458479-4aef-41b4-9b46-ee190810db24 ] @{vdur} @{vnfr_list} = [ eaf3ea64-d7c9-4f66-b62a-7df8ebfc6d41 | 38458479-4aef-41b4-9b46-ee190810db24 ] ${vnfr_list} Logs the length and contents of the ``list`` using given ``level``. List length is 2 and it contains following items: 0: eaf3ea64-d7c9-4f66-b62a-7df8ebfc6d41 1: 38458479-4aef-41b4-9b46-ee190810db24 ${VNF_ID1} ${vnfr_list}[0] Makes a variable available everywhere within the scope of the current suite. ${VNF_ID1} = eaf3ea64-d7c9-4f66-b62a-7df8ebfc6d41 ${VNF_ID2} ${vnfr_list}[1] Makes a variable available everywhere within the scope of the current suite. ${VNF_ID2} = 38458479-4aef-41b4-9b46-ee190810db24 ${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 dc633d87-608f-405d-9363-adf7bccaa38e | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.248.7 ${stdout} Logs the given message with the given level. 172.21.248.7 ${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.7 ${VNF1_IPMGMT} ${ip} Makes a variable available everywhere within the scope of the current suite. ${VNF1_IPMGMT} = 172.21.248.7 ${VNF1_IPMGMT} Logs the given message with the given level. 172.21.248.7 ${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 dc633d87-608f-405d-9363-adf7bccaa38e | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.248.100 ${stdout} Logs the given message with the given level. 172.21.248.100 ${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.100 ${VNF2_IPMGMT} ${ip} Makes a variable available everywhere within the scope of the current suite. ${VNF2_IPMGMT} = 172.21.248.100 ${VNF2_IPMGMT} Logs the given message with the given level. 172.21.248.100 Get information from the two VNF of the NS, specifically VNF instance id and mgmt IP address. basic_30 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 eaf3ea64-d7c9-4f66-b62a-7df8ebfc6d41 --literal | yq '.vdur[0].interfaces[] | select(.name == "eth1")' | yq -r '."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 2001:db8::20c ${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} = 2001:db8::20c Check whether IP addresses of the first VNF in the VNF record meet the expected CIDR. basic_30 cluster_main daily regression ${VNF_ID2} 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 38458479-4aef-41b4-9b46-ee190810db24 --literal | yq '.vdur[0].interfaces[] | select(.name == "eth1")' | yq -r '."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 2001:db8::5d ${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} = 2001:db8::5d Check whether IP addresses of the second VNF in the VNF record meet the expected CIDR. basic_30 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. 120 seconds Wait for SSH daemon to be up Pauses the test executed for the given time. Slept 2 minutes Wait for SSH daemon to be up ${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. ${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.7: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 Sun Apr 21 02:19:05 UTC 2024 System load: 0.51 Users logged in: 0 Usage of /: 14.0% of 9.52GB IPv4 address for ens3: 172.21.248.7 Memory usage: 10% IPv4 address for ens5: 192.168.20.201 Swap usage: 0% IPv4 address for ens6: 192.168.30.110 Processes: 107 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-30-vnf1-datavm-0:~$ ${stdout} ${rc} ${command} return_rc=True return_stdout=True Executes ``command`` on the remote machine and returns its outputs. Executing command 'sudo dhclient -6 ens4 ; ip --brief addr show up | grep -v "^lo" | awk '{print $3}''. Command exited with return code 0. ${stdout} = 172.21.248.7/22 2001:db8::20c/128 192.168.20.201/24 192.168.30.110/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.7/22 2001:db8::20c/128 192.168.20.201/24 192.168.30.110/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.7/22 2001:db8::20c/128 192.168.20.201/24 192.168.30.110/24 ${stdout} Logs the given message with the given level. 172.21.248.7/22 2001:db8::20c/128 192.168.20.201/24 192.168.30.110/24 @{ip} ${stdout} Splits the ``string`` using ``separator`` as a delimiter string. @{ip} = [ 172.21.248.7/22 | 2001:db8::20c/128 | 192.168.20.201/24 | 192.168.30.110/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. Check whether IP addresses of the first VNF configured inside the VM meet the expected CIDR. basic_30 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} 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. ${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.100: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 Sun Apr 21 02:19:09 UTC 2024 System load: 0.65 Users logged in: 0 Usage of /: 14.0% of 9.52GB IPv4 address for ens3: 172.21.248.100 Memory usage: 10% IPv4 address for ens5: 192.168.20.96 Swap usage: 0% IPv4 address for ens6: 192.168.30.188 Processes: 109 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-30-vnf2-datavm-0:~$ ${stdout} ${rc} ${command} return_rc=True return_stdout=True Executes ``command`` on the remote machine and returns its outputs. Executing command 'sudo dhclient -6 ens4 ; ip --brief addr show up | grep -v "^lo" | awk '{print $3}''. Command exited with return code 0. ${stdout} = 172.21.248.100/22 2001:db8::5d/128 192.168.20.96/24 192.168.30.188/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.100/22 2001:db8::5d/128 192.168.20.96/24 192.168.30.188/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.100/22 2001:db8::5d/128 192.168.20.96/24 192.168.30.188/24 ${stdout} Logs the given message with the given level. 172.21.248.100/22 2001:db8::5d/128 192.168.20.96/24 192.168.30.188/24 @{ip} ${stdout} Splits the ``string`` using ``separator`` as a delimiter string. @{ip} = [ 172.21.248.100/22 | 2001:db8::5d/128 | 192.168.20.96/24 | 192.168.30.188/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. Check whether IP addresses of the second VNF configured inside the VM meet the expected CIDR. basic_30 cluster_main daily regression ${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. Running command 'osm vnf-show eaf3ea64-d7c9-4f66-b62a-7df8ebfc6d41 --literal | yq '.vdur[] | select(."count-index" == 0)' | yq -r '.vim_info[].interfaces[].vim_info' 2>&1'. ${rc} = 0 ${vim_info} = {admin_state_up: true, allowed_address_pairs: [], 'binding:host_id': nfvisrv12, 'binding:profile': {}, 'binding:vif_details': {bridge_name: br-int, connectivity: l2, datapath_type: system, ovs_hybrid_... ${rc},${vim_info} Logs the given message with the given level. 0,{admin_state_up: true, allowed_address_pairs: [], 'binding:host_id': nfvisrv12, 'binding:profile': {}, 'binding:vif_details': {bridge_name: br-int, connectivity: l2, datapath_type: system, ovs_hybrid_plug: true, port_filter: true}, 'binding:vif_type': ovs, 'binding:vnic_type': normal, created_at: '2024-04-21T02:15:28Z', description: '', device_id: 6c34c0c1-8e86-465e-9fd3-671b69845d56, device_owner: 'compute:nova', extra_dhcp_opts: [], fixed_ips: [{ip_address: 172.21.248.7, subnet_id: d14f68b7-8287-41fe-b533-dafb2240680a}], id: 42e2f71e-bb06-482d-a5c7-8a6d982b07d4, mac_address: 'fa:16:3e:5d:9a:da', name: eth0, network_id: 21ea5d92-24f1-40ab-8d28-83230e277a49, port_security_enabled: true, project_id: 34a71bb7d82f4ec691d8cc11045ae83e, revision_number: 5, security_groups: [0f7058a8-cb26-4c54-8fad-9c8de3dbc154], status: ACTIVE, tags: [], tenant_id: 34a71bb7d82f4ec691d8cc11045ae83e, updated_at: '2024-04-21T02:15:45Z'} {admin_state_up: true, allowed_address_pairs: [], 'binding:host_id': nfvisrv12, 'binding:profile': {}, 'binding:vif_details': {bridge_name: br-int, connectivity: l2, datapath_type: system, ovs_hybrid_plug: true, port_filter: true}, 'binding:vif_type': ovs, 'binding:vnic_type': normal, created_at: '2024-04-21T02:15:29Z', description: '', device_id: 6c34c0c1-8e86-465e-9fd3-671b69845d56, device_owner: 'compute:nova', extra_dhcp_opts: [], fixed_ips: [{ip_address: '2001:db8::20c', subnet_id: 7e0321a6-4423-4b87-b172-8a9543a7a671}], id: a53d9dce-5fea-4bfe-ac91-bc8b9d2ec56f, mac_address: 'fa:16:3e:34:92:7b', name: eth1, network_id: 835903e9-b858-4193-8c00-698f8f5ceb96, port_security_enabled: true, project_id: 34a71bb7d82f4ec691d8cc11045ae83e, revision_number: 5, security_groups: [0f7058a8-cb26-4c54-8fad-9c8de3dbc154], status: ACTIVE, tags: [], tenant_id: 34a71bb7d82f4ec691d8cc11045ae83e, updated_at: '2024-04-21T02:15:51Z'} {admin_state_up: true, allowed_address_pairs: [], 'binding:host_id': nfvisrv12, 'binding:profile': {}, 'binding:vif_details': {bridge_name: br-int, connectivity: l2, datapath_type: system, ovs_hybrid_plug: true, port_filter: true}, 'binding:vif_type': ovs, 'binding:vnic_type': normal, created_at: '2024-04-21T02:15:29Z', description: '', device_id: 6c34c0c1-8e86-465e-9fd3-671b69845d56, device_owner: 'compute:nova', extra_dhcp_opts: [], fixed_ips: [{ip_address: 192.168.20.201, subnet_id: 25fb8032-5f4e-4b5c-9f39-9778f9877dce}], id: 9b0029da-546f-461a-83be-4f37f8acc69d, mac_address: 'fa:16:3e:62:b0:ec', name: eth2, network_id: 785e6bce-9c65-4ac7-a76d-3273fb267528, port_security_enabled: true, project_id: 34a71bb7d82f4ec691d8cc11045ae83e, revision_number: 5, security_groups: [0f7058a8-cb26-4c54-8fad-9c8de3dbc154], status: ACTIVE, tags: [], tenant_id: 34a71bb7d82f4ec691d8cc11045ae83e, updated_at: '2024-04-21T02:15:50Z'} {admin_state_up: true, allowed_address_pairs: [], 'binding:host_id': nfvisrv12, 'binding:profile': {}, 'binding:vif_details': {bridge_name: br-int, connectivity: l2, datapath_type: system, ovs_hybrid_plug: true, port_filter: true}, 'binding:vif_type': ovs, 'binding:vnic_type': normal, created_at: '2024-04-21T02:15:30Z', description: '', device_id: 6c34c0c1-8e86-465e-9fd3-671b69845d56, device_owner: 'compute:nova', extra_dhcp_opts: [], fixed_ips: [{ip_address: 192.168.30.110, subnet_id: d0081706-2961-4768-a1fe-5b1a430b8748}], id: a789cdc9-f757-47db-8286-bb1235f3a901, mac_address: 'fa:16:3e:10:4c:79', name: eth3, network_id: dbf36750-1047-40ad-b3f8-ba26e7e68269, port_security_enabled: true, project_id: 34a71bb7d82f4ec691d8cc11045ae83e, revision_number: 5, security_groups: [0f7058a8-cb26-4c54-8fad-9c8de3dbc154], status: ACTIVE, tags: [], tenant_id: 34a71bb7d82f4ec691d8cc11045ae83e, updated_at: '2024-04-21T02:15:49Z'} ${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_id} = ['7e0321a6-4423-4b87-b172-8a9543a7a671'] ${subnet_info} ${subnet_id}[0] Get subnet information in JSON format ${subnet_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} openstack subnet show ${subnet_id} -f json Runs the given command in the system and returns the RC and output. Running command 'openstack subnet show 7e0321a6-4423-4b87-b172-8a9543a7a671 -f json 2>&1'. ${rc} = 0 ${stdout} = { "allocation_pools": [ { "start": "2001:db8::2", "end": "2001:db8::ffff:ffff:ffff:ffff" } ], "cidr": "2001:db8::/64", "created_at": "2024-04-21T02:15:19Z", "description"... ${stdout} Logs the given message with the given level. { "allocation_pools": [ { "start": "2001:db8::2", "end": "2001:db8::ffff:ffff:ffff:ffff" } ], "cidr": "2001:db8::/64", "created_at": "2024-04-21T02:15:19Z", "description": "", "dns_nameservers": [], "dns_publish_fixed_ip": null, "enable_dhcp": true, "gateway_ip": "2001:db8::1", "host_routes": [], "id": "7e0321a6-4423-4b87-b172-8a9543a7a671", "ip_version": 6, "ipv6_address_mode": "dhcpv6-stateful", "ipv6_ra_mode": "dhcpv6-stateful", "name": "basic_30-datanet1-subnet", "network_id": "835903e9-b858-4193-8c00-698f8f5ceb96", "project_id": "34a71bb7d82f4ec691d8cc11045ae83e", "revision_number": 0, "segment_id": null, "service_types": [], "subnetpool_id": null, "tags": [], "updated_at": "2024-04-21T02:15:19Z" } ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${subnet_info} = { "allocation_pools": [ { "start": "2001:db8::2", "end": "2001:db8::ffff:ffff:ffff:ffff" } ], "cidr": "2001:db8::/64", "created_at": "2024-04-21T02:15:19Z", "description"... ${json_object} ${subnet_info} Convert String to JSON object ${json_object} = {'allocation_pools': [{'start': '2001:db8::2', 'end': '2001:db8::ffff:ffff:ffff:ffff'}], 'cidr': '2001:db8::/64', 'created_at': '2024-04-21T02:15:19Z', 'description': '', 'dns_nameservers': [], 'dns_p... ${address_mode} ${json_object} ipv6_address_mode Returns a value from the given ``dictionary`` based on the given ``key``. ${address_mode} = dhcpv6-stateful ${ra_mode} ${json_object} ipv6_ra_mode Returns a value from the given ``dictionary`` based on the given ``key``. ${ra_mode} = dhcpv6-stateful ${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 ${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} = +--------------------------------------+--------------------------------------------------+--------+----------------------------------------------------------------------------------------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+---------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+---------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------+ | cf5562d4-9e1f-473e-b4ac-fc16e9fbb712 | multivdu_multiat-vnf-dataVM-0 | ACTIVE | osm-ext=172.21.249.116 | ubuntu22.04 | mgmtVM-vnf-1-flv | | a5ff5eb8-b143-421d-864a-2e4f1475a223 | multivdu_multiat-vnf-mgmtVM-0 | ACTIVE | osm-ext=172.21.249.223 | ubuntu22.04 | mgmtVM-vnf-1-flv | | 24a918b2-abb2-46df-b83a-a24e36ef5856 | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.33.106; osm-ext=172.21.248.215 | ubuntu18.04 | simple_requires-1-1-flv | | 38c36eab-334d-4526-a81a-6c6124c36cb8 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.33.253; osm-ext=172.21.249.7 | ubuntu18.04 | simple_requires-1-1-flv | | 52b76791-8feb-4ce4-a2e4-989bd4e92834 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.164 | ubuntu20.04 | several_volumes-VM-flv | | 3050380a-e6b3-4bd2-a36a-9971a9abf41a | basic_30-vnf2-dataVM-0 | ACTIVE | basic_30-datanet1=2001:db8::5d; basic_30-datanet2=192.168.20.96; basic_30-datanet3=192.168.30.188; osm-ext=172.21.248.100 | ubuntu20.04 | dataVM-vnf2-1-flv-2 | | 6c34c0c1-8e86-465e-9fd3-671b69845d56 | basic_30-vnf1-dataVM-0 | ACTIVE | basic_30-datanet1=2001:db8::20c; basic_30-datanet2=192.168.20.201; basic_30-datanet3=192.168.30.110; osm-ext=172.21.248.7 | ubuntu20.04 | dataVM-vnf1-1-flv-2 | | 73fd926f-2249-4276-b8b0-a8fa08bf2cd3 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.213 | ubuntu20.04 | simple_requires-1-1-flv | | b4789280-7313-48f2-9550-f7243c3122bb | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.241 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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} = +--------------------------------------+--------------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | cf5562d4-9e1f-473e-b4ac-fc16e9fbb712 | multivdu_multiat-vnf-dataVM-0 | ACTIVE | osm-ext=172.21.249.116 | ubuntu22.04 | mgmtVM-vnf-1-flv | | a5ff5eb8-b143-421d-864a-2e4f1475a223 | multivdu_multiat-vnf-mgmtVM-0 | ACTIVE | osm-ext=172.21.249.223 | ubuntu22.04 | mgmtVM-vnf-1-flv | | 24a918b2-abb2-46df-b83a-a24e36ef5856 | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.33.106; osm-ext=172.21.248.215 | ubuntu18.04 | simple_requires-1-1-flv | | 38c36eab-334d-4526-a81a-6c6124c36cb8 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.33.253; osm-ext=172.21.249.7 | ubuntu18.04 | simple_requires-1-1-flv | | 52b76791-8feb-4ce4-a2e4-989bd4e92834 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.164 | ubuntu20.04 | several_volumes-VM-flv | | 3050380a-e6b3-4bd2-a36a-9971a9abf41a | basic_30-vnf2-dataVM-0 | ACTIVE | osm-ext=172.21.248.100 | ubuntu20.04 | dataVM-vnf2-1-flv-2 | | 6c34c0c1-8e86-465e-9fd3-671b69845d56 | basic_30-vnf1-dataVM-0 | ACTIVE | osm-ext=172.21.248.7 | ubuntu20.04 | dataVM-vnf1-1-flv-2 | | 73fd926f-2249-4276-b8b0-a8fa08bf2cd3 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.213 | ubuntu20.04 | simple_requires-1-1-flv | | b4789280-7313-48f2-9550-f7243c3122bb | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.241 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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} = +--------------------------------------+--------------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | cf5562d4-9e1f-473e-b4ac-fc16e9fbb712 | multivdu_multiat-vnf-dataVM-0 | ACTIVE | osm-ext=172.21.249.116 | ubuntu22.04 | mgmtVM-vnf-1-flv | | a5ff5eb8-b143-421d-864a-2e4f1475a223 | multivdu_multiat-vnf-mgmtVM-0 | ACTIVE | osm-ext=172.21.249.223 | ubuntu22.04 | mgmtVM-vnf-1-flv | | 24a918b2-abb2-46df-b83a-a24e36ef5856 | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.33.106; osm-ext=172.21.248.215 | ubuntu18.04 | simple_requires-1-1-flv | | 38c36eab-334d-4526-a81a-6c6124c36cb8 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.33.253; osm-ext=172.21.249.7 | ubuntu18.04 | simple_requires-1-1-flv | | 52b76791-8feb-4ce4-a2e4-989bd4e92834 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.164 | ubuntu20.04 | several_volumes-VM-flv | | 73fd926f-2249-4276-b8b0-a8fa08bf2cd3 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.213 | ubuntu20.04 | simple_requires-1-1-flv | | b4789280-7313-48f2-9550-f7243c3122bb | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.241 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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. 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-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 1f124b03-1788-4fab-9777-eff69ed4607f ${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} = 1f124b03-1788-4fab-9777-eff69ed4607f ${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 f2c6b02c-6f24-48f7-a56e-50af5abff282 ${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} = f2c6b02c-6f24-48f7-a56e-50af5abff282 ${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} = 3e45c97b-6238-4e27-a5b4-2030a98e1eeb ${stdout} Logs the given message with the given level. 3e45c97b-6238-4e27-a5b4-2030a98e1eeb ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 3e45c97b-6238-4e27-a5b4-2030a98e1eeb ${ns_id} Logs the given message with the given level. 3e45c97b-6238-4e27-a5b4-2030a98e1eeb ${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 | +--------------------------------------+--------------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | ab8e168c-c5d6-4fca-b260-604d4342a820 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.33.82; osm-ext=172.21.248.210 | ubuntu18.04 | simple_requires-1-1-flv | | cf5562d4-9e1f-473e-b4ac-fc16e9fbb712 | multivdu_multiat-vnf-dataVM-0 | ACTIVE | osm-ext=172.21.249.116 | ubuntu22.04 | mgmtVM-vnf-1-flv | | a5ff5eb8-b143-421d-864a-2e4f1475a223 | multivdu_multiat-vnf-mgmtVM-0 | ACTIVE | osm-ext=172.21.249.223 | ubuntu22.04 | mgmtVM-vnf-1-flv | | 24a918b2-abb2-46df-b83a-a24e36ef5856 | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.33.106; osm-ext=172.21.248.215 | ubuntu18.04 | simple_requires-1-1-flv | | 38c36eab-334d-4526-a81a-6c6124c36cb8 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.33.253; osm-ext=172.21.249.7 | ubuntu18.04 | simple_requires-1-1-flv | | 52b76791-8feb-4ce4-a2e4-989bd4e92834 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.164 | ubuntu20.04 | several_volumes-VM-flv | | 73fd926f-2249-4276-b8b0-a8fa08bf2cd3 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.213 | ubuntu20.04 | simple_requires-1-1-flv | | b4789280-7313-48f2-9550-f7243c3122bb | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.241 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | 3e45c97b-6238-4e27-a5b4-2030a98e1eeb | 2024-04-21T02:20:07 | BUILDING | INSTANTIATING (efb63aa8-d8d4-46c5-a174-8aaaf7b2d5a7) | N/A | +----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | 3e45c97b-6238-4e27-a5b4-2030a98e1eeb | 2024-04-21T02:20:07 | BUILDING | INSTANTIATING (efb63aa8-d8d4-46c5-a174-8aaaf7b2d5a7) | N/A | +----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+--------------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | d98aa86b-277d-44c0-b170-0a6569331203 | multivdu_multiat-vnf-dataVM-0 | ACTIVE | osm-ext=172.21.249.176 | ubuntu22.04 | mgmtVM-vnf-1-flv | | 066b2f9f-6693-47ac-b1e5-f052e1c9234b | multivdu_multiat-vnf-mgmtVM-0 | ACTIVE | osm-ext=172.21.248.239 | ubuntu22.04 | mgmtVM-vnf-1-flv | | ab8e168c-c5d6-4fca-b260-604d4342a820 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.33.82; osm-ext=172.21.248.210 | ubuntu18.04 | simple_requires-1-1-flv | | cf5562d4-9e1f-473e-b4ac-fc16e9fbb712 | multivdu_multiat-vnf-dataVM-0 | ACTIVE | osm-ext=172.21.249.116 | ubuntu22.04 | mgmtVM-vnf-1-flv | | a5ff5eb8-b143-421d-864a-2e4f1475a223 | multivdu_multiat-vnf-mgmtVM-0 | ACTIVE | osm-ext=172.21.249.223 | ubuntu22.04 | mgmtVM-vnf-1-flv | | 24a918b2-abb2-46df-b83a-a24e36ef5856 | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.33.106; osm-ext=172.21.248.215 | ubuntu18.04 | simple_requires-1-1-flv | | 38c36eab-334d-4526-a81a-6c6124c36cb8 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.33.253; osm-ext=172.21.249.7 | ubuntu18.04 | simple_requires-1-1-flv | | 52b76791-8feb-4ce4-a2e4-989bd4e92834 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.164 | ubuntu20.04 | several_volumes-VM-flv | | 73fd926f-2249-4276-b8b0-a8fa08bf2cd3 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.213 | ubuntu20.04 | simple_requires-1-1-flv | | b4789280-7313-48f2-9550-f7243c3122bb | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.241 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | 3e45c97b-6238-4e27-a5b4-2030a98e1eeb | 2024-04-21T02:20:07 | BUILDING | INSTANTIATING (efb63aa8-d8d4-46c5-a174-8aaaf7b2d5a7) | N/A | +----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | 3e45c97b-6238-4e27-a5b4-2030a98e1eeb | 2024-04-21T02:20:07 | BUILDING | INSTANTIATING (efb63aa8-d8d4-46c5-a174-8aaaf7b2d5a7) | N/A | +----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | d98aa86b-277d-44c0-b170-0a6569331203 | multivdu_multiat-vnf-dataVM-0 | ACTIVE | osm-ext=172.21.249.176 | ubuntu22.04 | mgmtVM-vnf-1-flv | | 066b2f9f-6693-47ac-b1e5-f052e1c9234b | multivdu_multiat-vnf-mgmtVM-0 | ACTIVE | osm-ext=172.21.248.239 | ubuntu22.04 | mgmtVM-vnf-1-flv | | ab8e168c-c5d6-4fca-b260-604d4342a820 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.33.82; osm-ext=172.21.248.210 | ubuntu18.04 | simple_requires-1-1-flv | | 24a918b2-abb2-46df-b83a-a24e36ef5856 | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.33.106; osm-ext=172.21.248.215 | ubuntu18.04 | simple_requires-1-1-flv | | 38c36eab-334d-4526-a81a-6c6124c36cb8 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.33.253; osm-ext=172.21.249.7 | ubuntu18.04 | simple_requires-1-1-flv | | 52b76791-8feb-4ce4-a2e4-989bd4e92834 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.164 | ubuntu20.04 | several_volumes-VM-flv | | b4789280-7313-48f2-9550-f7243c3122bb | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.241 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | 3e45c97b-6238-4e27-a5b4-2030a98e1eeb | 2024-04-21T02:20:07 | 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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | d98aa86b-277d-44c0-b170-0a6569331203 | multivdu_multiat-vnf-dataVM-0 | ACTIVE | osm-ext=172.21.249.176 | ubuntu22.04 | mgmtVM-vnf-1-flv | | 066b2f9f-6693-47ac-b1e5-f052e1c9234b | multivdu_multiat-vnf-mgmtVM-0 | ACTIVE | osm-ext=172.21.248.239 | ubuntu22.04 | mgmtVM-vnf-1-flv | | ab8e168c-c5d6-4fca-b260-604d4342a820 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.33.82; osm-ext=172.21.248.210 | ubuntu18.04 | simple_requires-1-1-flv | | 24a918b2-abb2-46df-b83a-a24e36ef5856 | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.33.106; osm-ext=172.21.248.215 | ubuntu18.04 | simple_requires-1-1-flv | | 38c36eab-334d-4526-a81a-6c6124c36cb8 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.33.253; osm-ext=172.21.249.7 | ubuntu18.04 | simple_requires-1-1-flv | | 52b76791-8feb-4ce4-a2e4-989bd4e92834 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.164 | ubuntu20.04 | several_volumes-VM-flv | | b4789280-7313-48f2-9550-f7243c3122bb | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.241 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | 3e45c97b-6238-4e27-a5b4-2030a98e1eeb | 2024-04-21T02:20:07 | 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} = 3e45c97b-6238-4e27-a5b4-2030a98e1eeb ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 3e45c97b-6238-4e27-a5b4-2030a98e1eeb ${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 3e45c97b-6238-4e27-a5b4-2030a98e1eeb | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = 858f74ea-2027-44ef-8dfb-0841c31c1241 ${stdout} Logs the given message with the given level. 858f74ea-2027-44ef-8dfb-0841c31c1241 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${vnf_id} = 858f74ea-2027-44ef-8dfb-0841c31c1241 ${VNF_ID} ${vnf_id} Makes a variable available everywhere within the scope of the current suite. ${VNF_ID} = 858f74ea-2027-44ef-8dfb-0841c31c1241 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 858f74ea-2027-44ef-8dfb-0841c31c1241 --literal | yq -r '.vdur[0].interfaces[]."ip-address"' 2>&1'. ${rc} = 0 ${vdu0_ip} = 172.21.248.239 ${rc},${vdu0_ip} Logs the given message with the given level. 0,172.21.248.239 ${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 858f74ea-2027-44ef-8dfb-0841c31c1241 --literal | yq -r '.vdur[1].interfaces[]."ip-address"' 2>&1'. ${rc} = 0 ${vdu1_ip} = 172.21.249.176 ${rc},${vdu1_ip} Logs the given message with the given level. 0,172.21.249.176 ${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.239 ${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.176 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.239: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 Sun Apr 21 02:22:14 UTC 2024 System load: 0.1796875 Processes: 93 Usage of /: 29.7% of 4.67GB Users logged in: 0 Memory usage: 20% IPv4 address for ens3: 172.21.248.239 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: 66c... ${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: 66cc1fe6-9d7e-435f-a772-c7529bdc684d Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632 Allocating group tables: 0/80 done Writing inode tables: 0/8044/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.176: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 Sun Apr 21 02:22:28 UTC 2024 System load: 0.0859375 Processes: 93 Usage of /: 29.7% of 4.67GB Users logged in: 0 Memory usage: 20% IPv4 address for ens3: 172.21.249.176 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.176: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 Sun Apr 21 02:22:28 UTC 2024 System load: 0.0859375 Processes: 93 Usage of /: 29.7% of 4.67GB Users logged in: 0 Memory usage: 20% IPv4 address for ens3: 172.21.249.176 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: Sun Apr 21 02:22:29 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.239: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 Sun Apr 21 02:22:14 UTC 2024 System load: 0.1796875 Processes: 93 Usage of /: 29.7% of 4.67GB Users logged in: 0 Memory usage: 20% IPv4 address for ens3: 172.21.248.239 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: Sun Apr 21 02:22:15 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 ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | a319f08b-8af5-4a27-bf8a-d4226c4f6d15 | sa_02-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.248.230 | ubuntu20.04 | simple_requires-1-1-flv | | 170782e4-c2d2-4a9c-bfec-3a04721832d5 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.208 | ubuntu20.04 | simple_requires-1-1-flv | | d98aa86b-277d-44c0-b170-0a6569331203 | multivdu_multiat-vnf-dataVM-0 | ACTIVE | osm-ext=172.21.249.176 | ubuntu22.04 | mgmtVM-vnf-1-flv | | 066b2f9f-6693-47ac-b1e5-f052e1c9234b | multivdu_multiat-vnf-mgmtVM-0 | ACTIVE | osm-ext=172.21.248.239 | ubuntu22.04 | mgmtVM-vnf-1-flv | | ab8e168c-c5d6-4fca-b260-604d4342a820 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.33.82; osm-ext=172.21.248.210 | ubuntu18.04 | simple_requires-1-1-flv | | 24a918b2-abb2-46df-b83a-a24e36ef5856 | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.33.106; osm-ext=172.21.248.215 | ubuntu18.04 | simple_requires-1-1-flv | | 38c36eab-334d-4526-a81a-6c6124c36cb8 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.33.253; osm-ext=172.21.249.7 | ubuntu18.04 | simple_requires-1-1-flv | | 52b76791-8feb-4ce4-a2e4-989bd4e92834 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.164 | ubuntu20.04 | several_volumes-VM-flv | | b4789280-7313-48f2-9550-f7243c3122bb | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.241 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | a319f08b-8af5-4a27-bf8a-d4226c4f6d15 | sa_02-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.248.230 | ubuntu20.04 | simple_requires-1-1-flv | | 170782e4-c2d2-4a9c-bfec-3a04721832d5 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.208 | ubuntu20.04 | simple_requires-1-1-flv | | ab8e168c-c5d6-4fca-b260-604d4342a820 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.33.82; osm-ext=172.21.248.210 | ubuntu18.04 | simple_requires-1-1-flv | | 24a918b2-abb2-46df-b83a-a24e36ef5856 | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.33.106; osm-ext=172.21.248.215 | ubuntu18.04 | simple_requires-1-1-flv | | 38c36eab-334d-4526-a81a-6c6124c36cb8 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.33.253; osm-ext=172.21.249.7 | ubuntu18.04 | simple_requires-1-1-flv | | 52b76791-8feb-4ce4-a2e4-989bd4e92834 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.164 | ubuntu20.04 | several_volumes-VM-flv | | b4789280-7313-48f2-9550-f7243c3122bb | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.241 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 d63ce279-0fde-472d-b534-724856dd928d ${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} = d63ce279-0fde-472d-b534-724856dd928d ${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 057642a6-8554-4d79-9196-f2dc2d2e67a4 ${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} = 057642a6-8554-4d79-9196-f2dc2d2e67a4 ${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} = 004763bc-23c1-4862-a11d-844d84993fe6 ${stdout} Logs the given message with the given level. 004763bc-23c1-4862-a11d-844d84993fe6 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 004763bc-23c1-4862-a11d-844d84993fe6 ${ns_id} Logs the given message with the given level. 004763bc-23c1-4862-a11d-844d84993fe6 ${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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | a319f08b-8af5-4a27-bf8a-d4226c4f6d15 | sa_02-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.248.230 | ubuntu20.04 | simple_requires-1-1-flv | | 170782e4-c2d2-4a9c-bfec-3a04721832d5 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.208 | ubuntu20.04 | simple_requires-1-1-flv | | ab8e168c-c5d6-4fca-b260-604d4342a820 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.33.82; osm-ext=172.21.248.210 | ubuntu18.04 | simple_requires-1-1-flv | | 24a918b2-abb2-46df-b83a-a24e36ef5856 | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.33.106; osm-ext=172.21.248.215 | ubuntu18.04 | simple_requires-1-1-flv | | 38c36eab-334d-4526-a81a-6c6124c36cb8 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.33.253; osm-ext=172.21.249.7 | ubuntu18.04 | simple_requires-1-1-flv | | 52b76791-8feb-4ce4-a2e4-989bd4e92834 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.164 | ubuntu20.04 | several_volumes-VM-flv | | b4789280-7313-48f2-9550-f7243c3122bb | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.241 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | 004763bc-23c1-4862-a11d-844d84993fe6 | 2024-04-21T02:23:07 | BUILDING | INSTANTIATING (b87572ce-0fe4-4d63-b670-6e7d38cd966a) | N/A | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | 004763bc-23c1-4862-a11d-844d84993fe6 | 2024-04-21T02:23:07 | BUILDING | INSTANTIATING (b87572ce-0fe4-4d63-b670-6e7d38cd966a) | N/A | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------------------+-------------+-----------------------------+ | bde928ff-2683-4df1-92d7-a6e349711633 | epa_01-epa_sriov-vnf-hackfest_basic-VM-0 | ACTIVE | epa_01-epa_sriov-sriov_vld=192.168.121.133; osm-ext=172.21.248.217 | ubuntu18.04 | hackfest_basic-VM-vnf-1-flv | | 3971dca6-2a67-4bca-85a2-8186fff12310 | epa_01-epa_sriov-vnf-hackfest_basic-VM-0 | ACTIVE | epa_01-epa_sriov-sriov_vld=192.168.168.249; osm-ext=172.21.248.209 | ubuntu18.04 | hackfest_basic-VM-vnf-1-flv | | a319f08b-8af5-4a27-bf8a-d4226c4f6d15 | sa_02-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.248.230 | ubuntu20.04 | simple_requires-1-1-flv | | 170782e4-c2d2-4a9c-bfec-3a04721832d5 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.208 | ubuntu20.04 | simple_requires-1-1-flv | | ab8e168c-c5d6-4fca-b260-604d4342a820 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.33.82; osm-ext=172.21.248.210 | ubuntu18.04 | simple_requires-1-1-flv | | 24a918b2-abb2-46df-b83a-a24e36ef5856 | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.33.106; osm-ext=172.21.248.215 | ubuntu18.04 | simple_requires-1-1-flv | | 38c36eab-334d-4526-a81a-6c6124c36cb8 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.33.253; osm-ext=172.21.249.7 | ubuntu18.04 | simple_requires-1-1-flv | | 52b76791-8feb-4ce4-a2e4-989bd4e92834 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.164 | ubuntu20.04 | several_volumes-VM-flv | | b4789280-7313-48f2-9550-f7243c3122bb | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.241 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | 004763bc-23c1-4862-a11d-844d84993fe6 | 2024-04-21T02:23:07 | BUILDING | INSTANTIATING (b87572ce-0fe4-4d63-b670-6e7d38cd966a) | N/A | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | 004763bc-23c1-4862-a11d-844d84993fe6 | 2024-04-21T02:23:07 | BUILDING | INSTANTIATING (b87572ce-0fe4-4d63-b670-6e7d38cd966a) | N/A | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------------------+-------------+-----------------------------+ | bde928ff-2683-4df1-92d7-a6e349711633 | epa_01-epa_sriov-vnf-hackfest_basic-VM-0 | ACTIVE | epa_01-epa_sriov-sriov_vld=192.168.121.133; osm-ext=172.21.248.217 | ubuntu18.04 | hackfest_basic-VM-vnf-1-flv | | 3971dca6-2a67-4bca-85a2-8186fff12310 | epa_01-epa_sriov-vnf-hackfest_basic-VM-0 | ACTIVE | epa_01-epa_sriov-sriov_vld=192.168.168.249; osm-ext=172.21.248.209 | ubuntu18.04 | hackfest_basic-VM-vnf-1-flv | | a319f08b-8af5-4a27-bf8a-d4226c4f6d15 | sa_02-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.248.230 | ubuntu20.04 | simple_requires-1-1-flv | | 170782e4-c2d2-4a9c-bfec-3a04721832d5 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.208 | ubuntu20.04 | simple_requires-1-1-flv | | ab8e168c-c5d6-4fca-b260-604d4342a820 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.33.82; osm-ext=172.21.248.210 | ubuntu18.04 | simple_requires-1-1-flv | | 24a918b2-abb2-46df-b83a-a24e36ef5856 | heal_02-charm_vnf-mgmtVM-1 | ERROR | heal_02-datanet=192.168.33.106 | ubuntu18.04 | simple_requires-1-1-flv | | 38c36eab-334d-4526-a81a-6c6124c36cb8 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.33.253; osm-ext=172.21.249.7 | ubuntu18.04 | simple_requires-1-1-flv | | 52b76791-8feb-4ce4-a2e4-989bd4e92834 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.164 | ubuntu20.04 | several_volumes-VM-flv | | b4789280-7313-48f2-9550-f7243c3122bb | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.241 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | d... ${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 | 004763bc-23c1-4862-a11d-844d84993fe6 | 2024-04-21T02:23:07 | 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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------------------+-------------+-----------------------------+ | bde928ff-2683-4df1-92d7-a6e349711633 | epa_01-epa_sriov-vnf-hackfest_basic-VM-0 | ACTIVE | epa_01-epa_sriov-sriov_vld=192.168.121.133; osm-ext=172.21.248.217 | ubuntu18.04 | hackfest_basic-VM-vnf-1-flv | | 3971dca6-2a67-4bca-85a2-8186fff12310 | epa_01-epa_sriov-vnf-hackfest_basic-VM-0 | ACTIVE | epa_01-epa_sriov-sriov_vld=192.168.168.249; osm-ext=172.21.248.209 | ubuntu18.04 | hackfest_basic-VM-vnf-1-flv | | a319f08b-8af5-4a27-bf8a-d4226c4f6d15 | sa_02-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.248.230 | ubuntu20.04 | simple_requires-1-1-flv | | 170782e4-c2d2-4a9c-bfec-3a04721832d5 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.208 | ubuntu20.04 | simple_requires-1-1-flv | | ab8e168c-c5d6-4fca-b260-604d4342a820 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.33.82; osm-ext=172.21.248.210 | ubuntu18.04 | simple_requires-1-1-flv | | 38c36eab-334d-4526-a81a-6c6124c36cb8 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.33.253; osm-ext=172.21.249.7 | ubuntu18.04 | simple_requires-1-1-flv | | 52b76791-8feb-4ce4-a2e4-989bd4e92834 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.164 | ubuntu20.04 | several_volumes-VM-flv | | b4789280-7313-48f2-9550-f7243c3122bb | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.241 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | d... ${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 | 004763bc-23c1-4862-a11d-844d84993fe6 | 2024-04-21T02:23:07 | 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} = 004763bc-23c1-4862-a11d-844d84993fe6 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 004763bc-23c1-4862-a11d-844d84993fe6 Instantiate NS for the testsuite. cluster_epa daily epa_01 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 004763bc-23c1-4862-a11d-844d84993fe6 | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.248.209 ${stdout} Logs the given message with the given level. 172.21.248.209 ${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.209 ${ip_addr} Logs the given message with the given level. 172.21.248.209 ${VNF_IP_ADDR} ${ip_addr} Makes a variable available everywhere within the scope of the current suite. ${VNF_IP_ADDR} = 172.21.248.209 Get the mgmt IP address of the VNF of the NS. cluster_epa daily epa_01 regression 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 '172.21.248.209: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 Sun Apr 21 02:24:51 UTC 2024 System load: 0.11 Processes: 99 Usage of /: 3.8% of 28.90GB Users logged in: 0 Memory usage: 7% IP address for ens3: 172.21.248.209 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@epa-01-epa-sriov-vnf-hackfest-basic-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 'lspci | grep "Ethernet controller" | grep -v "Virtio"'. Command exited with return code 0. ${stdout} = 00:06.0 Ethernet controller: Intel Corporation Ethernet Virtual Function 700 Series (rev 02) ${rc} = 0 ${rc} Logs the given message with the given level. 0 ${stdout} Logs the given message with the given level. 00:06.0 Ethernet controller: Intel Corporation Ethernet Virtual Function 700 Series (rev 02) 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 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 ${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} = +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------------------+-------------+--------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------------------+-------------+-----------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------------------+-------------+-----------------------------+ | 96cc09ca-085f-4989-aab0-4661372cbc6e | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.33.106; osm-ext=172.21.248.215 | ubuntu18.04 | simple_requires-1-1-flv | | bde928ff-2683-4df1-92d7-a6e349711633 | epa_01-epa_sriov-vnf-hackfest_basic-VM-0 | ACTIVE | epa_01-epa_sriov-sriov_vld=192.168.121.133; osm-ext=172.21.248.217 | ubuntu18.04 | hackfest_basic-VM-vnf-1-flv | | 3971dca6-2a67-4bca-85a2-8186fff12310 | epa_01-epa_sriov-vnf-hackfest_basic-VM-0 | ACTIVE | epa_01-epa_sriov-sriov_vld=192.168.168.249; osm-ext=172.21.248.209 | ubuntu18.04 | hackfest_basic-VM-vnf-1-flv | | a319f08b-8af5-4a27-bf8a-d4226c4f6d15 | sa_02-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.248.230 | ubuntu20.04 | simple_requires-1-1-flv | | 170782e4-c2d2-4a9c-bfec-3a04721832d5 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.208 | ubuntu20.04 | simple_requires-1-1-flv | | ab8e168c-c5d6-4fca-b260-604d4342a820 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.33.82; osm-ext=172.21.248.210 | ubuntu18.04 | simple_requires-1-1-flv | | 38c36eab-334d-4526-a81a-6c6124c36cb8 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.33.253; osm-ext=172.21.249.7 | ubuntu18.04 | simple_requires-1-1-flv | | 52b76791-8feb-4ce4-a2e4-989bd4e92834 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.164 | ubuntu20.04 | several_volumes-VM-flv | | b4789280-7313-48f2-9550-f7243c3122bb | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.241 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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} = +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-----------------------------+ |... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-----------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-----------------------------+ | 96cc09ca-085f-4989-aab0-4661372cbc6e | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.33.106; osm-ext=172.21.248.215 | ubuntu18.04 | simple_requires-1-1-flv | | bde928ff-2683-4df1-92d7-a6e349711633 | epa_01-epa_sriov-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.217 | ubuntu18.04 | hackfest_basic-VM-vnf-1-flv | | a319f08b-8af5-4a27-bf8a-d4226c4f6d15 | sa_02-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.248.230 | ubuntu20.04 | simple_requires-1-1-flv | | 170782e4-c2d2-4a9c-bfec-3a04721832d5 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.208 | ubuntu20.04 | simple_requires-1-1-flv | | ab8e168c-c5d6-4fca-b260-604d4342a820 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.33.82; osm-ext=172.21.248.210 | ubuntu18.04 | simple_requires-1-1-flv | | 38c36eab-334d-4526-a81a-6c6124c36cb8 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.33.253; osm-ext=172.21.249.7 | ubuntu18.04 | simple_requires-1-1-flv | | 52b76791-8feb-4ce4-a2e4-989bd4e92834 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.164 | ubuntu20.04 | several_volumes-VM-flv | | b4789280-7313-48f2-9550-f7243c3122bb | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.241 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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. 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-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 e8b7aa51-b805-4bca-9a83-23b930f5fbf6 ${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} = e8b7aa51-b805-4bca-9a83-23b930f5fbf6 ${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 7556dcdc-bf38-40b7-8cb5-cb6fd213d380 ${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} = 7556dcdc-bf38-40b7-8cb5-cb6fd213d380 ${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} = 1d9321bd-29b6-48ce-9c1a-1082db3d98a3 ${stdout} Logs the given message with the given level. 1d9321bd-29b6-48ce-9c1a-1082db3d98a3 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 1d9321bd-29b6-48ce-9c1a-1082db3d98a3 ${ns_id} Logs the given message with the given level. 1d9321bd-29b6-48ce-9c1a-1082db3d98a3 ${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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | 96cc09ca-085f-4989-aab0-4661372cbc6e | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.33.106; osm-ext=172.21.248.215 | ubuntu18.04 | simple_requires-1-1-flv | | a319f08b-8af5-4a27-bf8a-d4226c4f6d15 | sa_02-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.248.230 | ubuntu20.04 | simple_requires-1-1-flv | | 170782e4-c2d2-4a9c-bfec-3a04721832d5 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.208 | ubuntu20.04 | simple_requires-1-1-flv | | ab8e168c-c5d6-4fca-b260-604d4342a820 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.33.82; osm-ext=172.21.248.210 | ubuntu18.04 | simple_requires-1-1-flv | | 38c36eab-334d-4526-a81a-6c6124c36cb8 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.33.253; osm-ext=172.21.249.7 | ubuntu18.04 | simple_requires-1-1-flv | | 52b76791-8feb-4ce4-a2e4-989bd4e92834 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.164 | ubuntu20.04 | several_volumes-VM-flv | | b4789280-7313-48f2-9550-f7243c3122bb | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.241 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | 1d9321bd-29b6-48ce-9c1a-1082db3d98a3 | 2024-04-21T02:25:28 | BUILDING | INSTANTIATING (e21e99cd-ef02-4a94-b05d-9a86f649c4ec) | N/A | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | 1d9321bd-29b6-48ce-9c1a-1082db3d98a3 | 2024-04-21T02:25:28 | BUILDING | INSTANTIATING (e21e99cd-ef02-4a94-b05d-9a86f649c4ec) | N/A | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+--------------------------+ | 297840b9-be75-44cd-962e-eca18ef54a6d | epa_02-epa_quota-vnf-epa_quota-VM-0 | ACTIVE | osm-ext=172.21.248.205 | ubuntu18.04 | epa_quota-VM-vnf-1-flv-1 | | 6b8602b3-c53c-4d63-94fa-9ac728840125 | epa_02-epa_quota-vnf-epa_quota-VM-0 | ACTIVE | osm-ext=172.21.248.229 | ubuntu18.04 | epa_quota-VM-vnf-1-flv | | 96cc09ca-085f-4989-aab0-4661372cbc6e | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.33.106; osm-ext=172.21.248.215 | ubuntu18.04 | simple_requires-1-1-flv | | 170782e4-c2d2-4a9c-bfec-3a04721832d5 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.208 | ubuntu20.04 | simple_requires-1-1-flv | | ab8e168c-c5d6-4fca-b260-604d4342a820 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.33.82; osm-ext=172.21.248.210 | ubuntu18.04 | simple_requires-1-1-flv | | 38c36eab-334d-4526-a81a-6c6124c36cb8 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.33.253; osm-ext=172.21.249.7 | ubuntu18.04 | simple_requires-1-1-flv | | 52b76791-8feb-4ce4-a2e4-989bd4e92834 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.164 | ubuntu20.04 | several_volumes-VM-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | 1d9321bd-29b6-48ce-9c1a-1082db3d98a3 | 2024-04-21T02:25:28 | 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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+--------------------------+ | 69acb808-ddde-44c1-a6c9-1cc0c3f1c3d5 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 297840b9-be75-44cd-962e-eca18ef54a6d | epa_02-epa_quota-vnf-epa_quota-VM-0 | ACTIVE | osm-ext=172.21.248.205 | ubuntu18.04 | epa_quota-VM-vnf-1-flv-1 | | 6b8602b3-c53c-4d63-94fa-9ac728840125 | epa_02-epa_quota-vnf-epa_quota-VM-0 | ACTIVE | osm-ext=172.21.248.229 | ubuntu18.04 | epa_quota-VM-vnf-1-flv | | 96cc09ca-085f-4989-aab0-4661372cbc6e | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.33.106; osm-ext=172.21.248.215 | ubuntu18.04 | simple_requires-1-1-flv | | 170782e4-c2d2-4a9c-bfec-3a04721832d5 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.208 | ubuntu20.04 | simple_requires-1-1-flv | | ab8e168c-c5d6-4fca-b260-604d4342a820 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.33.82; osm-ext=172.21.248.210 | ubuntu18.04 | simple_requires-1-1-flv | | 38c36eab-334d-4526-a81a-6c6124c36cb8 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.33.253; osm-ext=172.21.249.7 | ubuntu18.04 | simple_requires-1-1-flv | | 52b76791-8feb-4ce4-a2e4-989bd4e92834 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.164 | ubuntu20.04 | several_volumes-VM-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | 1d9321bd-29b6-48ce-9c1a-1082db3d98a3 | 2024-04-21T02:25:28 | 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} = 1d9321bd-29b6-48ce-9c1a-1082db3d98a3 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 1d9321bd-29b6-48ce-9c1a-1082db3d98a3 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 1d9321bd-29b6-48ce-9c1a-1082db3d98a3 | grep 1d9321bd-29b6-48ce-9c1a-1082db3d98a3 | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | 638bdea9-85e4-4835-b8dc-ca9b3b3632c7 ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ 638bdea9-85e4-4835-b8dc-ca9b3b3632c7 ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: 638bdea9-85e4-4835-b8dc-ca9b3b3632c7 @{vnf_list} ${vnfs_list} = ['638bdea9-85e4-4835-b8dc-ca9b3b3632c7'] ${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 638bdea9-85e4-4835-b8dc-ca9b3b3632c7 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 6b8602b3-c53c-4d63-94fa-9ac728840125 ${stdout} Logs the given message with the given level. 6b8602b3-c53c-4d63-94fa-9ac728840125 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${vim_id} = 6b8602b3-c53c-4d63-94fa-9ac728840125 ${vim_id} Logs the given message with the given level. 6b8602b3-c53c-4d63-94fa-9ac728840125 ${VNF_SERVER_ID} ${vim_id} Makes a variable available everywhere within the scope of the current suite. ${VNF_SERVER_ID} = 6b8602b3-c53c-4d63-94fa-9ac728840125 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 6b8602b3-c53c-4d63-94fa-9ac728840125 | 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... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+--------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+--------------------------+ | 69acb808-ddde-44c1-a6c9-1cc0c3f1c3d5 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.207 | ubuntu20.04 | simple_requires-1-1-flv | | 297840b9-be75-44cd-962e-eca18ef54a6d | epa_02-epa_quota-vnf-epa_quota-VM-0 | ACTIVE | osm-ext=172.21.248.205 | ubuntu18.04 | epa_quota-VM-vnf-1-flv-1 | | 6b8602b3-c53c-4d63-94fa-9ac728840125 | epa_02-epa_quota-vnf-epa_quota-VM-0 | ACTIVE | osm-ext=172.21.248.229 | ubuntu18.04 | epa_quota-VM-vnf-1-flv | | 96cc09ca-085f-4989-aab0-4661372cbc6e | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.33.106; osm-ext=172.21.248.215 | ubuntu18.04 | simple_requires-1-1-flv | | 170782e4-c2d2-4a9c-bfec-3a04721832d5 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.208 | ubuntu20.04 | simple_requires-1-1-flv | | ab8e168c-c5d6-4fca-b260-604d4342a820 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.33.82; osm-ext=172.21.248.210 | ubuntu18.04 | simple_requires-1-1-flv | | 38c36eab-334d-4526-a81a-6c6124c36cb8 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.33.253; osm-ext=172.21.249.7 | ubuntu18.04 | simple_requires-1-1-flv | | 52b76791-8feb-4ce4-a2e4-989bd4e92834 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.164 | ubuntu20.04 | several_volumes-VM-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+--------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+--------------------------+ | 69acb808-ddde-44c1-a6c9-1cc0c3f1c3d5 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.207 | ubuntu20.04 | simple_requires-1-1-flv | | 297840b9-be75-44cd-962e-eca18ef54a6d | epa_02-epa_quota-vnf-epa_quota-VM-0 | ACTIVE | osm-ext=172.21.248.205 | ubuntu18.04 | epa_quota-VM-vnf-1-flv-1 | | 96cc09ca-085f-4989-aab0-4661372cbc6e | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.33.106; osm-ext=172.21.248.215 | ubuntu18.04 | simple_requires-1-1-flv | | 170782e4-c2d2-4a9c-bfec-3a04721832d5 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.208 | ubuntu20.04 | simple_requires-1-1-flv | | ab8e168c-c5d6-4fca-b260-604d4342a820 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.33.82; osm-ext=172.21.248.210 | ubuntu18.04 | simple_requires-1-1-flv | | 38c36eab-334d-4526-a81a-6c6124c36cb8 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.33.253; osm-ext=172.21.249.7 | ubuntu18.04 | simple_requires-1-1-flv | | 52b76791-8feb-4ce4-a2e4-989bd4e92834 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.164 | ubuntu20.04 | several_volumes-VM-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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.108 == '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} = c90d0a64-5905-40a4-b369-dc61e0f3763a ${stdout} Logs the given message with the given level. c90d0a64-5905-40a4-b369-dc61e0f3763a ${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} = c90d0a64-5905-40a4-b369-dc61e0f3763a ${SDNC_ID} ${created_sdnc_id} Makes a variable available everywhere within the scope of the current suite. ${SDNC_ID} = c90d0a64-5905-40a4-b369-dc61e0f3763a ${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 c90d0a64-5905-40a4-b369-dc61e0f3763a | 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=c90d0a64-5905-40a4-b369-dc61e0f3763a ${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=c90d0a64-5905-40a4-b369-dc61e0f3763a ${param_name} = sdnc_id ${param_value} = c90d0a64-5905-40a4-b369-dc61e0f3763a ${match},${param_name},${param_value} Logs the given message with the given level. sdnc_id=c90d0a64-5905-40a4-b369-dc61e0f3763a,sdnc_id,c90d0a64-5905-40a4-b369-dc61e0f3763a ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = sdnc_id="c90d0a64-5905-40a4-b369-dc61e0f3763a", ${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.108:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7fcbd5082b30>, 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.108:9091/api/v1/query?query=osm_sdnc_status%7Bsdnc_id=%22c90d0a64-5905-40a4-b369-dc61e0f3763a%22,%7D path_url=/api/v1/query?query=osm_sdnc_status%7Bsdnc_id=%22c90d0a64-5905-40a4-b369-dc61e0f3763a%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.108:9091/api/v1/query?query=osm_sdnc_status%7Bsdnc_id=%22c90d0a64-5905-40a4-b369-dc61e0f3763a%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 21 Apr 2024 02:26:46 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=c90d0a64-5905-40a4-b369-dc61e0f3763a ${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=c90d0a64-5905-40a4-b369-dc61e0f3763a ${param_name} = sdnc_id ${param_value} = c90d0a64-5905-40a4-b369-dc61e0f3763a ${match},${param_name},${param_value} Logs the given message with the given level. sdnc_id=c90d0a64-5905-40a4-b369-dc61e0f3763a,sdnc_id,c90d0a64-5905-40a4-b369-dc61e0f3763a ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = sdnc_id="c90d0a64-5905-40a4-b369-dc61e0f3763a", ${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.108:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7fcbd5081000>, 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.108:9091/api/v1/query?query=osm_sdnc_status%7Bsdnc_id=%22c90d0a64-5905-40a4-b369-dc61e0f3763a%22,%7D path_url=/api/v1/query?query=osm_sdnc_status%7Bsdnc_id=%22c90d0a64-5905-40a4-b369-dc61e0f3763a%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.108:9091/api/v1/query?query=osm_sdnc_status%7Bsdnc_id=%22c90d0a64-5905-40a4-b369-dc61e0f3763a%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 21 Apr 2024 02:27:46 GMT', 'Content-Length': '191'} body={"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"osm_sdnc_status","job":"airflow_osm_sdnc_status_c90d0a64-5905-40a4-b369-dc61e0f3763a","sdnc_id":"c90d0a64-5905-40a4-b369-dc61e0f3763a"},"value":[1713666466.719,"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_c90d0a64-5905-40a4-b369-dc61e0f3763a', 'sdnc_id': 'c90d0a64... ${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_c90d0a64-5905-40a4-b369-dc61e0f3763a', 'sdnc_id': 'c90d0a64-5905-40a4-b369-dc61e0f3763a'}, 'value': [1713666466.719, '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 da31b79b-019b-4f98-8b47-7217bc7aafac ${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} = da31b79b-019b-4f98-8b47-7217bc7aafac ${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 cfd32c27-00c6-4981-b7ba-e9f104a1903f ${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} = cfd32c27-00c6-4981-b7ba-e9f104a1903f ${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} = 029d8e2d-1469-4001-afa5-d097cc61b429 ${stdout} Logs the given message with the given level. 029d8e2d-1469-4001-afa5-d097cc61b429 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 029d8e2d-1469-4001-afa5-d097cc61b429 ${ns_id} Logs the given message with the given level. 029d8e2d-1469-4001-afa5-d097cc61b429 ${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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+--------------------------+ | 34208468-51f1-425b-98b5-62499674c74f | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.252 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | 69acb808-ddde-44c1-a6c9-1cc0c3f1c3d5 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.207 | ubuntu20.04 | simple_requires-1-1-flv | | 96cc09ca-085f-4989-aab0-4661372cbc6e | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.33.106; osm-ext=172.21.248.215 | ubuntu18.04 | simple_requires-1-1-flv | | 170782e4-c2d2-4a9c-bfec-3a04721832d5 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.208 | ubuntu20.04 | simple_requires-1-1-flv | | ab8e168c-c5d6-4fca-b260-604d4342a820 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.33.82; osm-ext=172.21.248.210 | ubuntu18.04 | simple_requires-1-1-flv | | 38c36eab-334d-4526-a81a-6c6124c36cb8 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.33.253; osm-ext=172.21.249.7 | ubuntu18.04 | simple_requires-1-1-flv | | 52b76791-8feb-4ce4-a2e4-989bd4e92834 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.164 | ubuntu20.04 | several_volumes-VM-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | 029d8e2d-1469-4001-afa5-d097cc61b429 | 2024-04-21T02:27:57 | BUILDING | INSTANTIATING (d07f3c9d-3209-4243-88ac-8435d844207d) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | 029d8e2d-1469-4001-afa5-d097cc61b429 | 2024-04-21T02:27:57 | BUILDING | INSTANTIATING (d07f3c9d-3209-4243-88ac-8435d844207d) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+--------------------------+ | 593888cf-f8ea-438b-b9d7-45300ce836d0 | epa_04-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf2-1-flv-2 | | c9571120-02ce-4ce1-a170-1bf707a1ac71 | epa_04-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf1-1-flv-2 | | a5af3754-a867-49df-a088-f647198d7877 | epa_04-vnf2-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.22; osm-ext=172.21.248.79 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 0c59c876-7ad0-448f-9780-0aac99a4a058 | epa_04-vnf1-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.11; osm-ext=172.21.248.247 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 34208468-51f1-425b-98b5-62499674c74f | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.252 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | 69acb808-ddde-44c1-a6c9-1cc0c3f1c3d5 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.207 | ubuntu20.04 | simple_requires-1-1-flv | | 96cc09ca-085f-4989-aab0-4661372cbc6e | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.33.106; osm-ext=172.21.248.215 | ubuntu18.04 | simple_requires-1-1-flv | | 170782e4-c2d2-4a9c-bfec-3a04721832d5 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.208 | ubuntu20.04 | simple_requires-1-1-flv | | ab8e168c-c5d6-4fca-b260-604d4342a820 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.33.82; osm-ext=172.21.248.210 | ubuntu18.04 | simple_requires-1-1-flv | | 38c36eab-334d-4526-a81a-6c6124c36cb8 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.33.253; osm-ext=172.21.249.7 | ubuntu18.04 | simple_requires-1-1-flv | | 52b76791-8feb-4ce4-a2e4-989bd4e92834 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.164 | ubuntu20.04 | several_volumes-VM-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | 029d8e2d-1469-4001-afa5-d097cc61b429 | 2024-04-21T02:27:57 | BUILDING | INSTANTIATING (d07f3c9d-3209-4243-88ac-8435d844207d) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | 029d8e2d-1469-4001-afa5-d097cc61b429 | 2024-04-21T02:27:57 | BUILDING | INSTANTIATING (d07f3c9d-3209-4243-88ac-8435d844207d) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+--------------------------+ | 593888cf-f8ea-438b-b9d7-45300ce836d0 | epa_04-vnf2-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.22; osm-ext=172.21.249.201 | ubuntu20.04 | dataVM-vnf2-1-flv-2 | | c9571120-02ce-4ce1-a170-1bf707a1ac71 | epa_04-vnf1-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.11; osm-ext=172.21.248.185 | ubuntu20.04 | dataVM-vnf1-1-flv-2 | | a5af3754-a867-49df-a088-f647198d7877 | epa_04-vnf2-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.22; osm-ext=172.21.248.79 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 0c59c876-7ad0-448f-9780-0aac99a4a058 | epa_04-vnf1-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.11; osm-ext=172.21.248.247 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 34208468-51f1-425b-98b5-62499674c74f | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.252 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | 69acb808-ddde-44c1-a6c9-1cc0c3f1c3d5 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.207 | ubuntu20.04 | simple_requires-1-1-flv | | 96cc09ca-085f-4989-aab0-4661372cbc6e | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.33.106; osm-ext=172.21.248.215 | ubuntu18.04 | simple_requires-1-1-flv | | 170782e4-c2d2-4a9c-bfec-3a04721832d5 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.208 | ubuntu20.04 | simple_requires-1-1-flv | | ab8e168c-c5d6-4fca-b260-604d4342a820 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.33.82; osm-ext=172.21.248.210 | ubuntu18.04 | simple_requires-1-1-flv | | 38c36eab-334d-4526-a81a-6c6124c36cb8 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.33.253; osm-ext=172.21.249.7 | ubuntu18.04 | simple_requires-1-1-flv | | 52b76791-8feb-4ce4-a2e4-989bd4e92834 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.164 | ubuntu20.04 | several_volumes-VM-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | 029d8e2d-1469-4001-afa5-d097cc61b429 | 2024-04-21T02:27: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} = +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+---------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+--------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+--------------------------+ | 593888cf-f8ea-438b-b9d7-45300ce836d0 | epa_04-vnf2-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.22; osm-ext=172.21.249.201 | ubuntu20.04 | dataVM-vnf2-1-flv-2 | | c9571120-02ce-4ce1-a170-1bf707a1ac71 | epa_04-vnf1-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.11; osm-ext=172.21.248.185 | ubuntu20.04 | dataVM-vnf1-1-flv-2 | | a5af3754-a867-49df-a088-f647198d7877 | epa_04-vnf2-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.22; osm-ext=172.21.248.79 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 0c59c876-7ad0-448f-9780-0aac99a4a058 | epa_04-vnf1-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.11; osm-ext=172.21.248.247 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 34208468-51f1-425b-98b5-62499674c74f | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.252 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | 69acb808-ddde-44c1-a6c9-1cc0c3f1c3d5 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.207 | ubuntu20.04 | simple_requires-1-1-flv | | 96cc09ca-085f-4989-aab0-4661372cbc6e | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.33.106; osm-ext=172.21.248.215 | ubuntu18.04 | simple_requires-1-1-flv | | 170782e4-c2d2-4a9c-bfec-3a04721832d5 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.208 | ubuntu20.04 | simple_requires-1-1-flv | | ab8e168c-c5d6-4fca-b260-604d4342a820 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.33.82; osm-ext=172.21.248.210 | ubuntu18.04 | simple_requires-1-1-flv | | 38c36eab-334d-4526-a81a-6c6124c36cb8 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.33.253; osm-ext=172.21.249.7 | ubuntu18.04 | simple_requires-1-1-flv | | 52b76791-8feb-4ce4-a2e4-989bd4e92834 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.164 | ubuntu20.04 | several_volumes-VM-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | 029d8e2d-1469-4001-afa5-d097cc61b429 | 2024-04-21T02:27: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} = 029d8e2d-1469-4001-afa5-d097cc61b429 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 029d8e2d-1469-4001-afa5-d097cc61b429 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 029d8e2d-1469-4001-afa5-d097cc61b429 | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.248.247 ${stdout} Logs the given message with the given level. 172.21.248.247 ${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.247 ${IP_MGMT_1} ${ip} Makes a variable available everywhere within the scope of the current suite. ${IP_MGMT_1} = 172.21.248.247 ${IP_MGMT_1} Logs the given message with the given level. 172.21.248.247 ${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 029d8e2d-1469-4001-afa5-d097cc61b429 | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.248.79 ${stdout} Logs the given message with the given level. 172.21.248.79 ${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.79 ${IP_MGMT_2} ${ip} Makes a variable available everywhere within the scope of the current suite. ${IP_MGMT_2} = 172.21.248.79 ${IP_MGMT_2} Logs the given message with the given level. 172.21.248.79 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.247: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 Sun Apr 21 02:29:43 UTC 2024 System load: 0.81 Processes: 128 Usage of /: 14.0% of 9.52GB Users logged in: 0 Memory usage: 5% IPv4 address for ens3: 172.21.248.247 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:5e:4f:3f brd ff:ff:ff:ff:ff:ff inet 172.21.248.247/22 brd 172.21.251.255 scope global dynamic ens3 valid_lft 86330sec preferred_lft 86330sec inet6 fe80::f816:3eff:fe5e:4f3f/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:31:fc:96 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:fe31:fc96/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.356 ms 64 bytes from 192.168.100.22: icmp_seq=2 ttl=64 time=0.172 ms 64 bytes from 192.168.100.22: icmp_seq=3 ttl=64 time=0.182 ms 64 bytes from 192.168.100.22: icmp_seq=4 ttl=64 time=0.204 ms 64 bytes from 192.168.100.22: icmp_seq=5 ttl=64 time=1.04 ms --- 192.168.100.22 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4077ms rtt min/avg/max/mdev = 0.172/0.391/1.044/0.332 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:5e:4f:3f brd ff:ff:ff:ff:ff:ff inet 172.21.248.247/22 brd 172.21.251.255 scope global dynamic ens3 valid_lft 86330sec preferred_lft 86330sec inet6 fe80::f816:3eff:fe5e:4f3f/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:31:fc:96 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:fe31:fc96/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.356 ms 64 bytes from 192.168.100.22: icmp_seq=2 ttl=64 time=0.172 ms 64 bytes from 192.168.100.22: icmp_seq=3 ttl=64 time=0.182 ms 64 bytes from 192.168.100.22: icmp_seq=4 ttl=64 time=0.204 ms 64 bytes from 192.168.100.22: icmp_seq=5 ttl=64 time=1.04 ms --- 192.168.100.22 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4077ms rtt min/avg/max/mdev = 0.172/0.391/1.044/0.332 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.248.79: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 Sun Apr 21 02:29:49 UTC 2024 System load: 1.21 Processes: 127 Usage of /: 14.0% of 9.52GB Users logged in: 0 Memory usage: 5% IPv4 address for ens3: 172.21.248.79 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:96:b1:41 brd ff:ff:ff:ff:ff:ff inet 172.21.248.79/22 brd 172.21.251.255 scope global dynamic ens3 valid_lft 86329sec preferred_lft 86329sec inet6 fe80::f816:3eff:fe96:b141/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:c0:3c:e5 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:fec0:3ce5/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.192 ms 64 bytes from 192.168.100.11: icmp_seq=2 ttl=64 time=0.121 ms 64 bytes from 192.168.100.11: icmp_seq=3 ttl=64 time=0.242 ms 64 bytes from 192.168.100.11: icmp_seq=4 ttl=64 time=0.173 ms 64 bytes from 192.168.100.11: icmp_seq=5 ttl=64 time=0.179 ms --- 192.168.100.11 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4095ms rtt min/avg/max/mdev = 0.121/0.181/0.242/0.038 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:96:b1:41 brd ff:ff:ff:ff:ff:ff inet 172.21.248.79/22 brd 172.21.251.255 scope global dynamic ens3 valid_lft 86329sec preferred_lft 86329sec inet6 fe80::f816:3eff:fe96:b141/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:c0:3c:e5 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:fec0:3ce5/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.192 ms 64 bytes from 192.168.100.11: icmp_seq=2 ttl=64 time=0.121 ms 64 bytes from 192.168.100.11: icmp_seq=3 ttl=64 time=0.242 ms 64 bytes from 192.168.100.11: icmp_seq=4 ttl=64 time=0.173 ms 64 bytes from 192.168.100.11: icmp_seq=5 ttl=64 time=0.179 ms --- 192.168.100.11 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4095ms rtt min/avg/max/mdev = 0.121/0.181/0.242/0.038 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} = +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+---------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+--------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+--------------------------+ | 593888cf-f8ea-438b-b9d7-45300ce836d0 | epa_04-vnf2-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.22; osm-ext=172.21.249.201 | ubuntu20.04 | dataVM-vnf2-1-flv-2 | | c9571120-02ce-4ce1-a170-1bf707a1ac71 | epa_04-vnf1-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.11; osm-ext=172.21.248.185 | ubuntu20.04 | dataVM-vnf1-1-flv-2 | | a5af3754-a867-49df-a088-f647198d7877 | epa_04-vnf2-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.22; osm-ext=172.21.248.79 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 0c59c876-7ad0-448f-9780-0aac99a4a058 | epa_04-vnf1-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.11; osm-ext=172.21.248.247 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 34208468-51f1-425b-98b5-62499674c74f | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.252 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | 69acb808-ddde-44c1-a6c9-1cc0c3f1c3d5 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.207 | ubuntu20.04 | simple_requires-1-1-flv | | 96cc09ca-085f-4989-aab0-4661372cbc6e | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.33.106; osm-ext=172.21.248.215 | ubuntu18.04 | simple_requires-1-1-flv | | 170782e4-c2d2-4a9c-bfec-3a04721832d5 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.208 | ubuntu20.04 | simple_requires-1-1-flv | | ab8e168c-c5d6-4fca-b260-604d4342a820 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.33.82; osm-ext=172.21.248.210 | ubuntu18.04 | simple_requires-1-1-flv | | 38c36eab-334d-4526-a81a-6c6124c36cb8 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.33.253; osm-ext=172.21.249.7 | ubuntu18.04 | simple_requires-1-1-flv | | 52b76791-8feb-4ce4-a2e4-989bd4e92834 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.164 | ubuntu20.04 | several_volumes-VM-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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} = +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+---------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+--------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+--------------------------+ | 593888cf-f8ea-438b-b9d7-45300ce836d0 | epa_04-vnf2-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.22; osm-ext=172.21.249.201 | ubuntu20.04 | dataVM-vnf2-1-flv-2 | | c9571120-02ce-4ce1-a170-1bf707a1ac71 | epa_04-vnf1-dataVM-0 | ACTIVE | osm-ext=172.21.248.185 | ubuntu20.04 | dataVM-vnf1-1-flv-2 | | 34208468-51f1-425b-98b5-62499674c74f | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.252 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | 69acb808-ddde-44c1-a6c9-1cc0c3f1c3d5 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.207 | ubuntu20.04 | simple_requires-1-1-flv | | 96cc09ca-085f-4989-aab0-4661372cbc6e | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.33.106; osm-ext=172.21.248.215 | ubuntu18.04 | simple_requires-1-1-flv | | 170782e4-c2d2-4a9c-bfec-3a04721832d5 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.208 | ubuntu20.04 | simple_requires-1-1-flv | | ab8e168c-c5d6-4fca-b260-604d4342a820 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.33.82; osm-ext=172.21.248.210 | ubuntu18.04 | simple_requires-1-1-flv | | 38c36eab-334d-4526-a81a-6c6124c36cb8 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.33.253; osm-ext=172.21.249.7 | ubuntu18.04 | simple_requires-1-1-flv | | 52b76791-8feb-4ce4-a2e4-989bd4e92834 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.164 | ubuntu20.04 | several_volumes-VM-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 8ae41979-506c-48ea-ae26-ceb9bafead87 ${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} = 8ae41979-506c-48ea-ae26-ceb9bafead87 ${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 beee1062-8290-4d05-96aa-f6bf14bddc78 ${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} = beee1062-8290-4d05-96aa-f6bf14bddc78 ${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} = 7440 ${ns_name} SEPARATOR=_ ${NS_NAME_PREFIX} ${rand} Catenates the given items together and returns the resulted string. ${ns_name} = fail_01_7440 ${NS_NAME} Makes a variable available everywhere within the scope of the current suite. ${NS_NAME} = fail_01_7440 ${NS_NAME} Logs the given message with the given level. fail_01_7440 ${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_7440 --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} = 31b3cef0-268c-468c-8b50-a027af9a0f02 ${stdout} Logs the given message with the given level. 31b3cef0-268c-468c-8b50-a027af9a0f02 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 31b3cef0-268c-468c-8b50-a027af9a0f02 ${id} Logs the given message with the given level. 31b3cef0-268c-468c-8b50-a027af9a0f02 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 31b3cef0-268c-468c-8b50-a027af9a0f02 ${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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+--------------------------+ | 34208468-51f1-425b-98b5-62499674c74f | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.252 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | 69acb808-ddde-44c1-a6c9-1cc0c3f1c3d5 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.207 | ubuntu20.04 | simple_requires-1-1-flv | | 96cc09ca-085f-4989-aab0-4661372cbc6e | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.33.106; osm-ext=172.21.248.215 | ubuntu18.04 | simple_requires-1-1-flv | | 170782e4-c2d2-4a9c-bfec-3a04721832d5 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.208 | ubuntu20.04 | simple_requires-1-1-flv | | ab8e168c-c5d6-4fca-b260-604d4342a820 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.33.82; osm-ext=172.21.248.210 | ubuntu18.04 | simple_requires-1-1-flv | | 38c36eab-334d-4526-a81a-6c6124c36cb8 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.33.253; osm-ext=172.21.249.7 | ubuntu18.04 | simple_requires-1-1-flv | | 52b76791-8feb-4ce4-a2e4-989bd4e92834 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.164 | ubuntu20.04 | several_volumes-VM-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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_7440" 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_7440 | 31b3cef0-268c-468c-8b50-a027af9a0f02 | 2024-04-21T02:30:31 | BUILDING | INSTANTIATING (0bd79768-983c-4801-bb44-f455aec6fb42) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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_7440 | 31b3cef0-268c-468c-8b50-a027af9a0f02 | 2024-04-21T02:30:31 | BUILDING | INSTANTIATING (0bd79768-983c-4801-bb44-f455aec6fb42) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+-----------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | 34208468-51f1-425b-98b5-62499674c74f | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.252 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | 69acb808-ddde-44c1-a6c9-1cc0c3f1c3d5 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.207 | ubuntu20.04 | simple_requires-1-1-flv | | 96cc09ca-085f-4989-aab0-4661372cbc6e | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | osm-ext=172.21.248.215 | ubuntu18.04 | simple_requires-1-1-flv | | 170782e4-c2d2-4a9c-bfec-3a04721832d5 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.208 | ubuntu20.04 | simple_requires-1-1-flv | | ab8e168c-c5d6-4fca-b260-604d4342a820 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | osm-ext=172.21.248.210 | ubuntu18.04 | simple_requires-1-1-flv | | 38c36eab-334d-4526-a81a-6c6124c36cb8 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | osm-ext=172.21.249.7 | ubuntu18.04 | simple_requires-1-1-flv | | 52b76791-8feb-4ce4-a2e4-989bd4e92834 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.164 | ubuntu20.04 | several_volumes-VM-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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_7440" 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_7440 | 31b3cef0-268c-468c-8b50-a027af9a0f02 | 2024-04-21T02:30:31 | BUILDING | INSTANTIATING (0bd79768-983c-4801-bb44-f455aec6fb42) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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_7440 | 31b3cef0-268c-468c-8b50-a027af9a0f02 | 2024-04-21T02:30:31 | BUILDING | INSTANTIATING (0bd79768-983c-4801-bb44-f455aec6fb42) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+------------------------------------------+--------+-------------------------------------------------------------+------------------------------+--------------------------+ | 5deef9c0-8cfd-4aa0-8249-5fabc8a773e6 | fail_01_7440-vnf-mgmtVM-0 | ACTIVE | fail_01_7440-internal=192.168.242.33; osm-ext=172.21.249.55 | ubuntu20.04 | simple_requires-1-1-flv | | 34208468-51f1-425b-98b5-62499674c74f | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.252 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | 69acb808-ddde-44c1-a6c9-1cc0c3f1c3d5 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.207 | ubuntu20.04 | simple_requires-1-1-flv | | 170782e4-c2d2-4a9c-bfec-3a04721832d5 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.208 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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_7440" 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_7440 | 31b3cef0-268c-468c-8b50-a027af9a0f02 | 2024-04-21T02:30:31 | BROKEN | IDLE (None) | Operation: INSTANTIATING.0bd79768-983c- | | | | | | | 4801-bb44-f455aec6fb42, 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 228352 of 327680 ram (HTTP 403) | | | | | | | (Request-ID: req-543bc452-6015-46d0- | | | | | | | 9868-7ba83c72d095) | +------------------+--------------------------------------+---------------------+----------+-------------------+-----------------------------------------+ To get the history of all operations 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="31b3cef0-268c-468c-8b50-a027af9a0f02" | grep 31b3cef0-268c-468c-8b50-a027af9a0f02 | 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 31b3cef0-268c-468c-8b50-a027af9a0f02 --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 228352 of 327680 ram (HTTP 403) (Request-ID: req-543bc452-6015-46d0-9868-7ba83c72d095)" ${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 228352 of 327680 ram (HTTP 403) (Request-ID: req-543bc452-6015-46d0-9868-7ba83c72d095)" ${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_7440 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 | +--------------------------------------+------------------------------------------+--------+-------------------------------------------------------------+------------------------------+--------------------------+ | 5deef9c0-8cfd-4aa0-8249-5fabc8a773e6 | fail_01_7440-vnf-mgmtVM-0 | ACTIVE | fail_01_7440-internal=192.168.242.33; osm-ext=172.21.249.55 | ubuntu20.04 | simple_requires-1-1-flv | | 34208468-51f1-425b-98b5-62499674c74f | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.252 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | 69acb808-ddde-44c1-a6c9-1cc0c3f1c3d5 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.207 | ubuntu20.04 | simple_requires-1-1-flv | | 170782e4-c2d2-4a9c-bfec-3a04721832d5 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.208 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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_7440 2>&1'. ${rc} = 0 ${stdout} = fail_01_7440 ${rc},${stdout} Logs the given message with the given level. 0,fail_01_7440 ${stdout} ${ns} Fails if objects are equal after converting them to strings. fail_01_7440 == fail_01_7440 ${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 | +--------------------------------------+------------------------------------------+--------+--------------------------------------------------------------+------------------------------+--------------------------+ | 3dde50c8-bf8c-4aa9-97c1-d6a04d1f5a1f | fail_01_5725-vnf-mgmtVM-0 | ACTIVE | fail_01_5725-internal=192.168.77.200; osm-ext=172.21.249.191 | ubuntu20.04 | simple_requires-1-1-flv | | 34208468-51f1-425b-98b5-62499674c74f | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.252 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | 69acb808-ddde-44c1-a6c9-1cc0c3f1c3d5 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.207 | ubuntu20.04 | simple_requires-1-1-flv | | 170782e4-c2d2-4a9c-bfec-3a04721832d5 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.208 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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_7440 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_7440 | 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 10986240-eae8-4e1b-aaed-676c1690a846 ${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} = 10986240-eae8-4e1b-aaed-676c1690a846 ${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 9a824641-a03f-4a01-9aa0-6594a21b1c9d ${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} = 9a824641-a03f-4a01-9aa0-6594a21b1c9d ${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} = 50e724e0-9b89-4ead-b4e3-955c6a349fb5 ${stdout} Logs the given message with the given level. 50e724e0-9b89-4ead-b4e3-955c6a349fb5 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 50e724e0-9b89-4ead-b4e3-955c6a349fb5 ${ns_id} Logs the given message with the given level. 50e724e0-9b89-4ead-b4e3-955c6a349fb5 ${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 | +--------------------------------------+------------------------------------------+--------+--------------------------------------------------------------+------------------------------+--------------------------+ | 3dde50c8-bf8c-4aa9-97c1-d6a04d1f5a1f | fail_01_5725-vnf-mgmtVM-0 | ACTIVE | fail_01_5725-internal=192.168.77.200; osm-ext=172.21.249.191 | ubuntu20.04 | simple_requires-1-1-flv | | 34208468-51f1-425b-98b5-62499674c74f | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.252 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | 69acb808-ddde-44c1-a6c9-1cc0c3f1c3d5 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.207 | ubuntu20.04 | simple_requires-1-1-flv | | 170782e4-c2d2-4a9c-bfec-3a04721832d5 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.208 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | 50e724e0-9b89-4ead-b4e3-955c6a349fb5 | 2024-04-21T02:31:49 | BUILDING | INSTANTIATING (f519193d-a1b0-4f28-8395-d36b424504b1) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | 50e724e0-9b89-4ead-b4e3-955c6a349fb5 | 2024-04-21T02:31:49 | BUILDING | INSTANTIATING (f519193d-a1b0-4f28-8395-d36b424504b1) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+--------------------------+ | 2f6dc039-f62a-42ce-9b28-fdd334949c07 | sa_02-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.249.160 | ubuntu20.04 | simple_requires-1-1-flv | | 9956371b-620e-44c0-a9a9-5a4cca97c378 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.89.40; osm-ext=172.21.248.75 | ubuntu18.04 | simple_requires-1-1-flv | | b2acd48a-4874-4c43-8eea-90a8a4f69945 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.89.138; osm-ext=172.21.249.192 | ubuntu18.04 | simple_requires-1-1-flv | | 68b53a44-78cc-49ee-9b90-2aa0ebc5f659 | hfbasic-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.249.174 | ubuntu20.04 | simple_requires-1-1-flv | | 622509f2-62cd-464f-8d06-b986841d5183 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.12 | ubuntu20.04 | several_volumes-VM-flv | | 34208468-51f1-425b-98b5-62499674c74f | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.252 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | 69acb808-ddde-44c1-a6c9-1cc0c3f1c3d5 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.207 | ubuntu20.04 | simple_requires-1-1-flv | | 170782e4-c2d2-4a9c-bfec-3a04721832d5 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.208 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | 50e724e0-9b89-4ead-b4e3-955c6a349fb5 | 2024-04-21T02:31: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} = +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+---------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+--------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+--------------------------+ | 2f6dc039-f62a-42ce-9b28-fdd334949c07 | sa_02-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.249.160 | ubuntu20.04 | simple_requires-1-1-flv | | 9956371b-620e-44c0-a9a9-5a4cca97c378 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.89.40; osm-ext=172.21.248.75 | ubuntu18.04 | simple_requires-1-1-flv | | b2acd48a-4874-4c43-8eea-90a8a4f69945 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.89.138; osm-ext=172.21.249.192 | ubuntu18.04 | simple_requires-1-1-flv | | 68b53a44-78cc-49ee-9b90-2aa0ebc5f659 | hfbasic-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.249.174 | ubuntu20.04 | simple_requires-1-1-flv | | 622509f2-62cd-464f-8d06-b986841d5183 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.12 | ubuntu20.04 | several_volumes-VM-flv | | 34208468-51f1-425b-98b5-62499674c74f | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.252 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | 69acb808-ddde-44c1-a6c9-1cc0c3f1c3d5 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.207 | ubuntu20.04 | simple_requires-1-1-flv | | 170782e4-c2d2-4a9c-bfec-3a04721832d5 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.208 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | 50e724e0-9b89-4ead-b4e3-955c6a349fb5 | 2024-04-21T02:31: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} = 50e724e0-9b89-4ead-b4e3-955c6a349fb5 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 50e724e0-9b89-4ead-b4e3-955c6a349fb5 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 50e724e0-9b89-4ead-b4e3-955c6a349fb5 | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.249.174 ${stdout} Logs the given message with the given level. 172.21.249.174 ${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.174 ${ip_addr} Logs the given message with the given level. 172.21.249.174 ${VNF_IP_ADDR} ${ip_addr} Makes a variable available everywhere within the scope of the current suite. ${VNF_IP_ADDR} = 172.21.249.174 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.249.174 2>&1'. ${rc} = 0 ${stdout} = PING 172.21.249.174 (172.21.249.174) 56(84) bytes of data. 64 bytes from 172.21.249.174: icmp_seq=1 ttl=63 time=1.97 ms 64 bytes from 172.21.249.174: icmp_seq=2 ttl=63 time=0.665 ms --- 172.21.249.17... ${stdout} Logs the given message with the given level. PING 172.21.249.174 (172.21.249.174) 56(84) bytes of data. 64 bytes from 172.21.249.174: icmp_seq=1 ttl=63 time=1.97 ms 64 bytes from 172.21.249.174: icmp_seq=2 ttl=63 time=0.665 ms --- 172.21.249.174 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1001ms rtt min/avg/max/mdev = 0.665/1.316/1.968/0.651 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.249.174: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 Sun Apr 21 02:33:02 UTC 2024 System load: 0.6 Processes: 103 Usage of /: 14.0% of 9.52GB Users logged in: 0 Memory usage: 20% IPv4 address for ens3: 172.21.249.174 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} = +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+---------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+--------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+--------------------------+ | 5b19e6e5-5c34-4e3e-ac32-b3d98cfc2202 | hfbasic-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.249.89 | ubuntu20.04 | simple_requires-1-1-flv | | 2f6dc039-f62a-42ce-9b28-fdd334949c07 | sa_02-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.249.160 | ubuntu20.04 | simple_requires-1-1-flv | | 9956371b-620e-44c0-a9a9-5a4cca97c378 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.89.40; osm-ext=172.21.248.75 | ubuntu18.04 | simple_requires-1-1-flv | | b2acd48a-4874-4c43-8eea-90a8a4f69945 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.89.138; osm-ext=172.21.249.192 | ubuntu18.04 | simple_requires-1-1-flv | | 68b53a44-78cc-49ee-9b90-2aa0ebc5f659 | hfbasic-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.249.174 | ubuntu20.04 | simple_requires-1-1-flv | | 622509f2-62cd-464f-8d06-b986841d5183 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.12 | ubuntu20.04 | several_volumes-VM-flv | | 34208468-51f1-425b-98b5-62499674c74f | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.252 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | 69acb808-ddde-44c1-a6c9-1cc0c3f1c3d5 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.207 | ubuntu20.04 | simple_requires-1-1-flv | | 170782e4-c2d2-4a9c-bfec-3a04721832d5 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.208 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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} = +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+---------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+--------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+--------------------------+ | 5b19e6e5-5c34-4e3e-ac32-b3d98cfc2202 | hfbasic-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.249.89 | ubuntu20.04 | simple_requires-1-1-flv | | 2f6dc039-f62a-42ce-9b28-fdd334949c07 | sa_02-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.249.160 | ubuntu20.04 | simple_requires-1-1-flv | | 9956371b-620e-44c0-a9a9-5a4cca97c378 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.89.40; osm-ext=172.21.248.75 | ubuntu18.04 | simple_requires-1-1-flv | | b2acd48a-4874-4c43-8eea-90a8a4f69945 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.89.138; osm-ext=172.21.249.192 | ubuntu18.04 | simple_requires-1-1-flv | | 622509f2-62cd-464f-8d06-b986841d5183 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.12 | ubuntu20.04 | several_volumes-VM-flv | | 34208468-51f1-425b-98b5-62499674c74f | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.252 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | 69acb808-ddde-44c1-a6c9-1cc0c3f1c3d5 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.207 | ubuntu20.04 | simple_requires-1-1-flv | | 170782e4-c2d2-4a9c-bfec-3a04721832d5 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.208 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 0d4c793b-d723-4cd4-a853-cf57c7ac90a0 ${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} = 0d4c793b-d723-4cd4-a853-cf57c7ac90a0 ${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 1efbe727-b139-48df-b89e-01c96eb71aeb ${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} = 1efbe727-b139-48df-b89e-01c96eb71aeb ${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} = 40d496bc-d1f9-42da-9ee5-4efb37cca0ca ${stdout} Logs the given message with the given level. 40d496bc-d1f9-42da-9ee5-4efb37cca0ca ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 40d496bc-d1f9-42da-9ee5-4efb37cca0ca ${ns_id} Logs the given message with the given level. 40d496bc-d1f9-42da-9ee5-4efb37cca0ca ${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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+--------------------------+ | 5b19e6e5-5c34-4e3e-ac32-b3d98cfc2202 | hfbasic-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.249.89 | ubuntu20.04 | simple_requires-1-1-flv | | 2f6dc039-f62a-42ce-9b28-fdd334949c07 | sa_02-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.249.160 | ubuntu20.04 | simple_requires-1-1-flv | | 9956371b-620e-44c0-a9a9-5a4cca97c378 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.89.40; osm-ext=172.21.248.75 | ubuntu18.04 | simple_requires-1-1-flv | | b2acd48a-4874-4c43-8eea-90a8a4f69945 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.89.138; osm-ext=172.21.249.192 | ubuntu18.04 | simple_requires-1-1-flv | | 622509f2-62cd-464f-8d06-b986841d5183 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.12 | ubuntu20.04 | several_volumes-VM-flv | | 34208468-51f1-425b-98b5-62499674c74f | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.252 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | 69acb808-ddde-44c1-a6c9-1cc0c3f1c3d5 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.207 | ubuntu20.04 | simple_requires-1-1-flv | | 170782e4-c2d2-4a9c-bfec-3a04721832d5 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.208 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | 40d496bc-d1f9-42da-9ee5-4efb37cca0ca | 2024-04-21T02:33:38 | BUILDING | INSTANTIATING (c83f6c24-47df-46ea-a4e3-a5b5a580b3b3) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | 40d496bc-d1f9-42da-9ee5-4efb37cca0ca | 2024-04-21T02:33:38 | BUILDING | INSTANTIATING (c83f6c24-47df-46ea-a4e3-a5b5a580b3b3) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------+------------------------------+--------------------------+ | 5a2ed749-6854-472e-a7cd-4d9e85e31dcb | hfcloudinit-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 711bb1d5-90e9-45d5-8f5c-484bc76491c7 | hfcloudinit-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 87cedb38-a436-4f76-b2d7-aa2a3dedc156 | hfcloudinit-vnf1-mgmtVM-0 | ACTIVE | hfcloudinit-internal=192.168.126.42; osm-ext=172.21.248.245 | ubuntu20.04 | simple_requires-1-1-flv | | 2f6dc039-f62a-42ce-9b28-fdd334949c07 | sa_02-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.249.160 | ubuntu20.04 | simple_requires-1-1-flv | | 9956371b-620e-44c0-a9a9-5a4cca97c378 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.89.40; osm-ext=172.21.248.75 | ubuntu18.04 | simple_requires-1-1-flv | | b2acd48a-4874-4c43-8eea-90a8a4f69945 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.89.138; osm-ext=172.21.249.192 | ubuntu18.04 | simple_requires-1-1-flv | | 622509f2-62cd-464f-8d06-b986841d5183 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.12 | ubuntu20.04 | several_volumes-VM-flv | | 34208468-51f1-425b-98b5-62499674c74f | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.252 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | 69acb808-ddde-44c1-a6c9-1cc0c3f1c3d5 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.207 | ubuntu20.04 | simple_requires-1-1-flv | | 170782e4-c2d2-4a9c-bfec-3a04721832d5 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.208 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | 40d496bc-d1f9-42da-9ee5-4efb37cca0ca | 2024-04-21T02:33:38 | BUILDING | INSTANTIATING (c83f6c24-47df-46ea-a4e3-a5b5a580b3b3) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | 40d496bc-d1f9-42da-9ee5-4efb37cca0ca | 2024-04-21T02:33:38 | BUILDING | INSTANTIATING (c83f6c24-47df-46ea-a4e3-a5b5a580b3b3) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------------------------+------------------------------+--------------------------+ | 0f265ca8-3272-43bd-81f6-acc0ea998f41 | hfcloudinit-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 6a654e5a-be61-4f35-b101-f7df3ec204c3 | hfcloudinit-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 3937953c-7a14-43c4-a3a8-6d6e35b3c33f | hfcloudinit-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 4c47c40f-2528-4051-902a-f244f5bed8ca | hfcloudinit-vnf1-mgmtVM-0 | ACTIVE | hfcloudinit-internal=192.168.244.233; osm-ext=172.21.249.49 | ubuntu20.04 | simple_requires-1-1-flv | | 9cfcfe9a-a571-4243-82d6-160176fe2f55 | hfcloudinit-vnf2-dataVM-0 | ACTIVE | hfcloudinit-datanet=192.168.241.93; hfcloudinit-internal=192.168.206.29 | ubuntu20.04 | simple_requires-1-1-flv | | 5a2ed749-6854-472e-a7cd-4d9e85e31dcb | hfcloudinit-vnf2-mgmtVM-0 | ACTIVE | hfcloudinit-internal=192.168.206.106; osm-ext=172.21.249.184 | ubuntu20.04 | simple_requires-1-1-flv | | 711bb1d5-90e9-45d5-8f5c-484bc76491c7 | hfcloudinit-vnf1-dataVM-0 | ACTIVE | hfcloudinit-datanet=192.168.241.111; hfcloudinit-internal=192.168.126.55 | ubuntu20.04 | simple_requires-1-1-flv | | 87cedb38-a436-4f76-b2d7-aa2a3dedc156 | hfcloudinit-vnf1-mgmtVM-0 | ACTIVE | hfcloudinit-internal=192.168.126.42; osm-ext=172.21.248.245 | ubuntu20.04 | simple_requires-1-1-flv | | 2f6dc039-f62a-42ce-9b28-fdd334949c07 | sa_02-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.249.160 | ubuntu20.04 | simple_requires-1-1-flv | | 9956371b-620e-44c0-a9a9-5a4cca97c378 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.89.40; osm-ext=172.21.248.75 | ubuntu18.04 | simple_requires-1-1-flv | | b2acd48a-4874-4c43-8eea-90a8a4f69945 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.89.138; osm-ext=172.21.249.192 | ubuntu18.04 | simple_requires-1-1-flv | | 622509f2-62cd-464f-8d06-b986841d5183 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.12 | ubuntu20.04 | several_volumes-VM-flv | | 34208468-51f1-425b-98b5-62499674c74f | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.252 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | 69acb808-ddde-44c1-a6c9-1cc0c3f1c3d5 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.207 | ubuntu20.04 | simple_requires-1-1-flv | | 170782e4-c2d2-4a9c-bfec-3a04721832d5 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.208 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | date ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | hfcloudinit | 40d496bc-d1f9-42da-9ee5-4efb37cca0ca | 2024-04-21T02:33: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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------------------------+------------------------------+--------------------------+ | 0f265ca8-3272-43bd-81f6-acc0ea998f41 | hfcloudinit-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 6a654e5a-be61-4f35-b101-f7df3ec204c3 | hfcloudinit-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 3937953c-7a14-43c4-a3a8-6d6e35b3c33f | hfcloudinit-vnf1-dataVM-0 | ACTIVE | hfcloudinit-datanet=192.168.242.26; hfcloudinit-internal=192.168.244.92 | ubuntu20.04 | simple_requires-1-1-flv | | 4c47c40f-2528-4051-902a-f244f5bed8ca | hfcloudinit-vnf1-mgmtVM-0 | ACTIVE | hfcloudinit-internal=192.168.244.233; osm-ext=172.21.249.49 | ubuntu20.04 | simple_requires-1-1-flv | | 9cfcfe9a-a571-4243-82d6-160176fe2f55 | hfcloudinit-vnf2-dataVM-0 | ACTIVE | hfcloudinit-datanet=192.168.241.93; hfcloudinit-internal=192.168.206.29 | ubuntu20.04 | simple_requires-1-1-flv | | 5a2ed749-6854-472e-a7cd-4d9e85e31dcb | hfcloudinit-vnf2-mgmtVM-0 | ACTIVE | hfcloudinit-internal=192.168.206.106; osm-ext=172.21.249.184 | ubuntu20.04 | simple_requires-1-1-flv | | 711bb1d5-90e9-45d5-8f5c-484bc76491c7 | hfcloudinit-vnf1-dataVM-0 | ACTIVE | hfcloudinit-datanet=192.168.241.111; hfcloudinit-internal=192.168.126.55 | ubuntu20.04 | simple_requires-1-1-flv | | 87cedb38-a436-4f76-b2d7-aa2a3dedc156 | hfcloudinit-vnf1-mgmtVM-0 | ACTIVE | hfcloudinit-internal=192.168.126.42; osm-ext=172.21.248.245 | ubuntu20.04 | simple_requires-1-1-flv | | 2f6dc039-f62a-42ce-9b28-fdd334949c07 | sa_02-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.249.160 | ubuntu20.04 | simple_requires-1-1-flv | | 9956371b-620e-44c0-a9a9-5a4cca97c378 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.89.40; osm-ext=172.21.248.75 | ubuntu18.04 | simple_requires-1-1-flv | | b2acd48a-4874-4c43-8eea-90a8a4f69945 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.89.138; osm-ext=172.21.249.192 | ubuntu18.04 | simple_requires-1-1-flv | | 622509f2-62cd-464f-8d06-b986841d5183 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.12 | ubuntu20.04 | several_volumes-VM-flv | | 34208468-51f1-425b-98b5-62499674c74f | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.252 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | 69acb808-ddde-44c1-a6c9-1cc0c3f1c3d5 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.207 | ubuntu20.04 | simple_requires-1-1-flv | | 170782e4-c2d2-4a9c-bfec-3a04721832d5 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.208 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | date ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | hfcloudinit | 40d496bc-d1f9-42da-9ee5-4efb37cca0ca | 2024-04-21T02:33: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} = 40d496bc-d1f9-42da-9ee5-4efb37cca0ca ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 40d496bc-d1f9-42da-9ee5-4efb37cca0ca Instantiate NS for the testsuite. azure cluster_main daily hackfest_cloudinit 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 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 40d496bc-d1f9-42da-9ee5-4efb37cca0ca | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.248.245 ${stdout} Logs the given message with the given level. 172.21.248.245 ${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.245 ${ip_addr} Logs the given message with the given level. 172.21.248.245 ${VNF_IP_ADDR} ${ip_addr} Makes a variable available everywhere within the scope of the current suite. ${VNF_IP_ADDR} = 172.21.248.245 Get the mgmt IP address of the VNF of the NS. azure cluster_main daily hackfest_cloudinit 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} ${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.245: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 Sun Apr 21 02:35:23 UTC 2024 System load: 0.32 Processes: 106 Usage of /: 14.0% of 9.52GB Users logged in: 0 Memory usage: 20% IPv4 address for ens3: 172.21.248.245 Swap usage: 0% IPv4 address for ens4: 192.168.126.42 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@hfcloudinit-vnf1-mgmtvm-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. Check that the VNF is accessible via SSH in its mgmt IP address. azure cluster_main daily hackfest_cloudinit regression sanity ${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 '172.21.248.245: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 Sun Apr 21 02:35:26 UTC 2024 System load: 0.32 Processes: 106 Usage of /: 14.2% of 9.52GB Users logged in: 0 Memory usage: 21% IPv4 address for ens3: 172.21.248.245 Swap usage: 0% IPv4 address for ens4: 192.168.126.42 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: Sun Apr 21 02:35:24 2024 from 172.21.249.4 To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. ubuntu@hfcloudinit-vnf1-mgmtvm-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 cat /root/helloworld.txt'. Command exited with return code 0. ${stdout} = # My new helloworld file ${rc} = 0 ${rc} Logs the given message with the given level. 0 ${stdout} Logs the given message with the given level. # My new helloworld 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} ${stdout} = # My new helloworld file ${stdout} Logs the given message with the given level. # My new helloworld file 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 ${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} = +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------------------------+----------------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------------------------+------------------------------+--------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------------------------+------------------------------+--------------------------+ | 0f265ca8-3272-43bd-81f6-acc0ea998f41 | hfcloudinit-vnf2-dataVM-0 | ACTIVE | hfcloudinit-datanet=192.168.242.70; hfcloudinit-internal=192.168.60.135 | ubuntu20.04 | simple_requires-1-1-flv | | 6a654e5a-be61-4f35-b101-f7df3ec204c3 | hfcloudinit-vnf2-mgmtVM-0 | ACTIVE | hfcloudinit-internal=192.168.60.56; osm-ext=172.21.248.163 | ubuntu20.04 | simple_requires-1-1-flv | | 3937953c-7a14-43c4-a3a8-6d6e35b3c33f | hfcloudinit-vnf1-dataVM-0 | ACTIVE | hfcloudinit-datanet=192.168.242.26; hfcloudinit-internal=192.168.244.92 | ubuntu20.04 | simple_requires-1-1-flv | | 4c47c40f-2528-4051-902a-f244f5bed8ca | hfcloudinit-vnf1-mgmtVM-0 | ACTIVE | hfcloudinit-internal=192.168.244.233; osm-ext=172.21.249.49 | ubuntu20.04 | simple_requires-1-1-flv | | 9cfcfe9a-a571-4243-82d6-160176fe2f55 | hfcloudinit-vnf2-dataVM-0 | ACTIVE | hfcloudinit-datanet=192.168.241.93; hfcloudinit-internal=192.168.206.29 | ubuntu20.04 | simple_requires-1-1-flv | | 5a2ed749-6854-472e-a7cd-4d9e85e31dcb | hfcloudinit-vnf2-mgmtVM-0 | ACTIVE | hfcloudinit-internal=192.168.206.106; osm-ext=172.21.249.184 | ubuntu20.04 | simple_requires-1-1-flv | | 711bb1d5-90e9-45d5-8f5c-484bc76491c7 | hfcloudinit-vnf1-dataVM-0 | ACTIVE | hfcloudinit-datanet=192.168.241.111; hfcloudinit-internal=192.168.126.55 | ubuntu20.04 | simple_requires-1-1-flv | | 87cedb38-a436-4f76-b2d7-aa2a3dedc156 | hfcloudinit-vnf1-mgmtVM-0 | ACTIVE | hfcloudinit-internal=192.168.126.42; osm-ext=172.21.248.245 | ubuntu20.04 | simple_requires-1-1-flv | | 2f6dc039-f62a-42ce-9b28-fdd334949c07 | sa_02-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.249.160 | ubuntu20.04 | simple_requires-1-1-flv | | 9956371b-620e-44c0-a9a9-5a4cca97c378 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.89.40; osm-ext=172.21.248.75 | ubuntu18.04 | simple_requires-1-1-flv | | b2acd48a-4874-4c43-8eea-90a8a4f69945 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.89.138; osm-ext=172.21.249.192 | ubuntu18.04 | simple_requires-1-1-flv | | 622509f2-62cd-464f-8d06-b986841d5183 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.12 | ubuntu20.04 | several_volumes-VM-flv | | 34208468-51f1-425b-98b5-62499674c74f | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.252 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | 69acb808-ddde-44c1-a6c9-1cc0c3f1c3d5 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.207 | ubuntu20.04 | simple_requires-1-1-flv | | 170782e4-c2d2-4a9c-bfec-3a04721832d5 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.208 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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} = +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------------+-----------------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------------+------------------------------+--------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------------+------------------------------+--------------------------+ | 3a456b80-a6a8-49b0-95e2-2dffb1833493 | heal_03-charm_vnf-mgmtVM-2 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 0f265ca8-3272-43bd-81f6-acc0ea998f41 | hfcloudinit-vnf2-dataVM-0 | ACTIVE | hfcloudinit-datanet=192.168.242.70; hfcloudinit-internal=192.168.60.135 | ubuntu20.04 | simple_requires-1-1-flv | | 6a654e5a-be61-4f35-b101-f7df3ec204c3 | hfcloudinit-vnf2-mgmtVM-0 | ACTIVE | hfcloudinit-internal=192.168.60.56; osm-ext=172.21.248.163 | ubuntu20.04 | simple_requires-1-1-flv | | 3937953c-7a14-43c4-a3a8-6d6e35b3c33f | hfcloudinit-vnf1-dataVM-0 | ACTIVE | hfcloudinit-datanet=192.168.242.26; hfcloudinit-internal=192.168.244.92 | ubuntu20.04 | simple_requires-1-1-flv | | 4c47c40f-2528-4051-902a-f244f5bed8ca | hfcloudinit-vnf1-mgmtVM-0 | ACTIVE | hfcloudinit-internal=192.168.244.233; osm-ext=172.21.249.49 | ubuntu20.04 | simple_requires-1-1-flv | | 9cfcfe9a-a571-4243-82d6-160176fe2f55 | hfcloudinit-vnf2-dataVM-0 | ACTIVE | hfcloudinit-internal=192.168.206.29 | ubuntu20.04 | simple_requires-1-1-flv | | 5a2ed749-6854-472e-a7cd-4d9e85e31dcb | hfcloudinit-vnf2-mgmtVM-0 | ACTIVE | osm-ext=172.21.249.184 | ubuntu20.04 | simple_requires-1-1-flv | | 9956371b-620e-44c0-a9a9-5a4cca97c378 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.89.40; osm-ext=172.21.248.75 | ubuntu18.04 | simple_requires-1-1-flv | | b2acd48a-4874-4c43-8eea-90a8a4f69945 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.89.138; osm-ext=172.21.249.192 | ubuntu18.04 | simple_requires-1-1-flv | | 622509f2-62cd-464f-8d06-b986841d5183 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.12 | ubuntu20.04 | several_volumes-VM-flv | | 34208468-51f1-425b-98b5-62499674c74f | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.252 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | 69acb808-ddde-44c1-a6c9-1cc0c3f1c3d5 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.207 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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} = +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------+------------------------------+----------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------+------------------------------+--------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------+------------------------------+--------------------------+ | 3a456b80-a6a8-49b0-95e2-2dffb1833493 | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.89.184; osm-ext=172.21.249.228 | ubuntu18.04 | simple_requires-1-1-flv | | 0f265ca8-3272-43bd-81f6-acc0ea998f41 | hfcloudinit-vnf2-dataVM-0 | ACTIVE | hfcloudinit-internal=192.168.60.135 | ubuntu20.04 | simple_requires-1-1-flv | | 6a654e5a-be61-4f35-b101-f7df3ec204c3 | hfcloudinit-vnf2-mgmtVM-0 | ACTIVE | hfcloudinit-internal=192.168.60.56; osm-ext=172.21.248.163 | ubuntu20.04 | simple_requires-1-1-flv | | 3937953c-7a14-43c4-a3a8-6d6e35b3c33f | hfcloudinit-vnf1-dataVM-0 | ACTIVE | hfcloudinit-internal=192.168.244.92 | ubuntu20.04 | simple_requires-1-1-flv | | 4c47c40f-2528-4051-902a-f244f5bed8ca | hfcloudinit-vnf1-mgmtVM-0 | ACTIVE | hfcloudinit-internal=192.168.244.233; osm-ext=172.21.249.49 | ubuntu20.04 | simple_requires-1-1-flv | | 9956371b-620e-44c0-a9a9-5a4cca97c378 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.89.40; osm-ext=172.21.248.75 | ubuntu18.04 | simple_requires-1-1-flv | | b2acd48a-4874-4c43-8eea-90a8a4f69945 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.89.138; osm-ext=172.21.249.192 | ubuntu18.04 | simple_requires-1-1-flv | | 622509f2-62cd-464f-8d06-b986841d5183 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.12 | ubuntu20.04 | several_volumes-VM-flv | | 34208468-51f1-425b-98b5-62499674c74f | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.252 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | 69acb808-ddde-44c1-a6c9-1cc0c3f1c3d5 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.207 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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. 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-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 88aeac40-bc63-475b-b878-55133e3b5b48 ${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} = 88aeac40-bc63-475b-b878-55133e3b5b48 ${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 02f4a14e-b5ad-4ca8-a751-7eab7603453d ${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} = 02f4a14e-b5ad-4ca8-a751-7eab7603453d ${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} = 4da04749-04ad-4e45-aa2f-8d92a5c50fd8 ${stdout} Logs the given message with the given level. 4da04749-04ad-4e45-aa2f-8d92a5c50fd8 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 4da04749-04ad-4e45-aa2f-8d92a5c50fd8 ${ns_id} Logs the given message with the given level. 4da04749-04ad-4e45-aa2f-8d92a5c50fd8 ${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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+--------------------------+ | c094c0bc-93a0-473f-90c9-824662cc97fc | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | simple_requires-1-1-flv | | 3a456b80-a6a8-49b0-95e2-2dffb1833493 | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.89.184; osm-ext=172.21.249.228 | ubuntu18.04 | simple_requires-1-1-flv | | 0f265ca8-3272-43bd-81f6-acc0ea998f41 | hfcloudinit-vnf2-dataVM-0 | ACTIVE | | ubuntu20.04 | simple_requires-1-1-flv | | 6a654e5a-be61-4f35-b101-f7df3ec204c3 | hfcloudinit-vnf2-mgmtVM-0 | ACTIVE | osm-ext=172.21.248.163 | ubuntu20.04 | simple_requires-1-1-flv | | 9956371b-620e-44c0-a9a9-5a4cca97c378 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.89.40; osm-ext=172.21.248.75 | ubuntu18.04 | simple_requires-1-1-flv | | b2acd48a-4874-4c43-8eea-90a8a4f69945 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.89.138; osm-ext=172.21.249.192 | ubuntu18.04 | simple_requires-1-1-flv | | 622509f2-62cd-464f-8d06-b986841d5183 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.12 | ubuntu20.04 | several_volumes-VM-flv | | 34208468-51f1-425b-98b5-62499674c74f | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.252 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | 69acb808-ddde-44c1-a6c9-1cc0c3f1c3d5 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.207 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | 4da04749-04ad-4e45-aa2f-8d92a5c50fd8 | 2024-04-21T02:36:22 | BUILDING | INSTANTIATING (859239a9-d7be-43c0-9817-5b524d5015a8) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | 4da04749-04ad-4e45-aa2f-8d92a5c50fd8 | 2024-04-21T02:36:22 | BUILDING | INSTANTIATING (859239a9-d7be-43c0-9817-5b524d5015a8) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------------+-------------+-------------------------+ | f4c2ba66-081f-40f6-a397-a6eccd37e49d | hfmultivdu-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 8b0b60a5-34e2-4c26-b6d3-d8744537b76b | hfmultivdu-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 6bfe3ef3-08bb-467c-8a47-93add497055e | hfmultivdu-vnf1-dataVM-0 | ACTIVE | hfmultivdu-datanet=192.168.209.129; hfmultivdu-internal=192.168.232.149 | ubuntu20.04 | simple_requires-1-1-flv | | 0c17344b-8cff-4b9d-ad5f-e9503a60904c | hfmultivdu-vnf1-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.232.79; osm-ext=172.21.248.185 | ubuntu20.04 | simple_requires-1-1-flv | | c094c0bc-93a0-473f-90c9-824662cc97fc | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | simple_requires-1-1-flv | | 3a456b80-a6a8-49b0-95e2-2dffb1833493 | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.89.184; osm-ext=172.21.249.228 | ubuntu18.04 | simple_requires-1-1-flv | | 9956371b-620e-44c0-a9a9-5a4cca97c378 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.89.40; osm-ext=172.21.248.75 | ubuntu18.04 | simple_requires-1-1-flv | | b2acd48a-4874-4c43-8eea-90a8a4f69945 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.89.138; osm-ext=172.21.249.192 | ubuntu18.04 | simple_requires-1-1-flv | | 622509f2-62cd-464f-8d06-b986841d5183 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.12 | ubuntu20.04 | several_volumes-VM-flv | | 69acb808-ddde-44c1-a6c9-1cc0c3f1c3d5 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.207 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | 4da04749-04ad-4e45-aa2f-8d92a5c50fd8 | 2024-04-21T02:36:22 | BUILDING | INSTANTIATING (859239a9-d7be-43c0-9817-5b524d5015a8) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | 4da04749-04ad-4e45-aa2f-8d92a5c50fd8 | 2024-04-21T02:36:22 | BUILDING | INSTANTIATING (859239a9-d7be-43c0-9817-5b524d5015a8) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------------+-------------+-------------------------+ | c78de180-aae3-4c2e-a7e2-5b5ccd468773 | hfmultivdu-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 6dc8463d-12f7-49ef-8187-cfef5370fb1c | hfmultivdu-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 463f3827-f05e-4ffe-8a1d-5f9b99bf6167 | hfmultivdu-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 62926042-5cb4-4772-b862-b244bcaae9d5 | hfmultivdu-vnf1-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.100.226; osm-ext=172.21.249.91 | ubuntu20.04 | simple_requires-1-1-flv | | f4c2ba66-081f-40f6-a397-a6eccd37e49d | hfmultivdu-vnf2-dataVM-0 | ACTIVE | hfmultivdu-datanet=192.168.209.252; hfmultivdu-internal=192.168.144.60 | ubuntu20.04 | simple_requires-1-1-flv | | 8b0b60a5-34e2-4c26-b6d3-d8744537b76b | hfmultivdu-vnf2-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.144.161; osm-ext=172.21.248.197 | ubuntu20.04 | simple_requires-1-1-flv | | 6bfe3ef3-08bb-467c-8a47-93add497055e | hfmultivdu-vnf1-dataVM-0 | ACTIVE | hfmultivdu-datanet=192.168.209.129; hfmultivdu-internal=192.168.232.149 | ubuntu20.04 | simple_requires-1-1-flv | | 0c17344b-8cff-4b9d-ad5f-e9503a60904c | hfmultivdu-vnf1-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.232.79; osm-ext=172.21.248.185 | ubuntu20.04 | simple_requires-1-1-flv | | c094c0bc-93a0-473f-90c9-824662cc97fc | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | simple_requires-1-1-flv | | 3a456b80-a6a8-49b0-95e2-2dffb1833493 | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.89.184; osm-ext=172.21.249.228 | ubuntu18.04 | simple_requires-1-1-flv | | 9956371b-620e-44c0-a9a9-5a4cca97c378 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.89.40; osm-ext=172.21.248.75 | ubuntu18.04 | simple_requires-1-1-flv | | b2acd48a-4874-4c43-8eea-90a8a4f69945 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.89.138; osm-ext=172.21.249.192 | ubuntu18.04 | simple_requires-1-1-flv | | 622509f2-62cd-464f-8d06-b986841d5183 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.12 | ubuntu20.04 | several_volumes-VM-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | date ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | hfmultivdu | 4da04749-04ad-4e45-aa2f-8d92a5c50fd8 | 2024-04-21T02:36:22 | 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 | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------------+-------------+-------------------------+ | c78de180-aae3-4c2e-a7e2-5b5ccd468773 | hfmultivdu-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 6dc8463d-12f7-49ef-8187-cfef5370fb1c | hfmultivdu-vnf2-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.122.75; osm-ext=172.21.249.225 | ubuntu20.04 | simple_requires-1-1-flv | | 463f3827-f05e-4ffe-8a1d-5f9b99bf6167 | hfmultivdu-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 62926042-5cb4-4772-b862-b244bcaae9d5 | hfmultivdu-vnf1-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.100.226; osm-ext=172.21.249.91 | ubuntu20.04 | simple_requires-1-1-flv | | f4c2ba66-081f-40f6-a397-a6eccd37e49d | hfmultivdu-vnf2-dataVM-0 | ACTIVE | hfmultivdu-datanet=192.168.209.252; hfmultivdu-internal=192.168.144.60 | ubuntu20.04 | simple_requires-1-1-flv | | 8b0b60a5-34e2-4c26-b6d3-d8744537b76b | hfmultivdu-vnf2-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.144.161; osm-ext=172.21.248.197 | ubuntu20.04 | simple_requires-1-1-flv | | 6bfe3ef3-08bb-467c-8a47-93add497055e | hfmultivdu-vnf1-dataVM-0 | ACTIVE | hfmultivdu-datanet=192.168.209.129; hfmultivdu-internal=192.168.232.149 | ubuntu20.04 | simple_requires-1-1-flv | | 0c17344b-8cff-4b9d-ad5f-e9503a60904c | hfmultivdu-vnf1-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.232.79; osm-ext=172.21.248.185 | ubuntu20.04 | simple_requires-1-1-flv | | c094c0bc-93a0-473f-90c9-824662cc97fc | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | simple_requires-1-1-flv | | 3a456b80-a6a8-49b0-95e2-2dffb1833493 | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.89.184; osm-ext=172.21.249.228 | ubuntu18.04 | simple_requires-1-1-flv | | 9956371b-620e-44c0-a9a9-5a4cca97c378 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.89.40; osm-ext=172.21.248.75 | ubuntu18.04 | simple_requires-1-1-flv | | b2acd48a-4874-4c43-8eea-90a8a4f69945 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.89.138; osm-ext=172.21.249.192 | ubuntu18.04 | simple_requires-1-1-flv | | 622509f2-62cd-464f-8d06-b986841d5183 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.12 | ubuntu20.04 | several_volumes-VM-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | date ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | hfmultivdu | 4da04749-04ad-4e45-aa2f-8d92a5c50fd8 | 2024-04-21T02:36:22 | 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} = 4da04749-04ad-4e45-aa2f-8d92a5c50fd8 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 4da04749-04ad-4e45-aa2f-8d92a5c50fd8 ${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. azure cluster_main daily hackfest_multivdu 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 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 4da04749-04ad-4e45-aa2f-8d92a5c50fd8 | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.248.185 ${stdout} Logs the given message with the given level. 172.21.248.185 ${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.185 ${ip_addr} Logs the given message with the given level. 172.21.248.185 ${VNF_IP_ADDR} ${ip_addr} Makes a variable available everywhere within the scope of the current suite. ${VNF_IP_ADDR} = 172.21.248.185 Get the mgmt IP address of the VNF of the NS. azure cluster_main daily hackfest_multivdu regression ${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.185 2>&1'. ${rc} = 0 ${stdout} = PING 172.21.248.185 (172.21.248.185) 56(84) bytes of data. 64 bytes from 172.21.248.185: icmp_seq=1 ttl=63 time=2.48 ms 64 bytes from 172.21.248.185: icmp_seq=2 ttl=63 time=1.10 ms --- 172.21.248.185... ${stdout} Logs the given message with the given level. PING 172.21.248.185 (172.21.248.185) 56(84) bytes of data. 64 bytes from 172.21.248.185: icmp_seq=1 ttl=63 time=2.48 ms 64 bytes from 172.21.248.185: icmp_seq=2 ttl=63 time=1.10 ms --- 172.21.248.185 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1002ms rtt min/avg/max/mdev = 1.103/1.791/2.480/0.688 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_multivdu regression ${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 '172.21.248.185: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 Sun Apr 21 02:38:31 UTC 2024 System load: 0.54 Processes: 107 Usage of /: 14.0% of 9.52GB Users logged in: 0 Memory usage: 20% IPv4 address for ens3: 172.21.248.185 Swap usage: 0% IPv4 address for ens4: 192.168.232.79 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@hfmultivdu-vnf1-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. Check that the VNF is accessible via SSH in its mgmt IP address. azure cluster_main daily hackfest_multivdu 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 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 | +--------------------------------------+-----------------------------------------------+--------+------------------------------------------------------------------------------------------------------------+------------------------------+---------------------------+ | 1bf310c3-3ca4-4068-b691-6b37e80d7de2 | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | ACTIVE | osm-ext=172.21.249.25; sa_08-vnf_with_v-external=192.168.135.20; sa_08-vnf_with_v-internal=192.168.132.103 | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 20e6a879-db5e-45ab-9190-b741fd05accd | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.130 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | c78de180-aae3-4c2e-a7e2-5b5ccd468773 | hfmultivdu-vnf2-dataVM-0 | ACTIVE | hfmultivdu-datanet=192.168.245.170; hfmultivdu-internal=192.168.122.42 | ubuntu20.04 | simple_requires-1-1-flv | | 6dc8463d-12f7-49ef-8187-cfef5370fb1c | hfmultivdu-vnf2-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.122.75; osm-ext=172.21.249.225 | ubuntu20.04 | simple_requires-1-1-flv | | 463f3827-f05e-4ffe-8a1d-5f9b99bf6167 | hfmultivdu-vnf1-dataVM-0 | ACTIVE | hfmultivdu-datanet=192.168.245.89; hfmultivdu-internal=192.168.100.209 | ubuntu20.04 | simple_requires-1-1-flv | | 62926042-5cb4-4772-b862-b244bcaae9d5 | hfmultivdu-vnf1-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.100.226; osm-ext=172.21.249.91 | ubuntu20.04 | simple_requires-1-1-flv | | f4c2ba66-081f-40f6-a397-a6eccd37e49d | hfmultivdu-vnf2-dataVM-0 | ACTIVE | hfmultivdu-datanet=192.168.209.252; hfmultivdu-internal=192.168.144.60 | ubuntu20.04 | simple_requires-1-1-flv | | 8b0b60a5-34e2-4c26-b6d3-d8744537b76b | hfmultivdu-vnf2-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.144.161; osm-ext=172.21.248.197 | ubuntu20.04 | simple_requires-1-1-flv | | 6bfe3ef3-08bb-467c-8a47-93add497055e | hfmultivdu-vnf1-dataVM-0 | ACTIVE | hfmultivdu-datanet=192.168.209.129; hfmultivdu-internal=192.168.232.149 | ubuntu20.04 | simple_requires-1-1-flv | | 0c17344b-8cff-4b9d-ad5f-e9503a60904c | hfmultivdu-vnf1-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.232.79; osm-ext=172.21.248.185 | ubuntu20.04 | simple_requires-1-1-flv | | c094c0bc-93a0-473f-90c9-824662cc97fc | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | simple_requires-1-1-flv | | 3a456b80-a6a8-49b0-95e2-2dffb1833493 | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.89.184; osm-ext=172.21.249.228 | ubuntu18.04 | simple_requires-1-1-flv | | 9956371b-620e-44c0-a9a9-5a4cca97c378 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.89.40; osm-ext=172.21.248.75 | ubuntu18.04 | simple_requires-1-1-flv | | b2acd48a-4874-4c43-8eea-90a8a4f69945 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.89.138; osm-ext=172.21.249.192 | ubuntu18.04 | simple_requires-1-1-flv | | 622509f2-62cd-464f-8d06-b986841d5183 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.12 | ubuntu20.04 | several_volumes-VM-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | +--------------------------------------+-----------------------------------------------+--------+------------------------------------------------------------------------------------------------------------+------------------------------+---------------------------+ | 1bf310c3-3ca4-4068-b691-6b37e80d7de2 | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | ACTIVE | osm-ext=172.21.249.25; sa_08-vnf_with_v-external=192.168.135.20; sa_08-vnf_with_v-internal=192.168.132.103 | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 20e6a879-db5e-45ab-9190-b741fd05accd | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.130 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | c78de180-aae3-4c2e-a7e2-5b5ccd468773 | hfmultivdu-vnf2-dataVM-0 | ACTIVE | hfmultivdu-datanet=192.168.245.170; hfmultivdu-internal=192.168.122.42 | ubuntu20.04 | simple_requires-1-1-flv | | 6dc8463d-12f7-49ef-8187-cfef5370fb1c | hfmultivdu-vnf2-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.122.75; osm-ext=172.21.249.225 | ubuntu20.04 | simple_requires-1-1-flv | | 463f3827-f05e-4ffe-8a1d-5f9b99bf6167 | hfmultivdu-vnf1-dataVM-0 | ACTIVE | hfmultivdu-datanet=192.168.245.89; hfmultivdu-internal=192.168.100.209 | ubuntu20.04 | simple_requires-1-1-flv | | 62926042-5cb4-4772-b862-b244bcaae9d5 | hfmultivdu-vnf1-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.100.226; osm-ext=172.21.249.91 | ubuntu20.04 | simple_requires-1-1-flv | | f4c2ba66-081f-40f6-a397-a6eccd37e49d | hfmultivdu-vnf2-dataVM-0 | ACTIVE | | ubuntu20.04 | simple_requires-1-1-flv | | 8b0b60a5-34e2-4c26-b6d3-d8744537b76b | hfmultivdu-vnf2-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.144.161; osm-ext=172.21.248.197 | ubuntu20.04 | simple_requires-1-1-flv | | c094c0bc-93a0-473f-90c9-824662cc97fc | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | simple_requires-1-1-flv | | 3a456b80-a6a8-49b0-95e2-2dffb1833493 | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.89.184; osm-ext=172.21.249.228 | ubuntu18.04 | simple_requires-1-1-flv | | 9956371b-620e-44c0-a9a9-5a4cca97c378 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.89.40; osm-ext=172.21.248.75 | ubuntu18.04 | simple_requires-1-1-flv | | b2acd48a-4874-4c43-8eea-90a8a4f69945 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.89.138; osm-ext=172.21.249.192 | ubuntu18.04 | simple_requires-1-1-flv | | 622509f2-62cd-464f-8d06-b986841d5183 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.12 | ubuntu20.04 | several_volumes-VM-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | +--------------------------------------+-----------------------------------------------+--------+------------------------------------------------------------------------------------------------------------+------------------------------+---------------------------+ | 1bf310c3-3ca4-4068-b691-6b37e80d7de2 | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | ACTIVE | osm-ext=172.21.249.25; sa_08-vnf_with_v-external=192.168.135.20; sa_08-vnf_with_v-internal=192.168.132.103 | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 20e6a879-db5e-45ab-9190-b741fd05accd | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.130 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | c78de180-aae3-4c2e-a7e2-5b5ccd468773 | hfmultivdu-vnf2-dataVM-0 | ACTIVE | hfmultivdu-datanet=192.168.245.170; hfmultivdu-internal=192.168.122.42 | ubuntu20.04 | simple_requires-1-1-flv | | 6dc8463d-12f7-49ef-8187-cfef5370fb1c | hfmultivdu-vnf2-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.122.75; osm-ext=172.21.249.225 | ubuntu20.04 | simple_requires-1-1-flv | | 463f3827-f05e-4ffe-8a1d-5f9b99bf6167 | hfmultivdu-vnf1-dataVM-0 | ACTIVE | hfmultivdu-datanet=192.168.245.89; hfmultivdu-internal=192.168.100.209 | ubuntu20.04 | simple_requires-1-1-flv | | 62926042-5cb4-4772-b862-b244bcaae9d5 | hfmultivdu-vnf1-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.100.226; osm-ext=172.21.249.91 | ubuntu20.04 | simple_requires-1-1-flv | | c094c0bc-93a0-473f-90c9-824662cc97fc | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | simple_requires-1-1-flv | | 3a456b80-a6a8-49b0-95e2-2dffb1833493 | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.89.184; osm-ext=172.21.249.228 | ubuntu18.04 | simple_requires-1-1-flv | | 9956371b-620e-44c0-a9a9-5a4cca97c378 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.89.40; osm-ext=172.21.248.75 | ubuntu18.04 | simple_requires-1-1-flv | | b2acd48a-4874-4c43-8eea-90a8a4f69945 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.89.138; osm-ext=172.21.249.192 | ubuntu18.04 | simple_requires-1-1-flv | | 622509f2-62cd-464f-8d06-b986841d5183 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.12 | ubuntu20.04 | several_volumes-VM-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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. 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-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 d3f5524d-b227-4c7f-ba85-66ab87ae0cb3 ${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} = d3f5524d-b227-4c7f-ba85-66ab87ae0cb3 ${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 e73c99b2-d16f-4481-848d-84800303efb8 ${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} = e73c99b2-d16f-4481-848d-84800303efb8 ${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 ffaa0dd5-4fbd-4e11-8177-bfbb7cd46815 ${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} = ffaa0dd5-4fbd-4e11-8177-bfbb7cd46815 ${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} = 44747bf2-cfaf-4bfb-a195-a87a9c4aeff3 ${stdout} Logs the given message with the given level. 44747bf2-cfaf-4bfb-a195-a87a9c4aeff3 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 44747bf2-cfaf-4bfb-a195-a87a9c4aeff3 ${ns_id} Logs the given message with the given level. 44747bf2-cfaf-4bfb-a195-a87a9c4aeff3 ${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 | +--------------------------------------+-----------------------------------------------+--------+------------------------------------------------------------------------------------------------------------+------------------------------+---------------------------+ | 1bf310c3-3ca4-4068-b691-6b37e80d7de2 | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | ACTIVE | osm-ext=172.21.249.25; sa_08-vnf_with_v-external=192.168.135.20; sa_08-vnf_with_v-internal=192.168.132.103 | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 20e6a879-db5e-45ab-9190-b741fd05accd | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.130 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | c78de180-aae3-4c2e-a7e2-5b5ccd468773 | hfmultivdu-vnf2-dataVM-0 | ACTIVE | hfmultivdu-internal=192.168.122.42 | ubuntu20.04 | simple_requires-1-1-flv | | 6dc8463d-12f7-49ef-8187-cfef5370fb1c | hfmultivdu-vnf2-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.122.75; osm-ext=172.21.249.225 | ubuntu20.04 | simple_requires-1-1-flv | | c094c0bc-93a0-473f-90c9-824662cc97fc | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | simple_requires-1-1-flv | | 3a456b80-a6a8-49b0-95e2-2dffb1833493 | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.89.184; osm-ext=172.21.249.228 | ubuntu18.04 | simple_requires-1-1-flv | | 9956371b-620e-44c0-a9a9-5a4cca97c378 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.89.40; osm-ext=172.21.248.75 | ubuntu18.04 | simple_requires-1-1-flv | | b2acd48a-4874-4c43-8eea-90a8a4f69945 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.89.138; osm-ext=172.21.249.192 | ubuntu18.04 | simple_requires-1-1-flv | | 622509f2-62cd-464f-8d06-b986841d5183 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.12 | ubuntu20.04 | several_volumes-VM-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | 44747bf2-cfaf-4bfb-a195-a87a9c4aeff3 | 2024-04-21T02:39:28 | BUILDING | INSTANTIATING (c72f7439-7e7b-406a-b9a5-839159131be3) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | 44747bf2-cfaf-4bfb-a195-a87a9c4aeff3 | 2024-04-21T02:39:28 | BUILDING | INSTANTIATING (c72f7439-7e7b-406a-b9a5-839159131be3) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+-----------------------------------------------+---------+--------------------------------------------------------+------------------------------+---------------------------+ | 362ba25c-d35a-4159-bce7-d8373b91bff2 | heal_01-manual_scale_vnf-mgmtVM-1 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 6eb81693-4dcf-4cc8-8db8-e4fc975ec6b6 | heal_01-manual_scale_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.41.164; osm-ext=172.21.248.76 | ubuntu18.04 | simple_requires-1-1-flv | | 181e2b32-d1de-4a0e-a81a-0cde3e9a7cb2 | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.226 | ubuntu20.04 | several_volumes-VM-flv | | 1bf310c3-3ca4-4068-b691-6b37e80d7de2 | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | ACTIVE | | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 20e6a879-db5e-45ab-9190-b741fd05accd | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.130 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | c094c0bc-93a0-473f-90c9-824662cc97fc | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | simple_requires-1-1-flv | | 3a456b80-a6a8-49b0-95e2-2dffb1833493 | heal_03-charm_vnf-mgmtVM-2 | SHUTOFF | heal_03-datanet=192.168.89.184; osm-ext=172.21.249.228 | ubuntu18.04 | simple_requires-1-1-flv | | 9956371b-620e-44c0-a9a9-5a4cca97c378 | heal_03-charm_vnf-mgmtVM-1 | SHUTOFF | heal_03-datanet=192.168.89.40; osm-ext=172.21.248.75 | ubuntu18.04 | simple_requires-1-1-flv | | b2acd48a-4874-4c43-8eea-90a8a4f69945 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.89.138; osm-ext=172.21.249.192 | ubuntu18.04 | simple_requires-1-1-flv | | 622509f2-62cd-464f-8d06-b986841d5183 | heal_03-several_volumes_-several_volumes-VM-0 | SHUTOFF | osm-ext=172.21.249.12 | ubuntu20.04 | several_volumes-VM-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | 44747bf2-cfaf-4bfb-a195-a87a9c4aeff3 | 2024-04-21T02:39:28 | BUILDING | INSTANTIATING (c72f7439-7e7b-406a-b9a5-839159131be3) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | 44747bf2-cfaf-4bfb-a195-a87a9c4aeff3 | 2024-04-21T02:39:28 | BUILDING | INSTANTIATING (c72f7439-7e7b-406a-b9a5-839159131be3) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+--------------------------+ | 119eac9c-1454-491b-9279-a83a62b0fe67 | heal_01-manual_scale_vnf-mgmtVM-1 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 606ad643-3329-413c-acb8-feeb48bac3e6 | heal_03-charm_vnf-mgmtVM-2 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 32077ef5-0dd4-435f-b788-70ce7c5f8868 | heal_01-manual_scale_vnf-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 2269ad7a-de42-4a02-ac3c-ee3d24bd76eb | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.61 | ubuntu20.04 | several_volumes-VM-flv | | 70410d57-025c-488b-bcf6-a6dde7c52904 | heal_03-charm_vnf-mgmtVM-1 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 7c8164c0-f7f4-4ca6-a528-58a608ce44e0 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.12 | ubuntu20.04 | several_volumes-VM-flv | | 362ba25c-d35a-4159-bce7-d8373b91bff2 | heal_01-manual_scale_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.41.43; osm-ext=172.21.249.219 | ubuntu18.04 | simple_requires-1-1-flv | | 6eb81693-4dcf-4cc8-8db8-e4fc975ec6b6 | heal_01-manual_scale_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.41.164; osm-ext=172.21.248.76 | ubuntu18.04 | simple_requires-1-1-flv | | 181e2b32-d1de-4a0e-a81a-0cde3e9a7cb2 | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.226 | ubuntu20.04 | several_volumes-VM-flv | | 20e6a879-db5e-45ab-9190-b741fd05accd | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.130 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | c094c0bc-93a0-473f-90c9-824662cc97fc | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | simple_requires-1-1-flv | | b2acd48a-4874-4c43-8eea-90a8a4f69945 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.89.138; osm-ext=172.21.249.192 | ubuntu18.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | date ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | heal_01 | 44747bf2-cfaf-4bfb-a195-a87a9c4aeff3 | 2024-04-21T02:39:28 | 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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+--------------------------+ | fd5c39b9-7b83-4b26-acea-9be7c9108cbc | slicebasic.slice-edge-ubuntu_slice-VM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 119eac9c-1454-491b-9279-a83a62b0fe67 | heal_01-manual_scale_vnf-mgmtVM-1 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 606ad643-3329-413c-acb8-feeb48bac3e6 | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.89.184; osm-ext=172.21.249.228 | ubuntu18.04 | simple_requires-1-1-flv | | 32077ef5-0dd4-435f-b788-70ce7c5f8868 | heal_01-manual_scale_vnf-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 2269ad7a-de42-4a02-ac3c-ee3d24bd76eb | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.61 | ubuntu20.04 | several_volumes-VM-flv | | 70410d57-025c-488b-bcf6-a6dde7c52904 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.89.40; osm-ext=172.21.248.75 | ubuntu18.04 | simple_requires-1-1-flv | | 7c8164c0-f7f4-4ca6-a528-58a608ce44e0 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.12 | ubuntu20.04 | several_volumes-VM-flv | | 362ba25c-d35a-4159-bce7-d8373b91bff2 | heal_01-manual_scale_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.41.43; osm-ext=172.21.249.219 | ubuntu18.04 | simple_requires-1-1-flv | | 6eb81693-4dcf-4cc8-8db8-e4fc975ec6b6 | heal_01-manual_scale_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.41.164; osm-ext=172.21.248.76 | ubuntu18.04 | simple_requires-1-1-flv | | 181e2b32-d1de-4a0e-a81a-0cde3e9a7cb2 | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.226 | ubuntu20.04 | several_volumes-VM-flv | | 20e6a879-db5e-45ab-9190-b741fd05accd | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.130 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | c094c0bc-93a0-473f-90c9-824662cc97fc | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | simple_requires-1-1-flv | | b2acd48a-4874-4c43-8eea-90a8a4f69945 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.89.138; osm-ext=172.21.249.192 | ubuntu18.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | date ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | heal_01 | 44747bf2-cfaf-4bfb-a195-a87a9c4aeff3 | 2024-04-21T02:39:28 | 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} = 44747bf2-cfaf-4bfb-a195-a87a9c4aeff3 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 44747bf2-cfaf-4bfb-a195-a87a9c4aeff3 Instantiate NS for the testsuite. cluster_heal daily heal_01 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_01 | awk '{print $4}' 2>&1'. ${rc} = 0 ${stdout} = 44747bf2-cfaf-4bfb-a195-a87a9c4aeff3 ${stdout} Logs the given message with the given level. 44747bf2-cfaf-4bfb-a195-a87a9c4aeff3 ${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} = 44747bf2-cfaf-4bfb-a195-a87a9c4aeff3 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 44747bf2-cfaf-4bfb-a195-a87a9c4aeff3 Get NS identifier. cleanup cluster_heal daily heal_01 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 44747bf2-cfaf-4bfb-a195-a87a9c4aeff3 | grep 44747bf2-cfaf-4bfb-a195-a87a9c4aeff3 | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | 7731221d-b4a0-4080-8fa7-8ce77a85f55f c961d051-ac01-4f47-84f3-c92c90889815 ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ 7731221d-b4a0-4080-8fa7-8ce77a85f55f | c961d051-ac01-4f47-84f3-c92c90889815 ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List length is 2 and it contains following items: 0: 7731221d-b4a0-4080-8fa7-8ce77a85f55f 1: c961d051-ac01-4f47-84f3-c92c90889815 @{vnf_list} @{vnf_id_list} = [ 7731221d-b4a0-4080-8fa7-8ce77a85f55f | c961d051-ac01-4f47-84f3-c92c90889815 ] ${vnf_id_list} Logs the given message with the given level. ['7731221d-b4a0-4080-8fa7-8ce77a85f55f', 'c961d051-ac01-4f47-84f3-c92c90889815'] ${vnf_id} @{vnf_id_list} 7731221d-b4a0-4080-8fa7-8ce77a85f55f ${vnf_id} Logs the given message with the given level. 7731221d-b4a0-4080-8fa7-8ce77a85f55f ${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 7731221d-b4a0-4080-8fa7-8ce77a85f55f --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 181e2b32-d1de-4a0e-a81a-0cde3e9a7cb2 ${stdout} Logs the given message with the given level. 181e2b32-d1de-4a0e-a81a-0cde3e9a7cb2 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 181e2b32-d1de-4a0e-a81a-0cde3e9a7cb2 @{vdu_ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{vdu_ids} = [ 181e2b32-d1de-4a0e-a81a-0cde3e9a7cb2 ] ${VIM_VDUS} @{vdu_ids} Adds ``values`` to the end of ``list``. c961d051-ac01-4f47-84f3-c92c90889815 ${vnf_id} Logs the given message with the given level. c961d051-ac01-4f47-84f3-c92c90889815 ${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 c961d051-ac01-4f47-84f3-c92c90889815 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 6eb81693-4dcf-4cc8-8db8-e4fc975ec6b6 362ba25c-d35a-4159-bce7-d8373b91bff2 ${stdout} Logs the given message with the given level. 6eb81693-4dcf-4cc8-8db8-e4fc975ec6b6 362ba25c-d35a-4159-bce7-d8373b91bff2 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 6eb81693-4dcf-4cc8-8db8-e4fc975ec6b6 362ba25c-d35a-4159-bce7-d8373b91bff2 @{vdu_ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{vdu_ids} = [ 6eb81693-4dcf-4cc8-8db8-e4fc975ec6b6 | 362ba25c-d35a-4159-bce7-d8373b91bff2 ] ${VIM_VDUS} @{vdu_ids} Adds ``values`` to the end of ``list``. ${vdu_id} @{VIM_VDUS} 181e2b32-d1de-4a0e-a81a-0cde3e9a7cb2 ${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 181e2b32-d1de-4a0e-a81a-0cde3e9a7cb2 -c volumes_attached -f value 2>&1'. ${rc} = 0 ${stdout} = [{'device': None, 'id': '7f6b8b5b-bcee-45fc-98ab-82a0ca8bd606', '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': '7f6b8b5b-bcee-45fc-98ab-82a0ca8bd606', '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': '7f6b8b5b-bcee-45fc-98ab-82a0ca8bd606', '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} = ['7f6b8b5b-bcee-45fc-98ab-82a0ca8bd606'] ${VIM_VOLUMES} ${match}[0] Adds ``values`` to the end of ``list``. 6eb81693-4dcf-4cc8-8db8-e4fc975ec6b6 ${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 6eb81693-4dcf-4cc8-8db8-e4fc975ec6b6 -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``. 362ba25c-d35a-4159-bce7-d8373b91bff2 ${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 362ba25c-d35a-4159-bce7-d8373b91bff2 -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. 181e2b32-d1de-4a0e-a81a-0cde3e9a7cb2 6eb81693-4dcf-4cc8-8db8-e4fc975ec6b6 362ba25c-d35a-4159-bce7-d8373b91bff2 @{VIM_VOLUMES} Logs the given messages as separate entries using the INFO level. 7f6b8b5b-bcee-45fc-98ab-82a0ca8bd606 Retrieve all VMs and volumes from the NS and stores them in VIM_VDUS and VIM_VOLUMES lists. cluster_heal daily heal_01 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 44747bf2-cfaf-4bfb-a195-a87a9c4aeff3 | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.248.226 ${stdout} Logs the given message with the given level. 172.21.248.226 ${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.226 ${ip_addr} Logs the given message with the given level. 172.21.248.226 ${VNF_VOLUMES_IP_ADDR} ${ip_addr} Makes a variable available everywhere within the scope of the current suite. ${VNF_VOLUMES_IP_ADDR} = 172.21.248.226 ${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 44747bf2-cfaf-4bfb-a195-a87a9c4aeff3 | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = 7731221d-b4a0-4080-8fa7-8ce77a85f55f ${stdout} Logs the given message with the given level. 7731221d-b4a0-4080-8fa7-8ce77a85f55f ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${vnf_id} = 7731221d-b4a0-4080-8fa7-8ce77a85f55f ${VNF_VOLUMES_ID} ${vnf_id} Makes a variable available everywhere within the scope of the current suite. ${VNF_VOLUMES_ID} = 7731221d-b4a0-4080-8fa7-8ce77a85f55f ${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 7731221d-b4a0-4080-8fa7-8ce77a85f55f --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 181e2b32-d1de-4a0e-a81a-0cde3e9a7cb2 ${stdout} Logs the given message with the given level. 181e2b32-d1de-4a0e-a81a-0cde3e9a7cb2 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 181e2b32-d1de-4a0e-a81a-0cde3e9a7cb2 ${VDU_VOLUMES_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${VDU_VOLUMES_ID} = 181e2b32-d1de-4a0e-a81a-0cde3e9a7cb2 ${VDU_VOLUMES_ID} Logs the given message with the given level. 181e2b32-d1de-4a0e-a81a-0cde3e9a7cb2 @{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 7731221d-b4a0-4080-8fa7-8ce77a85f55f --literal | yq -r '.vdur[].interfaces[]."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 172.21.248.226 ${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.248.226 ] @{ip} @{VOLUMES_IP_LIST} = [ 172.21.248.226 ] @{VOLUMES_IP_LIST} @{VOLUMES_IP_LIST} Makes a variable available everywhere within the scope of the current suite. @{VOLUMES_IP_LIST} = [ 172.21.248.226 ] @{VOLUMES_IP_LIST} Logs the given message with the given level. 172.21.248.226 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 ${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. ${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 181e2b32-d1de-4a0e-a81a-0cde3e9a7cb2 -c volumes_attached -f value 2>&1'. ${rc} = 0 ${stdout} = [{'device': None, 'id': '7f6b8b5b-bcee-45fc-98ab-82a0ca8bd606', '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': '7f6b8b5b-bcee-45fc-98ab-82a0ca8bd606', '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': '7f6b8b5b-bcee-45fc-98ab-82a0ca8bd606', '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} = ['7f6b8b5b-bcee-45fc-98ab-82a0ca8bd606'] ${VOLUME_ID} ${match}[0] Makes a variable available everywhere within the scope of the current suite. ${VOLUME_ID} = 7f6b8b5b-bcee-45fc-98ab-82a0ca8bd606 Get number of volumes from the VNF descriptor and get the attached volumes from the VDU instance. cluster_heal daily heal_01 regression ${VNF_VOLUMES_IP_ADDR} msg=VNF is not available Fails unless the given variable exists within the current scope. 20 seconds Wait for SSH daemon to be up Pauses the test executed for the given time. Slept 20 seconds Wait for SSH daemon to be up ${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. ${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.226: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 Sun Apr 21 02:41:26 UTC 2024 System load: 0.17 Processes: 104 Usage of /: 14.0% of 9.52GB Users logged in: 0 Memory usage: 21% IPv4 address for ens3: 172.21.248.226 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@heal-01-several-volumes--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 disks in the VDU meets the expected one. cluster_heal daily heal_01 regression ${VDU_VOLUMES_ID} msg=VDU is not available Fails unless the given variable exists within the current scope. ${VDU_VOLUMES_ID} Delete a server ${server_id} Verifies that the given item is not empty. Length is 36 ${rc} ${stdout} openstack server delete ${server_id} Runs the given command in the system and returns the RC and output. Running command 'openstack server delete 181e2b32-d1de-4a0e-a81a-0cde3e9a7cb2 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} 20 Pauses the test executed for the given time. Slept 20 seconds Manually delete the VM in Openstack. cluster_heal daily heal_01 regression ${VNF_VOLUMES_ID} msg=VNF is not available Fails unless the given variable exists within the current scope. ${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. ${ns_name} Verifies that the given item is not empty. Length is 36 ${params} Verifies that the given item is not empty. Length is 100 ${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 44747bf2-cfaf-4bfb-a195-a87a9c4aeff3 --vnf 7731221d-b4a0-4080-8fa7-8ce77a85f55f --cause "Heal VM of volumes_vnf" --vdu several_volumes-VM 2>&1'. ${rc} = 0 ${stdout} = a28a626b-b0cc-44dc-93e7-0b12979313e3 ${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 a28a626b-b0cc-44dc-93e7-0b12979313e3 --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 a28a626b-b0cc-44dc-93e7-0b12979313e3 ${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 a28a626b-b0cc-44dc-93e7-0b12979313e3 --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 a28a626b-b0cc-44dc-93e7-0b12979313e3 ${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 a28a626b-b0cc-44dc-93e7-0b12979313e3 --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 a28a626b-b0cc-44dc-93e7-0b12979313e3 --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} Manually heal the VNF in order to re-create the deleted VM. cluster_heal daily heal_01 regression ${VNF_VOLUMES_ID} msg=VNF is not available Fails unless the given variable exists within the current scope. @{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 7731221d-b4a0-4080-8fa7-8ce77a85f55f --literal | yq -r '.vdur[].interfaces[]."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 172.21.248.226 ${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.248.226 ] @{ip} @{ip_list} = [ 172.21.248.226 ] @{ip_list} Logs the given message with the given level. 172.21.248.226 ${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. ${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 7731221d-b4a0-4080-8fa7-8ce77a85f55f --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 62946b69-9528-4a06-bab5-f43158161365 ${stdout} Logs the given message with the given level. 62946b69-9528-4a06-bab5-f43158161365 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 62946b69-9528-4a06-bab5-f43158161365 ${id} Logs the given message with the given level. 62946b69-9528-4a06-bab5-f43158161365 ${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. ${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 62946b69-9528-4a06-bab5-f43158161365 -c volumes_attached -f value 2>&1'. ${rc} = 0 ${stdout} = [{'device': None, 'id': '7f6b8b5b-bcee-45fc-98ab-82a0ca8bd606', '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': '7f6b8b5b-bcee-45fc-98ab-82a0ca8bd606', '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': '7f6b8b5b-bcee-45fc-98ab-82a0ca8bd606', '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} = ['7f6b8b5b-bcee-45fc-98ab-82a0ca8bd606'] ${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. Slept 30 seconds Wait for SSH daemon to be up ${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. ${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.226: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 Sun Apr 21 02:43:01 UTC 2024 System load: 0.64 Processes: 105 Usage of /: 14.0% of 9.52GB Users logged in: 0 Memory usage: 21% IPv4 address for ens3: 172.21.248.226 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@heal-01-several-volumes--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 IDs of the VM and volumes have not changed after healing. cluster_heal daily heal_01 regression ${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 44747bf2-cfaf-4bfb-a195-a87a9c4aeff3 | grep 44747bf2-cfaf-4bfb-a195-a87a9c4aeff3 | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | 7731221d-b4a0-4080-8fa7-8ce77a85f55f c961d051-ac01-4f47-84f3-c92c90889815 ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ 7731221d-b4a0-4080-8fa7-8ce77a85f55f | c961d051-ac01-4f47-84f3-c92c90889815 ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List length is 2 and it contains following items: 0: 7731221d-b4a0-4080-8fa7-8ce77a85f55f 1: c961d051-ac01-4f47-84f3-c92c90889815 @{vnf_list} @{vnf_id_list} = [ 7731221d-b4a0-4080-8fa7-8ce77a85f55f | c961d051-ac01-4f47-84f3-c92c90889815 ] ${vnf_id} @{vnf_id_list} 7731221d-b4a0-4080-8fa7-8ce77a85f55f ${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 7731221d-b4a0-4080-8fa7-8ce77a85f55f --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 62946b69-9528-4a06-bab5-f43158161365 ${stdout} Logs the given message with the given level. 62946b69-9528-4a06-bab5-f43158161365 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 62946b69-9528-4a06-bab5-f43158161365 @{vdu_ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{vdu_ids} = [ 62946b69-9528-4a06-bab5-f43158161365 ] ${vdu_updated} @{vdu_ids} Adds ``values`` to the end of ``list``. ${id} @{vdu_ids} 62946b69-9528-4a06-bab5-f43158161365 ${VIM_VDUS} ${id} Adds ``values`` to the end of ``list``. c961d051-ac01-4f47-84f3-c92c90889815 ${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 c961d051-ac01-4f47-84f3-c92c90889815 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 6eb81693-4dcf-4cc8-8db8-e4fc975ec6b6 362ba25c-d35a-4159-bce7-d8373b91bff2 ${stdout} Logs the given message with the given level. 6eb81693-4dcf-4cc8-8db8-e4fc975ec6b6 362ba25c-d35a-4159-bce7-d8373b91bff2 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 6eb81693-4dcf-4cc8-8db8-e4fc975ec6b6 362ba25c-d35a-4159-bce7-d8373b91bff2 @{vdu_ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{vdu_ids} = [ 6eb81693-4dcf-4cc8-8db8-e4fc975ec6b6 | 362ba25c-d35a-4159-bce7-d8373b91bff2 ] ${vdu_updated} @{vdu_ids} Adds ``values`` to the end of ``list``. ${id} @{vdu_ids} 6eb81693-4dcf-4cc8-8db8-e4fc975ec6b6 ${VIM_VDUS} ${id} Adds ``values`` to the end of ``list``. 362ba25c-d35a-4159-bce7-d8373b91bff2 ${VIM_VDUS} ${id} Adds ``values`` to the end of ``list``. ${vdu_id} @{vdu_updated} 62946b69-9528-4a06-bab5-f43158161365 ${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 62946b69-9528-4a06-bab5-f43158161365 -c volumes_attached -f value 2>&1'. ${rc} = 0 ${stdout} = [{'device': None, 'id': '7f6b8b5b-bcee-45fc-98ab-82a0ca8bd606', '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': '7f6b8b5b-bcee-45fc-98ab-82a0ca8bd606', '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': '7f6b8b5b-bcee-45fc-98ab-82a0ca8bd606', '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} = ['7f6b8b5b-bcee-45fc-98ab-82a0ca8bd606'] ${VIM_VOLUMES} ${match}[0] Adds ``values`` to the end of ``list``. 6eb81693-4dcf-4cc8-8db8-e4fc975ec6b6 ${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 6eb81693-4dcf-4cc8-8db8-e4fc975ec6b6 -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``. 362ba25c-d35a-4159-bce7-d8373b91bff2 ${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 362ba25c-d35a-4159-bce7-d8373b91bff2 -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. 181e2b32-d1de-4a0e-a81a-0cde3e9a7cb2 6eb81693-4dcf-4cc8-8db8-e4fc975ec6b6 362ba25c-d35a-4159-bce7-d8373b91bff2 62946b69-9528-4a06-bab5-f43158161365 @{VIM_VOLUMES} Logs the given messages as separate entries using the INFO level. 7f6b8b5b-bcee-45fc-98ab-82a0ca8bd606 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 ${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 | +--------------------------------------+-----------------------------------------------+--------+-----------------------------------------------------------------------------------------+------------------------------+--------------------------+ | fc591b3f-3196-4ee4-9050-636ba3ebb70e | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.61 | ubuntu20.04 | several_volumes-VM-flv | | 62946b69-9528-4a06-bab5-f43158161365 | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.226 | ubuntu20.04 | several_volumes-VM-flv | | 3ab9b570-7938-41e4-96a2-ca725ed4419d | slicebasic.slice-middle-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.239; slicebasic.slice-nsd_vnfd_vld_dat=192.168.40.217, 192.168.53.54 | ubuntu18.04 | simple_requires-1-1-flv | | 8cf24d35-0133-4b3b-8f6a-cdfb8383a658 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.231; slicebasic.slice-nsd_vnfd_vld_dat=192.168.53.103 | ubuntu18.04 | simple_requires-1-1-flv | | fd5c39b9-7b83-4b26-acea-9be7c9108cbc | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.58; slicebasic.slice-nsd_vnfd_vld_dat=192.168.40.248 | ubuntu18.04 | simple_requires-1-1-flv | | 119eac9c-1454-491b-9279-a83a62b0fe67 | heal_01-manual_scale_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.121.55; osm-ext=172.21.248.106 | ubuntu18.04 | simple_requires-1-1-flv | | 606ad643-3329-413c-acb8-feeb48bac3e6 | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.89.184; osm-ext=172.21.249.228 | ubuntu18.04 | simple_requires-1-1-flv | | 32077ef5-0dd4-435f-b788-70ce7c5f8868 | heal_01-manual_scale_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.121.75; osm-ext=172.21.248.156 | ubuntu18.04 | simple_requires-1-1-flv | | 70410d57-025c-488b-bcf6-a6dde7c52904 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.89.40; osm-ext=172.21.248.75 | ubuntu18.04 | simple_requires-1-1-flv | | 7c8164c0-f7f4-4ca6-a528-58a608ce44e0 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.12 | ubuntu20.04 | several_volumes-VM-flv | | 362ba25c-d35a-4159-bce7-d8373b91bff2 | heal_01-manual_scale_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.41.43; osm-ext=172.21.249.219 | ubuntu18.04 | simple_requires-1-1-flv | | 6eb81693-4dcf-4cc8-8db8-e4fc975ec6b6 | heal_01-manual_scale_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.41.164; osm-ext=172.21.248.76 | ubuntu18.04 | simple_requires-1-1-flv | | 20e6a879-db5e-45ab-9190-b741fd05accd | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.130 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | c094c0bc-93a0-473f-90c9-824662cc97fc | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | simple_requires-1-1-flv | | b2acd48a-4874-4c43-8eea-90a8a4f69945 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.89.138; osm-ext=172.21.249.192 | ubuntu18.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | +--------------------------------------+-----------------------------------------------+--------+-----------------------------------------------------------------------------------------+------------------------------+--------------------------+ | fc591b3f-3196-4ee4-9050-636ba3ebb70e | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.61 | ubuntu20.04 | several_volumes-VM-flv | | 62946b69-9528-4a06-bab5-f43158161365 | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | | ubuntu20.04 | several_volumes-VM-flv | | 3ab9b570-7938-41e4-96a2-ca725ed4419d | slicebasic.slice-middle-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.239; slicebasic.slice-nsd_vnfd_vld_dat=192.168.40.217, 192.168.53.54 | ubuntu18.04 | simple_requires-1-1-flv | | 8cf24d35-0133-4b3b-8f6a-cdfb8383a658 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.231; slicebasic.slice-nsd_vnfd_vld_dat=192.168.53.103 | ubuntu18.04 | simple_requires-1-1-flv | | fd5c39b9-7b83-4b26-acea-9be7c9108cbc | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.58; slicebasic.slice-nsd_vnfd_vld_dat=192.168.40.248 | ubuntu18.04 | simple_requires-1-1-flv | | 119eac9c-1454-491b-9279-a83a62b0fe67 | heal_01-manual_scale_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.121.55; osm-ext=172.21.248.106 | ubuntu18.04 | simple_requires-1-1-flv | | 606ad643-3329-413c-acb8-feeb48bac3e6 | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.89.184; osm-ext=172.21.249.228 | ubuntu18.04 | simple_requires-1-1-flv | | 32077ef5-0dd4-435f-b788-70ce7c5f8868 | heal_01-manual_scale_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.121.75; osm-ext=172.21.248.156 | ubuntu18.04 | simple_requires-1-1-flv | | 70410d57-025c-488b-bcf6-a6dde7c52904 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.89.40; osm-ext=172.21.248.75 | ubuntu18.04 | simple_requires-1-1-flv | | 7c8164c0-f7f4-4ca6-a528-58a608ce44e0 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.12 | ubuntu20.04 | several_volumes-VM-flv | | 362ba25c-d35a-4159-bce7-d8373b91bff2 | heal_01-manual_scale_vnf-mgmtVM-1 | ACTIVE | | ubuntu18.04 | simple_requires-1-1-flv | | 20e6a879-db5e-45ab-9190-b741fd05accd | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.130 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | c094c0bc-93a0-473f-90c9-824662cc97fc | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | simple_requires-1-1-flv | | b2acd48a-4874-4c43-8eea-90a8a4f69945 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.89.138; osm-ext=172.21.249.192 | ubuntu18.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | +--------------------------------------+-----------------------------------------------+--------+-----------------------------------------------------------------------------------------+------------------------------+--------------------------+ | fc591b3f-3196-4ee4-9050-636ba3ebb70e | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.61 | ubuntu20.04 | several_volumes-VM-flv | | 3ab9b570-7938-41e4-96a2-ca725ed4419d | slicebasic.slice-middle-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.239; slicebasic.slice-nsd_vnfd_vld_dat=192.168.40.217, 192.168.53.54 | ubuntu18.04 | simple_requires-1-1-flv | | 8cf24d35-0133-4b3b-8f6a-cdfb8383a658 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.231; slicebasic.slice-nsd_vnfd_vld_dat=192.168.53.103 | ubuntu18.04 | simple_requires-1-1-flv | | fd5c39b9-7b83-4b26-acea-9be7c9108cbc | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.58; slicebasic.slice-nsd_vnfd_vld_dat=192.168.40.248 | ubuntu18.04 | simple_requires-1-1-flv | | 119eac9c-1454-491b-9279-a83a62b0fe67 | heal_01-manual_scale_vnf-mgmtVM-1 | ACTIVE | osm-ext=172.21.248.106 | ubuntu18.04 | simple_requires-1-1-flv | | 606ad643-3329-413c-acb8-feeb48bac3e6 | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.89.184; osm-ext=172.21.249.228 | ubuntu18.04 | simple_requires-1-1-flv | | 32077ef5-0dd4-435f-b788-70ce7c5f8868 | heal_01-manual_scale_vnf-mgmtVM-0 | ACTIVE | osm-ext=172.21.248.156 | ubuntu18.04 | simple_requires-1-1-flv | | 70410d57-025c-488b-bcf6-a6dde7c52904 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.89.40; osm-ext=172.21.248.75 | ubuntu18.04 | simple_requires-1-1-flv | | 7c8164c0-f7f4-4ca6-a528-58a608ce44e0 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.12 | ubuntu20.04 | several_volumes-VM-flv | | 20e6a879-db5e-45ab-9190-b741fd05accd | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.130 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | c094c0bc-93a0-473f-90c9-824662cc97fc | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | simple_requires-1-1-flv | | b2acd48a-4874-4c43-8eea-90a8a4f69945 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.89.138; osm-ext=172.21.249.192 | ubuntu18.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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} 7f6b8b5b-bcee-45fc-98ab-82a0ca8bd606 Checking if volume ${vol_id} is still in VIM Logs the given message with the given level. Checking if volume 7f6b8b5b-bcee-45fc-98ab-82a0ca8bd606 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 7f6b8b5b-bcee-45fc-98ab-82a0ca8bd606 | 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} 181e2b32-d1de-4a0e-a81a-0cde3e9a7cb2 Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server 181e2b32-d1de-4a0e-a81a-0cde3e9a7cb2 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 181e2b32-d1de-4a0e-a81a-0cde3e9a7cb2 -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for 181e2b32-d1de-4a0e-a81a-0cde3e9a7cb2 ${stdout} Logs the given message with the given level. No Server found for 181e2b32-d1de-4a0e-a81a-0cde3e9a7cb2 ${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. 6eb81693-4dcf-4cc8-8db8-e4fc975ec6b6 Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server 6eb81693-4dcf-4cc8-8db8-e4fc975ec6b6 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 6eb81693-4dcf-4cc8-8db8-e4fc975ec6b6 -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for 6eb81693-4dcf-4cc8-8db8-e4fc975ec6b6 ${stdout} Logs the given message with the given level. No Server found for 6eb81693-4dcf-4cc8-8db8-e4fc975ec6b6 ${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. 362ba25c-d35a-4159-bce7-d8373b91bff2 Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server 362ba25c-d35a-4159-bce7-d8373b91bff2 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 362ba25c-d35a-4159-bce7-d8373b91bff2 -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for 362ba25c-d35a-4159-bce7-d8373b91bff2 ${stdout} Logs the given message with the given level. No Server found for 362ba25c-d35a-4159-bce7-d8373b91bff2 ${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. 62946b69-9528-4a06-bab5-f43158161365 Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server 62946b69-9528-4a06-bab5-f43158161365 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 62946b69-9528-4a06-bab5-f43158161365 -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for 62946b69-9528-4a06-bab5-f43158161365 ${stdout} Logs the given message with the given level. No Server found for 62946b69-9528-4a06-bab5-f43158161365 ${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_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. Delete NSD ${NSD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete VNFD ${VNFD_VOLUMES_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete VNFD ${VNFD_MANUALSCALE_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete Objects In VIM Runs the given keyword with the given arguments, if one or more tests failed. [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 0b107879-51de-4716-9401-7b39131e6269 ${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} = 0b107879-51de-4716-9401-7b39131e6269 ${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 a9d97740-efb4-4ae5-aa74-963c323c6553 ${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} = a9d97740-efb4-4ae5-aa74-963c323c6553 ${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 49e45a34-0e6b-47be-be57-acb239c878c6 ${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} = 49e45a34-0e6b-47be-be57-acb239c878c6 ${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} = 717036 ${flavor_name} SEPARATOR=_ ${FLAVOR_NAME_PREFIX} ${rand} Catenates the given items together and returns the resulted string. ${flavor_name} = osm.heal02_717036 ${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_717036 --ram 1024 --disk 10 --vcpus 1 -c id -f value 2>&1'. ${rc} = 0 ${flavor_id} = 251cc3a9-2fbd-4936-af28-9afabec938d0 ${flavor_id} Logs the given message with the given level. 251cc3a9-2fbd-4936-af28-9afabec938d0 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${flavor_id} ${id} = 251cc3a9-2fbd-4936-af28-9afabec938d0 ${FLAVOR_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${FLAVOR_ID} = 251cc3a9-2fbd-4936-af28-9afabec938d0 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: 251cc3a9-2fbd-4936-af28-9afabec938d0}]}] } ${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: 251cc3a9-2fbd-4936-af28-9afabec938d0}]}] }' ${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: 251cc3a9-2fbd-4936-af28-9afabec938d0}]}] }' --ssh_keys /root/.ssh/id_rsa.pub 2>&1'. ${rc} = 0 ${stdout} = acfe4c18-58e5-4d3e-9ba1-f5ca119dedd3 ${stdout} Logs the given message with the given level. acfe4c18-58e5-4d3e-9ba1-f5ca119dedd3 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = acfe4c18-58e5-4d3e-9ba1-f5ca119dedd3 ${ns_id} Logs the given message with the given level. acfe4c18-58e5-4d3e-9ba1-f5ca119dedd3 ${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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+--------------------------+ | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 606ad643-3329-413c-acb8-feeb48bac3e6 | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.89.184; osm-ext=172.21.249.228 | ubuntu18.04 | simple_requires-1-1-flv | | 70410d57-025c-488b-bcf6-a6dde7c52904 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.89.40; osm-ext=172.21.248.75 | ubuntu18.04 | simple_requires-1-1-flv | | 7c8164c0-f7f4-4ca6-a528-58a608ce44e0 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.12 | ubuntu20.04 | several_volumes-VM-flv | | 20e6a879-db5e-45ab-9190-b741fd05accd | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.130 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | c094c0bc-93a0-473f-90c9-824662cc97fc | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | simple_requires-1-1-flv | | b2acd48a-4874-4c43-8eea-90a8a4f69945 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.89.138; osm-ext=172.21.249.192 | ubuntu18.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | acfe4c18-58e5-4d3e-9ba1-f5ca119dedd3 | 2024-04-21T02:44:20 | BUILDING | INSTANTIATING (fe8f40d4-1da9-4f54-862a-fe29d390293b) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | acfe4c18-58e5-4d3e-9ba1-f5ca119dedd3 | 2024-04-21T02:44:20 | BUILDING | INSTANTIATING (fe8f40d4-1da9-4f54-862a-fe29d390293b) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+--------------------------+ | 9d63ad56-2668-4122-8786-0fc8db6705d3 | heal_02-manual_scale_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.248.10; osm-ext=172.21.248.44 | ubuntu18.04 | osm.heal02_717036 | | 8b519a06-8743-4d30-881b-1822f655251b | heal_02-manual_scale_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.248.184; osm-ext=172.21.248.21 | ubuntu18.04 | osm.heal02_717036 | | b0faa8ef-b934-4bea-af2d-d73d39d45ac3 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.32 | ubuntu20.04 | several_volumes-VM-flv | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 606ad643-3329-413c-acb8-feeb48bac3e6 | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.89.184; osm-ext=172.21.249.228 | ubuntu18.04 | simple_requires-1-1-flv | | 70410d57-025c-488b-bcf6-a6dde7c52904 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.89.40; osm-ext=172.21.248.75 | ubuntu18.04 | simple_requires-1-1-flv | | 7c8164c0-f7f4-4ca6-a528-58a608ce44e0 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.12 | ubuntu20.04 | several_volumes-VM-flv | | 20e6a879-db5e-45ab-9190-b741fd05accd | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.130 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | c094c0bc-93a0-473f-90c9-824662cc97fc | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | simple_requires-1-1-flv | | b2acd48a-4874-4c43-8eea-90a8a4f69945 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.89.138; osm-ext=172.21.249.192 | ubuntu18.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | acfe4c18-58e5-4d3e-9ba1-f5ca119dedd3 | 2024-04-21T02:44:20 | BUILDING | INSTANTIATING (fe8f40d4-1da9-4f54-862a-fe29d390293b) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | acfe4c18-58e5-4d3e-9ba1-f5ca119dedd3 | 2024-04-21T02:44:20 | BUILDING | INSTANTIATING (fe8f40d4-1da9-4f54-862a-fe29d390293b) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+------------------------------+--------------------------+ | c0c90612-3f5a-459e-853f-18253ed98765 | slicebasic.slice-edge-ubuntu_slice-VM-0 | BUILD | | ubuntu18.04 | osm.heal02_717036 | | 5a55242b-1a00-46c8-ad91-d68241b87851 | heal_02-manual_scale_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.181.167; osm-ext=172.21.248.165 | ubuntu18.04 | osm.heal02_800405 | | d8f50539-721a-47f0-bd03-779850c303d1 | heal_02-manual_scale_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.181.217; osm-ext=172.21.248.47 | ubuntu18.04 | osm.heal02_800405 | | 39600779-ece5-49e5-b989-ade55b7f735e | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.79 | ubuntu20.04 | several_volumes-VM-flv | | 9d63ad56-2668-4122-8786-0fc8db6705d3 | heal_02-manual_scale_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.248.10; osm-ext=172.21.248.44 | ubuntu18.04 | osm.heal02_717036 | | 8b519a06-8743-4d30-881b-1822f655251b | heal_02-manual_scale_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.248.184; osm-ext=172.21.248.21 | ubuntu18.04 | osm.heal02_717036 | | b0faa8ef-b934-4bea-af2d-d73d39d45ac3 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.32 | ubuntu20.04 | several_volumes-VM-flv | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 606ad643-3329-413c-acb8-feeb48bac3e6 | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.89.184; osm-ext=172.21.249.228 | ubuntu18.04 | simple_requires-1-1-flv | | 70410d57-025c-488b-bcf6-a6dde7c52904 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.89.40; osm-ext=172.21.248.75 | ubuntu18.04 | simple_requires-1-1-flv | | 7c8164c0-f7f4-4ca6-a528-58a608ce44e0 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.12 | ubuntu20.04 | several_volumes-VM-flv | | 20e6a879-db5e-45ab-9190-b741fd05accd | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.130 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | c094c0bc-93a0-473f-90c9-824662cc97fc | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | simple_requires-1-1-flv | | b2acd48a-4874-4c43-8eea-90a8a4f69945 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.89.138; osm-ext=172.21.249.192 | ubuntu18.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | date ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | heal_02 | acfe4c18-58e5-4d3e-9ba1-f5ca119dedd3 | 2024-04-21T02:44: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} = +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+------------------------------+--------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+------------------------------+--------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+------------------------------+--------------------------+ | c0c90612-3f5a-459e-853f-18253ed98765 | slicebasic.slice-edge-ubuntu_slice-VM-0 | BUILD | | ubuntu18.04 | osm.heal02_717036 | | 5a55242b-1a00-46c8-ad91-d68241b87851 | heal_02-manual_scale_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.181.167; osm-ext=172.21.248.165 | ubuntu18.04 | osm.heal02_800405 | | d8f50539-721a-47f0-bd03-779850c303d1 | heal_02-manual_scale_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.181.217; osm-ext=172.21.248.47 | ubuntu18.04 | osm.heal02_800405 | | 39600779-ece5-49e5-b989-ade55b7f735e | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.79 | ubuntu20.04 | several_volumes-VM-flv | | 9d63ad56-2668-4122-8786-0fc8db6705d3 | heal_02-manual_scale_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.248.10; osm-ext=172.21.248.44 | ubuntu18.04 | osm.heal02_717036 | | 8b519a06-8743-4d30-881b-1822f655251b | heal_02-manual_scale_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.248.184; osm-ext=172.21.248.21 | ubuntu18.04 | osm.heal02_717036 | | b0faa8ef-b934-4bea-af2d-d73d39d45ac3 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.32 | ubuntu20.04 | several_volumes-VM-flv | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 606ad643-3329-413c-acb8-feeb48bac3e6 | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.89.184; osm-ext=172.21.249.228 | ubuntu18.04 | simple_requires-1-1-flv | | 70410d57-025c-488b-bcf6-a6dde7c52904 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.89.40; osm-ext=172.21.248.75 | ubuntu18.04 | simple_requires-1-1-flv | | 7c8164c0-f7f4-4ca6-a528-58a608ce44e0 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.12 | ubuntu20.04 | several_volumes-VM-flv | | 20e6a879-db5e-45ab-9190-b741fd05accd | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.130 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | c094c0bc-93a0-473f-90c9-824662cc97fc | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | simple_requires-1-1-flv | | b2acd48a-4874-4c43-8eea-90a8a4f69945 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.89.138; osm-ext=172.21.249.192 | ubuntu18.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | date ... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ | heal_02 | acfe4c18-58e5-4d3e-9ba1-f5ca119dedd3 | 2024-04-21T02:44: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} = acfe4c18-58e5-4d3e-9ba1-f5ca119dedd3 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = acfe4c18-58e5-4d3e-9ba1-f5ca119dedd3 Instantiate NS for the testsuite using the previously created flavor. cluster_heal daily heal_02 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, '${FLAVOR_ID}': '251cc3a9-2fbd-4936-af28-9afabec93... ${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_02 | awk '{print $4}' 2>&1'. ${rc} = 0 ${stdout} = acfe4c18-58e5-4d3e-9ba1-f5ca119dedd3 ${stdout} Logs the given message with the given level. acfe4c18-58e5-4d3e-9ba1-f5ca119dedd3 ${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} = acfe4c18-58e5-4d3e-9ba1-f5ca119dedd3 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = acfe4c18-58e5-4d3e-9ba1-f5ca119dedd3 Get NS identifier. cleanup cluster_heal daily heal_02 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 acfe4c18-58e5-4d3e-9ba1-f5ca119dedd3 | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = b41ef462-081b-4126-9495-7c1ddaf03574 ${stdout} Logs the given message with the given level. b41ef462-081b-4126-9495-7c1ddaf03574 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${vnf_id} = b41ef462-081b-4126-9495-7c1ddaf03574 ${VNF_MANUALSCALE_ID} ${vnf_id} Makes a variable available everywhere within the scope of the current suite. ${VNF_MANUALSCALE_ID} = b41ef462-081b-4126-9495-7c1ddaf03574 @{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 b41ef462-081b-4126-9495-7c1ddaf03574 --literal | yq -r .vdur[].name 2>&1'. ${rc} = 0 ${stdout} = heal_02-manual_scale_vnf-mgmtVM-0 heal_02-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_02-manual_scale_vnf-mgmtVM-0 | heal_02-manual_scale_vnf-mgmtVM-1 ] @{vdur} @{vdur_list} = [ heal_02-manual_scale_vnf-mgmtVM-0 | heal_02-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_02 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_02 manual_scale_vnf 2>&1'. ${rc} = 0 ${stdout} = f2de1001-460d-419f-9765-60770b88d797 ${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 f2de1001-460d-419f-9765-60770b88d797 --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 f2de1001-460d-419f-9765-60770b88d797 ${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 f2de1001-460d-419f-9765-60770b88d797 --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 f2de1001-460d-419f-9765-60770b88d797 ${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 f2de1001-460d-419f-9765-60770b88d797 --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 f2de1001-460d-419f-9765-60770b88d797 --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 b41ef462-081b-4126-9495-7c1ddaf03574 --literal | yq -r .vdur[].name 2>&1'. ${rc} = 0 ${stdout} = heal_02-manual_scale_vnf-mgmtVM-0 heal_02-manual_scale_vnf-mgmtVM-1 heal_02-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_02-manual_scale_vnf-mgmtVM-0 | heal_02-manual_scale_vnf-mgmtVM-1 | heal_02-manual_scale_vnf-mgmtVM-2 ] @{vdur} @{vdur_list} = [ heal_02-manual_scale_vnf-mgmtVM-0 | heal_02-manual_scale_vnf-mgmtVM-1 | heal_02-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_02 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 acfe4c18-58e5-4d3e-9ba1-f5ca119dedd3 | grep acfe4c18-58e5-4d3e-9ba1-f5ca119dedd3 | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | d9f53b48-5fd5-49a3-b1f3-fff6c41c6733 b41ef462-081b-4126-9495-7c1ddaf03574 ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ d9f53b48-5fd5-49a3-b1f3-fff6c41c6733 | b41ef462-081b-4126-9495-7c1ddaf03574 ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List length is 2 and it contains following items: 0: d9f53b48-5fd5-49a3-b1f3-fff6c41c6733 1: b41ef462-081b-4126-9495-7c1ddaf03574 @{vnf_list} @{vnf_id_list} = [ d9f53b48-5fd5-49a3-b1f3-fff6c41c6733 | b41ef462-081b-4126-9495-7c1ddaf03574 ] ${vnf_id_list} Logs the given message with the given level. ['d9f53b48-5fd5-49a3-b1f3-fff6c41c6733', 'b41ef462-081b-4126-9495-7c1ddaf03574'] ${vnf_id} @{vnf_id_list} d9f53b48-5fd5-49a3-b1f3-fff6c41c6733 ${vnf_id} Logs the given message with the given level. d9f53b48-5fd5-49a3-b1f3-fff6c41c6733 ${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 d9f53b48-5fd5-49a3-b1f3-fff6c41c6733 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = b0faa8ef-b934-4bea-af2d-d73d39d45ac3 ${stdout} Logs the given message with the given level. b0faa8ef-b934-4bea-af2d-d73d39d45ac3 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = b0faa8ef-b934-4bea-af2d-d73d39d45ac3 @{vdu_ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{vdu_ids} = [ b0faa8ef-b934-4bea-af2d-d73d39d45ac3 ] ${VIM_VDUS} @{vdu_ids} Adds ``values`` to the end of ``list``. b41ef462-081b-4126-9495-7c1ddaf03574 ${vnf_id} Logs the given message with the given level. b41ef462-081b-4126-9495-7c1ddaf03574 ${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 b41ef462-081b-4126-9495-7c1ddaf03574 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 8b519a06-8743-4d30-881b-1822f655251b 9d63ad56-2668-4122-8786-0fc8db6705d3 4f493aae-4d14-4472-aee8-ddd2ff55f092 ${stdout} Logs the given message with the given level. 8b519a06-8743-4d30-881b-1822f655251b 9d63ad56-2668-4122-8786-0fc8db6705d3 4f493aae-4d14-4472-aee8-ddd2ff55f092 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 8b519a06-8743-4d30-881b-1822f655251b 9d63ad56-2668-4122-8786-0fc8db6705d3 4f493aae-4d14-4472-aee8-ddd2ff55f092 @{vdu_ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{vdu_ids} = [ 8b519a06-8743-4d30-881b-1822f655251b | 9d63ad56-2668-4122-8786-0fc8db6705d3 | 4f493aae-4d14-4472-aee8-ddd2ff55f092 ] ${VIM_VDUS} @{vdu_ids} Adds ``values`` to the end of ``list``. ${vdu_id} @{VIM_VDUS} b0faa8ef-b934-4bea-af2d-d73d39d45ac3 ${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 b0faa8ef-b934-4bea-af2d-d73d39d45ac3 -c volumes_attached -f value 2>&1'. ${rc} = 0 ${stdout} = [{'device': None, 'id': '75289c59-ba75-45f2-9f21-f542730973fd', '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': '75289c59-ba75-45f2-9f21-f542730973fd', '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': '75289c59-ba75-45f2-9f21-f542730973fd', '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} = ['75289c59-ba75-45f2-9f21-f542730973fd'] ${VIM_VOLUMES} ${match}[0] Adds ``values`` to the end of ``list``. 8b519a06-8743-4d30-881b-1822f655251b ${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 8b519a06-8743-4d30-881b-1822f655251b -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``. 9d63ad56-2668-4122-8786-0fc8db6705d3 ${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 9d63ad56-2668-4122-8786-0fc8db6705d3 -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``. 4f493aae-4d14-4472-aee8-ddd2ff55f092 ${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 4f493aae-4d14-4472-aee8-ddd2ff55f092 -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. b0faa8ef-b934-4bea-af2d-d73d39d45ac3 8b519a06-8743-4d30-881b-1822f655251b 9d63ad56-2668-4122-8786-0fc8db6705d3 4f493aae-4d14-4472-aee8-ddd2ff55f092 @{VIM_VOLUMES} Logs the given messages as separate entries using the INFO level. 75289c59-ba75-45f2-9f21-f542730973fd Retrieve all VMs and volumes from the NS and stores them in VIM_VDUS and VIM_VOLUMES lists. cluster_heal daily heal_02 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, '${FLAVOR_ID}': '251cc3a9-2fbd-4936-af28-9afabec93... ${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 b41ef462-081b-4126-9495-7c1ddaf03574 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 8b519a06-8743-4d30-881b-1822f655251b 9d63ad56-2668-4122-8786-0fc8db6705d3 4f493aae-4d14-4472-aee8-ddd2ff55f092 ${stdout} Logs the given message with the given level. 8b519a06-8743-4d30-881b-1822f655251b 9d63ad56-2668-4122-8786-0fc8db6705d3 4f493aae-4d14-4472-aee8-ddd2ff55f092 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 8b519a06-8743-4d30-881b-1822f655251b 9d63ad56-2668-4122-8786-0fc8db6705d3 4f493aae-4d14-4472-aee8-ddd2ff55f092 @{vdu_manualscale_ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{vdu_manualscale_ids} = [ 8b519a06-8743-4d30-881b-1822f655251b | 9d63ad56-2668-4122-8786-0fc8db6705d3 | 4f493aae-4d14-4472-aee8-ddd2ff55f092 ] @{VDU_MANUALSCALE_IDS} @{vdu_manualscale_ids} Makes a variable available everywhere within the scope of the current suite. @{VDU_MANUALSCALE_IDS} = [ 8b519a06-8743-4d30-881b-1822f655251b | 9d63ad56-2668-4122-8786-0fc8db6705d3 | 4f493aae-4d14-4472-aee8-ddd2ff55f092 ] ${VDU_MANUALSCALE_IDS}[1] Logs the given message with the given level. 9d63ad56-2668-4122-8786-0fc8db6705d3 @{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 b41ef462-081b-4126-9495-7c1ddaf03574 --literal | yq -r '.vdur[].interfaces[]."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 172.21.248.21 192.168.248.184 172.21.248.44 192.168.248.10 172.21.248.106 192.168.248.150 ${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.248.21 | 192.168.248.184 | 172.21.248.44 | 192.168.248.10 | 172.21.248.106 | 192.168.248.150 ] @{ip} @{manualscale_ip_list} = [ 172.21.248.21 | 192.168.248.184 | 172.21.248.44 | 192.168.248.10 | 172.21.248.106 | 192.168.248.150 ] @{MANUALSCALE_IP_LIST} @{manualscale_ip_list} Makes a variable available everywhere within the scope of the current suite. @{MANUALSCALE_IP_LIST} = [ 172.21.248.21 | 192.168.248.184 | 172.21.248.44 | 192.168.248.10 | 172.21.248.106 | 192.168.248.150 ] 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 @{VDU_MANUALSCALE_IDS} msg=VDU is not available Fails unless the given variable exists within the current scope. ${VDU_MANUALSCALE_IDS}[1] 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 9d63ad56-2668-4122-8786-0fc8db6705d3 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} 15 Pauses the test executed for the given time. Slept 15 seconds Halt one of the VM of the Manual Scale VNF. cluster_heal daily heal_02 regression ${VNF_MANUALSCALE_ID} msg=VNF is not available Fails unless the given variable exists within the current scope. ${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. ${ns_name} Verifies that the given item is not empty. Length is 36 ${params} Verifies that the given item is not empty. Length is 120 ${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 acfe4c18-58e5-4d3e-9ba1-f5ca119dedd3 --vnf b41ef462-081b-4126-9495-7c1ddaf03574 --cause "Heal VM of manual_scale_vnf" --vdu mgmtVM --count-index 1 --run-day1 2>&1'. ${rc} = 0 ${stdout} = 1fb044fe-57c2-430c-a43c-4b6532e73583 ${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 1fb044fe-57c2-430c-a43c-4b6532e73583 --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 1fb044fe-57c2-430c-a43c-4b6532e73583 ${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 1fb044fe-57c2-430c-a43c-4b6532e73583 --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 1fb044fe-57c2-430c-a43c-4b6532e73583 ${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 1fb044fe-57c2-430c-a43c-4b6532e73583 --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 1fb044fe-57c2-430c-a43c-4b6532e73583 --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_02 regression ${VNF_MANUALSCALE_ID} msg=VNF is not available Fails unless the given variable exists within the current scope. @{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 b41ef462-081b-4126-9495-7c1ddaf03574 --literal | yq -r '.vdur[].interfaces[]."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 172.21.248.21 192.168.248.184 172.21.248.44 192.168.248.10 172.21.248.106 192.168.248.150 ${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.248.21 | 192.168.248.184 | 172.21.248.44 | 192.168.248.10 | 172.21.248.106 | 192.168.248.150 ] @{ip} @{ip_list} = [ 172.21.248.21 | 192.168.248.184 | 172.21.248.44 | 192.168.248.10 | 172.21.248.106 | 192.168.248.150 ] ${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. ${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 b41ef462-081b-4126-9495-7c1ddaf03574 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 8b519a06-8743-4d30-881b-1822f655251b 285bac9b-a0b4-460d-8141-6294167b2d6d 4f493aae-4d14-4472-aee8-ddd2ff55f092 ${stdout} Logs the given message with the given level. 8b519a06-8743-4d30-881b-1822f655251b 285bac9b-a0b4-460d-8141-6294167b2d6d 4f493aae-4d14-4472-aee8-ddd2ff55f092 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 8b519a06-8743-4d30-881b-1822f655251b 285bac9b-a0b4-460d-8141-6294167b2d6d 4f493aae-4d14-4472-aee8-ddd2ff55f092 @{ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{ids} = [ 8b519a06-8743-4d30-881b-1822f655251b | 285bac9b-a0b4-460d-8141-6294167b2d6d | 4f493aae-4d14-4472-aee8-ddd2ff55f092 ] ${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. ${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 b41ef462-081b-4126-9495-7c1ddaf03574 --literal | yq '.vdur[] | select(."count-index" == 1)' | yq -r '."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 172.21.248.44 ${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.44 ${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.44:22' as 'ubuntu'. NoValidConnectionsError: [Errno None] Unable to connect to port 22 on 172.21.248.44 ${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. ${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 NoValidConnectionsError: [Errno None] Unable to connect to port 22 on 172.21.248.44 ${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 acfe4c18-58e5-4d3e-9ba1-f5ca119dedd3 | grep acfe4c18-58e5-4d3e-9ba1-f5ca119dedd3 | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | d9f53b48-5fd5-49a3-b1f3-fff6c41c6733 b41ef462-081b-4126-9495-7c1ddaf03574 ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ d9f53b48-5fd5-49a3-b1f3-fff6c41c6733 | b41ef462-081b-4126-9495-7c1ddaf03574 ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List length is 2 and it contains following items: 0: d9f53b48-5fd5-49a3-b1f3-fff6c41c6733 1: b41ef462-081b-4126-9495-7c1ddaf03574 @{vnf_list} @{vnf_id_list} = [ d9f53b48-5fd5-49a3-b1f3-fff6c41c6733 | b41ef462-081b-4126-9495-7c1ddaf03574 ] ${vnf_id} @{vnf_id_list} d9f53b48-5fd5-49a3-b1f3-fff6c41c6733 ${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 d9f53b48-5fd5-49a3-b1f3-fff6c41c6733 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = b0faa8ef-b934-4bea-af2d-d73d39d45ac3 ${stdout} Logs the given message with the given level. b0faa8ef-b934-4bea-af2d-d73d39d45ac3 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = b0faa8ef-b934-4bea-af2d-d73d39d45ac3 @{vdu_ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{vdu_ids} = [ b0faa8ef-b934-4bea-af2d-d73d39d45ac3 ] ${vdu_updated} @{vdu_ids} Adds ``values`` to the end of ``list``. ${id} @{vdu_ids} b0faa8ef-b934-4bea-af2d-d73d39d45ac3 ${VIM_VDUS} ${id} Adds ``values`` to the end of ``list``. b41ef462-081b-4126-9495-7c1ddaf03574 ${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 b41ef462-081b-4126-9495-7c1ddaf03574 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 8b519a06-8743-4d30-881b-1822f655251b 285bac9b-a0b4-460d-8141-6294167b2d6d 4f493aae-4d14-4472-aee8-ddd2ff55f092 ${stdout} Logs the given message with the given level. 8b519a06-8743-4d30-881b-1822f655251b 285bac9b-a0b4-460d-8141-6294167b2d6d 4f493aae-4d14-4472-aee8-ddd2ff55f092 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 8b519a06-8743-4d30-881b-1822f655251b 285bac9b-a0b4-460d-8141-6294167b2d6d 4f493aae-4d14-4472-aee8-ddd2ff55f092 @{vdu_ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{vdu_ids} = [ 8b519a06-8743-4d30-881b-1822f655251b | 285bac9b-a0b4-460d-8141-6294167b2d6d | 4f493aae-4d14-4472-aee8-ddd2ff55f092 ] ${vdu_updated} @{vdu_ids} Adds ``values`` to the end of ``list``. ${id} @{vdu_ids} 8b519a06-8743-4d30-881b-1822f655251b ${VIM_VDUS} ${id} Adds ``values`` to the end of ``list``. 285bac9b-a0b4-460d-8141-6294167b2d6d ${VIM_VDUS} ${id} Adds ``values`` to the end of ``list``. 4f493aae-4d14-4472-aee8-ddd2ff55f092 ${VIM_VDUS} ${id} Adds ``values`` to the end of ``list``. ${vdu_id} @{vdu_updated} b0faa8ef-b934-4bea-af2d-d73d39d45ac3 ${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 b0faa8ef-b934-4bea-af2d-d73d39d45ac3 -c volumes_attached -f value 2>&1'. ${rc} = 0 ${stdout} = [{'device': None, 'id': '75289c59-ba75-45f2-9f21-f542730973fd', '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': '75289c59-ba75-45f2-9f21-f542730973fd', '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': '75289c59-ba75-45f2-9f21-f542730973fd', '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} = ['75289c59-ba75-45f2-9f21-f542730973fd'] ${VIM_VOLUMES} ${match}[0] Adds ``values`` to the end of ``list``. 8b519a06-8743-4d30-881b-1822f655251b ${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 8b519a06-8743-4d30-881b-1822f655251b -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``. 285bac9b-a0b4-460d-8141-6294167b2d6d ${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 285bac9b-a0b4-460d-8141-6294167b2d6d -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``. 4f493aae-4d14-4472-aee8-ddd2ff55f092 ${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 4f493aae-4d14-4472-aee8-ddd2ff55f092 -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. b0faa8ef-b934-4bea-af2d-d73d39d45ac3 8b519a06-8743-4d30-881b-1822f655251b 9d63ad56-2668-4122-8786-0fc8db6705d3 4f493aae-4d14-4472-aee8-ddd2ff55f092 285bac9b-a0b4-460d-8141-6294167b2d6d @{VIM_VOLUMES} Logs the given messages as separate entries using the INFO level. 75289c59-ba75-45f2-9f21-f542730973fd 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 ${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} = +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------------------------------+-----------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------------------------------+-------------+-----------------------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------------------------------+-------------+-----------------------------------------+ | 355f919f-d8f5-408e-a3aa-0d178091e2e2 | heal_04-autoheal-basic-1-autoheal_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.213 | ubuntu20.04 | autoheal_vnfd-VM-autoheal-basic-1-1-flv | | 4b51dbd2-a369-4689-8704-675f679f7619 | heal_02-manual_scale_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.181.167; osm-ext=172.21.248.165 | ubuntu18.04 | osm.heal02_800405 | | 285bac9b-a0b4-460d-8141-6294167b2d6d | heal_02-manual_scale_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.248.10; osm-ext=172.21.248.44 | ubuntu18.04 | osm.heal02_717036 | | e36153dc-e01c-415f-bfbc-18f3d9c521ee | sliceshared.slic-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.165; slicebasic.slice-nsd_vnfd_vld_dat=192.168.235.149 | ubuntu18.04 | osm.heal02_717036 | | 4c0ed433-f21a-4e1d-a65c-3fc549e6ac13 | heal_02-manual_scale_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.181.81; osm-ext=172.21.248.80 | ubuntu18.04 | osm.heal02_800405 | | 4f493aae-4d14-4472-aee8-ddd2ff55f092 | heal_02-manual_scale_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.248.150; osm-ext=172.21.248.106 | ubuntu18.04 | osm.heal02_717036 | | f4370bf6-e34e-40ef-a011-91175d08c29f | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.248.130; slicebasic.slice-nsd_vnfd_vld_dat=192.168.235.32 | ubuntu18.04 | osm.heal02_717036 | | d4a06d5b-cee0-4043-b519-55c3eaee5a7a | slicebasic.slice-middle-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.181; slicebasic.slice-nsd_vnfd_vld_dat=192.168.119.176, 192.168.235.85 | ubuntu18.04 | osm.heal02_717036 | | c0c90612-3f5a-459e-853f-18253ed98765 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.133; slicebasic.slice-nsd_vnfd_vld_dat=192.168.119.228 | ubuntu18.04 | osm.heal02_717036 | | d8f50539-721a-47f0-bd03-779850c303d1 | heal_02-manual_scale_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.181.217; osm-ext=172.21.248.47 | ubuntu18.04 | osm.heal02_800405 | | 39600779-ece5-49e5-b989-ade55b7f735e | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.79 | ubuntu20.04 | several_volumes-VM-flv | | 8b519a06-8743-4d30-881b-1822f655251b | heal_02-manual_scale_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.248.184; osm-ext=172.21.248.21 | ubuntu18.04 | osm.heal02_717036 | | b0faa8ef-b934-4bea-af2d-d73d39d45ac3 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.32 | ubuntu20.04 | several_volumes-VM-flv | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | c094c0bc-93a0-473f-90c9-824662cc97fc | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.112 | ubuntu20.04 | simple_requires-1-1-flv | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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} = +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------------------------------+-----------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------------------------------+-------------+-----------------------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------------------------------+-------------+-----------------------------------------+ | 355f919f-d8f5-408e-a3aa-0d178091e2e2 | heal_04-autoheal-basic-1-autoheal_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.213 | ubuntu20.04 | autoheal_vnfd-VM-autoheal-basic-1-1-flv | | 4b51dbd2-a369-4689-8704-675f679f7619 | heal_02-manual_scale_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.181.167; osm-ext=172.21.248.165 | ubuntu18.04 | osm.heal02_800405 | | 285bac9b-a0b4-460d-8141-6294167b2d6d | heal_02-manual_scale_vnf-mgmtVM-1 | ACTIVE | osm-ext=172.21.248.44 | ubuntu18.04 | osm.heal02_717036 | | e36153dc-e01c-415f-bfbc-18f3d9c521ee | sliceshared.slic-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.165; slicebasic.slice-nsd_vnfd_vld_dat=192.168.235.149 | ubuntu18.04 | osm.heal02_717036 | | 4c0ed433-f21a-4e1d-a65c-3fc549e6ac13 | heal_02-manual_scale_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.181.81; osm-ext=172.21.248.80 | ubuntu18.04 | osm.heal02_800405 | | 4f493aae-4d14-4472-aee8-ddd2ff55f092 | heal_02-manual_scale_vnf-mgmtVM-2 | ACTIVE | osm-ext=172.21.248.106 | ubuntu18.04 | osm.heal02_717036 | | f4370bf6-e34e-40ef-a011-91175d08c29f | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.248.130; slicebasic.slice-nsd_vnfd_vld_dat=192.168.235.32 | ubuntu18.04 | osm.heal02_717036 | | d4a06d5b-cee0-4043-b519-55c3eaee5a7a | slicebasic.slice-middle-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.181; slicebasic.slice-nsd_vnfd_vld_dat=192.168.119.176, 192.168.235.85 | ubuntu18.04 | osm.heal02_717036 | | c0c90612-3f5a-459e-853f-18253ed98765 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.133; slicebasic.slice-nsd_vnfd_vld_dat=192.168.119.228 | ubuntu18.04 | osm.heal02_717036 | | d8f50539-721a-47f0-bd03-779850c303d1 | heal_02-manual_scale_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.181.217; osm-ext=172.21.248.47 | ubuntu18.04 | osm.heal02_800405 | | 39600779-ece5-49e5-b989-ade55b7f735e | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.79 | ubuntu20.04 | several_volumes-VM-flv | | 8b519a06-8743-4d30-881b-1822f655251b | heal_02-manual_scale_vnf-mgmtVM-0 | ACTIVE | osm-ext=172.21.248.21 | ubuntu18.04 | osm.heal02_717036 | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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} = +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------------------------------+-----------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------------------------------+-------------+-----------------------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------------------------------+-------------+-----------------------------------------+ | 355f919f-d8f5-408e-a3aa-0d178091e2e2 | heal_04-autoheal-basic-1-autoheal_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.213 | ubuntu20.04 | autoheal_vnfd-VM-autoheal-basic-1-1-flv | | 4b51dbd2-a369-4689-8704-675f679f7619 | heal_02-manual_scale_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.181.167; osm-ext=172.21.248.165 | ubuntu18.04 | osm.heal02_800405 | | e36153dc-e01c-415f-bfbc-18f3d9c521ee | sliceshared.slic-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.165; slicebasic.slice-nsd_vnfd_vld_dat=192.168.235.149 | ubuntu18.04 | osm.heal02_717036 | | 4c0ed433-f21a-4e1d-a65c-3fc549e6ac13 | heal_02-manual_scale_vnf-mgmtVM-2 | ACTIVE | osm-ext=172.21.248.80 | ubuntu18.04 | osm.heal02_800405 | | f4370bf6-e34e-40ef-a011-91175d08c29f | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.248.130; slicebasic.slice-nsd_vnfd_vld_dat=192.168.235.32 | ubuntu18.04 | osm.heal02_717036 | | d4a06d5b-cee0-4043-b519-55c3eaee5a7a | slicebasic.slice-middle-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.181; slicebasic.slice-nsd_vnfd_vld_dat=192.168.119.176, 192.168.235.85 | ubuntu18.04 | osm.heal02_717036 | | c0c90612-3f5a-459e-853f-18253ed98765 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.133; slicebasic.slice-nsd_vnfd_vld_dat=192.168.119.228 | ubuntu18.04 | osm.heal02_717036 | | d8f50539-721a-47f0-bd03-779850c303d1 | heal_02-manual_scale_vnf-mgmtVM-0 | ACTIVE | osm-ext=172.21.248.47 | ubuntu18.04 | osm.heal02_800405 | | 39600779-ece5-49e5-b989-ade55b7f735e | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.79 | ubuntu20.04 | several_volumes-VM-flv | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 251cc3a9-2fbd-4936-af28-9afabec938d0 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} 75289c59-ba75-45f2-9f21-f542730973fd Checking if volume ${vol_id} is still in VIM Logs the given message with the given level. Checking if volume 75289c59-ba75-45f2-9f21-f542730973fd 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 75289c59-ba75-45f2-9f21-f542730973fd | 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} b0faa8ef-b934-4bea-af2d-d73d39d45ac3 Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server b0faa8ef-b934-4bea-af2d-d73d39d45ac3 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 b0faa8ef-b934-4bea-af2d-d73d39d45ac3 -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for b0faa8ef-b934-4bea-af2d-d73d39d45ac3 ${stdout} Logs the given message with the given level. No Server found for b0faa8ef-b934-4bea-af2d-d73d39d45ac3 ${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. 8b519a06-8743-4d30-881b-1822f655251b Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server 8b519a06-8743-4d30-881b-1822f655251b 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 8b519a06-8743-4d30-881b-1822f655251b -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for 8b519a06-8743-4d30-881b-1822f655251b ${stdout} Logs the given message with the given level. No Server found for 8b519a06-8743-4d30-881b-1822f655251b ${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. 9d63ad56-2668-4122-8786-0fc8db6705d3 Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server 9d63ad56-2668-4122-8786-0fc8db6705d3 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 9d63ad56-2668-4122-8786-0fc8db6705d3 -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for 9d63ad56-2668-4122-8786-0fc8db6705d3 ${stdout} Logs the given message with the given level. No Server found for 9d63ad56-2668-4122-8786-0fc8db6705d3 ${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. 4f493aae-4d14-4472-aee8-ddd2ff55f092 Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server 4f493aae-4d14-4472-aee8-ddd2ff55f092 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 4f493aae-4d14-4472-aee8-ddd2ff55f092 -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for 4f493aae-4d14-4472-aee8-ddd2ff55f092 ${stdout} Logs the given message with the given level. No Server found for 4f493aae-4d14-4472-aee8-ddd2ff55f092 ${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. 285bac9b-a0b4-460d-8141-6294167b2d6d Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server 285bac9b-a0b4-460d-8141-6294167b2d6d 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 285bac9b-a0b4-460d-8141-6294167b2d6d -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for 285bac9b-a0b4-460d-8141-6294167b2d6d ${stdout} Logs the given message with the given level. No Server found for 285bac9b-a0b4-460d-8141-6294167b2d6d ${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_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} = +--------------------------------------+---------------------------------------------+--------+-------------------------------------------------------------------------------------------+-------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+---------------------------------------------+--------+-------------------------------------------------------------------------------------------+-------------+-----------------------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+---------------------------------------------+--------+-------------------------------------------------------------------------------------------+-------------+-----------------------------------------+ | 11dc991c-d4b7-4d80-b8e6-2f28a4346dee | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | BUILD | | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 355f919f-d8f5-408e-a3aa-0d178091e2e2 | heal_04-autoheal-basic-1-autoheal_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.213 | ubuntu20.04 | autoheal_vnfd-VM-autoheal-basic-1-1-flv | | e36153dc-e01c-415f-bfbc-18f3d9c521ee | sliceshared.slic-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.165; slicebasic.slice-nsd_vnfd_vld_dat=192.168.235.149 | ubuntu18.04 | osm.heal02_717036 | | f4370bf6-e34e-40ef-a011-91175d08c29f | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.248.130; slicebasic.slice-nsd_vnfd_vld_dat=192.168.235.32 | ubuntu18.04 | osm.heal02_717036 | | d4a06d5b-cee0-4043-b519-55c3eaee5a7a | slicebasic.slice-middle-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.181; slicebasic.slice-nsd_vnfd_vld_dat=192.168.119.176, 192.168.235.85 | ubuntu18.04 | osm.heal02_717036 | | c0c90612-3f5a-459e-853f-18253ed98765 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.133; slicebasic.slice-nsd_vnfd_vld_dat=192.168.119.228 | ubuntu18.04 | osm.heal02_717036 | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 251cc3a9-2fbd-4936-af28-9afabec938d0 2>&1'. ${rc} = 1 ${stdout} = Failed to delete flavor with name or ID '251cc3a9-2fbd-4936-af28-9afabec938d0': No Flavor found for 251cc3a9-2fbd-4936-af28-9afabec938d0 1 of 1 flavors failed to delete. ${stdout} Logs the given message with the given level. Failed to delete flavor with name or ID '251cc3a9-2fbd-4936-af28-9afabec938d0': No Flavor found for 251cc3a9-2fbd-4936-af28-9afabec938d0 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} 75289c59-ba75-45f2-9f21-f542730973fd Checking if volume ${vol_id} is still in VIM Logs the given message with the given level. Checking if volume 75289c59-ba75-45f2-9f21-f542730973fd 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 75289c59-ba75-45f2-9f21-f542730973fd | 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} b0faa8ef-b934-4bea-af2d-d73d39d45ac3 Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server b0faa8ef-b934-4bea-af2d-d73d39d45ac3 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 b0faa8ef-b934-4bea-af2d-d73d39d45ac3 -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for b0faa8ef-b934-4bea-af2d-d73d39d45ac3 ${stdout} Logs the given message with the given level. No Server found for b0faa8ef-b934-4bea-af2d-d73d39d45ac3 ${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. 8b519a06-8743-4d30-881b-1822f655251b Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server 8b519a06-8743-4d30-881b-1822f655251b 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 8b519a06-8743-4d30-881b-1822f655251b -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for 8b519a06-8743-4d30-881b-1822f655251b ${stdout} Logs the given message with the given level. No Server found for 8b519a06-8743-4d30-881b-1822f655251b ${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. 9d63ad56-2668-4122-8786-0fc8db6705d3 Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server 9d63ad56-2668-4122-8786-0fc8db6705d3 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 9d63ad56-2668-4122-8786-0fc8db6705d3 -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for 9d63ad56-2668-4122-8786-0fc8db6705d3 ${stdout} Logs the given message with the given level. No Server found for 9d63ad56-2668-4122-8786-0fc8db6705d3 ${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. 4f493aae-4d14-4472-aee8-ddd2ff55f092 Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server 4f493aae-4d14-4472-aee8-ddd2ff55f092 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 4f493aae-4d14-4472-aee8-ddd2ff55f092 -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for 4f493aae-4d14-4472-aee8-ddd2ff55f092 ${stdout} Logs the given message with the given level. No Server found for 4f493aae-4d14-4472-aee8-ddd2ff55f092 ${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. 285bac9b-a0b4-460d-8141-6294167b2d6d Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server 285bac9b-a0b4-460d-8141-6294167b2d6d 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 285bac9b-a0b4-460d-8141-6294167b2d6d -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for 285bac9b-a0b4-460d-8141-6294167b2d6d ${stdout} Logs the given message with the given level. No Server found for 285bac9b-a0b4-460d-8141-6294167b2d6d ${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. [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 5803d33d-44d3-40bb-a3b0-2d490d771d7b ${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} = 5803d33d-44d3-40bb-a3b0-2d490d771d7b ${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 f231b9fc-79cf-4917-aa8b-a45ce5e9e67a ${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} = f231b9fc-79cf-4917-aa8b-a45ce5e9e67a ${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 7107c79a-5e35-4c1c-80a3-14fccfb1e216 ${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} = 7107c79a-5e35-4c1c-80a3-14fccfb1e216 ${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} = f95bc563-d60c-4ca8-b7a8-d75a8b94bd38 ${stdout} Logs the given message with the given level. f95bc563-d60c-4ca8-b7a8-d75a8b94bd38 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = f95bc563-d60c-4ca8-b7a8-d75a8b94bd38 ${ns_id} Logs the given message with the given level. f95bc563-d60c-4ca8-b7a8-d75a8b94bd38 ${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 | +--------------------------------------+---------------------------------------------+--------+-------------------------------------------------------------------------------------------------------------+-------------+-----------------------------------------+ | 11dc991c-d4b7-4d80-b8e6-2f28a4346dee | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | ACTIVE | osm-ext=172.21.249.118; sa_08-vnf_with_v-external=192.168.159.181; sa_08-vnf_with_v-internal=192.168.254.75 | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 355f919f-d8f5-408e-a3aa-0d178091e2e2 | heal_04-autoheal-basic-1-autoheal_vnfd-VM-0 | ERROR | osm-ext=172.21.248.213 | ubuntu20.04 | autoheal_vnfd-VM-autoheal-basic-1-1-flv | | e36153dc-e01c-415f-bfbc-18f3d9c521ee | sliceshared.slic-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.165; slicebasic.slice-nsd_vnfd_vld_dat=192.168.235.149 | ubuntu18.04 | osm.heal02_717036 | | f4370bf6-e34e-40ef-a011-91175d08c29f | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.248.130; slicebasic.slice-nsd_vnfd_vld_dat=192.168.235.32 | ubuntu18.04 | osm.heal02_717036 | | d4a06d5b-cee0-4043-b519-55c3eaee5a7a | slicebasic.slice-middle-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.181; slicebasic.slice-nsd_vnfd_vld_dat=192.168.119.176, 192.168.235.85 | ubuntu18.04 | osm.heal02_717036 | | c0c90612-3f5a-459e-853f-18253ed98765 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.133; slicebasic.slice-nsd_vnfd_vld_dat=192.168.119.228 | ubuntu18.04 | osm.heal02_717036 | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | f95bc563-d60c-4ca8-b7a8-d75a8b94bd38 | 2024-04-21T02:49:18 | BUILDING | INSTANTIATING (c3062f62-65f0-4fdb-b412-072eca6c9cec) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | f95bc563-d60c-4ca8-b7a8-d75a8b94bd38 | 2024-04-21T02:49:18 | BUILDING | INSTANTIATING (c3062f62-65f0-4fdb-b412-072eca6c9cec) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------------------------------------------------+-------------+-----------------------------------------+ | 3c5a8ce9-8f4d-4e3c-8e26-9d24d277ada8 | heal_03-manual_scale_vnf-mgmtVM-1 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 6ce9d361-909f-4db5-9b1b-9f7435697c24 | heal_03-manual_scale_vnf-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 8c47d147-352b-4c42-a79e-ea9a29b092bb | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.126 | ubuntu20.04 | several_volumes-VM-flv | | 11dc991c-d4b7-4d80-b8e6-2f28a4346dee | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | ACTIVE | osm-ext=172.21.249.118; sa_08-vnf_with_v-external=192.168.159.181; sa_08-vnf_with_v-internal=192.168.254.75 | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 355f919f-d8f5-408e-a3aa-0d178091e2e2 | heal_04-autoheal-basic-1-autoheal_vnfd-VM-0 | ERROR | osm-ext=172.21.248.213 | ubuntu20.04 | autoheal_vnfd-VM-autoheal-basic-1-1-flv | | e36153dc-e01c-415f-bfbc-18f3d9c521ee | sliceshared.slic-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.165; slicebasic.slice-nsd_vnfd_vld_dat=192.168.235.149 | ubuntu18.04 | osm.heal02_717036 | | f4370bf6-e34e-40ef-a011-91175d08c29f | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.248.130; slicebasic.slice-nsd_vnfd_vld_dat=192.168.235.32 | ubuntu18.04 | osm.heal02_717036 | | d4a06d5b-cee0-4043-b519-55c3eaee5a7a | slicebasic.slice-middle-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.181; slicebasic.slice-nsd_vnfd_vld_dat=192.168.119.176, 192.168.235.85 | ubuntu18.04 | osm.heal02_717036 | | c0c90612-3f5a-459e-853f-18253ed98765 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.133; slicebasic.slice-nsd_vnfd_vld_dat=192.168.119.228 | ubuntu18.04 | osm.heal02_717036 | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | f95bc563-d60c-4ca8-b7a8-d75a8b94bd38 | 2024-04-21T02:49:18 | BUILDING | INSTANTIATING (c3062f62-65f0-4fdb-b412-072eca6c9cec) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | f95bc563-d60c-4ca8-b7a8-d75a8b94bd38 | 2024-04-21T02:49:18 | BUILDING | INSTANTIATING (c3062f62-65f0-4fdb-b412-072eca6c9cec) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------------------------------+-------------+-----------------------------------------+ | 669edbac-26b5-4baf-a806-f14d1fcf40b9 | heal_03-manual_scale_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.140.86; osm-ext=172.21.248.234 | ubuntu18.04 | simple_requires-1-1-flv | | 9968b4ab-3dd7-497a-8fd5-dcd69d2028b7 | heal_03-manual_scale_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.140.136; osm-ext=172.21.248.233 | ubuntu18.04 | simple_requires-1-1-flv | | 38acf068-032a-495c-ab37-4b8ecb7e17e7 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.72 | ubuntu20.04 | several_volumes-VM-flv | | 3c5a8ce9-8f4d-4e3c-8e26-9d24d277ada8 | heal_03-manual_scale_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.168.131; osm-ext=172.21.249.84 | ubuntu18.04 | simple_requires-1-1-flv | | 6ce9d361-909f-4db5-9b1b-9f7435697c24 | heal_03-manual_scale_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.168.127; osm-ext=172.21.249.74 | ubuntu18.04 | simple_requires-1-1-flv | | 8c47d147-352b-4c42-a79e-ea9a29b092bb | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.126 | ubuntu20.04 | several_volumes-VM-flv | | 355f919f-d8f5-408e-a3aa-0d178091e2e2 | heal_04-autoheal-basic-1-autoheal_vnfd-VM-0 | ERROR | osm-ext=172.21.248.213 | ubuntu20.04 | autoheal_vnfd-VM-autoheal-basic-1-1-flv | | e36153dc-e01c-415f-bfbc-18f3d9c521ee | sliceshared.slic-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.165; slicebasic.slice-nsd_vnfd_vld_dat=192.168.235.149 | ubuntu18.04 | osm.heal02_717036 | | d4a06d5b-cee0-4043-b519-55c3eaee5a7a | slicebasic.slice-middle-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.181; slicebasic.slice-nsd_vnfd_vld_dat=192.168.119.176, 192.168.235.85 | ubuntu18.04 | osm.heal02_717036 | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | f95bc563-d60c-4ca8-b7a8-d75a8b94bd38 | 2024-04-21T02:49:18 | 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 | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------------------------------+-------------+-----------------------------------------+ | 669edbac-26b5-4baf-a806-f14d1fcf40b9 | heal_03-manual_scale_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.140.86; osm-ext=172.21.248.234 | ubuntu18.04 | simple_requires-1-1-flv | | 9968b4ab-3dd7-497a-8fd5-dcd69d2028b7 | heal_03-manual_scale_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.140.136; osm-ext=172.21.248.233 | ubuntu18.04 | simple_requires-1-1-flv | | 38acf068-032a-495c-ab37-4b8ecb7e17e7 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.72 | ubuntu20.04 | several_volumes-VM-flv | | 3c5a8ce9-8f4d-4e3c-8e26-9d24d277ada8 | heal_03-manual_scale_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.168.131; osm-ext=172.21.249.84 | ubuntu18.04 | simple_requires-1-1-flv | | 6ce9d361-909f-4db5-9b1b-9f7435697c24 | heal_03-manual_scale_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.168.127; osm-ext=172.21.249.74 | ubuntu18.04 | simple_requires-1-1-flv | | 8c47d147-352b-4c42-a79e-ea9a29b092bb | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.126 | ubuntu20.04 | several_volumes-VM-flv | | 355f919f-d8f5-408e-a3aa-0d178091e2e2 | heal_04-autoheal-basic-1-autoheal_vnfd-VM-0 | ERROR | osm-ext=172.21.248.213 | ubuntu20.04 | autoheal_vnfd-VM-autoheal-basic-1-1-flv | | e36153dc-e01c-415f-bfbc-18f3d9c521ee | sliceshared.slic-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.165; slicebasic.slice-nsd_vnfd_vld_dat=192.168.235.149 | ubuntu18.04 | osm.heal02_717036 | | d4a06d5b-cee0-4043-b519-55c3eaee5a7a | slicebasic.slice-middle-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.181; slicebasic.slice-nsd_vnfd_vld_dat=192.168.119.176, 192.168.235.85 | ubuntu18.04 | osm.heal02_717036 | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | f95bc563-d60c-4ca8-b7a8-d75a8b94bd38 | 2024-04-21T02:49:18 | 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} = f95bc563-d60c-4ca8-b7a8-d75a8b94bd38 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = f95bc563-d60c-4ca8-b7a8-d75a8b94bd38 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} = f95bc563-d60c-4ca8-b7a8-d75a8b94bd38 ${stdout} Logs the given message with the given level. f95bc563-d60c-4ca8-b7a8-d75a8b94bd38 ${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} = f95bc563-d60c-4ca8-b7a8-d75a8b94bd38 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = f95bc563-d60c-4ca8-b7a8-d75a8b94bd38 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 f95bc563-d60c-4ca8-b7a8-d75a8b94bd38 | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = bf45d72a-1778-44c6-a39c-09c140cc119e ${stdout} Logs the given message with the given level. bf45d72a-1778-44c6-a39c-09c140cc119e ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${vnf_id} = bf45d72a-1778-44c6-a39c-09c140cc119e ${VNF_MANUALSCALE_ID} ${vnf_id} Makes a variable available everywhere within the scope of the current suite. ${VNF_MANUALSCALE_ID} = bf45d72a-1778-44c6-a39c-09c140cc119e @{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 bf45d72a-1778-44c6-a39c-09c140cc119e --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} = 29a15720-52e8-4754-97d7-60497c18c1fe ${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 29a15720-52e8-4754-97d7-60497c18c1fe --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 29a15720-52e8-4754-97d7-60497c18c1fe ${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 29a15720-52e8-4754-97d7-60497c18c1fe --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 29a15720-52e8-4754-97d7-60497c18c1fe ${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 29a15720-52e8-4754-97d7-60497c18c1fe --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 29a15720-52e8-4754-97d7-60497c18c1fe --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 bf45d72a-1778-44c6-a39c-09c140cc119e --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 f95bc563-d60c-4ca8-b7a8-d75a8b94bd38 | grep f95bc563-d60c-4ca8-b7a8-d75a8b94bd38 | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | 2b89ce2c-9147-43a1-8df2-98c387bc7ee3 bf45d72a-1778-44c6-a39c-09c140cc119e ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ 2b89ce2c-9147-43a1-8df2-98c387bc7ee3 | bf45d72a-1778-44c6-a39c-09c140cc119e ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List length is 2 and it contains following items: 0: 2b89ce2c-9147-43a1-8df2-98c387bc7ee3 1: bf45d72a-1778-44c6-a39c-09c140cc119e @{vnf_list} @{vnf_id_list} = [ 2b89ce2c-9147-43a1-8df2-98c387bc7ee3 | bf45d72a-1778-44c6-a39c-09c140cc119e ] ${vnf_id_list} Logs the given message with the given level. ['2b89ce2c-9147-43a1-8df2-98c387bc7ee3', 'bf45d72a-1778-44c6-a39c-09c140cc119e'] ${vnf_id} @{vnf_id_list} 2b89ce2c-9147-43a1-8df2-98c387bc7ee3 ${vnf_id} Logs the given message with the given level. 2b89ce2c-9147-43a1-8df2-98c387bc7ee3 ${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 2b89ce2c-9147-43a1-8df2-98c387bc7ee3 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 8c47d147-352b-4c42-a79e-ea9a29b092bb ${stdout} Logs the given message with the given level. 8c47d147-352b-4c42-a79e-ea9a29b092bb ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 8c47d147-352b-4c42-a79e-ea9a29b092bb @{vdu_ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{vdu_ids} = [ 8c47d147-352b-4c42-a79e-ea9a29b092bb ] ${VIM_VDUS} @{vdu_ids} Adds ``values`` to the end of ``list``. bf45d72a-1778-44c6-a39c-09c140cc119e ${vnf_id} Logs the given message with the given level. bf45d72a-1778-44c6-a39c-09c140cc119e ${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 bf45d72a-1778-44c6-a39c-09c140cc119e --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 6ce9d361-909f-4db5-9b1b-9f7435697c24 3c5a8ce9-8f4d-4e3c-8e26-9d24d277ada8 6fb87d07-a0ce-4193-8896-8fd43185caad ${stdout} Logs the given message with the given level. 6ce9d361-909f-4db5-9b1b-9f7435697c24 3c5a8ce9-8f4d-4e3c-8e26-9d24d277ada8 6fb87d07-a0ce-4193-8896-8fd43185caad ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 6ce9d361-909f-4db5-9b1b-9f7435697c24 3c5a8ce9-8f4d-4e3c-8e26-9d24d277ada8 6fb87d07-a0ce-4193-8896-8fd43185caad @{vdu_ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{vdu_ids} = [ 6ce9d361-909f-4db5-9b1b-9f7435697c24 | 3c5a8ce9-8f4d-4e3c-8e26-9d24d277ada8 | 6fb87d07-a0ce-4193-8896-8fd43185caad ] ${VIM_VDUS} @{vdu_ids} Adds ``values`` to the end of ``list``. ${vdu_id} @{VIM_VDUS} 8c47d147-352b-4c42-a79e-ea9a29b092bb ${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 8c47d147-352b-4c42-a79e-ea9a29b092bb -c volumes_attached -f value 2>&1'. ${rc} = 0 ${stdout} = [{'device': None, 'id': 'da242ae3-1d91-4d57-95b9-a133891a2266', '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': 'da242ae3-1d91-4d57-95b9-a133891a2266', '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': 'da242ae3-1d91-4d57-95b9-a133891a2266', '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} = ['da242ae3-1d91-4d57-95b9-a133891a2266'] ${VIM_VOLUMES} ${match}[0] Adds ``values`` to the end of ``list``. 6ce9d361-909f-4db5-9b1b-9f7435697c24 ${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 6ce9d361-909f-4db5-9b1b-9f7435697c24 -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``. 3c5a8ce9-8f4d-4e3c-8e26-9d24d277ada8 ${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 3c5a8ce9-8f4d-4e3c-8e26-9d24d277ada8 -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``. 6fb87d07-a0ce-4193-8896-8fd43185caad ${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 6fb87d07-a0ce-4193-8896-8fd43185caad -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. 8c47d147-352b-4c42-a79e-ea9a29b092bb 6ce9d361-909f-4db5-9b1b-9f7435697c24 3c5a8ce9-8f4d-4e3c-8e26-9d24d277ada8 6fb87d07-a0ce-4193-8896-8fd43185caad @{VIM_VOLUMES} Logs the given messages as separate entries using the INFO level. da242ae3-1d91-4d57-95b9-a133891a2266 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 bf45d72a-1778-44c6-a39c-09c140cc119e --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 6ce9d361-909f-4db5-9b1b-9f7435697c24 3c5a8ce9-8f4d-4e3c-8e26-9d24d277ada8 6fb87d07-a0ce-4193-8896-8fd43185caad ${stdout} Logs the given message with the given level. 6ce9d361-909f-4db5-9b1b-9f7435697c24 3c5a8ce9-8f4d-4e3c-8e26-9d24d277ada8 6fb87d07-a0ce-4193-8896-8fd43185caad ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 6ce9d361-909f-4db5-9b1b-9f7435697c24 3c5a8ce9-8f4d-4e3c-8e26-9d24d277ada8 6fb87d07-a0ce-4193-8896-8fd43185caad @{vdu_manualscale_ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{vdu_manualscale_ids} = [ 6ce9d361-909f-4db5-9b1b-9f7435697c24 | 3c5a8ce9-8f4d-4e3c-8e26-9d24d277ada8 | 6fb87d07-a0ce-4193-8896-8fd43185caad ] @{VDU_MANUALSCALE_IDS} @{vdu_manualscale_ids} Makes a variable available everywhere within the scope of the current suite. @{VDU_MANUALSCALE_IDS} = [ 6ce9d361-909f-4db5-9b1b-9f7435697c24 | 3c5a8ce9-8f4d-4e3c-8e26-9d24d277ada8 | 6fb87d07-a0ce-4193-8896-8fd43185caad ] ${VDU_MANUALSCALE_IDS}[1] Logs the given message with the given level. 3c5a8ce9-8f4d-4e3c-8e26-9d24d277ada8 @{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 bf45d72a-1778-44c6-a39c-09c140cc119e --literal | yq -r '.vdur[].interfaces[]."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 172.21.249.74 192.168.168.127 172.21.249.84 192.168.168.131 172.21.249.255 192.168.168.130 ${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.74 | 192.168.168.127 | 172.21.249.84 | 192.168.168.131 | 172.21.249.255 | 192.168.168.130 ] @{ip} @{manualscale_ip_list} = [ 172.21.249.74 | 192.168.168.127 | 172.21.249.84 | 192.168.168.131 | 172.21.249.255 | 192.168.168.130 ] @{MANUALSCALE_IP_LIST} @{manualscale_ip_list} Makes a variable available everywhere within the scope of the current suite. @{MANUALSCALE_IP_LIST} = [ 172.21.249.74 | 192.168.168.127 | 172.21.249.84 | 192.168.168.131 | 172.21.249.255 | 192.168.168.130 ] 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 f95bc563-d60c-4ca8-b7a8-d75a8b94bd38 | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.248.126 ${stdout} Logs the given message with the given level. 172.21.248.126 ${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.126 ${ip_addr} Logs the given message with the given level. 172.21.248.126 ${VNF_VOLUMES_IP_ADDR} ${ip_addr} Makes a variable available everywhere within the scope of the current suite. ${VNF_VOLUMES_IP_ADDR} = 172.21.248.126 ${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 f95bc563-d60c-4ca8-b7a8-d75a8b94bd38 | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = 2b89ce2c-9147-43a1-8df2-98c387bc7ee3 ${stdout} Logs the given message with the given level. 2b89ce2c-9147-43a1-8df2-98c387bc7ee3 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${vnf_id} = 2b89ce2c-9147-43a1-8df2-98c387bc7ee3 ${VNF_VOLUMES_ID} ${vnf_id} Makes a variable available everywhere within the scope of the current suite. ${VNF_VOLUMES_ID} = 2b89ce2c-9147-43a1-8df2-98c387bc7ee3 ${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 2b89ce2c-9147-43a1-8df2-98c387bc7ee3 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 8c47d147-352b-4c42-a79e-ea9a29b092bb ${stdout} Logs the given message with the given level. 8c47d147-352b-4c42-a79e-ea9a29b092bb ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 8c47d147-352b-4c42-a79e-ea9a29b092bb ${VDU_VOLUMES_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${VDU_VOLUMES_ID} = 8c47d147-352b-4c42-a79e-ea9a29b092bb ${VDU_VOLUMES_ID} Logs the given message with the given level. 8c47d147-352b-4c42-a79e-ea9a29b092bb @{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 2b89ce2c-9147-43a1-8df2-98c387bc7ee3 --literal | yq -r '.vdur[].interfaces[]."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 172.21.248.126 ${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.248.126 ] @{ip} @{volumes_ip_list} = [ 172.21.248.126 ] @{VOLUMES_IP_LIST} @{volumes_ip_list} Makes a variable available everywhere within the scope of the current suite. @{VOLUMES_IP_LIST} = [ 172.21.248.126 ] @{VOLUMES_IP_LIST} Logs the given message with the given level. 172.21.248.126 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 3c5a8ce9-8f4d-4e3c-8e26-9d24d277ada8 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 6fb87d07-a0ce-4193-8896-8fd43185caad 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 8c47d147-352b-4c42-a79e-ea9a29b092bb 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 f95bc563-d60c-4ca8-b7a8-d75a8b94bd38 --vnf 2b89ce2c-9147-43a1-8df2-98c387bc7ee3 --cause "Heal myvdu1 of several_volumes_vnf" --vdu several_volumes-VM --vnf bf45d72a-1778-44c6-a39c-09c140cc119e --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} = 6fb3072b-7918-4baf-bf46-968fec60b236 ${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 6fb3072b-7918-4baf-bf46-968fec60b236 --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 6fb3072b-7918-4baf-bf46-968fec60b236 ${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 6fb3072b-7918-4baf-bf46-968fec60b236 --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 6fb3072b-7918-4baf-bf46-968fec60b236 ${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 6fb3072b-7918-4baf-bf46-968fec60b236 --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 6fb3072b-7918-4baf-bf46-968fec60b236 ${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 6fb3072b-7918-4baf-bf46-968fec60b236 --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 6fb3072b-7918-4baf-bf46-968fec60b236 --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 bf45d72a-1778-44c6-a39c-09c140cc119e --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 6ce9d361-909f-4db5-9b1b-9f7435697c24 fddebbe5-7a03-4795-a811-8cf6ebbd655b c83b2b61-c347-430d-ad87-0d11044f9812 ${stdout} Logs the given message with the given level. 6ce9d361-909f-4db5-9b1b-9f7435697c24 fddebbe5-7a03-4795-a811-8cf6ebbd655b c83b2b61-c347-430d-ad87-0d11044f9812 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 6ce9d361-909f-4db5-9b1b-9f7435697c24 fddebbe5-7a03-4795-a811-8cf6ebbd655b c83b2b61-c347-430d-ad87-0d11044f9812 @{ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{ids} = [ 6ce9d361-909f-4db5-9b1b-9f7435697c24 | fddebbe5-7a03-4795-a811-8cf6ebbd655b | c83b2b61-c347-430d-ad87-0d11044f9812 ] ${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 2b89ce2c-9147-43a1-8df2-98c387bc7ee3 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = cbb41cd0-f83b-427f-9b5e-dad6690bc738 ${stdout} Logs the given message with the given level. cbb41cd0-f83b-427f-9b5e-dad6690bc738 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = cbb41cd0-f83b-427f-9b5e-dad6690bc738 ${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 bf45d72a-1778-44c6-a39c-09c140cc119e --literal | yq '.vdur[] | select(."count-index" == 1)' | yq -r '."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 172.21.249.84 ${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.249.84 ${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.249.84: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 Sun Apr 21 02:53:08 UTC 2024 System load: 0.38 Processes: 95 Usage of /: 11.5% of 9.52GB Users logged in: 0 Memory usage: 12% IP address for ens3: 172.21.249.84 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.249.84: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 Sun Apr 21 02:53:11 UTC 2024 System load: 0.38 Processes: 95 Usage of /: 11.8% of 9.52GB Users logged in: 0 Memory usage: 12% IP address for ens3: 172.21.249.84 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: Sun Apr 21 02:53:09 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 f95bc563-d60c-4ca8-b7a8-d75a8b94bd38 | grep f95bc563-d60c-4ca8-b7a8-d75a8b94bd38 | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | 2b89ce2c-9147-43a1-8df2-98c387bc7ee3 bf45d72a-1778-44c6-a39c-09c140cc119e ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ 2b89ce2c-9147-43a1-8df2-98c387bc7ee3 | bf45d72a-1778-44c6-a39c-09c140cc119e ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List length is 2 and it contains following items: 0: 2b89ce2c-9147-43a1-8df2-98c387bc7ee3 1: bf45d72a-1778-44c6-a39c-09c140cc119e @{vnf_list} @{vnf_id_list} = [ 2b89ce2c-9147-43a1-8df2-98c387bc7ee3 | bf45d72a-1778-44c6-a39c-09c140cc119e ] ${vnf_id} @{vnf_id_list} 2b89ce2c-9147-43a1-8df2-98c387bc7ee3 ${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 2b89ce2c-9147-43a1-8df2-98c387bc7ee3 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = cbb41cd0-f83b-427f-9b5e-dad6690bc738 ${stdout} Logs the given message with the given level. cbb41cd0-f83b-427f-9b5e-dad6690bc738 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = cbb41cd0-f83b-427f-9b5e-dad6690bc738 @{vdu_ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{vdu_ids} = [ cbb41cd0-f83b-427f-9b5e-dad6690bc738 ] ${vdu_updated} @{vdu_ids} Adds ``values`` to the end of ``list``. ${id} @{vdu_ids} cbb41cd0-f83b-427f-9b5e-dad6690bc738 ${VIM_VDUS} ${id} Adds ``values`` to the end of ``list``. bf45d72a-1778-44c6-a39c-09c140cc119e ${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 bf45d72a-1778-44c6-a39c-09c140cc119e --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 6ce9d361-909f-4db5-9b1b-9f7435697c24 fddebbe5-7a03-4795-a811-8cf6ebbd655b c83b2b61-c347-430d-ad87-0d11044f9812 ${stdout} Logs the given message with the given level. 6ce9d361-909f-4db5-9b1b-9f7435697c24 fddebbe5-7a03-4795-a811-8cf6ebbd655b c83b2b61-c347-430d-ad87-0d11044f9812 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 6ce9d361-909f-4db5-9b1b-9f7435697c24 fddebbe5-7a03-4795-a811-8cf6ebbd655b c83b2b61-c347-430d-ad87-0d11044f9812 @{vdu_ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{vdu_ids} = [ 6ce9d361-909f-4db5-9b1b-9f7435697c24 | fddebbe5-7a03-4795-a811-8cf6ebbd655b | c83b2b61-c347-430d-ad87-0d11044f9812 ] ${vdu_updated} @{vdu_ids} Adds ``values`` to the end of ``list``. ${id} @{vdu_ids} 6ce9d361-909f-4db5-9b1b-9f7435697c24 ${VIM_VDUS} ${id} Adds ``values`` to the end of ``list``. fddebbe5-7a03-4795-a811-8cf6ebbd655b ${VIM_VDUS} ${id} Adds ``values`` to the end of ``list``. c83b2b61-c347-430d-ad87-0d11044f9812 ${VIM_VDUS} ${id} Adds ``values`` to the end of ``list``. ${vdu_id} @{vdu_updated} cbb41cd0-f83b-427f-9b5e-dad6690bc738 ${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 cbb41cd0-f83b-427f-9b5e-dad6690bc738 -c volumes_attached -f value 2>&1'. ${rc} = 0 ${stdout} = [{'device': None, 'id': 'da242ae3-1d91-4d57-95b9-a133891a2266', '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': 'da242ae3-1d91-4d57-95b9-a133891a2266', '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': 'da242ae3-1d91-4d57-95b9-a133891a2266', '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} = ['da242ae3-1d91-4d57-95b9-a133891a2266'] ${VIM_VOLUMES} ${match}[0] Adds ``values`` to the end of ``list``. 6ce9d361-909f-4db5-9b1b-9f7435697c24 ${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 6ce9d361-909f-4db5-9b1b-9f7435697c24 -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``. fddebbe5-7a03-4795-a811-8cf6ebbd655b ${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 fddebbe5-7a03-4795-a811-8cf6ebbd655b -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``. c83b2b61-c347-430d-ad87-0d11044f9812 ${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 c83b2b61-c347-430d-ad87-0d11044f9812 -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. 8c47d147-352b-4c42-a79e-ea9a29b092bb 6ce9d361-909f-4db5-9b1b-9f7435697c24 3c5a8ce9-8f4d-4e3c-8e26-9d24d277ada8 6fb87d07-a0ce-4193-8896-8fd43185caad cbb41cd0-f83b-427f-9b5e-dad6690bc738 fddebbe5-7a03-4795-a811-8cf6ebbd655b c83b2b61-c347-430d-ad87-0d11044f9812 @{VIM_VOLUMES} Logs the given messages as separate entries using the INFO level. da242ae3-1d91-4d57-95b9-a133891a2266 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 | +--------------------------------------+------------------------------------------------+--------+------------------------------------------------------------------------------------------+-------------+-------------------------+ | c9650aca-89a9-473f-91de-9c774700f4f2 | heal_03-manual_scale_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.140.226; osm-ext=172.21.249.143 | ubuntu18.04 | simple_requires-1-1-flv | | 27af7a32-a659-4602-be89-25aa33e19ffd | heal_03-manual_scale_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.140.86; osm-ext=172.21.248.234 | ubuntu18.04 | simple_requires-1-1-flv | | 2fb9e96c-dbbb-4345-b129-11b88055edc4 | sol003-instance--1-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.249.61 | ubuntu20.04 | simple_requires-1-1-flv | | 435bfb6f-19ab-45b0-b87d-dc136fcb7029 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.72 | ubuntu20.04 | several_volumes-VM-flv | | c83b2b61-c347-430d-ad87-0d11044f9812 | heal_03-manual_scale_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.168.130; osm-ext=172.21.249.255 | ubuntu18.04 | simple_requires-1-1-flv | | fddebbe5-7a03-4795-a811-8cf6ebbd655b | heal_03-manual_scale_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.168.131; osm-ext=172.21.249.84 | ubuntu18.04 | simple_requires-1-1-flv | | 7f200a32-2471-4a26-b5e3-4f2df45b553b | sol003-instance--1-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.89 | ubuntu20.04 | simple_requires-1-1-flv | | cbb41cd0-f83b-427f-9b5e-dad6690bc738 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.126 | ubuntu20.04 | several_volumes-VM-flv | | ba69ca0c-7499-445c-a70c-e207c39f05c0 | slicebasic.slice-middle-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.248.177; slicebasic.slice-nsd_vnfd_vld_dat=192.168.170.190, 192.168.98.21 | ubuntu18.04 | simple_requires-1-1-flv | | e7d7dc32-76e2-4514-a244-74ec87119350 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.131; slicebasic.slice-nsd_vnfd_vld_dat=192.168.170.154 | ubuntu18.04 | simple_requires-1-1-flv | | c8815d8e-1300-4a3c-9b37-54b46e77614e | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.10; slicebasic.slice-nsd_vnfd_vld_dat=192.168.98.168 | ubuntu18.04 | simple_requires-1-1-flv | | 9968b4ab-3dd7-497a-8fd5-dcd69d2028b7 | heal_03-manual_scale_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.140.136; osm-ext=172.21.248.233 | ubuntu18.04 | simple_requires-1-1-flv | | 6ce9d361-909f-4db5-9b1b-9f7435697c24 | heal_03-manual_scale_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.168.127; osm-ext=172.21.249.74 | ubuntu18.04 | simple_requires-1-1-flv | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | +--------------------------------------+-----------------------------------------------+--------+------------------------------------------------------------------------------------------+-------------+-------------------------+ | c9650aca-89a9-473f-91de-9c774700f4f2 | heal_03-manual_scale_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.140.226; osm-ext=172.21.249.143 | ubuntu18.04 | simple_requires-1-1-flv | | 27af7a32-a659-4602-be89-25aa33e19ffd | heal_03-manual_scale_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.140.86; osm-ext=172.21.248.234 | ubuntu18.04 | simple_requires-1-1-flv | | 435bfb6f-19ab-45b0-b87d-dc136fcb7029 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.72 | ubuntu20.04 | several_volumes-VM-flv | | c83b2b61-c347-430d-ad87-0d11044f9812 | heal_03-manual_scale_vnf-mgmtVM-2 | ACTIVE | osm-ext=172.21.249.255 | ubuntu18.04 | simple_requires-1-1-flv | | fddebbe5-7a03-4795-a811-8cf6ebbd655b | heal_03-manual_scale_vnf-mgmtVM-1 | ACTIVE | osm-ext=172.21.249.84 | ubuntu18.04 | simple_requires-1-1-flv | | ba69ca0c-7499-445c-a70c-e207c39f05c0 | slicebasic.slice-middle-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.248.177; slicebasic.slice-nsd_vnfd_vld_dat=192.168.170.190, 192.168.98.21 | ubuntu18.04 | simple_requires-1-1-flv | | e7d7dc32-76e2-4514-a244-74ec87119350 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.131; slicebasic.slice-nsd_vnfd_vld_dat=192.168.170.154 | ubuntu18.04 | simple_requires-1-1-flv | | c8815d8e-1300-4a3c-9b37-54b46e77614e | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.10; slicebasic.slice-nsd_vnfd_vld_dat=192.168.98.168 | ubuntu18.04 | simple_requires-1-1-flv | | 9968b4ab-3dd7-497a-8fd5-dcd69d2028b7 | heal_03-manual_scale_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.140.136; osm-ext=172.21.248.233 | ubuntu18.04 | simple_requires-1-1-flv | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | +--------------------------------------+-----------------------------------------------+--------+------------------------------------------------------------------------------------------+-------------+-------------------------+ | c9650aca-89a9-473f-91de-9c774700f4f2 | heal_03-manual_scale_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.140.226; osm-ext=172.21.249.143 | ubuntu18.04 | simple_requires-1-1-flv | | 27af7a32-a659-4602-be89-25aa33e19ffd | heal_03-manual_scale_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.140.86; osm-ext=172.21.248.234 | ubuntu18.04 | simple_requires-1-1-flv | | 435bfb6f-19ab-45b0-b87d-dc136fcb7029 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.72 | ubuntu20.04 | several_volumes-VM-flv | | ba69ca0c-7499-445c-a70c-e207c39f05c0 | slicebasic.slice-middle-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.248.177; slicebasic.slice-nsd_vnfd_vld_dat=192.168.170.190, 192.168.98.21 | ubuntu18.04 | simple_requires-1-1-flv | | e7d7dc32-76e2-4514-a244-74ec87119350 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.131; slicebasic.slice-nsd_vnfd_vld_dat=192.168.170.154 | ubuntu18.04 | simple_requires-1-1-flv | | c8815d8e-1300-4a3c-9b37-54b46e77614e | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.10; slicebasic.slice-nsd_vnfd_vld_dat=192.168.98.168 | ubuntu18.04 | simple_requires-1-1-flv | | 9968b4ab-3dd7-497a-8fd5-dcd69d2028b7 | heal_03-manual_scale_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.140.136; osm-ext=172.21.248.233 | ubuntu18.04 | simple_requires-1-1-flv | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | f54650be-f6c6-45d5-8a73-2eb62aa13544 | osm-v140-merge-298 | ACTIVE | osm-ext=172.21.248.202 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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} da242ae3-1d91-4d57-95b9-a133891a2266 Checking if volume ${vol_id} is still in VIM Logs the given message with the given level. Checking if volume da242ae3-1d91-4d57-95b9-a133891a2266 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 da242ae3-1d91-4d57-95b9-a133891a2266 | 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} 8c47d147-352b-4c42-a79e-ea9a29b092bb Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server 8c47d147-352b-4c42-a79e-ea9a29b092bb 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 8c47d147-352b-4c42-a79e-ea9a29b092bb -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for 8c47d147-352b-4c42-a79e-ea9a29b092bb ${stdout} Logs the given message with the given level. No Server found for 8c47d147-352b-4c42-a79e-ea9a29b092bb ${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. 6ce9d361-909f-4db5-9b1b-9f7435697c24 Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server 6ce9d361-909f-4db5-9b1b-9f7435697c24 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 6ce9d361-909f-4db5-9b1b-9f7435697c24 -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for 6ce9d361-909f-4db5-9b1b-9f7435697c24 ${stdout} Logs the given message with the given level. No Server found for 6ce9d361-909f-4db5-9b1b-9f7435697c24 ${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. 3c5a8ce9-8f4d-4e3c-8e26-9d24d277ada8 Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server 3c5a8ce9-8f4d-4e3c-8e26-9d24d277ada8 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 3c5a8ce9-8f4d-4e3c-8e26-9d24d277ada8 -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for 3c5a8ce9-8f4d-4e3c-8e26-9d24d277ada8 ${stdout} Logs the given message with the given level. No Server found for 3c5a8ce9-8f4d-4e3c-8e26-9d24d277ada8 ${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. 6fb87d07-a0ce-4193-8896-8fd43185caad Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server 6fb87d07-a0ce-4193-8896-8fd43185caad 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 6fb87d07-a0ce-4193-8896-8fd43185caad -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for 6fb87d07-a0ce-4193-8896-8fd43185caad ${stdout} Logs the given message with the given level. No Server found for 6fb87d07-a0ce-4193-8896-8fd43185caad ${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. cbb41cd0-f83b-427f-9b5e-dad6690bc738 Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server cbb41cd0-f83b-427f-9b5e-dad6690bc738 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 cbb41cd0-f83b-427f-9b5e-dad6690bc738 -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for cbb41cd0-f83b-427f-9b5e-dad6690bc738 ${stdout} Logs the given message with the given level. No Server found for cbb41cd0-f83b-427f-9b5e-dad6690bc738 ${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. fddebbe5-7a03-4795-a811-8cf6ebbd655b Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server fddebbe5-7a03-4795-a811-8cf6ebbd655b 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 fddebbe5-7a03-4795-a811-8cf6ebbd655b -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for fddebbe5-7a03-4795-a811-8cf6ebbd655b ${stdout} Logs the given message with the given level. No Server found for fddebbe5-7a03-4795-a811-8cf6ebbd655b ${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. c83b2b61-c347-430d-ad87-0d11044f9812 Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server c83b2b61-c347-430d-ad87-0d11044f9812 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 c83b2b61-c347-430d-ad87-0d11044f9812 -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for c83b2b61-c347-430d-ad87-0d11044f9812 ${stdout} Logs the given message with the given level. No Server found for c83b2b61-c347-430d-ad87-0d11044f9812 ${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 | +--------------------------------------+-------------------------------------------+--------+---------------------------------------------------------------------------+-------------+-------------------------+ | ba69ca0c-7499-445c-a70c-e207c39f05c0 | slicebasic.slice-middle-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.248.177; slicebasic.slice-nsd_vnfd_vld_dat=192.168.170.190 | ubuntu18.04 | simple_requires-1-1-flv | | e7d7dc32-76e2-4514-a244-74ec87119350 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.131; slicebasic.slice-nsd_vnfd_vld_dat=192.168.170.154 | ubuntu18.04 | simple_requires-1-1-flv | | c8815d8e-1300-4a3c-9b37-54b46e77614e | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | | ubuntu18.04 | simple_requires-1-1-flv | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 22041dd7-0b0e-4fc5-877a-e34ca9b48b68 ${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} = 22041dd7-0b0e-4fc5-877a-e34ca9b48b68 ${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 75543e7b-a03c-4d9c-9b6d-5d0eb9b8937d ${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} = 75543e7b-a03c-4d9c-9b6d-5d0eb9b8937d ${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} = df7f7df8-827c-4f77-9b2f-3f2e69bc3bb7 ${stdout} Logs the given message with the given level. df7f7df8-827c-4f77-9b2f-3f2e69bc3bb7 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = df7f7df8-827c-4f77-9b2f-3f2e69bc3bb7 ${ns_id} Logs the given message with the given level. df7f7df8-827c-4f77-9b2f-3f2e69bc3bb7 ${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 | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | df7f7df8-827c-4f77-9b2f-3f2e69bc3bb7 | 2024-04-21T02:54:45 | BUILDING | INSTANTIATING (5d84405e-a7c4-4769-acd1-ba437f7370ee) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | df7f7df8-827c-4f77-9b2f-3f2e69bc3bb7 | 2024-04-21T02:54:45 | BUILDING | INSTANTIATING (5d84405e-a7c4-4769-acd1-ba437f7370ee) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+---------------------------------------------+--------+------------------------+-------------+-----------------------------------------+ | 47054aac-7f3f-440c-a662-b99f81cc236c | heal_04-autoheal-basic-1-autoheal_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.209 | ubuntu20.04 | autoheal_vnfd-VM-autoheal-basic-1-1-flv | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | df7f7df8-827c-4f77-9b2f-3f2e69bc3bb7 | 2024-04-21T02:54:45 | 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 | +--------------------------------------+---------------------------------------------+--------+------------------------+-------------+-----------------------------------------+ | 47054aac-7f3f-440c-a662-b99f81cc236c | heal_04-autoheal-basic-1-autoheal_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.209 | ubuntu20.04 | autoheal_vnfd-VM-autoheal-basic-1-1-flv | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | df7f7df8-827c-4f77-9b2f-3f2e69bc3bb7 | 2024-04-21T02:54:45 | 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} = df7f7df8-827c-4f77-9b2f-3f2e69bc3bb7 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = df7f7df8-827c-4f77-9b2f-3f2e69bc3bb7 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} = df7f7df8-827c-4f77-9b2f-3f2e69bc3bb7 ${stdout} Logs the given message with the given level. df7f7df8-827c-4f77-9b2f-3f2e69bc3bb7 ${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} = df7f7df8-827c-4f77-9b2f-3f2e69bc3bb7 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = df7f7df8-827c-4f77-9b2f-3f2e69bc3bb7 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 df7f7df8-827c-4f77-9b2f-3f2e69bc3bb7 | grep df7f7df8-827c-4f77-9b2f-3f2e69bc3bb7 | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | e45713d3-d086-4fec-9d92-df99284b9c18 ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ e45713d3-d086-4fec-9d92-df99284b9c18 ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: e45713d3-d086-4fec-9d92-df99284b9c18 @{vnf_list} @{vnf_id_list} = [ e45713d3-d086-4fec-9d92-df99284b9c18 ] ${vnf_id_list} Logs the given message with the given level. ['e45713d3-d086-4fec-9d92-df99284b9c18'] ${vnf_id} @{vnf_id_list} e45713d3-d086-4fec-9d92-df99284b9c18 ${vnf_id} Logs the given message with the given level. e45713d3-d086-4fec-9d92-df99284b9c18 ${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 e45713d3-d086-4fec-9d92-df99284b9c18 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 47054aac-7f3f-440c-a662-b99f81cc236c ${stdout} Logs the given message with the given level. 47054aac-7f3f-440c-a662-b99f81cc236c ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 47054aac-7f3f-440c-a662-b99f81cc236c @{vdu_ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{vdu_ids} = [ 47054aac-7f3f-440c-a662-b99f81cc236c ] ${VIM_VDUS} @{vdu_ids} Adds ``values`` to the end of ``list``. @{VIM_VDUS} Logs the given messages as separate entries using the INFO level. 47054aac-7f3f-440c-a662-b99f81cc236c 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 df7f7df8-827c-4f77-9b2f-3f2e69bc3bb7 | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.249.209 ${stdout} Logs the given message with the given level. 172.21.249.209 ${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.209 ${ip_addr} Logs the given message with the given level. 172.21.249.209 ${VNF_IP_ADDR} ${ip_addr} Makes a variable available everywhere within the scope of the current suite. ${VNF_IP_ADDR} = 172.21.249.209 ${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 df7f7df8-827c-4f77-9b2f-3f2e69bc3bb7 | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = e45713d3-d086-4fec-9d92-df99284b9c18 ${stdout} Logs the given message with the given level. e45713d3-d086-4fec-9d92-df99284b9c18 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${vnf_id} = e45713d3-d086-4fec-9d92-df99284b9c18 ${VNF_AUTOHEAL_ID} ${vnf_id} Makes a variable available everywhere within the scope of the current suite. ${VNF_AUTOHEAL_ID} = e45713d3-d086-4fec-9d92-df99284b9c18 ${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 e45713d3-d086-4fec-9d92-df99284b9c18 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 47054aac-7f3f-440c-a662-b99f81cc236c ${stdout} Logs the given message with the given level. 47054aac-7f3f-440c-a662-b99f81cc236c ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 47054aac-7f3f-440c-a662-b99f81cc236c ${VDU_AUTOHEAL_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${VDU_AUTOHEAL_ID} = 47054aac-7f3f-440c-a662-b99f81cc236c ${VDU_AUTOHEAL_ID} Logs the given message with the given level. 47054aac-7f3f-440c-a662-b99f81cc236c @{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 e45713d3-d086-4fec-9d92-df99284b9c18 --literal | yq -r '.vdur[].interfaces[]."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 172.21.249.209 ${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.209 ] @{ip} @{AUTOHEAL_IP_LIST} = [ 172.21.249.209 ] @{AUTOHEAL_IP_LIST} @{AUTOHEAL_IP_LIST} Makes a variable available everywhere within the scope of the current suite. @{AUTOHEAL_IP_LIST} = [ 172.21.249.209 ] @{AUTOHEAL_IP_LIST} Logs the given message with the given level. 172.21.249.209 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 47054aac-7f3f-440c-a662-b99f81cc236c 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 df7f7df8-827c-4f77-9b2f-3f2e69bc3bb7 | 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 df7f7df8-827c-4f77-9b2f-3f2e69bc3bb7 | 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 df7f7df8-827c-4f77-9b2f-3f2e69bc3bb7 | 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 df7f7df8-827c-4f77-9b2f-3f2e69bc3bb7 | 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 df7f7df8-827c-4f77-9b2f-3f2e69bc3bb7 | 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 df7f7df8-827c-4f77-9b2f-3f2e69bc3bb7 | 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 df7f7df8-827c-4f77-9b2f-3f2e69bc3bb7 | 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 df7f7df8-827c-4f77-9b2f-3f2e69bc3bb7 | 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 df7f7df8-827c-4f77-9b2f-3f2e69bc3bb7 | 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 df7f7df8-827c-4f77-9b2f-3f2e69bc3bb7 | 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 df7f7df8-827c-4f77-9b2f-3f2e69bc3bb7 | 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 df7f7df8-827c-4f77-9b2f-3f2e69bc3bb7 | 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 df7f7df8-827c-4f77-9b2f-3f2e69bc3bb7 | 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 df7f7df8-827c-4f77-9b2f-3f2e69bc3bb7 | 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 df7f7df8-827c-4f77-9b2f-3f2e69bc3bb7 | 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 df7f7df8-827c-4f77-9b2f-3f2e69bc3bb7 | grep heal | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = 385142ed-6b57-4ba8-830f-3b3166cb6fe8 ${stdout} Logs the given message with the given level. 385142ed-6b57-4ba8-830f-3b3166cb6fe8 ${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 df7f7df8-827c-4f77-9b2f-3f2e69bc3bb7 | grep heal | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = 385142ed-6b57-4ba8-830f-3b3166cb6fe8 ${stdout} Logs the given message with the given level. 385142ed-6b57-4ba8-830f-3b3166cb6fe8 ${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} = 385142ed-6b57-4ba8-830f-3b3166cb6fe8 ${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 385142ed-6b57-4ba8-830f-3b3166cb6fe8 --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 385142ed-6b57-4ba8-830f-3b3166cb6fe8 ${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 385142ed-6b57-4ba8-830f-3b3166cb6fe8 --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 385142ed-6b57-4ba8-830f-3b3166cb6fe8 ${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 385142ed-6b57-4ba8-830f-3b3166cb6fe8 --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 385142ed-6b57-4ba8-830f-3b3166cb6fe8 --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 e45713d3-d086-4fec-9d92-df99284b9c18 --literal | yq -r '.vdur[].interfaces[]."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 172.21.249.209 ${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.209 ] @{ip} @{ip_list} = [ 172.21.249.209 ] @{ip_list} Logs the given message with the given level. 172.21.249.209 ${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 e45713d3-d086-4fec-9d92-df99284b9c18 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 4435461e-3789-4ff6-b68f-912e550c408b ${stdout} Logs the given message with the given level. 4435461e-3789-4ff6-b68f-912e550c408b ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 4435461e-3789-4ff6-b68f-912e550c408b ${id} Logs the given message with the given level. 4435461e-3789-4ff6-b68f-912e550c408b ${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 df7f7df8-827c-4f77-9b2f-3f2e69bc3bb7 | grep df7f7df8-827c-4f77-9b2f-3f2e69bc3bb7 | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | e45713d3-d086-4fec-9d92-df99284b9c18 ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ e45713d3-d086-4fec-9d92-df99284b9c18 ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: e45713d3-d086-4fec-9d92-df99284b9c18 @{vnf_list} @{vnf_id_list} = [ e45713d3-d086-4fec-9d92-df99284b9c18 ] ${vnf_id} @{vnf_id_list} e45713d3-d086-4fec-9d92-df99284b9c18 ${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 e45713d3-d086-4fec-9d92-df99284b9c18 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 4435461e-3789-4ff6-b68f-912e550c408b ${stdout} Logs the given message with the given level. 4435461e-3789-4ff6-b68f-912e550c408b ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 4435461e-3789-4ff6-b68f-912e550c408b @{vdu_ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{vdu_ids} = [ 4435461e-3789-4ff6-b68f-912e550c408b ] ${id} @{vdu_ids} 4435461e-3789-4ff6-b68f-912e550c408b ${VIM_VDUS} ${id} Adds ``values`` to the end of ``list``. @{VIM_VDUS} Logs the given messages as separate entries using the INFO level. 47054aac-7f3f-440c-a662-b99f81cc236c 4435461e-3789-4ff6-b68f-912e550c408b 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} = +--------------------------------------+---------------------------------------------+--------+-----------------------------------------------------------------------------------------+-------------+-... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+---------------------------------------------+--------+-----------------------------------------------------------------------------------------+-------------+-----------------------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+---------------------------------------------+--------+-----------------------------------------------------------------------------------------+-------------+-----------------------------------------+ | 4435461e-3789-4ff6-b68f-912e550c408b | heal_04-autoheal-basic-1-autoheal_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.209 | ubuntu20.04 | autoheal_vnfd-VM-autoheal-basic-1-1-flv | | c2ccdbda-2f19-4d8d-a58f-86248713ffbc | sliceshared.slic-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.171; slicebasic.slice-nsd_vnfd_vld_dat=192.168.15.7 | ubuntu18.04 | simple_requires-1-1-flv | | cca966ba-6c2a-4d6b-833a-6ea69d64f2eb | slicebasic.slice-middle-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.119; slicebasic.slice-nsd_vnfd_vld_dat=192.168.15.171, 192.168.40.89 | ubuntu18.04 | simple_requires-1-1-flv | | 603afc7f-1ea9-495f-81cd-2ab19e8bb233 | heal_04-autoheal-basic-1-autoheal_vnfd-VM-0 | ERROR | osm-ext=172.21.248.191 | ubuntu20.04 | autoheal_vnfd-VM-autoheal-basic-1-1-flv | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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} = +--------------------------------------+---------------------------------------------+--------+-----------------------------------------------------------------------------------------+-------------+-... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+---------------------------------------------+--------+-----------------------------------------------------------------------------------------+-------------+-----------------------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+---------------------------------------------+--------+-----------------------------------------------------------------------------------------+-------------+-----------------------------------------+ | c4d4f51e-a04b-4c62-a348-18584e497fac | heal_04-autoheal-basic-1-autoheal_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.191 | ubuntu20.04 | autoheal_vnfd-VM-autoheal-basic-1-1-flv | | c2ccdbda-2f19-4d8d-a58f-86248713ffbc | sliceshared.slic-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.171; slicebasic.slice-nsd_vnfd_vld_dat=192.168.15.7 | ubuntu18.04 | simple_requires-1-1-flv | | cca966ba-6c2a-4d6b-833a-6ea69d64f2eb | slicebasic.slice-middle-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.119; slicebasic.slice-nsd_vnfd_vld_dat=192.168.15.171, 192.168.40.89 | ubuntu18.04 | simple_requires-1-1-flv | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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} 47054aac-7f3f-440c-a662-b99f81cc236c Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server 47054aac-7f3f-440c-a662-b99f81cc236c 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 47054aac-7f3f-440c-a662-b99f81cc236c -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for 47054aac-7f3f-440c-a662-b99f81cc236c ${stdout} Logs the given message with the given level. No Server found for 47054aac-7f3f-440c-a662-b99f81cc236c ${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. 4435461e-3789-4ff6-b68f-912e550c408b Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server 4435461e-3789-4ff6-b68f-912e550c408b 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 4435461e-3789-4ff6-b68f-912e550c408b -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for 4435461e-3789-4ff6-b68f-912e550c408b ${stdout} Logs the given message with the given level. No Server found for 4435461e-3789-4ff6-b68f-912e550c408b ${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} = 105332 ${VIM_NAME} SEPARATOR=_ ${vim_name_prefix} ${rand} Catenates the given items together and returns the resulted string. ${VIM_NAME} = basic01_105332 ${VIM_NAME} Makes a variable available everywhere within the scope of the current suite. ${VIM_NAME} = basic01_105332 ${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_105332 --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_105332 --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} = 715b8880-4dd5-4777-a411-5a9a00c38637 ${stdout} Logs the given message with the given level. 715b8880-4dd5-4777-a411-5a9a00c38637 ${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} = 715b8880-4dd5-4777-a411-5a9a00c38637 ${CREATED_VIM_ACCOUNT_ID} Makes a variable available everywhere within the scope of the current suite. ${CREATED_VIM_ACCOUNT_ID} = 715b8880-4dd5-4777-a411-5a9a00c38637 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_105332 --k8s-nets '{"net1": "osm-ext"}' k8s02 --description "Robot cluster" 2>&1'. ${rc} = 0 ${stdout} = 612abcb6-6080-4d2c-b29e-102a1afefd2a ${stdout} Logs the given message with the given level. 612abcb6-6080-4d2c-b29e-102a1afefd2a ${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 | 612abcb6-6080-4d2c-b29e-102a1afefd2a | basic01_105332 | DEGRADED | Helm: - | | | | | | Juju: ERROR | +-------+--------------------------------------+----------------+-------------------+-------------------+ ${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 | 612abcb6-6080-4d2c-b29e-102a1afefd2a | basic01_105332 | DEGRADED | Helm: - | | | | | | Juju: ERROR | +-------+--------------------------------------+----------------+-------------------+-------------------+" | 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 | 612abcb6-6080-4d2c-b29e-102a1afefd2a | basic01_105332 | DEGRADED | Helm: - | | | | | | Juju: ERROR | +-------+--------------------------------------+----------------+-------------------+-------------------+ ${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 | 612abcb6-6080-4d2c-b29e-102a1afefd2a | basic01_105332 | DEGRADED | Helm: - | | | | | | Juju: ERROR | +-------+--------------------------------------+----------------+-------------------+-------------------+" | 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} = 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_105332 " | awk '{print $4}' 2>&1'. ${rc} = 0 ${stdout} = 715b8880-4dd5-4777-a411-5a9a00c38637 ${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} = 715b8880-4dd5-4777-a411-5a9a00c38637 ${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 715b8880-4dd5-4777-a411-5a9a00c38637 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 715b8880-4dd5-4777-a411-5a9a00c38637 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 fea24fda-00cf-449e-a1ea-7c95720d7336 ${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} = fea24fda-00cf-449e-a1ea-7c95720d7336 ${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 7bedec6b-8529-43d2-9ef6-2849c7e81389 ${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} = 7bedec6b-8529-43d2-9ef6-2849c7e81389 ${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} = cf2b9aae-0cff-47f4-a436-f959c4eeb4d4 ${stdout} Logs the given message with the given level. cf2b9aae-0cff-47f4-a436-f959c4eeb4d4 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = cf2b9aae-0cff-47f4-a436-f959c4eeb4d4 ${ns_id} Logs the given message with the given level. cf2b9aae-0cff-47f4-a436-f959c4eeb4d4 ${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 | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | cf2b9aae-0cff-47f4-a436-f959c4eeb4d4 | 2024-04-21T03:02:08 | BUILDING | INSTANTIATING (ec7306c5-8e2f-40cd-91a0-d09ec4ddc93c) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | cf2b9aae-0cff-47f4-a436-f959c4eeb4d4 | 2024-04-21T03:02:08 | BUILDING | INSTANTIATING (ec7306c5-8e2f-40cd-91a0-d09ec4ddc93c) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ | 920ae261-8fc7-4b59-9da6-bcb65e236954 | k8s_05-k8s_proxy-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 975ba903-9ccc-49f8-9339-b7f6b6b0e35d | k8s_05-k8s_proxy-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | cf2b9aae-0cff-47f4-a436-f959c4eeb4d4 | 2024-04-21T03:02:08 | BUILDING | INSTANTIATING (ec7306c5-8e2f-40cd-91a0-d09ec4ddc93c) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | cf2b9aae-0cff-47f4-a436-f959c4eeb4d4 | 2024-04-21T03:02:08 | BUILDING | INSTANTIATING (ec7306c5-8e2f-40cd-91a0-d09ec4ddc93c) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+------------------------------------------------+--------+-----------------------------------------------------------------+-------------+-------------------------+ | 586a4946-b429-49ae-aeea-fa4b6415aafd | sol003-instance--1-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.58 | ubuntu20.04 | simple_requires-1-1-flv | | 920ae261-8fc7-4b59-9da6-bcb65e236954 | k8s_05-k8s_proxy-vnf2-mgmtVM-0 | ACTIVE | k8s_05-k8s_proxy-datanet=192.168.222.9; osm-ext=172.21.249.51 | ubuntu18.04 | simple_requires-1-1-flv | | 975ba903-9ccc-49f8-9339-b7f6b6b0e35d | k8s_05-k8s_proxy-vnf1-mgmtVM-0 | ACTIVE | k8s_05-k8s_proxy-datanet=192.168.222.17; osm-ext=172.21.249.192 | ubuntu18.04 | simple_requires-1-1-flv | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | cf2b9aae-0cff-47f4-a436-f959c4eeb4d4 | 2024-04-21T03:02:08 | 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 | +--------------------------------------+------------------------------------------------+--------+-----------------------------------------------------------------+-------------+-------------------------+ | 586a4946-b429-49ae-aeea-fa4b6415aafd | sol003-instance--1-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.58 | ubuntu20.04 | simple_requires-1-1-flv | | 920ae261-8fc7-4b59-9da6-bcb65e236954 | k8s_05-k8s_proxy-vnf2-mgmtVM-0 | ACTIVE | k8s_05-k8s_proxy-datanet=192.168.222.9; osm-ext=172.21.249.51 | ubuntu18.04 | simple_requires-1-1-flv | | 975ba903-9ccc-49f8-9339-b7f6b6b0e35d | k8s_05-k8s_proxy-vnf1-mgmtVM-0 | ACTIVE | k8s_05-k8s_proxy-datanet=192.168.222.17; osm-ext=172.21.249.192 | ubuntu18.04 | simple_requires-1-1-flv | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | cf2b9aae-0cff-47f4-a436-f959c4eeb4d4 | 2024-04-21T03:02:08 | 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} = cf2b9aae-0cff-47f4-a436-f959c4eeb4d4 ${id} Logs the given message with the given level. cf2b9aae-0cff-47f4-a436-f959c4eeb4d4 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} = cf2b9aae-0cff-47f4-a436-f959c4eeb4d4 ${stdout} Logs the given message with the given level. cf2b9aae-0cff-47f4-a436-f959c4eeb4d4 ${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} = cf2b9aae-0cff-47f4-a436-f959c4eeb4d4 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = cf2b9aae-0cff-47f4-a436-f959c4eeb4d4 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 cf2b9aae-0cff-47f4-a436-f959c4eeb4d4 | grep cf2b9aae-0cff-47f4-a436-f959c4eeb4d4 | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = 6e972a9c-373c-4f43-9915-efe2e552af12 ${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} = [ 6e972a9c-373c-4f43-9915-efe2e552af12 ] @{vdur} @{vnfr_list} = [ 6e972a9c-373c-4f43-9915-efe2e552af12 ] ${vnfr_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: 6e972a9c-373c-4f43-9915-efe2e552af12 ${VNF_ID} ${vnfr_list}[0] Makes a variable available everywhere within the scope of the current suite. ${VNF_ID} = 6e972a9c-373c-4f43-9915-efe2e552af12 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} = d626f776-18cf-4723-b888-ae7370f34258 ${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 d626f776-18cf-4723-b888-ae7370f34258 --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 d626f776-18cf-4723-b888-ae7370f34258 ${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 d626f776-18cf-4723-b888-ae7370f34258 --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 d626f776-18cf-4723-b888-ae7370f34258 ${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 d626f776-18cf-4723-b888-ae7370f34258 --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 d626f776-18cf-4723-b888-ae7370f34258 ${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 d626f776-18cf-4723-b888-ae7370f34258 --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 d626f776-18cf-4723-b888-ae7370f34258 --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} = d626f776-18cf-4723-b888-ae7370f34258 ${ns_op_id} Logs the given message with the given level. d626f776-18cf-4723-b888-ae7370f34258 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 6e972a9c-373c-4f43-9915-efe2e552af12 --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} = 6cef6d50-5125-4e52-ba42-52db4359d76f ${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 6cef6d50-5125-4e52-ba42-52db4359d76f --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 6cef6d50-5125-4e52-ba42-52db4359d76f ${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 6cef6d50-5125-4e52-ba42-52db4359d76f --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 6cef6d50-5125-4e52-ba42-52db4359d76f --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} = 6cef6d50-5125-4e52-ba42-52db4359d76f ${ns_op_id} Logs the given message with the given level. 6cef6d50-5125-4e52-ba42-52db4359d76f 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 6e972a9c-373c-4f43-9915-efe2e552af12 --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} = +--------------------------------------+------------------------------------------------+--------+-----------------------------------------------------------------+-------------+----------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------------+--------+-----------------------------------------------------------------+-------------+-----------------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------------+--------+-----------------------------------------------------------------+-------------+-----------------------------------+ | 4c056aa2-4ba1-42f9-9903-03fb76b99cc7 | basic_05_instant-vnf-ubuntu_cloudinit-vnf-VM-0 | ACTIVE | osm-ext=172.21.249.227 | ubuntu18.04 | ubuntu_cloudinit-vnf-VM-vnf-1-flv | | 920ae261-8fc7-4b59-9da6-bcb65e236954 | k8s_05-k8s_proxy-vnf2-mgmtVM-0 | ACTIVE | k8s_05-k8s_proxy-datanet=192.168.222.9; osm-ext=172.21.249.51 | ubuntu18.04 | simple_requires-1-1-flv | | 975ba903-9ccc-49f8-9339-b7f6b6b0e35d | k8s_05-k8s_proxy-vnf1-mgmtVM-0 | ACTIVE | k8s_05-k8s_proxy-datanet=192.168.222.17; osm-ext=172.21.249.192 | ubuntu18.04 | simple_requires-1-1-flv | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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} = +--------------------------------------+------------------------------------------------+--------+-----------------------------------------------------------------+-------------+----------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------------+--------+-----------------------------------------------------------------+-------------+-----------------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------------+--------+-----------------------------------------------------------------+-------------+-----------------------------------+ | 4c056aa2-4ba1-42f9-9903-03fb76b99cc7 | basic_05_instant-vnf-ubuntu_cloudinit-vnf-VM-0 | ACTIVE | osm-ext=172.21.249.227 | ubuntu18.04 | ubuntu_cloudinit-vnf-VM-vnf-1-flv | | 920ae261-8fc7-4b59-9da6-bcb65e236954 | k8s_05-k8s_proxy-vnf2-mgmtVM-0 | ACTIVE | k8s_05-k8s_proxy-datanet=192.168.222.9; osm-ext=172.21.249.51 | ubuntu18.04 | simple_requires-1-1-flv | | 975ba903-9ccc-49f8-9339-b7f6b6b0e35d | k8s_05-k8s_proxy-vnf1-mgmtVM-0 | ACTIVE | k8s_05-k8s_proxy-datanet=192.168.222.17; osm-ext=172.21.249.192 | ubuntu18.04 | simple_requires-1-1-flv | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 d236bb48-7662-4249-9690-9f8003f771f5 ${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} = d236bb48-7662-4249-9690-9f8003f771f5 ${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 82608764-4a6f-4b76-8e02-7ff9ca7c8ff6 ${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} = 82608764-4a6f-4b76-8e02-7ff9ca7c8ff6 ${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} = 3dcec6c2-7ee9-4a24-b560-8e81ad6b6567 ${stdout} Logs the given message with the given level. 3dcec6c2-7ee9-4a24-b560-8e81ad6b6567 ${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} = 3dcec6c2-7ee9-4a24-b560-8e81ad6b6567 ${created_vim_account_id} Logs the given message with the given level. 3dcec6c2-7ee9-4a24-b560-8e81ad6b6567 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} = 7241c3cd-04ab-4148-91e4-24889b0f1c67 ${stdout} Logs the given message with the given level. 7241c3cd-04ab-4148-91e4-24889b0f1c67 ${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 | 7241c3cd-04ab-4148-91e4-24889b0f1c67 | k8s07_dummy | DEGRADED | Helm: - | | | | | | Juju: ERROR | +-------+--------------------------------------+-------------+-------------------+-------------------+ ${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 | 7241c3cd-04ab-4148-91e4-24889b0f1c67 | k8s07_dummy | DEGRADED | Helm: - | | | | | | Juju: ERROR | +-------+--------------------------------------+-------------+-------------------+-------------------+" | 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 | 7241c3cd-04ab-4148-91e4-24889b0f1c67 | k8s07_dummy | DEGRADED | Helm: - | | | | | | Juju: ERROR | +-------+--------------------------------------+-------------+-------------------+-------------------+ ${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 | 7241c3cd-04ab-4148-91e4-24889b0f1c67 | k8s07_dummy | DEGRADED | Helm: - | | | | | | Juju: ERROR | +-------+--------------------------------------+-------------+-------------------+-------------------+" | 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} = 20c911a6-f1de-4416-af49-14e7df1c9fe5 ${stdout} Logs the given message with the given level. 20c911a6-f1de-4416-af49-14e7df1c9fe5 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 20c911a6-f1de-4416-af49-14e7df1c9fe5 ${ns_id} Logs the given message with the given level. 20c911a6-f1de-4416-af49-14e7df1c9fe5 ${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 | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | 20c911a6-f1de-4416-af49-14e7df1c9fe5 | 2024-04-21T03:05:58 | BUILDING | INSTANTIATING (5c78dbec-e268-4b36-8cf7-5c64fc979f49) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | 20c911a6-f1de-4416-af49-14e7df1c9fe5 | 2024-04-21T03:05:58 | BUILDING | INSTANTIATING (5c78dbec-e268-4b36-8cf7-5c64fc979f49) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | 20c911a6-f1de-4416-af49-14e7df1c9fe5 | 2024-04-21T03:05:58 | BUILDING | INSTANTIATING (5c78dbec-e268-4b36-8cf7-5c64fc979f49) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | 20c911a6-f1de-4416-af49-14e7df1c9fe5 | 2024-04-21T03:05:58 | BUILDING | INSTANTIATING (5c78dbec-e268-4b36-8cf7-5c64fc979f49) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ | eb70ab98-449c-41e4-86d8-f8dad0a114df | basic_08_disable-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 9f931228-6424-4a37-bdbb-a3e5984bd556 | basic_08_disable-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | 20c911a6-f1de-4416-af49-14e7df1c9fe5 | 2024-04-21T03:05: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} = +--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ | eb70ab98-449c-41e4-86d8-f8dad0a114df | basic_08_disable-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 9f931228-6424-4a37-bdbb-a3e5984bd556 | basic_08_disable-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | 20c911a6-f1de-4416-af49-14e7df1c9fe5 | 2024-04-21T03:05: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} = 20c911a6-f1de-4416-af49-14e7df1c9fe5 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 20c911a6-f1de-4416-af49-14e7df1c9fe5 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 | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ | 55b2ff2c-8ff7-4170-a49b-1522fd65a98b | basic_08_disable-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | fd932efe-cc1d-416f-8675-cb9c0c5f377c | basic_08_disable-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | eb70ab98-449c-41e4-86d8-f8dad0a114df | basic_08_disable-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 9f931228-6424-4a37-bdbb-a3e5984bd556 | basic_08_disable-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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} = +--------------------------------------+--------------------------------+--------+------------------------------------------------------------------------------------+-------------+-------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------+--------+------------------------------------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------+--------+------------------------------------------------------------------------------------+-------------+-------------------------+ | a5df0f38-5b31-4040-98bb-95bbf5ac54f5 | k8s_06-nopasswd_-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 55b2ff2c-8ff7-4170-a49b-1522fd65a98b | basic_08_disable-vnf2-dataVM-0 | ACTIVE | basic_08_disable-datanet=192.168.68.156; basic_08_disable-internal=192.168.150.181 | ubuntu20.04 | simple_requires-1-1-flv | | fd932efe-cc1d-416f-8675-cb9c0c5f377c | basic_08_disable-vnf2-mgmtVM-0 | ACTIVE | basic_08_disable-internal=192.168.150.111; osm-ext=172.21.248.93 | ubuntu20.04 | simple_requires-1-1-flv | | eb70ab98-449c-41e4-86d8-f8dad0a114df | basic_08_disable-vnf1-dataVM-0 | ACTIVE | basic_08_disable-datanet=192.168.68.3; basic_08_disable-internal=192.168.218.215 | ubuntu20.04 | simple_requires-1-1-flv | | 9f931228-6424-4a37-bdbb-a3e5984bd556 | basic_08_disable-vnf1-mgmtVM-0 | ACTIVE | basic_08_disable-internal=192.168.218.67; osm-ext=172.21.248.184 | ubuntu20.04 | simple_requires-1-1-flv | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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} = 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 462cfbc1-d111-4c76-b61d-4d688cb4bd55 ${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} = 462cfbc1-d111-4c76-b61d-4d688cb4bd55 ${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 98d702a4-5385-4deb-9ca5-5d91c91e0b11 ${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} = 98d702a4-5385-4deb-9ca5-5d91c91e0b11 ${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} = cb8e9532-e171-4691-9a05-3f8fa17e2cb9 ${rc},${stdout} Logs the given message with the given level. 0,cb8e9532-e171-4691-9a05-3f8fa17e2cb9 ${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} = 1ad446b4-265f-4e9c-9b99-40e0f32dd463 ${stdout} Logs the given message with the given level. 1ad446b4-265f-4e9c-9b99-40e0f32dd463 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 1ad446b4-265f-4e9c-9b99-40e0f32dd463 ${ns_id} Logs the given message with the given level. 1ad446b4-265f-4e9c-9b99-40e0f32dd463 ${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 | +--------------------------------------+--------------------------------+--------+------------------------------------------------------------------------------------+-------------+-------------------------+ | 8495a5de-c814-40d6-927e-0a07a25310f8 | k8s_06-nopasswd_-vnf2-mgmtVM-0 | ACTIVE | k8s_06-nopasswd_-datanet=192.168.87.53; osm-ext=172.21.249.60 | ubuntu18.04 | simple_requires-1-1-flv | | a5df0f38-5b31-4040-98bb-95bbf5ac54f5 | k8s_06-nopasswd_-vnf1-mgmtVM-0 | ACTIVE | k8s_06-nopasswd_-datanet=192.168.87.177; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | 55b2ff2c-8ff7-4170-a49b-1522fd65a98b | basic_08_disable-vnf2-dataVM-0 | ACTIVE | basic_08_disable-datanet=192.168.68.156; basic_08_disable-internal=192.168.150.181 | ubuntu20.04 | simple_requires-1-1-flv | | fd932efe-cc1d-416f-8675-cb9c0c5f377c | basic_08_disable-vnf2-mgmtVM-0 | ACTIVE | basic_08_disable-internal=192.168.150.111; osm-ext=172.21.248.93 | ubuntu20.04 | simple_requires-1-1-flv | | eb70ab98-449c-41e4-86d8-f8dad0a114df | basic_08_disable-vnf1-dataVM-0 | ACTIVE | basic_08_disable-datanet=192.168.68.3; basic_08_disable-internal=192.168.218.215 | ubuntu20.04 | simple_requires-1-1-flv | | 9f931228-6424-4a37-bdbb-a3e5984bd556 | basic_08_disable-vnf1-mgmtVM-0 | ACTIVE | basic_08_disable-internal=192.168.218.67; osm-ext=172.21.248.184 | ubuntu20.04 | simple_requires-1-1-flv | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | 1ad446b4-265f-4e9c-9b99-40e0f32dd463 | 2024-04-21T03:07:55 | BUILDING | INSTANTIATING (45da0d03-6bcf-4277-bf31-1a8f1424d314) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | 1ad446b4-265f-4e9c-9b99-40e0f32dd463 | 2024-04-21T03:07:55 | BUILDING | INSTANTIATING (45da0d03-6bcf-4277-bf31-1a8f1424d314) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+--------------------------------+--------+----------------------------------------------------------------+-------------+-------------------------+ | 8495a5de-c814-40d6-927e-0a07a25310f8 | k8s_06-nopasswd_-vnf2-mgmtVM-0 | ACTIVE | k8s_06-nopasswd_-datanet=192.168.87.53; osm-ext=172.21.249.60 | ubuntu18.04 | simple_requires-1-1-flv | | a5df0f38-5b31-4040-98bb-95bbf5ac54f5 | k8s_06-nopasswd_-vnf1-mgmtVM-0 | ACTIVE | k8s_06-nopasswd_-datanet=192.168.87.177; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | 1ad446b4-265f-4e9c-9b99-40e0f32dd463 | 2024-04-21T03:07:55 | BUILDING | INSTANTIATING (45da0d03-6bcf-4277-bf31-1a8f1424d314) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | 1ad446b4-265f-4e9c-9b99-40e0f32dd463 | 2024-04-21T03:07:55 | BUILDING | INSTANTIATING (45da0d03-6bcf-4277-bf31-1a8f1424d314) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+--------------------------------------------------+--------+----------------------------------------------------------------+-------------+-------------------------+ | 78922a16-8398-43ef-a681-bed886cb1819 | basic_09_manual_-vnf-hackfest_basic_metrics-VM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 8495a5de-c814-40d6-927e-0a07a25310f8 | k8s_06-nopasswd_-vnf2-mgmtVM-0 | ACTIVE | k8s_06-nopasswd_-datanet=192.168.87.53; osm-ext=172.21.249.60 | ubuntu18.04 | simple_requires-1-1-flv | | a5df0f38-5b31-4040-98bb-95bbf5ac54f5 | k8s_06-nopasswd_-vnf1-mgmtVM-0 | ACTIVE | k8s_06-nopasswd_-datanet=192.168.87.177; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | 1ad446b4-265f-4e9c-9b99-40e0f32dd463 | 2024-04-21T03:07:55 | BUILDING | INSTANTIATING (45da0d03-6bcf-4277-bf31-1a8f1424d314) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | 1ad446b4-265f-4e9c-9b99-40e0f32dd463 | 2024-04-21T03:07:55 | BUILDING | INSTANTIATING (45da0d03-6bcf-4277-bf31-1a8f1424d314) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+--------------------------------------------------+--------+----------------------------------------------------------------+-------------+-------------------------+ | 78922a16-8398-43ef-a681-bed886cb1819 | basic_09_manual_-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.78 | ubuntu20.04 | simple_requires-1-1-flv | | 8495a5de-c814-40d6-927e-0a07a25310f8 | k8s_06-nopasswd_-vnf2-mgmtVM-0 | ACTIVE | k8s_06-nopasswd_-datanet=192.168.87.53; osm-ext=172.21.249.60 | ubuntu18.04 | simple_requires-1-1-flv | | a5df0f38-5b31-4040-98bb-95bbf5ac54f5 | k8s_06-nopasswd_-vnf1-mgmtVM-0 | ACTIVE | k8s_06-nopasswd_-datanet=192.168.87.177; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | 1ad446b4-265f-4e9c-9b99-40e0f32dd463 | 2024-04-21T03:07:55 | 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 | +--------------------------------------+--------------------------------------------------+--------+----------------------------------------------------------------+-------------+-------------------------+ | 2c9303a7-68a0-41c7-8ef2-4fb1962c21e3 | basic_09_manual_-vnf-hackfest_basic_metrics-VM-1 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 78922a16-8398-43ef-a681-bed886cb1819 | basic_09_manual_-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.78 | ubuntu20.04 | simple_requires-1-1-flv | | 8495a5de-c814-40d6-927e-0a07a25310f8 | k8s_06-nopasswd_-vnf2-mgmtVM-0 | ACTIVE | k8s_06-nopasswd_-datanet=192.168.87.53; osm-ext=172.21.249.60 | ubuntu18.04 | simple_requires-1-1-flv | | a5df0f38-5b31-4040-98bb-95bbf5ac54f5 | k8s_06-nopasswd_-vnf1-mgmtVM-0 | ACTIVE | k8s_06-nopasswd_-datanet=192.168.87.177; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | ubuntu20.04 | osm.sanity | | db7ca366-7290-406e-bd41-ec8b706f0205 | osm-v140-merge-303 | ACTIVE | osm-ext=172.21.249.56 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | 1ad446b4-265f-4e9c-9b99-40e0f32dd463 | 2024-04-21T03:07:55 | 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} = 1ad446b4-265f-4e9c-9b99-40e0f32dd463 ${id} Logs the given message with the given level. 1ad446b4-265f-4e9c-9b99-40e0f32dd463 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} = 1ad446b4-265f-4e9c-9b99-40e0f32dd463 ${stdout} Logs the given message with the given level. 1ad446b4-265f-4e9c-9b99-40e0f32dd463 ${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} = 1ad446b4-265f-4e9c-9b99-40e0f32dd463 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 1ad446b4-265f-4e9c-9b99-40e0f32dd463 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 1ad446b4-265f-4e9c-9b99-40e0f32dd463 | grep 1ad446b4-265f-4e9c-9b99-40e0f32dd463 | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = adea5e59-f5db-47cf-9e3d-315b71c572f0 ${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} = [ adea5e59-f5db-47cf-9e3d-315b71c572f0 ] @{vdur} @{vnfr_list} = [ adea5e59-f5db-47cf-9e3d-315b71c572f0 ] ${vnfr_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: adea5e59-f5db-47cf-9e3d-315b71c572f0 ${VNF_ID} ${vnfr_list}[0] Makes a variable available everywhere within the scope of the current suite. ${VNF_ID} = adea5e59-f5db-47cf-9e3d-315b71c572f0 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} = e6017569-5605-492c-b91b-fb0ec53cff0f ${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 e6017569-5605-492c-b91b-fb0ec53cff0f --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 e6017569-5605-492c-b91b-fb0ec53cff0f ${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 e6017569-5605-492c-b91b-fb0ec53cff0f --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 e6017569-5605-492c-b91b-fb0ec53cff0f ${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 e6017569-5605-492c-b91b-fb0ec53cff0f --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 e6017569-5605-492c-b91b-fb0ec53cff0f --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} = e6017569-5605-492c-b91b-fb0ec53cff0f ${ns_op_id} Logs the given message with the given level. e6017569-5605-492c-b91b-fb0ec53cff0f 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 adea5e59-f5db-47cf-9e3d-315b71c572f0 --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} = 8f679eda-1784-4650-b56a-8ff04fcfa333 ${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 8f679eda-1784-4650-b56a-8ff04fcfa333 --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 8f679eda-1784-4650-b56a-8ff04fcfa333 ${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 8f679eda-1784-4650-b56a-8ff04fcfa333 --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 8f679eda-1784-4650-b56a-8ff04fcfa333 --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} = 8f679eda-1784-4650-b56a-8ff04fcfa333 ${ns_op_id} Logs the given message with the given level. 8f679eda-1784-4650-b56a-8ff04fcfa333 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 adea5e59-f5db-47cf-9e3d-315b71c572f0 --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} = 49bb3570-ce47-401c-a019-238ec179c2d1 ${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 49bb3570-ce47-401c-a019-238ec179c2d1 --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 49bb3570-ce47-401c-a019-238ec179c2d1 ${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 49bb3570-ce47-401c-a019-238ec179c2d1 --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 49bb3570-ce47-401c-a019-238ec179c2d1 ${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 49bb3570-ce47-401c-a019-238ec179c2d1 --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 49bb3570-ce47-401c-a019-238ec179c2d1 ${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 49bb3570-ce47-401c-a019-238ec179c2d1 --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 49bb3570-ce47-401c-a019-238ec179c2d1 --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} = 49bb3570-ce47-401c-a019-238ec179c2d1 ${ns_op_id} Logs the given message with the given level. 49bb3570-ce47-401c-a019-238ec179c2d1 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 adea5e59-f5db-47cf-9e3d-315b71c572f0 --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} = 7644319e-658c-4834-b3f9-ffe68b141639 ${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 7644319e-658c-4834-b3f9-ffe68b141639 --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 7644319e-658c-4834-b3f9-ffe68b141639 ${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 7644319e-658c-4834-b3f9-ffe68b141639 --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 7644319e-658c-4834-b3f9-ffe68b141639 --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} = 7644319e-658c-4834-b3f9-ffe68b141639 ${ns_op_id} Logs the given message with the given level. 7644319e-658c-4834-b3f9-ffe68b141639 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 adea5e59-f5db-47cf-9e3d-315b71c572f0 --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 | N... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ | 4b0150f0-49e7-4f18-a8d9-3226886e92dc | basic_16-vnf-hackfest_basic_metrics-VM-2 | ACTIVE | osm-ext=172.21.248.178 | ubuntu20.04 | simple_requires-1-1-flv | | 0b4d46c5-4e15-412a-b2b3-490377e3343e | basic_16-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.248.7 | ubuntu20.04 | simple_requires-1-1-flv | | 7b483562-41b1-4bb4-8c91-2a9b5bbd291b | basic_16-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.6 | ubuntu20.04 | simple_requires-1-1-flv | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | 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 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 | N... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ | 4b0150f0-49e7-4f18-a8d9-3226886e92dc | basic_16-vnf-hackfest_basic_metrics-VM-2 | ACTIVE | osm-ext=172.21.248.178 | ubuntu20.04 | simple_requires-1-1-flv | | 0b4d46c5-4e15-412a-b2b3-490377e3343e | basic_16-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.248.7 | ubuntu20.04 | simple_requires-1-1-flv | | 7b483562-41b1-4bb4-8c91-2a9b5bbd291b | basic_16-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.6 | ubuntu20.04 | simple_requires-1-1-flv | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | 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 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 4571443b-5172-4233-b849-d68d5ed37515 ${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} = 4571443b-5172-4233-b849-d68d5ed37515 ${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 e54c5fbe-ecc5-4f30-8407-7824b47e9279 ${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} = e54c5fbe-ecc5-4f30-8407-7824b47e9279 ${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} = 698c6ebf-a176-4e75-af6b-8fa3588830c5 ${stdout} Logs the given message with the given level. 698c6ebf-a176-4e75-af6b-8fa3588830c5 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 698c6ebf-a176-4e75-af6b-8fa3588830c5 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 698c6ebf-a176-4e75-af6b-8fa3588830c5 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 698c6ebf-a176-4e75-af6b-8fa3588830c5 | grep instantiate | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = e3e689d1-78f2-46ed-b0b2-9896d72f08b2 ${stdout} Logs the given message with the given level. e3e689d1-78f2-46ed-b0b2-9896d72f08b2 ${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} = e3e689d1-78f2-46ed-b0b2-9896d72f08b2 ${OP_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${OP_ID} = e3e689d1-78f2-46ed-b0b2-9896d72f08b2 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 e3e689d1-78f2-46ed-b0b2-9896d72f08b2 --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 e3e689d1-78f2-46ed-b0b2-9896d72f08b2 --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 | N... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ | 62076ec5-9a3f-4d2a-8acf-6e4e84ed7dad | lcmop_01_cancel_-simple-mgmtVM-0 | BUILD | | ubuntu18.04 | mgmtVM-simple-1-flv-64 | | 0beed68f-27cc-434f-a6a4-d95bcddfc825 | basic_16-vnf-hackfest_basic_metrics-VM-4 | ACTIVE | osm-ext=172.21.248.97 | ubuntu20.04 | simple_requires-1-1-flv | | 1e4e1556-4ac9-4eec-8624-227294ac38ec | basic_16-vnf-hackfest_basic_metrics-VM-3 | ACTIVE | osm-ext=172.21.249.50 | ubuntu20.04 | simple_requires-1-1-flv | | 4b0150f0-49e7-4f18-a8d9-3226886e92dc | basic_16-vnf-hackfest_basic_metrics-VM-2 | ACTIVE | osm-ext=172.21.248.178 | ubuntu20.04 | simple_requires-1-1-flv | | 0b4d46c5-4e15-412a-b2b3-490377e3343e | basic_16-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.248.7 | ubuntu20.04 | simple_requires-1-1-flv | | 7b483562-41b1-4bb4-8c91-2a9b5bbd291b | basic_16-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.6 | ubuntu20.04 | simple_requires-1-1-flv | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | 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 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 | N... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ | 0beed68f-27cc-434f-a6a4-d95bcddfc825 | basic_16-vnf-hackfest_basic_metrics-VM-4 | ACTIVE | osm-ext=172.21.248.97 | ubuntu20.04 | simple_requires-1-1-flv | | 1e4e1556-4ac9-4eec-8624-227294ac38ec | basic_16-vnf-hackfest_basic_metrics-VM-3 | ACTIVE | osm-ext=172.21.249.50 | ubuntu20.04 | simple_requires-1-1-flv | | 4b0150f0-49e7-4f18-a8d9-3226886e92dc | basic_16-vnf-hackfest_basic_metrics-VM-2 | ACTIVE | osm-ext=172.21.248.178 | ubuntu20.04 | simple_requires-1-1-flv | | 0b4d46c5-4e15-412a-b2b3-490377e3343e | basic_16-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.248.7 | ubuntu20.04 | simple_requires-1-1-flv | | 7b483562-41b1-4bb4-8c91-2a9b5bbd291b | basic_16-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.6 | ubuntu20.04 | simple_requires-1-1-flv | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | 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 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} = 25f6d101-2328-4e5a-ba07-a7ae2868d99e ${stdout} Logs the given message with the given level. 25f6d101-2328-4e5a-ba07-a7ae2868d99e ${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} = 7452069f-bcca-4d26-abc8-62f7c9970bd2 ${stdout} Logs the given message with the given level. 7452069f-bcca-4d26-abc8-62f7c9970bd2 ${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} = df1f66cd-ff74-4d7f-8c2b-40016fce398b ${rc},${stdout} Logs the given message with the given level. 0,df1f66cd-ff74-4d7f-8c2b-40016fce398b ${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 f0e03143-b0d2-459e-8561-cd3f85425979 ${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 (25f6d101-2328-4e5a-ba07-a7ae2868d99e)" } ${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 2a7bc04b-1d06-45f5-9b63-8f0456af2414 ${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 cb42be9e-d6fa-4d65-a012-566542a6ee51 ${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 d3f159b9-4c78-4369-8aab-164897181033 ${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 ae928016-f4bb-4863-b0a8-bdb1b3ef04d3 ${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 (25f6d101-2328-4e5a-ba07-a7ae2868d99e)" } ${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 7010538b-b7aa-4ad3-8676-e61051f10c46 ${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 (7452069f-bcca-4d26-abc8-62f7c9970bd2)" } ${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' (7452069f-bcca-4d26-abc8-62f7c9970bd2) 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' (7452069f-bcca-4d26-abc8-62f7c9970bd2) 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.108 == '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 f19bb620-356c-4255-9838-3c055b99b84c ${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} = f19bb620-356c-4255-9838-3c055b99b84c ${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 40c83aaa-f907-4dfb-a238-38729fa2fc63 ${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} = 40c83aaa-f907-4dfb-a238-38729fa2fc63 ${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} = 1a9c4056-b816-4015-ad9f-2a379f77905a ${stdout} Logs the given message with the given level. 1a9c4056-b816-4015-ad9f-2a379f77905a ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 1a9c4056-b816-4015-ad9f-2a379f77905a ${ns_id} Logs the given message with the given level. 1a9c4056-b816-4015-ad9f-2a379f77905a ${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 | +--------------------------------------+----------------------------------+--------+------------------------+-------------+------------------------+ | c14c0b11-f7db-4252-9ba2-56b1737d1557 | lcmop_01_cancel_-simple-mgmtVM-0 | ACTIVE | osm-ext=172.21.249.40 | ubuntu18.04 | mgmtVM-simple-1-flv-64 | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | 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_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 | 1a9c4056-b816-4015-ad9f-2a379f77905a | 2024-04-21T03:14:49 | BUILDING | INSTANTIATING (e47dd3c3-fef9-4bd9-a476-ddb19534d5db) | N/A | +---------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | 1a9c4056-b816-4015-ad9f-2a379f77905a | 2024-04-21T03:14:49 | BUILDING | INSTANTIATING (e47dd3c3-fef9-4bd9-a476-ddb19534d5db) | N/A | +---------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+--------------------------------------------------+--------+---------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------+ | 3848b05d-98aa-4ebe-aae7-137b681db37f | basic_18-vnf2-dataVM-0 | ACTIVE | basic_18-datanet1=192.168.10.51; basic_18-datanet2=192.168.20.62; basic_18-datanet3=192.168.30.35; osm-ext=172.21.249.207 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 25b9f7d6-9f78-4d01-9a1f-27fe8c21bda7 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.109 | ubuntu20.04 | simple_requires-1-1-flv | | b442a4a7-88af-4030-b6f7-ff2dfd078ed4 | basic_18-vnf1-dataVM-0 | ACTIVE | basic_18-datanet1=192.168.10.82; basic_18-datanet2=192.168.20.80; basic_18-datanet3=192.168.30.59; osm-ext=172.21.248.136 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | 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_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 | 1a9c4056-b816-4015-ad9f-2a379f77905a | 2024-04-21T03:14: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} = +--------------------------------------+--------------------------------------------------+--------+----------------------------------------------------------------------------------------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+---------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+---------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------+ | 3848b05d-98aa-4ebe-aae7-137b681db37f | basic_18-vnf2-dataVM-0 | ACTIVE | basic_18-datanet1=192.168.10.51; basic_18-datanet2=192.168.20.62; basic_18-datanet3=192.168.30.35; osm-ext=172.21.249.207 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 25b9f7d6-9f78-4d01-9a1f-27fe8c21bda7 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.109 | ubuntu20.04 | simple_requires-1-1-flv | | b442a4a7-88af-4030-b6f7-ff2dfd078ed4 | basic_18-vnf1-dataVM-0 | ACTIVE | basic_18-datanet1=192.168.10.82; basic_18-datanet2=192.168.20.80; basic_18-datanet3=192.168.30.59; osm-ext=172.21.248.136 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | 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_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 | 1a9c4056-b816-4015-ad9f-2a379f77905a | 2024-04-21T03:14: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} = 1a9c4056-b816-4015-ad9f-2a379f77905a ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 1a9c4056-b816-4015-ad9f-2a379f77905a 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=1a9c4056-b816-4015-ad9f-2a379f77905a ${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=1a9c4056-b816-4015-ad9f-2a379f77905a ${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=1a9c4056-b816-4015-ad9f-2a379f77905a ${param_name} = ns_id ${param_value} = 1a9c4056-b816-4015-ad9f-2a379f77905a ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=1a9c4056-b816-4015-ad9f-2a379f77905a,ns_id,1a9c4056-b816-4015-ad9f-2a379f77905a ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="1a9c4056-b816-4015-ad9f-2a379f77905a", ${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.108:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7fcbd89de0b0>, 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.108:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%221a9c4056-b816-4015-ad9f-2a379f77905a%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%221a9c4056-b816-4015-ad9f-2a379f77905a%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.108:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%221a9c4056-b816-4015-ad9f-2a379f77905a%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 21 Apr 2024 03:15:29 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=1a9c4056-b816-4015-ad9f-2a379f77905a ${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=1a9c4056-b816-4015-ad9f-2a379f77905a ${param_name} = ns_id ${param_value} = 1a9c4056-b816-4015-ad9f-2a379f77905a ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=1a9c4056-b816-4015-ad9f-2a379f77905a,ns_id,1a9c4056-b816-4015-ad9f-2a379f77905a ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="1a9c4056-b816-4015-ad9f-2a379f77905a", ${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.108:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7fcbd4f013c0>, 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.108:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%221a9c4056-b816-4015-ad9f-2a379f77905a%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%221a9c4056-b816-4015-ad9f-2a379f77905a%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.108:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%221a9c4056-b816-4015-ad9f-2a379f77905a%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 21 Apr 2024 03:16:29 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=1a9c4056-b816-4015-ad9f-2a379f77905a ${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=1a9c4056-b816-4015-ad9f-2a379f77905a ${param_name} = ns_id ${param_value} = 1a9c4056-b816-4015-ad9f-2a379f77905a ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=1a9c4056-b816-4015-ad9f-2a379f77905a,ns_id,1a9c4056-b816-4015-ad9f-2a379f77905a ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="1a9c4056-b816-4015-ad9f-2a379f77905a", ${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.108:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7fcbd4f5e860>, 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.108:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%221a9c4056-b816-4015-ad9f-2a379f77905a%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%221a9c4056-b816-4015-ad9f-2a379f77905a%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.108:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%221a9c4056-b816-4015-ad9f-2a379f77905a%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 21 Apr 2024 03:17:29 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=1a9c4056-b816-4015-ad9f-2a379f77905a ${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=1a9c4056-b816-4015-ad9f-2a379f77905a ${param_name} = ns_id ${param_value} = 1a9c4056-b816-4015-ad9f-2a379f77905a ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=1a9c4056-b816-4015-ad9f-2a379f77905a,ns_id,1a9c4056-b816-4015-ad9f-2a379f77905a ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="1a9c4056-b816-4015-ad9f-2a379f77905a", ${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.108:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7fcbd4f5e680>, 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.108:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%221a9c4056-b816-4015-ad9f-2a379f77905a%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%221a9c4056-b816-4015-ad9f-2a379f77905a%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.108:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%221a9c4056-b816-4015-ad9f-2a379f77905a%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 21 Apr 2024 03:18:29 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=1a9c4056-b816-4015-ad9f-2a379f77905a ${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=1a9c4056-b816-4015-ad9f-2a379f77905a ${param_name} = ns_id ${param_value} = 1a9c4056-b816-4015-ad9f-2a379f77905a ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=1a9c4056-b816-4015-ad9f-2a379f77905a,ns_id,1a9c4056-b816-4015-ad9f-2a379f77905a ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="1a9c4056-b816-4015-ad9f-2a379f77905a", ${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.108:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7fcbd4f01d80>, 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.108:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%221a9c4056-b816-4015-ad9f-2a379f77905a%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%221a9c4056-b816-4015-ad9f-2a379f77905a%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.108:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%221a9c4056-b816-4015-ad9f-2a379f77905a%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 21 Apr 2024 03:19:29 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=1a9c4056-b816-4015-ad9f-2a379f77905a ${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=1a9c4056-b816-4015-ad9f-2a379f77905a ${param_name} = ns_id ${param_value} = 1a9c4056-b816-4015-ad9f-2a379f77905a ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=1a9c4056-b816-4015-ad9f-2a379f77905a,ns_id,1a9c4056-b816-4015-ad9f-2a379f77905a ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="1a9c4056-b816-4015-ad9f-2a379f77905a", ${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.108:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7fcbd4f5d7b0>, 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.108:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%221a9c4056-b816-4015-ad9f-2a379f77905a%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%221a9c4056-b816-4015-ad9f-2a379f77905a%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.108:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%221a9c4056-b816-4015-ad9f-2a379f77905a%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 21 Apr 2024 03:20:29 GMT', 'Content-Length': '365'} body={"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"osm_cpu_utilization","job":"airflow_osm_vm_metrics_050dc050-ab65-4e5b-8c08-3a8b5050bda5","metric_id":"vnf_cpu_util","ns_id":"1a9c4056-b816-4015-ad9f-2a379f77905a","project_id":"d6f47f86-1a13-4010-a962-317e9ed50847","vdu_id":"hackfest_basic_metrics-VM","vdu_name":"sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0","vim_id":"050dc050-ab65-4e5b-8c08-3a8b5050bda5","vm_id":"25b9f7d6-9f78-4d01-9a1f-27fe8c21bda7","vnf_member_index":"vnf"},"value":[1713669629.494,"0.29166666666666663"]}]}} ${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_050dc050-ab65-4e5b-8c08-3a8b5050bda5', '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_050dc050-ab65-4e5b-8c08-3a8b5050bda5', 'metric_id': 'vnf_cpu_util', 'ns_id': '1a9c4056-b816-4015-ad9f-2a379f77905a', '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.29166666666666663 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=1a9c4056-b816-4015-ad9f-2a379f77905a ${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=1a9c4056-b816-4015-ad9f-2a379f77905a ${param_name} = ns_id ${param_value} = 1a9c4056-b816-4015-ad9f-2a379f77905a ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=1a9c4056-b816-4015-ad9f-2a379f77905a,ns_id,1a9c4056-b816-4015-ad9f-2a379f77905a ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="1a9c4056-b816-4015-ad9f-2a379f77905a", ${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.108:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7fcbd50c2a10>, 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.108:9091/api/v1/query?query=osm_average_memory_utilization%7Bns_id=%221a9c4056-b816-4015-ad9f-2a379f77905a%22,%7D path_url=/api/v1/query?query=osm_average_memory_utilization%7Bns_id=%221a9c4056-b816-4015-ad9f-2a379f77905a%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.108:9091/api/v1/query?query=osm_average_memory_utilization%7Bns_id=%221a9c4056-b816-4015-ad9f-2a379f77905a%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 21 Apr 2024 03:20:29 GMT', 'Content-Length': '370'} body={"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"osm_average_memory_utilization","job":"airflow_osm_vm_metrics_050dc050-ab65-4e5b-8c08-3a8b5050bda5","metric_id":"vnf_memory_util","ns_id":"1a9c4056-b816-4015-ad9f-2a379f77905a","project_id":"d6f47f86-1a13-4010-a962-317e9ed50847","vdu_id":"hackfest_basic_metrics-VM","vdu_name":"sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0","vim_id":"050dc050-ab65-4e5b-8c08-3a8b5050bda5","vm_id":"25b9f7d6-9f78-4d01-9a1f-27fe8c21bda7","vnf_member_index":"vnf"},"value":[1713669629.513,"273.78125"]}]}} ${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_050dc050-ab65-4e5b-8c08-3a8b5050bda5', '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_050dc050-ab65-4e5b-8c08-3a8b5050bda5', 'metric_id': 'vnf_memory_util', 'ns_id': '1a9c4056-b816-4015-ad9f-2a379... ${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} = 273.78125 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 | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 48056445-b602-4e0a-8a72-4a8badc7ab2c | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.233 | ubuntu20.04 | simple_requires-1-1-flv | | 25b9f7d6-9f78-4d01-9a1f-27fe8c21bda7 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.109 | ubuntu20.04 | simple_requires-1-1-flv | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | 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_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 ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 338feab2-4b79-49bb-be68-123c3c29963e | basic_21-vnf-several-volu-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.17 | ubuntu20.04 | several_volumes-VM-flv | | 48056445-b602-4e0a-8a72-4a8badc7ab2c | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.233 | ubuntu20.04 | simple_requires-1-1-flv | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | 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_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.108 == '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 7bc76a25-94a6-4be8-9570-19f5348d1dd4 ${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} = 7bc76a25-94a6-4be8-9570-19f5348d1dd4 ${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 06361421-aeb7-4f2d-9bad-aaae5fc2652b ${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} = 06361421-aeb7-4f2d-9bad-aaae5fc2652b ${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} = b7792e49-ab3e-4a81-95df-85567671196d ${stdout} Logs the given message with the given level. b7792e49-ab3e-4a81-95df-85567671196d ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = b7792e49-ab3e-4a81-95df-85567671196d ${ns_id} Logs the given message with the given level. b7792e49-ab3e-4a81-95df-85567671196d ${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 | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 338feab2-4b79-49bb-be68-123c3c29963e | basic_21-vnf-several-volu-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.17 | ubuntu20.04 | several_volumes-VM-flv | | 48056445-b602-4e0a-8a72-4a8badc7ab2c | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.233 | ubuntu20.04 | simple_requires-1-1-flv | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | 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 | b7792e49-ab3e-4a81-95df-85567671196d | 2024-04-21T03:21:04 | BUILDING | INSTANTIATING (136d9987-3002-494d-b51c-418cf6fe2d75) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | b7792e49-ab3e-4a81-95df-85567671196d | 2024-04-21T03:21:04 | BUILDING | INSTANTIATING (136d9987-3002-494d-b51c-418cf6fe2d75) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | e248569a-d32d-422e-8fcd-e0504b4dee42 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.139 | ubuntu20.04 | simple_requires-1-1-flv | | 338feab2-4b79-49bb-be68-123c3c29963e | basic_21-vnf-several-volu-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.17 | ubuntu20.04 | several_volumes-VM-flv | | 48056445-b602-4e0a-8a72-4a8badc7ab2c | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.233 | ubuntu20.04 | simple_requires-1-1-flv | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | 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 | b7792e49-ab3e-4a81-95df-85567671196d | 2024-04-21T03:21:04 | 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 | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | e248569a-d32d-422e-8fcd-e0504b4dee42 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.139 | ubuntu20.04 | simple_requires-1-1-flv | | 338feab2-4b79-49bb-be68-123c3c29963e | basic_21-vnf-several-volu-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.17 | ubuntu20.04 | several_volumes-VM-flv | | 48056445-b602-4e0a-8a72-4a8badc7ab2c | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.233 | ubuntu20.04 | simple_requires-1-1-flv | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | 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 | b7792e49-ab3e-4a81-95df-85567671196d | 2024-04-21T03:21:04 | 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} = b7792e49-ab3e-4a81-95df-85567671196d ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = b7792e49-ab3e-4a81-95df-85567671196d 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 b7792e49-ab3e-4a81-95df-85567671196d | grep b7792e49-ab3e-4a81-95df-85567671196d | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = a36bf6a0-177c-41f3-840d-b8843974f2b1 ${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} = [ a36bf6a0-177c-41f3-840d-b8843974f2b1 ] @{vdur} @{vnfr_list} = [ a36bf6a0-177c-41f3-840d-b8843974f2b1 ] ${vnfr_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: a36bf6a0-177c-41f3-840d-b8843974f2b1 ${VNF_ID} ${vnfr_list}[0] Makes a variable available everywhere within the scope of the current suite. ${VNF_ID} = a36bf6a0-177c-41f3-840d-b8843974f2b1 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 b7792e49-ab3e-4a81-95df-85567671196d | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.248.139 ${stdout} Logs the given message with the given level. 172.21.248.139 ${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.139 ${ip_addr} Logs the given message with the given level. 172.21.248.139 ${VNF_IP_ADDR} ${ip_addr} Makes a variable available everywhere within the scope of the current suite. ${VNF_IP_ADDR} = 172.21.248.139 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=b7792e49-ab3e-4a81-95df-85567671196d ${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=b7792e49-ab3e-4a81-95df-85567671196d ${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=b7792e49-ab3e-4a81-95df-85567671196d ${param_name} = ns_id ${param_value} = b7792e49-ab3e-4a81-95df-85567671196d ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=b7792e49-ab3e-4a81-95df-85567671196d,ns_id,b7792e49-ab3e-4a81-95df-85567671196d ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="b7792e49-ab3e-4a81-95df-85567671196d", ${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.108:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7fcbd4e358a0>, 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.108:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22b7792e49-ab3e-4a81-95df-85567671196d%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22b7792e49-ab3e-4a81-95df-85567671196d%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.108:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22b7792e49-ab3e-4a81-95df-85567671196d%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 21 Apr 2024 03:21:46 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=b7792e49-ab3e-4a81-95df-85567671196d ${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=b7792e49-ab3e-4a81-95df-85567671196d ${param_name} = ns_id ${param_value} = b7792e49-ab3e-4a81-95df-85567671196d ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=b7792e49-ab3e-4a81-95df-85567671196d,ns_id,b7792e49-ab3e-4a81-95df-85567671196d ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="b7792e49-ab3e-4a81-95df-85567671196d", ${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.108:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7fcbd4e363e0>, 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.108:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22b7792e49-ab3e-4a81-95df-85567671196d%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22b7792e49-ab3e-4a81-95df-85567671196d%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.108:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22b7792e49-ab3e-4a81-95df-85567671196d%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 21 Apr 2024 03:22:46 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=b7792e49-ab3e-4a81-95df-85567671196d ${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=b7792e49-ab3e-4a81-95df-85567671196d ${param_name} = ns_id ${param_value} = b7792e49-ab3e-4a81-95df-85567671196d ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=b7792e49-ab3e-4a81-95df-85567671196d,ns_id,b7792e49-ab3e-4a81-95df-85567671196d ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="b7792e49-ab3e-4a81-95df-85567671196d", ${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.108:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7fcbd879a3b0>, 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.108:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22b7792e49-ab3e-4a81-95df-85567671196d%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22b7792e49-ab3e-4a81-95df-85567671196d%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.108:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22b7792e49-ab3e-4a81-95df-85567671196d%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 21 Apr 2024 03:23:46 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=b7792e49-ab3e-4a81-95df-85567671196d ${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=b7792e49-ab3e-4a81-95df-85567671196d ${param_name} = ns_id ${param_value} = b7792e49-ab3e-4a81-95df-85567671196d ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=b7792e49-ab3e-4a81-95df-85567671196d,ns_id,b7792e49-ab3e-4a81-95df-85567671196d ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="b7792e49-ab3e-4a81-95df-85567671196d", ${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.108:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7fcbd4e37e80>, 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.108:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22b7792e49-ab3e-4a81-95df-85567671196d%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22b7792e49-ab3e-4a81-95df-85567671196d%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.108:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22b7792e49-ab3e-4a81-95df-85567671196d%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 21 Apr 2024 03:24:46 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=b7792e49-ab3e-4a81-95df-85567671196d ${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=b7792e49-ab3e-4a81-95df-85567671196d ${param_name} = ns_id ${param_value} = b7792e49-ab3e-4a81-95df-85567671196d ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=b7792e49-ab3e-4a81-95df-85567671196d,ns_id,b7792e49-ab3e-4a81-95df-85567671196d ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="b7792e49-ab3e-4a81-95df-85567671196d", ${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.108:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7fcbd4f5c310>, 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.108:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22b7792e49-ab3e-4a81-95df-85567671196d%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22b7792e49-ab3e-4a81-95df-85567671196d%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.108:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22b7792e49-ab3e-4a81-95df-85567671196d%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 21 Apr 2024 03:25:46 GMT', 'Content-Length': '358'} body={"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"osm_cpu_utilization","job":"airflow_osm_vm_metrics_050dc050-ab65-4e5b-8c08-3a8b5050bda5","metric_id":"vnf_cpu_util","ns_id":"b7792e49-ab3e-4a81-95df-85567671196d","project_id":"d6f47f86-1a13-4010-a962-317e9ed50847","vdu_id":"hackfest_basic_metrics-VM","vdu_name":"sa_02-vnf-hackfest_basic_metrics-VM-0","vim_id":"050dc050-ab65-4e5b-8c08-3a8b5050bda5","vm_id":"e248569a-d32d-422e-8fcd-e0504b4dee42","vnf_member_index":"vnf"},"value":[1713669946.571,"0.22499999999999998"]}]}} ${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_050dc050-ab65-4e5b-8c08-3a8b5050bda5', '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_050dc050-ab65-4e5b-8c08-3a8b5050bda5', 'metric_id': 'vnf_cpu_util', 'ns_id': 'b7792e49-ab3e-4a81-95df-85567671196d', '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.22499999999999998 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.139: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 Sun Apr 21 03:25:46 UTC 2024 System load: 0.03 Processes: 109 Usage of /: 14.0% of 9.52GB Users logged in: 0 Memory usage: 20% IPv4 address for ens3: 172.21.248.139 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=b7792e49-ab3e-4a81-95df-85567671196d ${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=b7792e49-ab3e-4a81-95df-85567671196d ${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=b7792e49-ab3e-4a81-95df-85567671196d ${param_name} = ns_id ${param_value} = b7792e49-ab3e-4a81-95df-85567671196d ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=b7792e49-ab3e-4a81-95df-85567671196d,ns_id,b7792e49-ab3e-4a81-95df-85567671196d ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="b7792e49-ab3e-4a81-95df-85567671196d", ${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.108:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7fcbd4e344f0>, 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.108:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22b7792e49-ab3e-4a81-95df-85567671196d%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22b7792e49-ab3e-4a81-95df-85567671196d%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.108:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22b7792e49-ab3e-4a81-95df-85567671196d%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 21 Apr 2024 03:25:48 GMT', 'Content-Length': '358'} body={"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"osm_cpu_utilization","job":"airflow_osm_vm_metrics_050dc050-ab65-4e5b-8c08-3a8b5050bda5","metric_id":"vnf_cpu_util","ns_id":"b7792e49-ab3e-4a81-95df-85567671196d","project_id":"d6f47f86-1a13-4010-a962-317e9ed50847","vdu_id":"hackfest_basic_metrics-VM","vdu_name":"sa_02-vnf-hackfest_basic_metrics-VM-0","vim_id":"050dc050-ab65-4e5b-8c08-3a8b5050bda5","vm_id":"e248569a-d32d-422e-8fcd-e0504b4dee42","vnf_member_index":"vnf"},"value":[1713669948.945,"0.22499999999999998"]}]}} ${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_050dc050-ab65-4e5b-8c08-3a8b5050bda5', '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_050dc050-ab65-4e5b-8c08-3a8b5050bda5', 'metric_id': 'vnf_cpu_util', 'ns_id': 'b7792e49-ab3e-4a81-95df-85567671196d', '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.22499999999999998 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.22499999999999998' 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=b7792e49-ab3e-4a81-95df-85567671196d ${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=b7792e49-ab3e-4a81-95df-85567671196d ${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=b7792e49-ab3e-4a81-95df-85567671196d ${param_name} = ns_id ${param_value} = b7792e49-ab3e-4a81-95df-85567671196d ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=b7792e49-ab3e-4a81-95df-85567671196d,ns_id,b7792e49-ab3e-4a81-95df-85567671196d ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="b7792e49-ab3e-4a81-95df-85567671196d", ${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.108:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7fcbd50a58a0>, 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.108:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22b7792e49-ab3e-4a81-95df-85567671196d%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22b7792e49-ab3e-4a81-95df-85567671196d%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.108:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22b7792e49-ab3e-4a81-95df-85567671196d%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 21 Apr 2024 03:26:48 GMT', 'Content-Length': '359'} body={"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"osm_cpu_utilization","job":"airflow_osm_vm_metrics_050dc050-ab65-4e5b-8c08-3a8b5050bda5","metric_id":"vnf_cpu_util","ns_id":"b7792e49-ab3e-4a81-95df-85567671196d","project_id":"d6f47f86-1a13-4010-a962-317e9ed50847","vdu_id":"hackfest_basic_metrics-VM","vdu_name":"sa_02-vnf-hackfest_basic_metrics-VM-0","vim_id":"050dc050-ab65-4e5b-8c08-3a8b5050bda5","vm_id":"e248569a-d32d-422e-8fcd-e0504b4dee42","vnf_member_index":"vnf"},"value":[1713670008.983,"0.22499999999999998"]}]}} ${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_050dc050-ab65-4e5b-8c08-3a8b5050bda5', '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_050dc050-ab65-4e5b-8c08-3a8b5050bda5', 'metric_id': 'vnf_cpu_util', 'ns_id': 'b7792e49-ab3e-4a81-95df-85567671196d', '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.22499999999999998 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.22499999999999998' 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=b7792e49-ab3e-4a81-95df-85567671196d ${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=b7792e49-ab3e-4a81-95df-85567671196d ${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=b7792e49-ab3e-4a81-95df-85567671196d ${param_name} = ns_id ${param_value} = b7792e49-ab3e-4a81-95df-85567671196d ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=b7792e49-ab3e-4a81-95df-85567671196d,ns_id,b7792e49-ab3e-4a81-95df-85567671196d ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="b7792e49-ab3e-4a81-95df-85567671196d", ${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.108:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7fcbd4f01ae0>, 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.108:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22b7792e49-ab3e-4a81-95df-85567671196d%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22b7792e49-ab3e-4a81-95df-85567671196d%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.108:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22b7792e49-ab3e-4a81-95df-85567671196d%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 21 Apr 2024 03:27:49 GMT', 'Content-Length': '358'} body={"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"osm_cpu_utilization","job":"airflow_osm_vm_metrics_050dc050-ab65-4e5b-8c08-3a8b5050bda5","metric_id":"vnf_cpu_util","ns_id":"b7792e49-ab3e-4a81-95df-85567671196d","project_id":"d6f47f86-1a13-4010-a962-317e9ed50847","vdu_id":"hackfest_basic_metrics-VM","vdu_name":"sa_02-vnf-hackfest_basic_metrics-VM-0","vim_id":"050dc050-ab65-4e5b-8c08-3a8b5050bda5","vm_id":"e248569a-d32d-422e-8fcd-e0504b4dee42","vnf_member_index":"vnf"},"value":[1713670069.024,"0.22499999999999998"]}]}} ${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_050dc050-ab65-4e5b-8c08-3a8b5050bda5', '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_050dc050-ab65-4e5b-8c08-3a8b5050bda5', 'metric_id': 'vnf_cpu_util', 'ns_id': 'b7792e49-ab3e-4a81-95df-85567671196d', '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.22499999999999998 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.22499999999999998' 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=b7792e49-ab3e-4a81-95df-85567671196d ${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=b7792e49-ab3e-4a81-95df-85567671196d ${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=b7792e49-ab3e-4a81-95df-85567671196d ${param_name} = ns_id ${param_value} = b7792e49-ab3e-4a81-95df-85567671196d ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=b7792e49-ab3e-4a81-95df-85567671196d,ns_id,b7792e49-ab3e-4a81-95df-85567671196d ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="b7792e49-ab3e-4a81-95df-85567671196d", ${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.108:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7fcbd4e5dc90>, 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.108:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22b7792e49-ab3e-4a81-95df-85567671196d%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22b7792e49-ab3e-4a81-95df-85567671196d%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.108:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22b7792e49-ab3e-4a81-95df-85567671196d%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 21 Apr 2024 03:28:49 GMT', 'Content-Length': '358'} body={"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"osm_cpu_utilization","job":"airflow_osm_vm_metrics_050dc050-ab65-4e5b-8c08-3a8b5050bda5","metric_id":"vnf_cpu_util","ns_id":"b7792e49-ab3e-4a81-95df-85567671196d","project_id":"d6f47f86-1a13-4010-a962-317e9ed50847","vdu_id":"hackfest_basic_metrics-VM","vdu_name":"sa_02-vnf-hackfest_basic_metrics-VM-0","vim_id":"050dc050-ab65-4e5b-8c08-3a8b5050bda5","vm_id":"e248569a-d32d-422e-8fcd-e0504b4dee42","vnf_member_index":"vnf"},"value":[1713670129.061,"0.22499999999999998"]}]}} ${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_050dc050-ab65-4e5b-8c08-3a8b5050bda5', '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_050dc050-ab65-4e5b-8c08-3a8b5050bda5', 'metric_id': 'vnf_cpu_util', 'ns_id': 'b7792e49-ab3e-4a81-95df-85567671196d', '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.22499999999999998 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.22499999999999998' 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=b7792e49-ab3e-4a81-95df-85567671196d ${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=b7792e49-ab3e-4a81-95df-85567671196d ${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=b7792e49-ab3e-4a81-95df-85567671196d ${param_name} = ns_id ${param_value} = b7792e49-ab3e-4a81-95df-85567671196d ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=b7792e49-ab3e-4a81-95df-85567671196d,ns_id,b7792e49-ab3e-4a81-95df-85567671196d ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="b7792e49-ab3e-4a81-95df-85567671196d", ${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.108:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7fcbd4e5f5b0>, 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.108:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22b7792e49-ab3e-4a81-95df-85567671196d%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22b7792e49-ab3e-4a81-95df-85567671196d%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.108:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22b7792e49-ab3e-4a81-95df-85567671196d%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 21 Apr 2024 03:29:49 GMT', 'Content-Length': '358'} body={"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"osm_cpu_utilization","job":"airflow_osm_vm_metrics_050dc050-ab65-4e5b-8c08-3a8b5050bda5","metric_id":"vnf_cpu_util","ns_id":"b7792e49-ab3e-4a81-95df-85567671196d","project_id":"d6f47f86-1a13-4010-a962-317e9ed50847","vdu_id":"hackfest_basic_metrics-VM","vdu_name":"sa_02-vnf-hackfest_basic_metrics-VM-0","vim_id":"050dc050-ab65-4e5b-8c08-3a8b5050bda5","vm_id":"e248569a-d32d-422e-8fcd-e0504b4dee42","vnf_member_index":"vnf"},"value":[1713670189.098,"0.22499999999999998"]}]}} ${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_050dc050-ab65-4e5b-8c08-3a8b5050bda5', '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_050dc050-ab65-4e5b-8c08-3a8b5050bda5', 'metric_id': 'vnf_cpu_util', 'ns_id': 'b7792e49-ab3e-4a81-95df-85567671196d', '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.22499999999999998 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.22499999999999998' 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=b7792e49-ab3e-4a81-95df-85567671196d ${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=b7792e49-ab3e-4a81-95df-85567671196d ${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=b7792e49-ab3e-4a81-95df-85567671196d ${param_name} = ns_id ${param_value} = b7792e49-ab3e-4a81-95df-85567671196d ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=b7792e49-ab3e-4a81-95df-85567671196d,ns_id,b7792e49-ab3e-4a81-95df-85567671196d ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="b7792e49-ab3e-4a81-95df-85567671196d", ${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.108:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7fcbd4e811e0>, 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.108:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22b7792e49-ab3e-4a81-95df-85567671196d%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22b7792e49-ab3e-4a81-95df-85567671196d%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.108:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22b7792e49-ab3e-4a81-95df-85567671196d%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 21 Apr 2024 03:30:49 GMT', 'Content-Length': '354'} body={"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"osm_cpu_utilization","job":"airflow_osm_vm_metrics_050dc050-ab65-4e5b-8c08-3a8b5050bda5","metric_id":"vnf_cpu_util","ns_id":"b7792e49-ab3e-4a81-95df-85567671196d","project_id":"d6f47f86-1a13-4010-a962-317e9ed50847","vdu_id":"hackfest_basic_metrics-VM","vdu_name":"sa_02-vnf-hackfest_basic_metrics-VM-0","vim_id":"050dc050-ab65-4e5b-8c08-3a8b5050bda5","vm_id":"e248569a-d32d-422e-8fcd-e0504b4dee42","vnf_member_index":"vnf"},"value":[1713670249.138,"100.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_cpu_utilization', 'job': 'airflow_osm_vm_metrics_050dc050-ab65-4e5b-8c08-3a8b5050bda5', '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_050dc050-ab65-4e5b-8c08-3a8b5050bda5', 'metric_id': 'vnf_cpu_util', 'ns_id': 'b7792e49-ab3e-4a81-95df-85567671196d', '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} = 100.1 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=b7792e49-ab3e-4a81-95df-85567671196d ${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=b7792e49-ab3e-4a81-95df-85567671196d ${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=b7792e49-ab3e-4a81-95df-85567671196d ${param_name} = ns_id ${param_value} = b7792e49-ab3e-4a81-95df-85567671196d ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=b7792e49-ab3e-4a81-95df-85567671196d,ns_id,b7792e49-ab3e-4a81-95df-85567671196d ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="b7792e49-ab3e-4a81-95df-85567671196d", ${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.108:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7fcbd4e83520>, 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.108:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22b7792e49-ab3e-4a81-95df-85567671196d%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22b7792e49-ab3e-4a81-95df-85567671196d%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.108:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22b7792e49-ab3e-4a81-95df-85567671196d%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 21 Apr 2024 03:32:49 GMT', 'Content-Length': '354'} body={"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"osm_cpu_utilization","job":"airflow_osm_vm_metrics_050dc050-ab65-4e5b-8c08-3a8b5050bda5","metric_id":"vnf_cpu_util","ns_id":"b7792e49-ab3e-4a81-95df-85567671196d","project_id":"d6f47f86-1a13-4010-a962-317e9ed50847","vdu_id":"hackfest_basic_metrics-VM","vdu_name":"sa_02-vnf-hackfest_basic_metrics-VM-0","vim_id":"050dc050-ab65-4e5b-8c08-3a8b5050bda5","vm_id":"e248569a-d32d-422e-8fcd-e0504b4dee42","vnf_member_index":"vnf"},"value":[1713670369.181,"100.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_cpu_utilization', 'job': 'airflow_osm_vm_metrics_050dc050-ab65-4e5b-8c08-3a8b5050bda5', '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_050dc050-ab65-4e5b-8c08-3a8b5050bda5', 'metric_id': 'vnf_cpu_util', 'ns_id': 'b7792e49-ab3e-4a81-95df-85567671196d', '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} = 100.1 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 a36bf6a0-177c-41f3-840d-b8843974f2b1 --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 | +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | 8da8af30-94b7-4a35-88f0-0b3ea3c66c47 | basic_30-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | c8f4d815-d789-4279-aeac-ce07bb719590 | sa_02-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.248.142 | ubuntu20.04 | simple_requires-1-1-flv | | 53bba60b-1f27-428b-aad7-4403b6bbabc6 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.84 | ubuntu20.04 | simple_requires-1-1-flv | | e248569a-d32d-422e-8fcd-e0504b4dee42 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.139 | ubuntu20.04 | simple_requires-1-1-flv | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | 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 | +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | 29cca980-2c10-4d3e-9d34-29e1337134c3 | basic_30-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 8da8af30-94b7-4a35-88f0-0b3ea3c66c47 | basic_30-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 53bba60b-1f27-428b-aad7-4403b6bbabc6 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.84 | ubuntu20.04 | simple_requires-1-1-flv | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | 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.108 == '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 4dd57b2c-b93d-4f35-97bf-81bb1bc7cbfe ${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} = 4dd57b2c-b93d-4f35-97bf-81bb1bc7cbfe ${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 edc574c7-4ac2-423a-bf4f-096932b2f44a ${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} = edc574c7-4ac2-423a-bf4f-096932b2f44a ${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} = 40f27e84-77e7-4e5e-b3f4-8c3f91282f22 ${stdout} Logs the given message with the given level. 40f27e84-77e7-4e5e-b3f4-8c3f91282f22 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 40f27e84-77e7-4e5e-b3f4-8c3f91282f22 ${ns_id} Logs the given message with the given level. 40f27e84-77e7-4e5e-b3f4-8c3f91282f22 ${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 | +--------------------------------------+---------------------------------------+--------+-----------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------+ | 29cca980-2c10-4d3e-9d34-29e1337134c3 | basic_30-vnf2-dataVM-0 | ACTIVE | basic_30-datanet1=2001:db8::3ba; basic_30-datanet2=192.168.20.107; basic_30-datanet3=192.168.30.218; osm-ext=172.21.249.228 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 8da8af30-94b7-4a35-88f0-0b3ea3c66c47 | basic_30-vnf1-dataVM-0 | ACTIVE | basic_30-datanet1=2001:db8::ba; basic_30-datanet2=192.168.20.31; basic_30-datanet3=192.168.30.13; osm-ext=172.21.248.201 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 53bba60b-1f27-428b-aad7-4403b6bbabc6 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.84 | ubuntu20.04 | simple_requires-1-1-flv | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | 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 | 40f27e84-77e7-4e5e-b3f4-8c3f91282f22 | 2024-04-21T03:35:24 | BUILDING | INSTANTIATING (a2db23bd-e4ac-4994-9a4b-3f3fc7db7349) | N/A | +----------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | 40f27e84-77e7-4e5e-b3f4-8c3f91282f22 | 2024-04-21T03:35:24 | BUILDING | INSTANTIATING (a2db23bd-e4ac-4994-9a4b-3f3fc7db7349) | N/A | +----------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+------------------------------------------+--------+-----------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------+ | d374dde5-ae37-4879-9c1c-fd5658304629 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.249.145 | ubuntu20.04 | simple_requires-1-1-flv | | 29cca980-2c10-4d3e-9d34-29e1337134c3 | basic_30-vnf2-dataVM-0 | ACTIVE | basic_30-datanet1=2001:db8::3ba; basic_30-datanet2=192.168.20.107; basic_30-datanet3=192.168.30.218; osm-ext=172.21.249.228 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 8da8af30-94b7-4a35-88f0-0b3ea3c66c47 | basic_30-vnf1-dataVM-0 | ACTIVE | basic_30-datanet1=2001:db8::ba; basic_30-datanet2=192.168.20.31; basic_30-datanet3=192.168.30.13; osm-ext=172.21.248.201 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 53bba60b-1f27-428b-aad7-4403b6bbabc6 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.84 | ubuntu20.04 | simple_requires-1-1-flv | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | 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 | 40f27e84-77e7-4e5e-b3f4-8c3f91282f22 | 2024-04-21T03:35: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} = +--------------------------------------+------------------------------------------+--------+------------------------------------------------------------------------------------------------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------+--------+-----------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------+--------+-----------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------+ | d374dde5-ae37-4879-9c1c-fd5658304629 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.249.145 | ubuntu20.04 | simple_requires-1-1-flv | | 29cca980-2c10-4d3e-9d34-29e1337134c3 | basic_30-vnf2-dataVM-0 | ACTIVE | basic_30-datanet1=2001:db8::3ba; basic_30-datanet2=192.168.20.107; basic_30-datanet3=192.168.30.218; osm-ext=172.21.249.228 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 8da8af30-94b7-4a35-88f0-0b3ea3c66c47 | basic_30-vnf1-dataVM-0 | ACTIVE | basic_30-datanet1=2001:db8::ba; basic_30-datanet2=192.168.20.31; basic_30-datanet3=192.168.30.13; osm-ext=172.21.248.201 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 53bba60b-1f27-428b-aad7-4403b6bbabc6 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.84 | ubuntu20.04 | simple_requires-1-1-flv | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | 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 | 40f27e84-77e7-4e5e-b3f4-8c3f91282f22 | 2024-04-21T03:35: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} = 40f27e84-77e7-4e5e-b3f4-8c3f91282f22 ${WS_NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${WS_NS_ID} = 40f27e84-77e7-4e5e-b3f4-8c3f91282f22 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 40f27e84-77e7-4e5e-b3f4-8c3f91282f22 | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.249.145 ${stdout} Logs the given message with the given level. 172.21.249.145 ${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.145 ${ip_addr} Logs the given message with the given level. 172.21.249.145 ${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.145 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.145: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 Sun Apr 21 03:36:45 UTC 2024 System load: 0.66 Processes: 104 Usage of /: 14.0% of 9.52GB Users logged in: 0 Memory usage: 21% IPv4 address for ens3: 172.21.249.145 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.145: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 a5999e4b-7da9-4093-8c72-bb26faaf15fc ${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} = a5999e4b-7da9-4093-8c72-bb26faaf15fc ${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 78990b69-ce7e-47ba-90a7-5d00fd488415 ${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} = 78990b69-ce7e-47ba-90a7-5d00fd488415 ${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} = c0a0fca7-d42d-4724-b213-7d69784e0a4b ${stdout} Logs the given message with the given level. c0a0fca7-d42d-4724-b213-7d69784e0a4b ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = c0a0fca7-d42d-4724-b213-7d69784e0a4b ${ns_id} Logs the given message with the given level. c0a0fca7-d42d-4724-b213-7d69784e0a4b ${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 | +--------------------------------------+------------------------------------------+--------+-----------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------+ | 73f1ca1c-cd03-44f4-9bab-6af6295ba59d | sa_02-vnf-hackfest_basic_metrics-VM-1 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | d374dde5-ae37-4879-9c1c-fd5658304629 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.249.145 | ubuntu20.04 | simple_requires-1-1-flv | | 29cca980-2c10-4d3e-9d34-29e1337134c3 | basic_30-vnf2-dataVM-0 | ACTIVE | basic_30-datanet1=2001:db8::3ba; basic_30-datanet2=192.168.20.107; basic_30-datanet3=192.168.30.218; osm-ext=172.21.249.228 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 8da8af30-94b7-4a35-88f0-0b3ea3c66c47 | basic_30-vnf1-dataVM-0 | ACTIVE | basic_30-datanet1=2001:db8::ba; basic_30-datanet2=192.168.20.31; basic_30-datanet3=192.168.30.13; osm-ext=172.21.248.201 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 53bba60b-1f27-428b-aad7-4403b6bbabc6 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.84 | ubuntu20.04 | simple_requires-1-1-flv | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | 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 | c0a0fca7-d42d-4724-b213-7d69784e0a4b | 2024-04-21T03:36:52 | BUILDING | INSTANTIATING (b7d5b84e-539c-4eaa-88d4-c346cc85c4fb) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | c0a0fca7-d42d-4724-b213-7d69784e0a4b | 2024-04-21T03:36:52 | BUILDING | INSTANTIATING (b7d5b84e-539c-4eaa-88d4-c346cc85c4fb) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+------------------------------------------+--------+-----------------------------------------------------------------------------------------------------------------------------+------------------------------+--------------------------+ | 486e9597-d378-49c6-9ec9-a660116c6ab5 | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.232 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | 73f1ca1c-cd03-44f4-9bab-6af6295ba59d | sa_02-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.248.208 | ubuntu20.04 | simple_requires-1-1-flv | | d374dde5-ae37-4879-9c1c-fd5658304629 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.249.145 | ubuntu20.04 | simple_requires-1-1-flv | | 29cca980-2c10-4d3e-9d34-29e1337134c3 | basic_30-vnf2-dataVM-0 | ACTIVE | basic_30-datanet1=2001:db8::3ba; basic_30-datanet2=192.168.20.107; basic_30-datanet3=192.168.30.218; osm-ext=172.21.249.228 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 8da8af30-94b7-4a35-88f0-0b3ea3c66c47 | basic_30-vnf1-dataVM-0 | ACTIVE | basic_30-datanet1=2001:db8::ba; basic_30-datanet2=192.168.20.31; basic_30-datanet3=192.168.30.13; osm-ext=172.21.248.201 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 53bba60b-1f27-428b-aad7-4403b6bbabc6 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.84 | ubuntu20.04 | simple_requires-1-1-flv | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | 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 | c0a0fca7-d42d-4724-b213-7d69784e0a4b | 2024-04-21T03:36:52 | 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 | +--------------------------------------+------------------------------------------+--------+-----------------------------------------------------------------------------------------------------------------------------+------------------------------+--------------------------+ | 486e9597-d378-49c6-9ec9-a660116c6ab5 | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.232 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | 73f1ca1c-cd03-44f4-9bab-6af6295ba59d | sa_02-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.248.208 | ubuntu20.04 | simple_requires-1-1-flv | | d374dde5-ae37-4879-9c1c-fd5658304629 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.249.145 | ubuntu20.04 | simple_requires-1-1-flv | | 29cca980-2c10-4d3e-9d34-29e1337134c3 | basic_30-vnf2-dataVM-0 | ACTIVE | basic_30-datanet1=2001:db8::3ba; basic_30-datanet2=192.168.20.107; basic_30-datanet3=192.168.30.218; osm-ext=172.21.249.228 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 8da8af30-94b7-4a35-88f0-0b3ea3c66c47 | basic_30-vnf1-dataVM-0 | ACTIVE | basic_30-datanet1=2001:db8::ba; basic_30-datanet2=192.168.20.31; basic_30-datanet3=192.168.30.13; osm-ext=172.21.248.201 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 53bba60b-1f27-428b-aad7-4403b6bbabc6 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.84 | ubuntu20.04 | simple_requires-1-1-flv | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | 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 | c0a0fca7-d42d-4724-b213-7d69784e0a4b | 2024-04-21T03:36:52 | 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} = c0a0fca7-d42d-4724-b213-7d69784e0a4b ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = c0a0fca7-d42d-4724-b213-7d69784e0a4b 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=c0a0fca7-d42d-4724-b213-7d69784e0a4b ${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=c0a0fca7-d42d-4724-b213-7d69784e0a4b ${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=c0a0fca7-d42d-4724-b213-7d69784e0a4b ${param_name} = ns_id ${param_value} = c0a0fca7-d42d-4724-b213-7d69784e0a4b ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=c0a0fca7-d42d-4724-b213-7d69784e0a4b,ns_id,c0a0fca7-d42d-4724-b213-7d69784e0a4b ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="c0a0fca7-d42d-4724-b213-7d69784e0a4b", ${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.108:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7fcbd4e5efb0>, 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.108:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22c0a0fca7-d42d-4724-b213-7d69784e0a4b%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22c0a0fca7-d42d-4724-b213-7d69784e0a4b%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.108:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22c0a0fca7-d42d-4724-b213-7d69784e0a4b%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 21 Apr 2024 03:37:31 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=c0a0fca7-d42d-4724-b213-7d69784e0a4b ${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=c0a0fca7-d42d-4724-b213-7d69784e0a4b ${param_name} = ns_id ${param_value} = c0a0fca7-d42d-4724-b213-7d69784e0a4b ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=c0a0fca7-d42d-4724-b213-7d69784e0a4b,ns_id,c0a0fca7-d42d-4724-b213-7d69784e0a4b ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="c0a0fca7-d42d-4724-b213-7d69784e0a4b", ${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.108:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7fcbd4f5ffa0>, 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.108:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22c0a0fca7-d42d-4724-b213-7d69784e0a4b%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22c0a0fca7-d42d-4724-b213-7d69784e0a4b%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.108:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22c0a0fca7-d42d-4724-b213-7d69784e0a4b%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 21 Apr 2024 03:38:31 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=c0a0fca7-d42d-4724-b213-7d69784e0a4b ${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=c0a0fca7-d42d-4724-b213-7d69784e0a4b ${param_name} = ns_id ${param_value} = c0a0fca7-d42d-4724-b213-7d69784e0a4b ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=c0a0fca7-d42d-4724-b213-7d69784e0a4b,ns_id,c0a0fca7-d42d-4724-b213-7d69784e0a4b ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="c0a0fca7-d42d-4724-b213-7d69784e0a4b", ${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.108:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7fcbd4f5fee0>, 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.108:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22c0a0fca7-d42d-4724-b213-7d69784e0a4b%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22c0a0fca7-d42d-4724-b213-7d69784e0a4b%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.108:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22c0a0fca7-d42d-4724-b213-7d69784e0a4b%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 21 Apr 2024 03:39:31 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=c0a0fca7-d42d-4724-b213-7d69784e0a4b ${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=c0a0fca7-d42d-4724-b213-7d69784e0a4b ${param_name} = ns_id ${param_value} = c0a0fca7-d42d-4724-b213-7d69784e0a4b ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=c0a0fca7-d42d-4724-b213-7d69784e0a4b,ns_id,c0a0fca7-d42d-4724-b213-7d69784e0a4b ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="c0a0fca7-d42d-4724-b213-7d69784e0a4b", ${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.108:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7fcbd4e37640>, 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.108:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22c0a0fca7-d42d-4724-b213-7d69784e0a4b%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22c0a0fca7-d42d-4724-b213-7d69784e0a4b%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.108:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22c0a0fca7-d42d-4724-b213-7d69784e0a4b%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 21 Apr 2024 03:40:31 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=c0a0fca7-d42d-4724-b213-7d69784e0a4b ${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=c0a0fca7-d42d-4724-b213-7d69784e0a4b ${param_name} = ns_id ${param_value} = c0a0fca7-d42d-4724-b213-7d69784e0a4b ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=c0a0fca7-d42d-4724-b213-7d69784e0a4b,ns_id,c0a0fca7-d42d-4724-b213-7d69784e0a4b ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="c0a0fca7-d42d-4724-b213-7d69784e0a4b", ${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.108:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7fcbd4e344c0>, 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.108:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22c0a0fca7-d42d-4724-b213-7d69784e0a4b%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22c0a0fca7-d42d-4724-b213-7d69784e0a4b%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.108:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22c0a0fca7-d42d-4724-b213-7d69784e0a4b%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 21 Apr 2024 03:41:31 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=c0a0fca7-d42d-4724-b213-7d69784e0a4b ${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=c0a0fca7-d42d-4724-b213-7d69784e0a4b ${param_name} = ns_id ${param_value} = c0a0fca7-d42d-4724-b213-7d69784e0a4b ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=c0a0fca7-d42d-4724-b213-7d69784e0a4b,ns_id,c0a0fca7-d42d-4724-b213-7d69784e0a4b ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="c0a0fca7-d42d-4724-b213-7d69784e0a4b", ${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.108:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7fcbd4e365f0>, 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.108:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22c0a0fca7-d42d-4724-b213-7d69784e0a4b%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22c0a0fca7-d42d-4724-b213-7d69784e0a4b%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.108:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22c0a0fca7-d42d-4724-b213-7d69784e0a4b%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 21 Apr 2024 03:42:31 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=c0a0fca7-d42d-4724-b213-7d69784e0a4b ${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=c0a0fca7-d42d-4724-b213-7d69784e0a4b ${param_name} = ns_id ${param_value} = c0a0fca7-d42d-4724-b213-7d69784e0a4b ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=c0a0fca7-d42d-4724-b213-7d69784e0a4b,ns_id,c0a0fca7-d42d-4724-b213-7d69784e0a4b ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="c0a0fca7-d42d-4724-b213-7d69784e0a4b", ${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.108:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7fcbd50c3b20>, 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.108:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22c0a0fca7-d42d-4724-b213-7d69784e0a4b%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22c0a0fca7-d42d-4724-b213-7d69784e0a4b%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.108:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22c0a0fca7-d42d-4724-b213-7d69784e0a4b%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 21 Apr 2024 03:43:31 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=c0a0fca7-d42d-4724-b213-7d69784e0a4b ${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=c0a0fca7-d42d-4724-b213-7d69784e0a4b ${param_name} = ns_id ${param_value} = c0a0fca7-d42d-4724-b213-7d69784e0a4b ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=c0a0fca7-d42d-4724-b213-7d69784e0a4b,ns_id,c0a0fca7-d42d-4724-b213-7d69784e0a4b ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="c0a0fca7-d42d-4724-b213-7d69784e0a4b", ${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.108:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7fcbd4e94280>, 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.108:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22c0a0fca7-d42d-4724-b213-7d69784e0a4b%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22c0a0fca7-d42d-4724-b213-7d69784e0a4b%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.108:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22c0a0fca7-d42d-4724-b213-7d69784e0a4b%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 21 Apr 2024 03:44:31 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=c0a0fca7-d42d-4724-b213-7d69784e0a4b ${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=c0a0fca7-d42d-4724-b213-7d69784e0a4b ${param_name} = ns_id ${param_value} = c0a0fca7-d42d-4724-b213-7d69784e0a4b ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=c0a0fca7-d42d-4724-b213-7d69784e0a4b,ns_id,c0a0fca7-d42d-4724-b213-7d69784e0a4b ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="c0a0fca7-d42d-4724-b213-7d69784e0a4b", ${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.108:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7fcbd50c0b20>, 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.108:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22c0a0fca7-d42d-4724-b213-7d69784e0a4b%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22c0a0fca7-d42d-4724-b213-7d69784e0a4b%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.108:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22c0a0fca7-d42d-4724-b213-7d69784e0a4b%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 21 Apr 2024 03:45:31 GMT', 'Content-Length': '359'} body={"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"osm_cpu_utilization","job":"airflow_osm_vm_metrics_050dc050-ab65-4e5b-8c08-3a8b5050bda5","metric_id":"cirros_vnf_cpu_util","ns_id":"c0a0fca7-d42d-4724-b213-7d69784e0a4b","project_id":"d6f47f86-1a13-4010-a962-317e9ed50847","vdu_id":"cirros_vnfd-VM","vdu_name":"sa_07-alarm_test-vnf-cirros_vnfd-VM-0","vim_id":"050dc050-ab65-4e5b-8c08-3a8b5050bda5","vm_id":"486e9597-d378-49c6-9ec9-a660116c6ab5","vnf_member_index":"vnf"},"value":[1713671131.416,"0.03333333333333333"]}]}} ${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_050dc050-ab65-4e5b-8c08-3a8b5050bda5', '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_050dc050-ab65-4e5b-8c08-3a8b5050bda5', 'metric_id': 'cirros_vnf_cpu_util', 'ns_id': 'c0a0fca7-d42d-4724-b213-7d69784e0a4b... ${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.03333333333333333 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.145: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 Sun Apr 21 03:45:31 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.145 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: Sun Apr 21 03:36:46 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.145: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 Sun Apr 21 03:46:13 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.145 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: Sun Apr 21 03:45:32 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.145: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 Sun Apr 21 03:46:55 UTC 2024 System load: 0.0 Processes: 101 Usage of /: 14.2% of 9.52GB Users logged in: 0 Memory usage: 21% IPv4 address for ens3: 172.21.249.145 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: Sun Apr 21 03:46:13 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": "622ba12e-ba8a-4ac6-aa07-626f575ff476", "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": "622ba12e-ba8a-4ac6-aa07-626f575ff476", "status": "alarm", "metric_name": "osm_cpu_utilization", "start_date": "2024-04-21T03:46:33.304Z", "tags": {"alertname": "vdu_alarm_622ba12e-ba8a-4ac6-aa07-626f575ff476", "job": "airflow_osm_vm_metrics_050dc050-ab65-4e5b-8c08-3a8b5050bda5", "metric_id": "cirros_vnf_cpu_util", "ns_id": "c0a0fca7-d42d-4724-b213-7d69784e0a4b", "project_id": "d6f47f86-1a13-4010-a962-317e9ed50847", "vdu_id": "cirros_vnfd-VM", "vdu_name": "sa_07-alarm_test-vnf-cirros_vnfd-VM-0", "vim_id": "050dc050-ab65-4e5b-8c08-3a8b5050bda5", "vm_id": "486e9597-d378-49c6-9ec9-a660116c6ab5", "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 | +--------------------------------------+------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | 8aac2947-6e20-4544-a3a6-31190fdc242a | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.27 | ubuntu20.04 | simple_requires-1-1-flv | | aec2d21c-ab7b-4512-a13a-5698135512c2 | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.126 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | 1c9f7e46-4b4e-4aea-b5cb-8394aa955b10 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.18 | ubuntu20.04 | simple_requires-1-1-flv | | 486e9597-d378-49c6-9ec9-a660116c6ab5 | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.232 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | d374dde5-ae37-4879-9c1c-fd5658304629 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.249.145 | ubuntu20.04 | simple_requires-1-1-flv | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | 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 ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | 8aac2947-6e20-4544-a3a6-31190fdc242a | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.27 | ubuntu20.04 | simple_requires-1-1-flv | | aec2d21c-ab7b-4512-a13a-5698135512c2 | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.126 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | 1c9f7e46-4b4e-4aea-b5cb-8394aa955b10 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.18 | ubuntu20.04 | simple_requires-1-1-flv | | d374dde5-ae37-4879-9c1c-fd5658304629 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.249.145 | ubuntu20.04 | simple_requires-1-1-flv | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | 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 ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | 8aac2947-6e20-4544-a3a6-31190fdc242a | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.27 | ubuntu20.04 | simple_requires-1-1-flv | | aec2d21c-ab7b-4512-a13a-5698135512c2 | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.126 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | 1c9f7e46-4b4e-4aea-b5cb-8394aa955b10 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.18 | ubuntu20.04 | simple_requires-1-1-flv | | d374dde5-ae37-4879-9c1c-fd5658304629 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.249.145 | ubuntu20.04 | simple_requires-1-1-flv | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | 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 ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | 399ab685-df87-4759-9bb0-27a108204588 | epa_04-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 8aac2947-6e20-4544-a3a6-31190fdc242a | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.27 | ubuntu20.04 | simple_requires-1-1-flv | | aec2d21c-ab7b-4512-a13a-5698135512c2 | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.126 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | 1c9f7e46-4b4e-4aea-b5cb-8394aa955b10 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.18 | ubuntu20.04 | simple_requires-1-1-flv | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | 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.108 == '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 ba6a96df-c26e-4e6d-8379-5c9655e5be98 ${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} = ba6a96df-c26e-4e6d-8379-5c9655e5be98 ${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 3... ${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 3cb7ab35-6c89-40e1-9922-c258fb38f490 ${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} = 3cb7ab35-6c89-40e1-9922-c258fb38f490 ${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} = be4bb001-08f6-417c-a325-662a10164ee6 ${stdout} Logs the given message with the given level. be4bb001-08f6-417c-a325-662a10164ee6 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = be4bb001-08f6-417c-a325-662a10164ee6 ${ns_id} Logs the given message with the given level. be4bb001-08f6-417c-a325-662a10164ee6 ${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 | +--------------------------------------+------------------------------------------+--------+-------------------------------------------------------+------------------------------+--------------------------+ | 2fdd2514-7528-4286-9a3d-35280ce01292 | epa_04-vnf2-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.22; osm-ext=172.21.249.70 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 399ab685-df87-4759-9bb0-27a108204588 | epa_04-vnf1-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.11; osm-ext=172.21.248.225 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 8aac2947-6e20-4544-a3a6-31190fdc242a | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.27 | ubuntu20.04 | simple_requires-1-1-flv | | aec2d21c-ab7b-4512-a13a-5698135512c2 | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.126 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | 1c9f7e46-4b4e-4aea-b5cb-8394aa955b10 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.18 | ubuntu20.04 | simple_requires-1-1-flv | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | 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 | be4bb001-08f6-417c-a325-662a10164ee6 | 2024-04-21T03:48:01 | BUILDING | INSTANTIATING (ef37063a-2c6d-4e94-ab40-df097cbab6d6) | N/A | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | be4bb001-08f6-417c-a325-662a10164ee6 | 2024-04-21T03:48:01 | BUILDING | INSTANTIATING (ef37063a-2c6d-4e94-ab40-df097cbab6d6) | N/A | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+------------------------------------------+--------+-----------------------------------------------------------------------------------------------------------+------------------------------+---------------------------+ | 0644656e-60cf-4ad2-84a6-23d8670d27e8 | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | ACTIVE | osm-ext=172.21.248.75; sa_08-vnf_with_v-external=192.168.237.28; sa_08-vnf_with_v-internal=192.168.233.98 | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 2fdd2514-7528-4286-9a3d-35280ce01292 | epa_04-vnf2-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.22; osm-ext=172.21.249.70 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 399ab685-df87-4759-9bb0-27a108204588 | epa_04-vnf1-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.11; osm-ext=172.21.248.225 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 8aac2947-6e20-4544-a3a6-31190fdc242a | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.27 | ubuntu20.04 | simple_requires-1-1-flv | | aec2d21c-ab7b-4512-a13a-5698135512c2 | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.126 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | 1c9f7e46-4b4e-4aea-b5cb-8394aa955b10 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.18 | ubuntu20.04 | simple_requires-1-1-flv | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | 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 | be4bb001-08f6-417c-a325-662a10164ee6 | 2024-04-21T03:48:01 | BUILDING | INSTANTIATING (ef37063a-2c6d-4e94-ab40-df097cbab6d6) | N/A | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | be4bb001-08f6-417c-a325-662a10164ee6 | 2024-04-21T03:48:01 | BUILDING | INSTANTIATING (ef37063a-2c6d-4e94-ab40-df097cbab6d6) | N/A | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+------------------------------------------+--------+-----------------------------------------------------------------------------------------------------------+------------------------------+---------------------------+ | 0644656e-60cf-4ad2-84a6-23d8670d27e8 | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | ACTIVE | osm-ext=172.21.248.75; sa_08-vnf_with_v-external=192.168.237.28; sa_08-vnf_with_v-internal=192.168.233.98 | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 2fdd2514-7528-4286-9a3d-35280ce01292 | epa_04-vnf2-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.22; osm-ext=172.21.249.70 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 399ab685-df87-4759-9bb0-27a108204588 | epa_04-vnf1-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.11; osm-ext=172.21.248.225 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 8aac2947-6e20-4544-a3a6-31190fdc242a | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.27 | ubuntu20.04 | simple_requires-1-1-flv | | aec2d21c-ab7b-4512-a13a-5698135512c2 | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.126 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | 1c9f7e46-4b4e-4aea-b5cb-8394aa955b10 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.18 | ubuntu20.04 | simple_requires-1-1-flv | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | 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 | be4bb001-08f6-417c-a325-662a10164ee6 | 2024-04-21T03:48:01 | BUILDING | INSTANTIATING (ef37063a-2c6d-4e94-ab40-df097cbab6d6) | N/A | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | be4bb001-08f6-417c-a325-662a10164ee6 | 2024-04-21T03:48:01 | BUILDING | INSTANTIATING (ef37063a-2c6d-4e94-ab40-df097cbab6d6) | N/A | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+------------------------------------------+--------+-----------------------------------------------------------------------------------------------------------+------------------------------+---------------------------+ | 0644656e-60cf-4ad2-84a6-23d8670d27e8 | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | ACTIVE | osm-ext=172.21.248.75; sa_08-vnf_with_v-external=192.168.237.28; sa_08-vnf_with_v-internal=192.168.233.98 | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 2fdd2514-7528-4286-9a3d-35280ce01292 | epa_04-vnf2-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.22; osm-ext=172.21.249.70 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 399ab685-df87-4759-9bb0-27a108204588 | epa_04-vnf1-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.11; osm-ext=172.21.248.225 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 8aac2947-6e20-4544-a3a6-31190fdc242a | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.27 | ubuntu20.04 | simple_requires-1-1-flv | | aec2d21c-ab7b-4512-a13a-5698135512c2 | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.126 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | 1c9f7e46-4b4e-4aea-b5cb-8394aa955b10 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.18 | ubuntu20.04 | simple_requires-1-1-flv | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | 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 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_08-vnf_with_vnf_indicators_snmp_test | be4bb001-08f6-417c-a325-662a10164ee6 | 2024-04-21T03:48:01 | 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 | +--------------------------------------+------------------------------------------+--------+-----------------------------------------------------------------------------------------------------------+------------------------------+---------------------------+ | 9a650502-d286-45d2-ad73-37c1f45727f2 | sa_02-vnf-hackfest_basic_metrics-VM-1 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 0644656e-60cf-4ad2-84a6-23d8670d27e8 | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | ACTIVE | osm-ext=172.21.248.75; sa_08-vnf_with_v-external=192.168.237.28; sa_08-vnf_with_v-internal=192.168.233.98 | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 2fdd2514-7528-4286-9a3d-35280ce01292 | epa_04-vnf2-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.22; osm-ext=172.21.249.70 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 399ab685-df87-4759-9bb0-27a108204588 | epa_04-vnf1-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.11; osm-ext=172.21.248.225 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 8aac2947-6e20-4544-a3a6-31190fdc242a | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.27 | ubuntu20.04 | simple_requires-1-1-flv | | aec2d21c-ab7b-4512-a13a-5698135512c2 | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.126 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | 1c9f7e46-4b4e-4aea-b5cb-8394aa955b10 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.18 | ubuntu20.04 | simple_requires-1-1-flv | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | 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 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_08-vnf_with_vnf_indicators_snmp_test | be4bb001-08f6-417c-a325-662a10164ee6 | 2024-04-21T03:48:01 | 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} = be4bb001-08f6-417c-a325-662a10164ee6 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = be4bb001-08f6-417c-a325-662a10164ee6 Instantiate the NS for the testsuite. cluster_k8s daily regression sa_08 ${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.108:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7fcbd4e805b0>, 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.108: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.108:9091/api/v1/query?query=ifInOctets%7BifIndex=%221%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 21 Apr 2024 03:49:46 GMT', 'Content-Length': '218'} body={"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"ifInOctets","ifAlias":"lo","ifDescr":"lo","ifIndex":"1","ifName":"lo","instance":"172.21.248.75","job":"06ccdbb0b00e4f8dbe479649649286dd"},"value":[1713671386.490,"2977"]}]}} ${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__': 'ifInOctets', 'ifAlias': 'lo', 'ifDescr': 'lo', 'ifIndex': '1', 'ifName': 'lo', 'instance': '172.21.248.75', '... ${result_list} ${resp["data"]["result"]} Converts the given ``item`` to a Python ``list`` type. ${result_list} = [{'metric': {'__name__': 'ifInOctets', 'ifAlias': 'lo', 'ifDescr': 'lo', 'ifIndex': '1', 'ifName': 'lo', 'instance': '172.21.248.75', 'job': '06ccdbb0b00e4f8dbe479649649286dd'}, 'value': [1713671386.4... ${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} = 2977 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. ${PROMETHEUS_HOST} ${PROMETHEUS_PORT} ${PROMETHEUS_USER} ${PROMETHEUS_PASSWORD} ${METRIC_2_NAME} ${METRIC_2_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=2 ${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=2 ${param_name} = ifIndex ${param_value} = 2 ${match},${param_name},${param_value} Logs the given message with the given level. ifIndex=2,ifIndex,2 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ifIndex="2", ${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.108:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7fcbd4e968c0>, 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.108:9091/api/v1/query?query=ifMtu%7BifIndex=%222%22,%7D path_url=/api/v1/query?query=ifMtu%7BifIndex=%222%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.108:9091/api/v1/query?query=ifMtu%7BifIndex=%222%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 21 Apr 2024 03:49:46 GMT', 'Content-Length': '244'} body={"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"ifMtu","ifAlias":"VyOS-eth0","ifDescr":"Red Hat, Inc Device 0001","ifIndex":"2","ifName":"eth0","instance":"172.21.248.75","job":"06ccdbb0b00e4f8dbe479649649286dd"},"value":[1713671386.516,"1500"]}]}} ${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__': 'ifMtu', 'ifAlias': 'VyOS-eth0', 'ifDescr': 'Red Hat, Inc Device 0001', 'ifIndex': '2', 'ifName': 'eth0', 'ins... ${result_list} ${resp["data"]["result"]} Converts the given ``item`` to a Python ``list`` type. ${result_list} = [{'metric': {'__name__': 'ifMtu', 'ifAlias': 'VyOS-eth0', 'ifDescr': 'Red Hat, Inc Device 0001', 'ifIndex': '2', 'ifName': 'eth0', 'instance': '172.21.248.75', 'job': '06ccdbb0b00e4f8dbe479649649286dd... ${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} = 1500 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 ${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 | +--------------------------------------+------------------------------------------+--------+-----------------------------------------------------------------------------------------------------------+------------------------------+---------------------------+ | 9a650502-d286-45d2-ad73-37c1f45727f2 | sa_02-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.248.139 | ubuntu20.04 | simple_requires-1-1-flv | | 0644656e-60cf-4ad2-84a6-23d8670d27e8 | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | ACTIVE | osm-ext=172.21.248.75; sa_08-vnf_with_v-external=192.168.237.28; sa_08-vnf_with_v-internal=192.168.233.98 | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 2fdd2514-7528-4286-9a3d-35280ce01292 | epa_04-vnf2-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.22; osm-ext=172.21.249.70 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 399ab685-df87-4759-9bb0-27a108204588 | epa_04-vnf1-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.11; osm-ext=172.21.248.225 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 8aac2947-6e20-4544-a3a6-31190fdc242a | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.27 | ubuntu20.04 | simple_requires-1-1-flv | | aec2d21c-ab7b-4512-a13a-5698135512c2 | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.126 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | 1c9f7e46-4b4e-4aea-b5cb-8394aa955b10 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.18 | ubuntu20.04 | simple_requires-1-1-flv | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | 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 | +--------------------------------------+------------------------------------------+--------+-------------------------------------------------------+------------------------------+--------------------------+ | 9a650502-d286-45d2-ad73-37c1f45727f2 | sa_02-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.248.139 | ubuntu20.04 | simple_requires-1-1-flv | | 2fdd2514-7528-4286-9a3d-35280ce01292 | epa_04-vnf2-dataVM-0 | ACTIVE | osm-ext=172.21.249.70 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 399ab685-df87-4759-9bb0-27a108204588 | epa_04-vnf1-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.11; osm-ext=172.21.248.225 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 8aac2947-6e20-4544-a3a6-31190fdc242a | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.27 | ubuntu20.04 | simple_requires-1-1-flv | | aec2d21c-ab7b-4512-a13a-5698135512c2 | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.126 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | 1c9f7e46-4b4e-4aea-b5cb-8394aa955b10 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.18 | ubuntu20.04 | simple_requires-1-1-flv | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | 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. 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-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 beb90af3-740d-458f-ae75-e80025fa02f9 ${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} = beb90af3-740d-458f-ae75-e80025fa02f9 ${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 66030200-5709-4360-b390-1f023f55aa37 ${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} = 66030200-5709-4360-b390-1f023f55aa37 ${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 b69862e0-60e6-4802-aeb9-4893d534c91c ${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} = b69862e0-60e6-4802-aeb9-4893d534c91c ${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 2266f8ee-e085-4c1e-8dd8-ab69a600f2f2 ${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} = 2266f8ee-e085-4c1e-8dd8-ab69a600f2f2 ${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} = 654d3b67-1a20-4edf-897d-89892d4e3710 ${stdout} Logs the given message with the given level. 654d3b67-1a20-4edf-897d-89892d4e3710 ${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} = 91451cfe-c88e-4988-802f-8e337259a5e6 ${rc},${stdout} Logs the given message with the given level. 0,91451cfe-c88e-4988-802f-8e337259a5e6 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${nsi_id} = 91451cfe-c88e-4988-802f-8e337259a5e6 ${nsi_id} Logs the given message with the given level. 91451cfe-c88e-4988-802f-8e337259a5e6 ${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 | 91451cfe-c88e-4988-802f-8e337259a5e6 | 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 | 91451cfe-c88e-4988-802f-8e337259a5e6 | 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 | 91451cfe-c88e-4988-802f-8e337259a5e6 | 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 | 91451cfe-c88e-4988-802f-8e337259a5e6 | 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 | 91451cfe-c88e-4988-802f-8e337259a5e6 | 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 | 91451cfe-c88e-4988-802f-8e337259a5e6 | 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 | operational s... ${stdout} Logs the given message with the given level. +------------------------+--------------------------------------+--------------------+---------------+-----------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+-----------------+ | slicebasic | 91451cfe-c88e-4988-802f-8e337259a5e6 | running | configured | done | +------------------------+--------------------------------------+--------------------+---------------+-----------------+ ${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} = +------------------------+--------------------------------------+--------------------+---------------+-----------------+ | netslice instance name | id | operational s... ${stdout} Logs the given message with the given level. +------------------------+--------------------------------------+--------------------+---------------+-----------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+-----------------+ | slicebasic | 91451cfe-c88e-4988-802f-8e337259a5e6 | running | configured | done | +------------------------+--------------------------------------+--------------------+---------------+-----------------+ ${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. ${nsi_id} ${id} = 91451cfe-c88e-4988-802f-8e337259a5e6 ${NSI_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NSI_ID} = 91451cfe-c88e-4988-802f-8e337259a5e6 Instantiates the NST recently onboarded and sets the instantiation id as a suite variable (nsi_id) cluster_slices daily regression slice_01 ${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, '574253ab-09a4-43ad-b19b-f82d7015e26b') ${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 574253ab-09a4-43ad-b19b-f82d7015e26b | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.248.30 ${stdout} Logs the given message with the given level. 172.21.248.30 ${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.30 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.30 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 | bf70002b-4a73-4ff2-8e32-c761a5d24cdc e238d492-47d1-4748-b473-856789977d8e ] @{ns_list} ${ns_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{ns_list} = [ bf70002b-4a73-4ff2-8e32-c761a5d24cdc | e238d492-47d1-4748-b473-856789977d8e ] ${ns_list} Logs the length and contents of the ``list`` using given ``level``. List length is 2 and it contains following items: 0: bf70002b-4a73-4ff2-8e32-c761a5d24cdc 1: e238d492-47d1-4748-b473-856789977d8e @{ns_list} @{slice_ns_list} = [ bf70002b-4a73-4ff2-8e32-c761a5d24cdc | e238d492-47d1-4748-b473-856789977d8e ] @{slice_ns_list} Logs the given messages as separate entries using the INFO level. bf70002b-4a73-4ff2-8e32-c761a5d24cdc e238d492-47d1-4748-b473-856789977d8e @{temp_list} Returns a list containing given items. @{temp_list} = [ ] ${ns_id} @{slice_ns_list} bf70002b-4a73-4ff2-8e32-c761a5d24cdc ${ns_id} Logs the given message with the given level. bf70002b-4a73-4ff2-8e32-c761a5d24cdc @{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 bf70002b-4a73-4ff2-8e32-c761a5d24cdc | grep bf70002b-4a73-4ff2-8e32-c761a5d24cdc | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | 1119b7b0-bf6a-4142-9025-3d798c5521ed ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ 1119b7b0-bf6a-4142-9025-3d798c5521ed ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: 1119b7b0-bf6a-4142-9025-3d798c5521ed @{vnf_list} @{vnf_id_list} = [ 1119b7b0-bf6a-4142-9025-3d798c5521ed ] @{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} 1119b7b0-bf6a-4142-9025-3d798c5521ed ${vnf_id} Logs the given message with the given level. 1119b7b0-bf6a-4142-9025-3d798c5521ed @{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=1119b7b0-bf6a-4142-9025-3d798c5521ed | 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.71 ] ${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.71 ] ${vnf_ip_list} Logs the given messages as separate entries using the INFO level. ['172.21.248.71'] ${vnf_ip_list} Verifies that the given item is not empty. Length is 1 @{vnf_ip_list} @{vnf_ip_list} = [ 172.21.248.71 ] @{temp_list} ${temp_list} ${vnf_ip_list} Combines the given ``lists`` together and returns the result. @{temp_list} = [ 172.21.248.71 ] ${temp_list} Verifies that the given item is not empty. Length is 1 @{temp_list} @{ns_ip_list} = [ 172.21.248.71 ] @{temp_list} ${temp_list} ${ns_ip_list} Combines the given ``lists`` together and returns the result. @{temp_list} = [ 172.21.248.71 ] e238d492-47d1-4748-b473-856789977d8e ${ns_id} Logs the given message with the given level. e238d492-47d1-4748-b473-856789977d8e @{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 e238d492-47d1-4748-b473-856789977d8e | grep e238d492-47d1-4748-b473-856789977d8e | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | 875be2f5-8072-4e22-89ad-648dcaa831ec ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ 875be2f5-8072-4e22-89ad-648dcaa831ec ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: 875be2f5-8072-4e22-89ad-648dcaa831ec @{vnf_list} @{vnf_id_list} = [ 875be2f5-8072-4e22-89ad-648dcaa831ec ] @{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} 875be2f5-8072-4e22-89ad-648dcaa831ec ${vnf_id} Logs the given message with the given level. 875be2f5-8072-4e22-89ad-648dcaa831ec @{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=875be2f5-8072-4e22-89ad-648dcaa831ec | 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.93 ] ${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.93 ] ${vnf_ip_list} Logs the given messages as separate entries using the INFO level. ['172.21.248.93'] ${vnf_ip_list} Verifies that the given item is not empty. Length is 1 @{vnf_ip_list} @{vnf_ip_list} = [ 172.21.248.93 ] @{temp_list} ${temp_list} ${vnf_ip_list} Combines the given ``lists`` together and returns the result. @{temp_list} = [ 172.21.248.93 ] ${temp_list} Verifies that the given item is not empty. Length is 1 @{temp_list} @{ns_ip_list} = [ 172.21.248.93 ] @{temp_list} ${temp_list} ${ns_ip_list} Combines the given ``lists`` together and returns the result. @{temp_list} = [ 172.21.248.71 | 172.21.248.93 ] ${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.248.71 1: 172.21.248.93 ${SLICE_VNFS_IPS} ${temp_list} Makes a variable available everywhere within the scope of the current suite. ${SLICE_VNFS_IPS} = ['172.21.248.71', '172.21.248.93'] 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.30 ${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.30 2>&1'. ${rc} = 0 ${stdout} = PING 172.21.248.30 (172.21.248.30) 56(84) bytes of data. 64 bytes from 172.21.248.30: icmp_seq=1 ttl=63 time=2.40 ms 64 bytes from 172.21.248.30: icmp_seq=2 ttl=63 time=0.791 ms --- 172.21.248.30 pin... ${stdout} Logs the given message with the given level. PING 172.21.248.30 (172.21.248.30) 56(84) bytes of data. 64 bytes from 172.21.248.30: icmp_seq=1 ttl=63 time=2.40 ms 64 bytes from 172.21.248.30: icmp_seq=2 ttl=63 time=0.791 ms --- 172.21.248.30 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1002ms rtt min/avg/max/mdev = 0.791/1.595/2.400/0.804 ms ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> Pings the slice middle vnf (mgmt_vnf_ip) cluster_slices daily regression slice_01 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.30: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 Sun Apr 21 03:53:44 UTC 2024 System load: 0.12 Users logged in: 0 Usage of /: 11.5% of 9.52GB IP address for ens3: 172.21.248.30 Memory usage: 12% IP address for ens4: 192.168.213.246 Swap usage: 0% IP address for ens5: 192.168.91.30 Processes: 85 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@slicebasic:~$ hostname Executes ``command`` on the remote machine and returns its outputs. Executing command 'hostname'. Command exited with return code 0. 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 ${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.30: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 Sun Apr 21 03:53:46 UTC 2024 System load: 0.11 Users logged in: 0 Usage of /: 11.8% of 9.52GB IP address for ens3: 172.21.248.30 Memory usage: 12% IP address for ens4: 192.168.213.246 Swap usage: 0% IP address for ens5: 192.168.91.30 Processes: 85 0 updates can be applied immediately. New release '20.04.6 LTS' available. Run 'do-release-upgrade' to upgrade to it. Last login: Sun Apr 21 03:53:45 2024 from 172.21.249.4 To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. ubuntu@slicebasic:~$ ${ip} @{ip_list} 172.21.248.71 ${result} ping -c 5 -W 1 ${ip} > /dev/null && echo OK shell=True Executes ``command`` on the remote machine and returns its outputs. Executing command 'ping -c 5 -W 1 172.21.248.71 > /dev/null && echo OK'. Command exited with return code 0. ${result} = OK ${result} Logs the given message with the given level. OK ${result} OK Fails if ``container`` does not contain ``item`` one or more times. 172.21.248.93 ${result} ping -c 5 -W 1 ${ip} > /dev/null && echo OK shell=True Executes ``command`` on the remote machine and returns its outputs. Executing command 'ping -c 5 -W 1 172.21.248.93 > /dev/null && echo OK'. Command exited with return code 0. ${result} = OK ${result} Logs the given message with the given level. OK ${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 ${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. Delete NST ${NST_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete NSD ${NSD1_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete NSD ${NSD2_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete VNFD ${VNFD1_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete VNFD ${VNFD2_NAME} Runs the given keyword with the given arguments, if one or more tests failed. [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 79a8f7f0-c921-4db0-be32-5a7c3c4e151f ${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} = 79a8f7f0-c921-4db0-be32-5a7c3c4e151f ${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 81357c6a-935b-478d-9a98-39532eaee759 ${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} = 81357c6a-935b-478d-9a98-39532eaee759 ${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 e470e73d-5daa-4ff2-aaf5-40eca593ece4 ${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} = e470e73d-5daa-4ff2-aaf5-40eca593ece4 ${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 237decf6-02d1-4378-b000-3a93f63e72e9 ${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} = 237decf6-02d1-4378-b000-3a93f63e72e9 ${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} = d933a187-dc31-43f7-841f-f47aefd29e8d ${stdout} Logs the given message with the given level. d933a187-dc31-43f7-841f-f47aefd29e8d ${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} = cf70f68a-555e-4e68-90ab-b529094f0998 ${stdout} Logs the given message with the given level. cf70f68a-555e-4e68-90ab-b529094f0998 ${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} = aee59f5b-68eb-4e74-9ab1-f5df9158819d ${rc},${stdout} Logs the given message with the given level. 0,aee59f5b-68eb-4e74-9ab1-f5df9158819d ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${nsi_id} = aee59f5b-68eb-4e74-9ab1-f5df9158819d ${nsi_id} Logs the given message with the given level. aee59f5b-68eb-4e74-9ab1-f5df9158819d ${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 | aee59f5b-68eb-4e74-9ab1-f5df9158819d | 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 | aee59f5b-68eb-4e74-9ab1-f5df9158819d | 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 | aee59f5b-68eb-4e74-9ab1-f5df9158819d | 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 | aee59f5b-68eb-4e74-9ab1-f5df9158819d | 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 | aee59f5b-68eb-4e74-9ab1-f5df9158819d | 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 | aee59f5b-68eb-4e74-9ab1-f5df9158819d | 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 | operational s... ${stdout} Logs the given message with the given level. +------------------------+--------------------------------------+--------------------+---------------+-----------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+-----------------+ | slicebasic | aee59f5b-68eb-4e74-9ab1-f5df9158819d | running | configured | done | +------------------------+--------------------------------------+--------------------+---------------+-----------------+ ${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} = +------------------------+--------------------------------------+--------------------+---------------+-----------------+ | netslice instance name | id | operational s... ${stdout} Logs the given message with the given level. +------------------------+--------------------------------------+--------------------+---------------+-----------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+-----------------+ | slicebasic | aee59f5b-68eb-4e74-9ab1-f5df9158819d | running | configured | done | +------------------------+--------------------------------------+--------------------+---------------+-----------------+ ${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. ${nsi_id} ${id} = aee59f5b-68eb-4e74-9ab1-f5df9158819d ${NSI_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NSI_ID} = aee59f5b-68eb-4e74-9ab1-f5df9158819d 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 ${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} = f6ccd1cb-f530-434f-8e0a-5f424c88a209 ${rc},${stdout} Logs the given message with the given level. 0,f6ccd1cb-f530-434f-8e0a-5f424c88a209 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${nsi_id} = f6ccd1cb-f530-434f-8e0a-5f424c88a209 ${nsi_id} Logs the given message with the given level. f6ccd1cb-f530-434f-8e0a-5f424c88a209 ${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 | f6ccd1cb-f530-434f-8e0a-5f424c88a209 | 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 | f6ccd1cb-f530-434f-8e0a-5f424c88a209 | 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 | f6ccd1cb-f530-434f-8e0a-5f424c88a209 | 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 | f6ccd1cb-f530-434f-8e0a-5f424c88a209 | 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 | operational s... ${stdout} Logs the given message with the given level. +------------------------+--------------------------------------+--------------------+---------------+-----------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+-----------------+ | sliceshared | f6ccd1cb-f530-434f-8e0a-5f424c88a209 | running | configured | done | +------------------------+--------------------------------------+--------------------+---------------+-----------------+ ${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} = +------------------------+--------------------------------------+--------------------+---------------+-----------------+ | netslice instance name | id | operational s... ${stdout} Logs the given message with the given level. +------------------------+--------------------------------------+--------------------+---------------+-----------------+ | netslice instance name | id | operational status | config status | detailed status | +------------------------+--------------------------------------+--------------------+---------------+-----------------+ | sliceshared | f6ccd1cb-f530-434f-8e0a-5f424c88a209 | running | configured | done | +------------------------+--------------------------------------+--------------------+---------------+-----------------+ ${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. ${nsi_id} ${id} = f6ccd1cb-f530-434f-8e0a-5f424c88a209 ${NSI2_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NSI2_ID} = f6ccd1cb-f530-434f-8e0a-5f424c88a209 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 ${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, '0873732e-833d-4d76-85fc-8f6eca91dfe9') ${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 0873732e-833d-4d76-85fc-8f6eca91dfe9 | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.249.31 ${stdout} Logs the given message with the given level. 172.21.249.31 ${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.249.31 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.249.31 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 | 3f5077e4-90b6-415c-946a-2429f06a37e7 0873732e-833d-4d76-85fc-8f6eca91dfe9 7b4e6b8a-10b7-48d0-91e6-8858a4d9675a ] @{ns_list} ${ns_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{ns_list} = [ 3f5077e4-90b6-415c-946a-2429f06a37e7 | 0873732e-833d-4d76-85fc-8f6eca91dfe9 | 7b4e6b8a-10b7-48d0-91e6-8858a4d9675a ] ${ns_list} Logs the length and contents of the ``list`` using given ``level``. List length is 3 and it contains following items: 0: 3f5077e4-90b6-415c-946a-2429f06a37e7 1: 0873732e-833d-4d76-85fc-8f6eca91dfe9 2: 7b4e6b8a-10b7-48d0-91e6-8858a4d9675a @{ns_list} @{slice_ns_list} = [ 3f5077e4-90b6-415c-946a-2429f06a37e7 | 0873732e-833d-4d76-85fc-8f6eca91dfe9 | 7b4e6b8a-10b7-48d0-91e6-8858a4d9675a ] @{slice_ns_list} Logs the given messages as separate entries using the INFO level. 3f5077e4-90b6-415c-946a-2429f06a37e7 0873732e-833d-4d76-85fc-8f6eca91dfe9 7b4e6b8a-10b7-48d0-91e6-8858a4d9675a @{temp_list} Returns a list containing given items. @{temp_list} = [ ] ${ns_id} @{slice_ns_list} 3f5077e4-90b6-415c-946a-2429f06a37e7 ${ns_id} Logs the given message with the given level. 3f5077e4-90b6-415c-946a-2429f06a37e7 @{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 3f5077e4-90b6-415c-946a-2429f06a37e7 | grep 3f5077e4-90b6-415c-946a-2429f06a37e7 | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | 63d80b81-a352-46eb-8643-2cdb619b412b ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ 63d80b81-a352-46eb-8643-2cdb619b412b ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: 63d80b81-a352-46eb-8643-2cdb619b412b @{vnf_list} @{vnf_id_list} = [ 63d80b81-a352-46eb-8643-2cdb619b412b ] @{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} 63d80b81-a352-46eb-8643-2cdb619b412b ${vnf_id} Logs the given message with the given level. 63d80b81-a352-46eb-8643-2cdb619b412b @{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=63d80b81-a352-46eb-8643-2cdb619b412b | 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.58 ] ${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.58 ] ${vnf_ip_list} Logs the given messages as separate entries using the INFO level. ['172.21.249.58'] ${vnf_ip_list} Verifies that the given item is not empty. Length is 1 @{vnf_ip_list} @{vnf_ip_list} = [ 172.21.249.58 ] @{temp_list} ${temp_list} ${vnf_ip_list} Combines the given ``lists`` together and returns the result. @{temp_list} = [ 172.21.249.58 ] ${temp_list} Verifies that the given item is not empty. Length is 1 @{temp_list} @{ns_ip_list} = [ 172.21.249.58 ] @{temp_list} ${temp_list} ${ns_ip_list} Combines the given ``lists`` together and returns the result. @{temp_list} = [ 172.21.249.58 ] 0873732e-833d-4d76-85fc-8f6eca91dfe9 ${ns_id} Logs the given message with the given level. 0873732e-833d-4d76-85fc-8f6eca91dfe9 @{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 0873732e-833d-4d76-85fc-8f6eca91dfe9 | grep 0873732e-833d-4d76-85fc-8f6eca91dfe9 | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | 0ec3934b-9716-4e6b-a3ab-c39cff1308a9 ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ 0ec3934b-9716-4e6b-a3ab-c39cff1308a9 ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: 0ec3934b-9716-4e6b-a3ab-c39cff1308a9 @{vnf_list} @{vnf_id_list} = [ 0ec3934b-9716-4e6b-a3ab-c39cff1308a9 ] @{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} 0ec3934b-9716-4e6b-a3ab-c39cff1308a9 ${vnf_id} Logs the given message with the given level. 0ec3934b-9716-4e6b-a3ab-c39cff1308a9 @{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=0ec3934b-9716-4e6b-a3ab-c39cff1308a9 | 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.31 ] ${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.31 ] ${vnf_ip_list} Logs the given messages as separate entries using the INFO level. ['172.21.249.31'] ${vnf_ip_list} Verifies that the given item is not empty. Length is 1 @{vnf_ip_list} @{vnf_ip_list} = [ 172.21.249.31 ] @{temp_list} ${temp_list} ${vnf_ip_list} Combines the given ``lists`` together and returns the result. @{temp_list} = [ 172.21.249.31 ] ${temp_list} Verifies that the given item is not empty. Length is 1 @{temp_list} @{ns_ip_list} = [ 172.21.249.31 ] @{temp_list} ${temp_list} ${ns_ip_list} Combines the given ``lists`` together and returns the result. @{temp_list} = [ 172.21.249.58 | 172.21.249.31 ] 7b4e6b8a-10b7-48d0-91e6-8858a4d9675a ${ns_id} Logs the given message with the given level. 7b4e6b8a-10b7-48d0-91e6-8858a4d9675a @{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 7b4e6b8a-10b7-48d0-91e6-8858a4d9675a | grep 7b4e6b8a-10b7-48d0-91e6-8858a4d9675a | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | 4a973549-f7aa-456f-98cd-f797f7d849c5 ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ 4a973549-f7aa-456f-98cd-f797f7d849c5 ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: 4a973549-f7aa-456f-98cd-f797f7d849c5 @{vnf_list} @{vnf_id_list} = [ 4a973549-f7aa-456f-98cd-f797f7d849c5 ] @{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} 4a973549-f7aa-456f-98cd-f797f7d849c5 ${vnf_id} Logs the given message with the given level. 4a973549-f7aa-456f-98cd-f797f7d849c5 @{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=4a973549-f7aa-456f-98cd-f797f7d849c5 | 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.172 ] ${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.172 ] ${vnf_ip_list} Logs the given messages as separate entries using the INFO level. ['172.21.249.172'] ${vnf_ip_list} Verifies that the given item is not empty. Length is 1 @{vnf_ip_list} @{vnf_ip_list} = [ 172.21.249.172 ] @{temp_list} ${temp_list} ${vnf_ip_list} Combines the given ``lists`` together and returns the result. @{temp_list} = [ 172.21.249.172 ] ${temp_list} Verifies that the given item is not empty. Length is 1 @{temp_list} @{ns_ip_list} = [ 172.21.249.172 ] @{temp_list} ${temp_list} ${ns_ip_list} Combines the given ``lists`` together and returns the result. @{temp_list} = [ 172.21.249.58 | 172.21.249.31 | 172.21.249.172 ] ${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.249.58 1: 172.21.249.31 2: 172.21.249.172 @{temp_list} @{ip_list} = [ 172.21.249.58 | 172.21.249.31 | 172.21.249.172 ] ${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.249.58', '172.21.249.31', '172.21.249.172'] 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.249.31 2>&1'. ${rc} = 0 ${stdout} = PING 172.21.249.31 (172.21.249.31) 56(84) bytes of data. 64 bytes from 172.21.249.31: icmp_seq=1 ttl=63 time=2.63 ms 64 bytes from 172.21.249.31: icmp_seq=2 ttl=63 time=0.668 ms --- 172.21.249.31 pin... ${stdout} Logs the given message with the given level. PING 172.21.249.31 (172.21.249.31) 56(84) bytes of data. 64 bytes from 172.21.249.31: icmp_seq=1 ttl=63 time=2.63 ms 64 bytes from 172.21.249.31: icmp_seq=2 ttl=63 time=0.668 ms --- 172.21.249.31 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1002ms rtt min/avg/max/mdev = 0.668/1.647/2.626/0.979 ms ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> Pings the slice middle vnf (mgmt_vnf_ip) cluster_slices daily regression slice_02 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.249.31: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 Sun Apr 21 03:59:44 UTC 2024 System load: 0.01 Users logged in: 0 Usage of /: 11.5% of 9.52GB IP address for ens3: 172.21.249.31 Memory usage: 12% IP address for ens4: 192.168.151.114 Swap usage: 0% IP address for ens5: 192.168.77.228 Processes: 84 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@slicebasic:~$ hostname Executes ``command`` on the remote machine and returns its outputs. Executing command 'hostname'. Command exited with return code 0. 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 ${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.249.31: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 Sun Apr 21 03:59:47 UTC 2024 System load: 0.17 Users logged in: 0 Usage of /: 11.8% of 9.52GB IP address for ens3: 172.21.249.31 Memory usage: 12% IP address for ens4: 192.168.151.114 Swap usage: 0% IP address for ens5: 192.168.77.228 Processes: 84 0 updates can be applied immediately. New release '20.04.6 LTS' available. Run 'do-release-upgrade' to upgrade to it. Last login: Sun Apr 21 03:59:45 2024 from 172.21.249.4 To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. ubuntu@slicebasic:~$ ${ip} @{ip_list} 172.21.249.58 ${result} ping -c 5 -W 1 ${ip} > /dev/null && echo OK shell=True Executes ``command`` on the remote machine and returns its outputs. Executing command 'ping -c 5 -W 1 172.21.249.58 > /dev/null && echo OK'. Command exited with return code 0. ${result} = OK ${result} Logs the given message with the given level. OK ${result} OK Fails if ``container`` does not contain ``item`` one or more times. 172.21.249.31 ${result} ping -c 5 -W 1 ${ip} > /dev/null && echo OK shell=True Executes ``command`` on the remote machine and returns its outputs. Executing command 'ping -c 5 -W 1 172.21.249.31 > /dev/null && echo OK'. Command exited with return code 0. ${result} = OK ${result} Logs the given message with the given level. OK ${result} OK Fails if ``container`` does not contain ``item`` one or more times. 172.21.249.172 ${result} ping -c 5 -W 1 ${ip} > /dev/null && echo OK shell=True Executes ``command`` on the remote machine and returns its outputs. Executing command 'ping -c 5 -W 1 172.21.249.172 > /dev/null && echo OK'. Command exited with return code 0. ${result} = OK ${result} Logs the given message with the given level. OK ${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 ${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_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 | 9b988a3e-bff9-4b48-bf5e-7e72fb6748bb ] @{ns_list} ${ns_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{ns_list} = [ 9b988a3e-bff9-4b48-bf5e-7e72fb6748bb ] ${ns_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: 9b988a3e-bff9-4b48-bf5e-7e72fb6748bb @{ns_list} @{slice_ns_list} = [ 9b988a3e-bff9-4b48-bf5e-7e72fb6748bb ] @{slice_ns_list} Logs the given messages as separate entries using the INFO level. 9b988a3e-bff9-4b48-bf5e-7e72fb6748bb @{temp_list} Returns a list containing given items. @{temp_list} = [ ] ${ns_id} @{slice_ns_list} 9b988a3e-bff9-4b48-bf5e-7e72fb6748bb ${ns_id} Logs the given message with the given level. 9b988a3e-bff9-4b48-bf5e-7e72fb6748bb @{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 9b988a3e-bff9-4b48-bf5e-7e72fb6748bb | grep 9b988a3e-bff9-4b48-bf5e-7e72fb6748bb | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | a12542d9-ada6-4b15-84e1-c7b248b4d809 ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ a12542d9-ada6-4b15-84e1-c7b248b4d809 ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: a12542d9-ada6-4b15-84e1-c7b248b4d809 @{vnf_list} @{vnf_id_list} = [ a12542d9-ada6-4b15-84e1-c7b248b4d809 ] @{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} a12542d9-ada6-4b15-84e1-c7b248b4d809 ${vnf_id} Logs the given message with the given level. a12542d9-ada6-4b15-84e1-c7b248b4d809 @{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=a12542d9-ada6-4b15-84e1-c7b248b4d809 | 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.43 ] ${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.43 ] ${vnf_ip_list} Logs the given messages as separate entries using the INFO level. ['172.21.249.43'] ${vnf_ip_list} Verifies that the given item is not empty. Length is 1 @{vnf_ip_list} @{vnf_ip_list} = [ 172.21.249.43 ] @{temp_list} ${temp_list} ${vnf_ip_list} Combines the given ``lists`` together and returns the result. @{temp_list} = [ 172.21.249.43 ] ${temp_list} Verifies that the given item is not empty. Length is 1 @{temp_list} @{ns_ip_list} = [ 172.21.249.43 ] @{temp_list} ${temp_list} ${ns_ip_list} Combines the given ``lists`` together and returns the result. @{temp_list} = [ 172.21.249.43 ] ${temp_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: 172.21.249.43 @{temp_list} @{ip_list} = [ 172.21.249.43 ] ${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.43'] 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.249.31: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 Sun Apr 21 04:00:58 UTC 2024 System load: 0.05 Users logged in: 0 Usage of /: 11.8% of 9.52GB IP address for ens3: 172.21.249.31 Memory usage: 12% IP address for ens4: 192.168.151.114 Swap usage: 0% IP address for ens5: 192.168.77.228 Processes: 84 0 updates can be applied immediately. New release '20.04.6 LTS' available. Run 'do-release-upgrade' to upgrade to it. Last login: Sun Apr 21 03:59:47 2024 from 172.21.249.4 To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. ubuntu@slicebasic:~$ ${ip} @{ip_list} 172.21.249.43 ${result} ping -c 5 -W 1 ${ip} > /dev/null && echo OK shell=True Executes ``command`` on the remote machine and returns its outputs. Executing command 'ping -c 5 -W 1 172.21.249.43 > /dev/null && echo OK'. Command exited with return code 0. ${result} = OK ${result} Logs the given message with the given level. OK ${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 ${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. Delete NSI ${SLICE2_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete NST ${NST_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete NST ${NST2_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete NSD ${NSD1_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete NSD ${NSD2_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete VNFD ${VNFD1_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete VNFD ${VNFD2_NAME} Runs the given keyword with the given arguments, if one or more tests failed. [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 901db3b7-156e-45cf-a36d-c81ad9560bc6 ${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} = 901db3b7-156e-45cf-a36d-c81ad9560bc6 ${id} ${id} = 901db3b7-156e-45cf-a36d-c81ad9560bc6 ${id} Logs the given message with the given level. 901db3b7-156e-45cf-a36d-c81ad9560bc6 ${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} = 050dc050-ab65-4e5b-8c08-3a8b5050bda5 ${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} = 050dc050-ab65-4e5b-8c08-3a8b5050bda5 ${CREATED_VIM_ACCOUNT_ID} Makes a variable available everywhere within the scope of the current suite. ${CREATED_VIM_ACCOUNT_ID} = 050dc050-ab65-4e5b-8c08-3a8b5050bda5 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.108 ${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.108' 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.108: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.108: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.108: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.108:9999/osm/admin/v1/tokens status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 21 Apr 2024 04:02:16 GMT', 'Www-Authenticate': 'Bearer realm="Needed a token or Authorization http header"', 'Location': '/osm/admin/v1/tokens/T851x3H3GORTyRpw1BIt1f9b20It3m3s', 'Content-Length': '656', 'Set-Cookie': 'session_id=ded882c416ca180b447524262debb509a6e154f3; expires=Sun, 21 Apr 2024 05:02:16 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "issued_at": 1713672136.5061908, "expires": 1713675736.5061908, "_id": "T851x3H3GORTyRpw1BIt1f9b20It3m3s", "id": "T851x3H3GORTyRpw1BIt1f9b20It3m3s", "project_id": "d6f47f86-1a13-4010-a962-317e9ed50847", "project_name": "admin", "username": "admin", "user_id": "98d14968-9052-4834-885d-c00bfd751c12", "admin": true, "roles": [ { "name": "system_admin", "id": "f8a56f25-9ccc-45bb-aff8-16ccd2e59297" } ], "login_count": 0, "last_login": 1713672136.3223574, "admin_show": true, "user_show": false, "remote_port": 15672, "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} = ['T851x3H3GORTyRpw1BIt1f9b20It3m3s', 'f8a56f25-9ccc-45bb-aff8-16ccd2e59297'] ${ACCESS_TOKEN} ${access_token[0]} Makes a variable available everywhere within the scope of the current test. ${ACCESS_TOKEN} = T851x3H3GORTyRpw1BIt1f9b20It3m3s ${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': '050dc050-ab65-4e5b-8c08-3a8b5050bda5', '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': '050dc050-ab65-4e5b-8c08-3a8b5050bda5', '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': '050dc050-ab65-4e5b-8c08-3a8b5050bda5', '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': '050dc050-ab65-4e5b-8c08-3a8b5050bda5', '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': '050dc050-ab65-4e5b-8c08-3a8b5050bda5', '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': '050dc050-ab65-4e5b-8c08-3a8b5050bda5', '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': '050dc050-ab65-4e5b-8c08-3a8b5050bda5', '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.108: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 T851x3H3GORTyRpw1BIt1f9b20It3m3s } ${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.108: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 T851x3H3GORTyRpw1BIt1f9b20It3m3s', 'Content-Length': '355'} body=b'{"vnfdId": "hackfest_basic_metrics-vnf", "vnfInstanceName": "sol003-instance", "vnfInstanceDescription": "Test vnfm instance description", "vimAccountId": "050dc050-ab65-4e5b-8c08-3a8b5050bda5", "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.108:9999/osm/vnflcm/v1/vnf_instances status=201, reason=Created headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 21 Apr 2024 04:02:19 GMT', 'Location': '/osm/vnflcm/v1/vnf_instances/08b176df-5456-4bae-962d-d8cf92ebaa4c', 'Content-Length': '53', 'Set-Cookie': 'session_id=714272a3109faf668bf019f6f8dd144c2a18c58f; expires=Sun, 21 Apr 2024 05:02:19 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "id": "08b176df-5456-4bae-962d-d8cf92ebaa4c" } ${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} = ['08b176df-5456-4bae-962d-d8cf92ebaa4c'] ${CREATEID} ${id[0]} Makes a variable available everywhere within the scope of the current suite. ${CREATEID} = 08b176df-5456-4bae-962d-d8cf92ebaa4c 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 | 901db3b7-156e-45cf-a36d-c81ad9560bc6 | 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 | 9685cb7e-fcda-410e-93b4-bf850ba3000c | 2024-04-21T04:02:19 | 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 | +--------------------------------------+------+--------------------------------------+------------------+----------------------------+----------------+------------+ | 08b176df-5456-4bae-962d-d8cf92ebaa4c | - | 9685cb7e-fcda-410e-93b4-bf850ba3000c | 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.108 ${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.108' 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.108: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.108: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.108: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.108:9999/osm/admin/v1/tokens status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 21 Apr 2024 04:02:23 GMT', 'Www-Authenticate': 'Bearer realm="Needed a token or Authorization http header"', 'Location': '/osm/admin/v1/tokens/5iFXMR3gV68FDKiBnqcO25umjPj3IwTT', 'Content-Length': '656', 'Set-Cookie': 'session_id=56af76ca4ad2a252cbcb29f35a71e678b0b8d1f3; expires=Sun, 21 Apr 2024 05:02:23 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "issued_at": 1713672143.9107797, "expires": 1713675743.9107797, "_id": "5iFXMR3gV68FDKiBnqcO25umjPj3IwTT", "id": "5iFXMR3gV68FDKiBnqcO25umjPj3IwTT", "project_id": "d6f47f86-1a13-4010-a962-317e9ed50847", "project_name": "admin", "username": "admin", "user_id": "98d14968-9052-4834-885d-c00bfd751c12", "admin": true, "roles": [ { "name": "system_admin", "id": "f8a56f25-9ccc-45bb-aff8-16ccd2e59297" } ], "login_count": 0, "last_login": 1713672142.7178557, "admin_show": true, "user_show": false, "remote_port": 60386, "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} = ['5iFXMR3gV68FDKiBnqcO25umjPj3IwTT', 'f8a56f25-9ccc-45bb-aff8-16ccd2e59297'] ${ACCESS_TOKEN} ${access_token[0]} Makes a variable available everywhere within the scope of the current test. ${ACCESS_TOKEN} = 5iFXMR3gV68FDKiBnqcO25umjPj3IwTT ${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': '050dc050-ab65-4e5b-8c08-3a8b5050bda5'} ${UPDATED_JSON_OBJ} ${UPDATED_JSON_OBJ} $..vnfId ${CREATEID} Update value to JSON using JSONPath ${UPDATED_JSON_OBJ} = {'vnfName': 'sol003-instance', 'vnfDescription': 'vnf package', 'vnfId': '08b176df-5456-4bae-962d-d8cf92ebaa4c', 'vimAccountId': '050dc050-ab65-4e5b-8c08-3a8b5050bda5'} ${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': '08b176df-5456-4bae-962d-d8cf92ebaa4c', 'vimAccountId': '050dc050-ab65-4e5b-8c08-3a8b5050bda5'} ${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.108: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 5iFXMR3gV68FDKiBnqcO25umjPj3IwTT } ${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.108:9999/osm/vnflcm/v1/vnf_instances/08b176df-5456-4bae-962d-d8cf92ebaa4c/instantiate path_url=/osm/vnflcm/v1/vnf_instances/08b176df-5456-4bae-962d-d8cf92ebaa4c/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 5iFXMR3gV68FDKiBnqcO25umjPj3IwTT', 'Content-Length': '168'} body=b'{"vnfName": "sol003-instance", "vnfDescription": "vnf package", "vnfId": "08b176df-5456-4bae-962d-d8cf92ebaa4c", "vimAccountId": "050dc050-ab65-4e5b-8c08-3a8b5050bda5"}' POST Response : url=https://172.21.249.108:9999/osm/vnflcm/v1/vnf_instances/08b176df-5456-4bae-962d-d8cf92ebaa4c/instantiate status=202, reason=Accepted headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 21 Apr 2024 04:02:27 GMT', 'Location': '/osm/vnflcm/v1/vnf_lcm_op_occs/86858715-c6e5-49dc-a171-24be8086c5bf', 'Content-Length': '53', 'Set-Cookie': 'session_id=d294881380079145066dbd7821224271462ff14b; expires=Sun, 21 Apr 2024 05:02:27 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "id": "86858715-c6e5-49dc-a171-24be8086c5bf" } ${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} = ['86858715-c6e5-49dc-a171-24be8086c5bf'] ${INSTANTIATEID} ${id[0]} Makes a variable available everywhere within the scope of the current suite. ${INSTANTIATEID} = 86858715-c6e5-49dc-a171-24be8086c5bf 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 | 9685cb7e-fcda-410e-93b4-bf850ba3000c | 2024-04-21T04:02:19 | BUILDING | INSTANTIATING (86858715-c6e5-49dc-a171-24be8086c5bf) | N/A | +--------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+------+--------------------------------------+------------------+----------------------------+--------------------------------------+------------+ | 08b176df-5456-4bae-962d-d8cf92ebaa4c | - | 9685cb7e-fcda-410e-93b4-bf850ba3000c | 1 | hackfest_basic_metrics-vnf | 050dc050-ab65-4e5b-8c08-3a8b5050bda5 | 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.108 ${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.108' 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.108: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.108: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.108: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.108:9999/osm/admin/v1/tokens status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 21 Apr 2024 04:02:41 GMT', 'Www-Authenticate': 'Bearer realm="Needed a token or Authorization http header"', 'Location': '/osm/admin/v1/tokens/eGWVGy9hbPXb961GqXcpND1gDEr0ZzEY', 'Content-Length': '654', 'Set-Cookie': 'session_id=f28122c209234aa74041371eef6742add85f9f20; expires=Sun, 21 Apr 2024 05:02:41 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "issued_at": 1713672161.504148, "expires": 1713675761.504148, "_id": "eGWVGy9hbPXb961GqXcpND1gDEr0ZzEY", "id": "eGWVGy9hbPXb961GqXcpND1gDEr0ZzEY", "project_id": "d6f47f86-1a13-4010-a962-317e9ed50847", "project_name": "admin", "username": "admin", "user_id": "98d14968-9052-4834-885d-c00bfd751c12", "admin": true, "roles": [ { "name": "system_admin", "id": "f8a56f25-9ccc-45bb-aff8-16ccd2e59297" } ], "login_count": 0, "last_login": 1713672160.3123512, "admin_show": true, "user_show": false, "remote_port": 24608, "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} = ['eGWVGy9hbPXb961GqXcpND1gDEr0ZzEY', 'f8a56f25-9ccc-45bb-aff8-16ccd2e59297'] ${ACCESS_TOKEN} ${access_token[0]} Makes a variable available everywhere within the scope of the current test. ${ACCESS_TOKEN} = eGWVGy9hbPXb961GqXcpND1gDEr0ZzEY ${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.108: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 eGWVGy9hbPXb961GqXcpND1gDEr0ZzEY } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.249.108: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 eGWVGy9hbPXb961GqXcpND1gDEr0ZzEY'} body=None GET Response : url=https://172.21.249.108:9999/osm/vnflcm/v1/vnf_instances status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 21 Apr 2024 04:02:44 GMT', 'Content-Length': '4517', 'Set-Cookie': 'session_id=321fc89d9e2345815601c8a71b66f04ecc7f117b; expires=Sun, 21 Apr 2024 05:02:44 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body=[ { "_id": "08b176df-5456-4bae-962d-d8cf92ebaa4c", "id": "08b176df-5456-4bae-962d-d8cf92ebaa4c", "nsr-id-ref": "9685cb7e-fcda-410e-93b4-bf850ba3000c", "member-vnf-index-ref": "1", "additionalParamsForVnf": null, "created-time": 1713672139.99844, "vnfd-ref": "hackfest_basic_metrics-vnf", "vnfd-id": "901db3b7-156e-45cf-a36d-c81ad9560bc6", "vim-account-id": "050dc050-ab65-4e5b-8c08-3a8b5050bda5", "vca-id": null, "vdur": [ { "_id": "71703b63-cc36-48e1-a5be-3175b2472d45", "additionalParams": { "OSM": { "count_index": 0, "member_vnf_index": "1", "ns_id": "9685cb7e-fcda-410e-93b4-bf850ba3000c", "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": "050dc050-ab65-4e5b-8c08-3a8b5050bda5", "vnf_id": "08b176df-5456-4bae-962d-d8cf92ebaa4c", "vnfd_id": "901db3b7-156e-45cf-a36d-c81ad9560bc6", "vnfd_ref": "hackfest_basic_metrics-vnf" } }, "affinity-or-anti-affinity-group-id": [], "alt-image-ids": [ "1", "2", "3" ], "cloud-init": "901db3b7-156e-45cf-a36d-c81ad9560bc6:file:cloud-config", "count-index": 0, "id": "71703b63-cc36-48e1-a5be-3175b2472d45", "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:050dc050-ab65-4e5b-8c08-3a8b5050bda5": { "interfaces": [], "interfaces_backup": [], "vim_details": null, "vim_id": "98bdf9a3-8ba1-42ea-8e39-b8994041dcf4", "vim_message": null, "vim_status": "BUILD" } }, "virtual-storages": [ { "id": "hackfest_basic_metrics-VM-storage", "size-of-storage": "10" } ], "status": "BUILD", "vim-id": "98bdf9a3-8ba1-42ea-8e39-b8994041dcf4" } ], "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": 1713672139.9986038, "modified": 1713672139.9986038, "projects_read": [ "d6f47f86-1a13-4010-a962-317e9ed50847" ], "projects_write": [ "d6f47f86-1a13-4010-a962-317e9ed50847" ], "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} = ['08b176df-5456-4bae-962d-d8cf92ebaa4c', '71703b63-cc36-48e1-a5be-3175b2472d45'] ${QUERYID} ${id[0]} Makes a variable available everywhere within the scope of the current suite. ${QUERYID} = 08b176df-5456-4bae-962d-d8cf92ebaa4c 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.108 ${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.108' 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.108: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.108: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.108: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.108:9999/osm/admin/v1/tokens status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 21 Apr 2024 04:02:44 GMT', 'Www-Authenticate': 'Bearer realm="Needed a token or Authorization http header"', 'Location': '/osm/admin/v1/tokens/FtR3YHVPyqLJ0jkHgQogeDFSKd2A8VUG', 'Content-Length': '655', 'Set-Cookie': 'session_id=db1acd3c36431f9f503564c47c7f953d64c2bf94; expires=Sun, 21 Apr 2024 05:02:44 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "issued_at": 1713672164.7353349, "expires": 1713675764.7353349, "_id": "FtR3YHVPyqLJ0jkHgQogeDFSKd2A8VUG", "id": "FtR3YHVPyqLJ0jkHgQogeDFSKd2A8VUG", "project_id": "d6f47f86-1a13-4010-a962-317e9ed50847", "project_name": "admin", "username": "admin", "user_id": "98d14968-9052-4834-885d-c00bfd751c12", "admin": true, "roles": [ { "name": "system_admin", "id": "f8a56f25-9ccc-45bb-aff8-16ccd2e59297" } ], "login_count": 0, "last_login": 1713672161.504148, "admin_show": true, "user_show": false, "remote_port": 25673, "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} = ['FtR3YHVPyqLJ0jkHgQogeDFSKd2A8VUG', 'f8a56f25-9ccc-45bb-aff8-16ccd2e59297'] ${ACCESS_TOKEN} ${access_token[0]} Makes a variable available everywhere within the scope of the current test. ${ACCESS_TOKEN} = FtR3YHVPyqLJ0jkHgQogeDFSKd2A8VUG ${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.108: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 FtR3YHVPyqLJ0jkHgQogeDFSKd2A8VUG } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.249.108:9999/osm/vnflcm/v1/vnf_instances/08b176df-5456-4bae-962d-d8cf92ebaa4c path_url=/osm/vnflcm/v1/vnf_instances/08b176df-5456-4bae-962d-d8cf92ebaa4c headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer FtR3YHVPyqLJ0jkHgQogeDFSKd2A8VUG'} body=None GET Response : url=https://172.21.249.108:9999/osm/vnflcm/v1/vnf_instances/08b176df-5456-4bae-962d-d8cf92ebaa4c status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 21 Apr 2024 04:02:46 GMT', 'Content-Length': '4069', 'Set-Cookie': 'session_id=f55d21af12a5e94d902697cabb8e31ebcd36569d; expires=Sun, 21 Apr 2024 05:02:46 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "08b176df-5456-4bae-962d-d8cf92ebaa4c", "id": "08b176df-5456-4bae-962d-d8cf92ebaa4c", "nsr-id-ref": "9685cb7e-fcda-410e-93b4-bf850ba3000c", "member-vnf-index-ref": "1", "additionalParamsForVnf": null, "created-time": 1713672139.99844, "vnfd-ref": "hackfest_basic_metrics-vnf", "vnfd-id": "901db3b7-156e-45cf-a36d-c81ad9560bc6", "vim-account-id": "050dc050-ab65-4e5b-8c08-3a8b5050bda5", "vca-id": null, "vdur": [ { "_id": "71703b63-cc36-48e1-a5be-3175b2472d45", "additionalParams": { "OSM": { "count_index": 0, "member_vnf_index": "1", "ns_id": "9685cb7e-fcda-410e-93b4-bf850ba3000c", "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": "050dc050-ab65-4e5b-8c08-3a8b5050bda5", "vnf_id": "08b176df-5456-4bae-962d-d8cf92ebaa4c", "vnfd_id": "901db3b7-156e-45cf-a36d-c81ad9560bc6", "vnfd_ref": "hackfest_basic_metrics-vnf" } }, "affinity-or-anti-affinity-group-id": [], "alt-image-ids": [ "1", "2", "3" ], "cloud-init": "901db3b7-156e-45cf-a36d-c81ad9560bc6:file:cloud-config", "count-index": 0, "id": "71703b63-cc36-48e1-a5be-3175b2472d45", "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:050dc050-ab65-4e5b-8c08-3a8b5050bda5": { "interfaces": [], "interfaces_backup": [], "vim_details": null, "vim_id": "98bdf9a3-8ba1-42ea-8e39-b8994041dcf4", "vim_message": null, "vim_status": "BUILD" } }, "virtual-storages": [ { "id": "hackfest_basic_metrics-VM-storage", "size-of-storage": "10" } ], "status": "BUILD", "vim-id": "98bdf9a3-8ba1-42ea-8e39-b8994041dcf4" } ], "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": 1713672139.9986038, "modified": 1713672139.9986038, "projects_read": [ "d6f47f86-1a13-4010-a962-317e9ed50847" ], "projects_write": [ "d6f47f86-1a13-4010-a962-317e9ed50847" ], "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} = ['08b176df-5456-4bae-962d-d8cf92ebaa4c', '71703b63-cc36-48e1-a5be-3175b2472d45'] ${INSTANCEID} ${id[0]} Makes a variable available everywhere within the scope of the current suite. ${INSTANCEID} = 08b176df-5456-4bae-962d-d8cf92ebaa4c 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.108 ${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.108' 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.108: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.108: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.108: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.108:9999/osm/admin/v1/tokens status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 21 Apr 2024 04:02:46 GMT', 'Www-Authenticate': 'Bearer realm="Needed a token or Authorization http header"', 'Location': '/osm/admin/v1/tokens/pfKSUa7XNMMzqAFgta1kNTyooop4xUow', 'Content-Length': '654', 'Set-Cookie': 'session_id=bd42687ac786b83337c30e224703068eca9006c8; expires=Sun, 21 Apr 2024 05:02:46 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "issued_at": 1713672166.918169, "expires": 1713675766.918169, "_id": "pfKSUa7XNMMzqAFgta1kNTyooop4xUow", "id": "pfKSUa7XNMMzqAFgta1kNTyooop4xUow", "project_id": "d6f47f86-1a13-4010-a962-317e9ed50847", "project_name": "admin", "username": "admin", "user_id": "98d14968-9052-4834-885d-c00bfd751c12", "admin": true, "roles": [ { "name": "system_admin", "id": "f8a56f25-9ccc-45bb-aff8-16ccd2e59297" } ], "login_count": 0, "last_login": 1713672164.7353349, "admin_show": true, "user_show": false, "remote_port": 19888, "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} = ['pfKSUa7XNMMzqAFgta1kNTyooop4xUow', 'f8a56f25-9ccc-45bb-aff8-16ccd2e59297'] ${ACCESS_TOKEN} ${access_token[0]} Makes a variable available everywhere within the scope of the current test. ${ACCESS_TOKEN} = pfKSUa7XNMMzqAFgta1kNTyooop4xUow ${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.108: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 pfKSUa7XNMMzqAFgta1kNTyooop4xUow } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.249.108: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 pfKSUa7XNMMzqAFgta1kNTyooop4xUow'} body=None GET Response : url=https://172.21.249.108: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': 'Sun, 21 Apr 2024 04:02:49 GMT', 'Content-Length': '1302', 'Set-Cookie': 'session_id=568de189ce3949ed0ea2cd1ab9c31584692588c4; expires=Sun, 21 Apr 2024 05:02:49 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body=[ { "_id": "86858715-c6e5-49dc-a171-24be8086c5bf", "id": "86858715-c6e5-49dc-a171-24be8086c5bf", "operationState": "PROCESSING", "queuePosition": 0, "stage": "Stage 2/5: deployment of KDUs, VMs and execution environments.", "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1713672147.1650155, "lcmOperationType": "instantiate", "startTime": 1713672147.1650155, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1713672147.1650662, "modified": 1713672162.6529996, "projects_read": [ "d6f47f86-1a13-4010-a962-317e9ed50847" ], "projects_write": [ "d6f47f86-1a13-4010-a962-317e9ed50847" ], "worker": "2af6bbc594a3" }, "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/86858715-c6e5-49dc-a171-24be8086c5bf", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/08b176df-5456-4bae-962d-d8cf92ebaa4c" }, "vnfInstanceId": "08b176df-5456-4bae-962d-d8cf92ebaa4c" } ] ${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} = ['86858715-c6e5-49dc-a171-24be8086c5bf'] ${LCMOPS} ${id1[0]} Makes a variable available everywhere within the scope of the current suite. ${LCMOPS} = 86858715-c6e5-49dc-a171-24be8086c5bf ${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.108: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 pfKSUa7XNMMzqAFgta1kNTyooop4xUow } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.249.108: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 pfKSUa7XNMMzqAFgta1kNTyooop4xUow'} body=None GET Response : url=https://172.21.249.108: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': 'Sun, 21 Apr 2024 04:02:49 GMT', 'Content-Length': '1302', 'Set-Cookie': 'session_id=456e91a9c2032c7495250956ab83ea25925e6c68; expires=Sun, 21 Apr 2024 05:02:49 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body=[ { "_id": "86858715-c6e5-49dc-a171-24be8086c5bf", "id": "86858715-c6e5-49dc-a171-24be8086c5bf", "operationState": "PROCESSING", "queuePosition": 0, "stage": "Stage 2/5: deployment of KDUs, VMs and execution environments.", "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1713672147.1650155, "lcmOperationType": "instantiate", "startTime": 1713672147.1650155, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1713672147.1650662, "modified": 1713672162.6529996, "projects_read": [ "d6f47f86-1a13-4010-a962-317e9ed50847" ], "projects_write": [ "d6f47f86-1a13-4010-a962-317e9ed50847" ], "worker": "2af6bbc594a3" }, "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/86858715-c6e5-49dc-a171-24be8086c5bf", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/08b176df-5456-4bae-962d-d8cf92ebaa4c" }, "vnfInstanceId": "08b176df-5456-4bae-962d-d8cf92ebaa4c" } ] ${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.108: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 pfKSUa7XNMMzqAFgta1kNTyooop4xUow } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.249.108: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 pfKSUa7XNMMzqAFgta1kNTyooop4xUow'} body=None GET Response : url=https://172.21.249.108: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': 'Sun, 21 Apr 2024 04:02:59 GMT', 'Content-Length': '1155', 'Set-Cookie': 'session_id=73c04e0c49c69e75bce2a03c2f67d1797abc1afb; expires=Sun, 21 Apr 2024 05:02:59 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body=[ { "_id": "86858715-c6e5-49dc-a171-24be8086c5bf", "id": "86858715-c6e5-49dc-a171-24be8086c5bf", "operationState": "COMPLETED", "queuePosition": 0, "stage": "", "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1713672177.7539442, "lcmOperationType": "instantiate", "startTime": 1713672147.1650155, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1713672147.1650662, "modified": 1713672177.753946, "projects_read": [ "d6f47f86-1a13-4010-a962-317e9ed50847" ], "projects_write": [ "d6f47f86-1a13-4010-a962-317e9ed50847" ], "worker": "2af6bbc594a3" }, "detailed-status": "Done", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/86858715-c6e5-49dc-a171-24be8086c5bf", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/08b176df-5456-4bae-962d-d8cf92ebaa4c" }, "vnfInstanceId": "08b176df-5456-4bae-962d-d8cf92ebaa4c" } ] ${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.108 ${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.108' 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.108: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.108: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.108: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.108:9999/osm/admin/v1/tokens status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 21 Apr 2024 04:02:59 GMT', 'Www-Authenticate': 'Bearer realm="Needed a token or Authorization http header"', 'Location': '/osm/admin/v1/tokens/gDNUKd9tuSH0m91LWG5cHpAw1kMZEDrX', 'Content-Length': '655', 'Set-Cookie': 'session_id=926052da99c7e58aa4709e9917cd7305662c5600; expires=Sun, 21 Apr 2024 05:02:59 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "issued_at": 1713672179.2847593, "expires": 1713675779.2847593, "_id": "gDNUKd9tuSH0m91LWG5cHpAw1kMZEDrX", "id": "gDNUKd9tuSH0m91LWG5cHpAw1kMZEDrX", "project_id": "d6f47f86-1a13-4010-a962-317e9ed50847", "project_name": "admin", "username": "admin", "user_id": "98d14968-9052-4834-885d-c00bfd751c12", "admin": true, "roles": [ { "name": "system_admin", "id": "f8a56f25-9ccc-45bb-aff8-16ccd2e59297" } ], "login_count": 0, "last_login": 1713672166.918169, "admin_show": true, "user_show": false, "remote_port": 18100, "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} = ['gDNUKd9tuSH0m91LWG5cHpAw1kMZEDrX', 'f8a56f25-9ccc-45bb-aff8-16ccd2e59297'] ${ACCESS_TOKEN} ${access_token[0]} Makes a variable available everywhere within the scope of the current test. ${ACCESS_TOKEN} = gDNUKd9tuSH0m91LWG5cHpAw1kMZEDrX ${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.108: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 gDNUKd9tuSH0m91LWG5cHpAw1kMZEDrX } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.249.108:9999/osm/vnflcm/v1/vnf_lcm_op_occs/86858715-c6e5-49dc-a171-24be8086c5bf path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/86858715-c6e5-49dc-a171-24be8086c5bf headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer gDNUKd9tuSH0m91LWG5cHpAw1kMZEDrX'} body=None GET Response : url=https://172.21.249.108:9999/osm/vnflcm/v1/vnf_lcm_op_occs/86858715-c6e5-49dc-a171-24be8086c5bf status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 21 Apr 2024 04:03:01 GMT', 'Content-Length': '1027', 'Set-Cookie': 'session_id=791df8d6fa4d674fb04dc4b763bcdde207e8c7ba; expires=Sun, 21 Apr 2024 05:03:01 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "86858715-c6e5-49dc-a171-24be8086c5bf", "id": "86858715-c6e5-49dc-a171-24be8086c5bf", "operationState": "COMPLETED", "queuePosition": 0, "stage": "", "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1713672177.7539442, "lcmOperationType": "instantiate", "startTime": 1713672147.1650155, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1713672147.1650662, "modified": 1713672177.753946, "projects_read": [ "d6f47f86-1a13-4010-a962-317e9ed50847" ], "projects_write": [ "d6f47f86-1a13-4010-a962-317e9ed50847" ], "worker": "2af6bbc594a3" }, "detailed-status": "Done", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/86858715-c6e5-49dc-a171-24be8086c5bf", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/08b176df-5456-4bae-962d-d8cf92ebaa4c" }, "vnfInstanceId": "08b176df-5456-4bae-962d-d8cf92ebaa4c" } ${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} = ['86858715-c6e5-49dc-a171-24be8086c5bf'] ${LCMOPSID} ${id1[0]} Makes a variable available everywhere within the scope of the current suite. ${LCMOPSID} = 86858715-c6e5-49dc-a171-24be8086c5bf ${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.108: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 gDNUKd9tuSH0m91LWG5cHpAw1kMZEDrX } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.249.108:9999/osm/vnflcm/v1/vnf_lcm_op_occs/86858715-c6e5-49dc-a171-24be8086c5bf path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/86858715-c6e5-49dc-a171-24be8086c5bf headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer gDNUKd9tuSH0m91LWG5cHpAw1kMZEDrX'} body=None GET Response : url=https://172.21.249.108:9999/osm/vnflcm/v1/vnf_lcm_op_occs/86858715-c6e5-49dc-a171-24be8086c5bf status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 21 Apr 2024 04:03:01 GMT', 'Content-Length': '1027', 'Set-Cookie': 'session_id=c5ba7757aaaef085f19a7920d2ee49fdacd3c116; expires=Sun, 21 Apr 2024 05:03:01 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "86858715-c6e5-49dc-a171-24be8086c5bf", "id": "86858715-c6e5-49dc-a171-24be8086c5bf", "operationState": "COMPLETED", "queuePosition": 0, "stage": "", "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1713672177.7539442, "lcmOperationType": "instantiate", "startTime": 1713672147.1650155, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1713672147.1650662, "modified": 1713672177.753946, "projects_read": [ "d6f47f86-1a13-4010-a962-317e9ed50847" ], "projects_write": [ "d6f47f86-1a13-4010-a962-317e9ed50847" ], "worker": "2af6bbc594a3" }, "detailed-status": "Done", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/86858715-c6e5-49dc-a171-24be8086c5bf", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/08b176df-5456-4bae-962d-d8cf92ebaa4c" }, "vnfInstanceId": "08b176df-5456-4bae-962d-d8cf92ebaa4c" } ${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.108 ${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.108' 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.108: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.108: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.108: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.108:9999/osm/admin/v1/tokens status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 21 Apr 2024 04:03:01 GMT', 'Www-Authenticate': 'Bearer realm="Needed a token or Authorization http header"', 'Location': '/osm/admin/v1/tokens/U3umsaTqXWLVAfRElIfKIwLqJ5K9pl9w', 'Content-Length': '654', 'Set-Cookie': 'session_id=2f1a554687af911176fec0eeb4fd1a48b0d691c8; expires=Sun, 21 Apr 2024 05:03:01 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "issued_at": 1713672181.556937, "expires": 1713675781.556937, "_id": "U3umsaTqXWLVAfRElIfKIwLqJ5K9pl9w", "id": "U3umsaTqXWLVAfRElIfKIwLqJ5K9pl9w", "project_id": "d6f47f86-1a13-4010-a962-317e9ed50847", "project_name": "admin", "username": "admin", "user_id": "98d14968-9052-4834-885d-c00bfd751c12", "admin": true, "roles": [ { "name": "system_admin", "id": "f8a56f25-9ccc-45bb-aff8-16ccd2e59297" } ], "login_count": 0, "last_login": 1713672179.2847593, "admin_show": true, "user_show": false, "remote_port": 38389, "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} = ['U3umsaTqXWLVAfRElIfKIwLqJ5K9pl9w', 'f8a56f25-9ccc-45bb-aff8-16ccd2e59297'] ${ACCESS_TOKEN} ${access_token[0]} Makes a variable available everywhere within the scope of the current test. ${ACCESS_TOKEN} = U3umsaTqXWLVAfRElIfKIwLqJ5K9pl9w ${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.108: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 U3umsaTqXWLVAfRElIfKIwLqJ5K9pl9w } ${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.108:9999/osm/vnflcm/v1/vnf_instances/08b176df-5456-4bae-962d-d8cf92ebaa4c/scale path_url=/osm/vnflcm/v1/vnf_instances/08b176df-5456-4bae-962d-d8cf92ebaa4c/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 U3umsaTqXWLVAfRElIfKIwLqJ5K9pl9w', '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.108:9999/osm/vnflcm/v1/vnf_instances/08b176df-5456-4bae-962d-d8cf92ebaa4c/scale status=202, reason=Accepted headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 21 Apr 2024 04:03:03 GMT', 'Location': '/osm/vnflcm/v1/vnf_lcm_op_occs/a50d46bf-64e8-43a0-88ff-979b8bf0d493', 'Content-Length': '53', 'Set-Cookie': 'session_id=eacdc47f915d1af9765c68983c47eaf099e4428f; expires=Sun, 21 Apr 2024 05:03:03 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "id": "a50d46bf-64e8-43a0-88ff-979b8bf0d493" } ${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} = ['a50d46bf-64e8-43a0-88ff-979b8bf0d493'] ${id[0]} ${value} = a50d46bf-64e8-43a0-88ff-979b8bf0d493 ${id1} ${request_response.json()} $..id Get Value From JSON using JSONPath ${id1} = ['a50d46bf-64e8-43a0-88ff-979b8bf0d493'] ${SCALEOUTID} ${id1[0]} Makes a variable available everywhere within the scope of the current suite. ${SCALEOUTID} = a50d46bf-64e8-43a0-88ff-979b8bf0d493 ${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.108: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 U3umsaTqXWLVAfRElIfKIwLqJ5K9pl9w } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.249.108:9999/osm/vnflcm/v1/vnf_lcm_op_occs/a50d46bf-64e8-43a0-88ff-979b8bf0d493 path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/a50d46bf-64e8-43a0-88ff-979b8bf0d493 headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer U3umsaTqXWLVAfRElIfKIwLqJ5K9pl9w'} body=None GET Response : url=https://172.21.249.108:9999/osm/vnflcm/v1/vnf_lcm_op_occs/a50d46bf-64e8-43a0-88ff-979b8bf0d493 status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 21 Apr 2024 04:03:03 GMT', 'Content-Length': '995', 'Set-Cookie': 'session_id=d388ca24f372cf0f44519975a67b60d22ef8bb47; expires=Sun, 21 Apr 2024 05:03:03 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "a50d46bf-64e8-43a0-88ff-979b8bf0d493", "id": "a50d46bf-64e8-43a0-88ff-979b8bf0d493", "operationState": "PROCESSING", "queuePosition": null, "stage": null, "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1713672183.706727, "lcmOperationType": "scale", "startTime": 1713672183.706727, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1713672183.7067838, "modified": 1713672183.7067838, "projects_read": [ "d6f47f86-1a13-4010-a962-317e9ed50847" ], "projects_write": [ "d6f47f86-1a13-4010-a962-317e9ed50847" ], "worker": "2af6bbc594a3" }, "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/a50d46bf-64e8-43a0-88ff-979b8bf0d493", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/08b176df-5456-4bae-962d-d8cf92ebaa4c" }, "vnfInstanceId": "08b176df-5456-4bae-962d-d8cf92ebaa4c" } ${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} = ['a50d46bf-64e8-43a0-88ff-979b8bf0d493'] ${LCMOPSSCALEID} ${LcmopsScale[0]} Makes a variable available everywhere within the scope of the current suite. ${LCMOPSSCALEID} = a50d46bf-64e8-43a0-88ff-979b8bf0d493 ${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.108: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 U3umsaTqXWLVAfRElIfKIwLqJ5K9pl9w } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.249.108:9999/osm/vnflcm/v1/vnf_lcm_op_occs/a50d46bf-64e8-43a0-88ff-979b8bf0d493 path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/a50d46bf-64e8-43a0-88ff-979b8bf0d493 headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer U3umsaTqXWLVAfRElIfKIwLqJ5K9pl9w'} body=None GET Response : url=https://172.21.249.108:9999/osm/vnflcm/v1/vnf_lcm_op_occs/a50d46bf-64e8-43a0-88ff-979b8bf0d493 status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 21 Apr 2024 04:03:03 GMT', 'Content-Length': '1036', 'Set-Cookie': 'session_id=1908987ad5db427970752587af1b87d1e54e66c3; expires=Sun, 21 Apr 2024 05:03:03 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "a50d46bf-64e8-43a0-88ff-979b8bf0d493", "id": "a50d46bf-64e8-43a0-88ff-979b8bf0d493", "operationState": "PROCESSING", "queuePosition": 0, "stage": "", "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1713672183.706727, "lcmOperationType": "scale", "startTime": 1713672183.706727, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1713672183.7067838, "modified": 1713672183.94744, "projects_read": [ "d6f47f86-1a13-4010-a962-317e9ed50847" ], "projects_write": [ "d6f47f86-1a13-4010-a962-317e9ed50847" ], "worker": "2af6bbc594a3" }, "detailed-status": " VIM: (progress 0/1)", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/a50d46bf-64e8-43a0-88ff-979b8bf0d493", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/08b176df-5456-4bae-962d-d8cf92ebaa4c" }, "vnfInstanceId": "08b176df-5456-4bae-962d-d8cf92ebaa4c" } ${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.108: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 U3umsaTqXWLVAfRElIfKIwLqJ5K9pl9w } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.249.108:9999/osm/vnflcm/v1/vnf_lcm_op_occs/a50d46bf-64e8-43a0-88ff-979b8bf0d493 path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/a50d46bf-64e8-43a0-88ff-979b8bf0d493 headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer U3umsaTqXWLVAfRElIfKIwLqJ5K9pl9w'} body=None GET Response : url=https://172.21.249.108:9999/osm/vnflcm/v1/vnf_lcm_op_occs/a50d46bf-64e8-43a0-88ff-979b8bf0d493 status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 21 Apr 2024 04:03:14 GMT', 'Content-Length': '1036', 'Set-Cookie': 'session_id=facbd73779dc0cfd8077b6f2eb756cce53ad2a2d; expires=Sun, 21 Apr 2024 05:03:14 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "a50d46bf-64e8-43a0-88ff-979b8bf0d493", "id": "a50d46bf-64e8-43a0-88ff-979b8bf0d493", "operationState": "PROCESSING", "queuePosition": 0, "stage": "", "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1713672183.706727, "lcmOperationType": "scale", "startTime": 1713672183.706727, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1713672183.7067838, "modified": 1713672183.94744, "projects_read": [ "d6f47f86-1a13-4010-a962-317e9ed50847" ], "projects_write": [ "d6f47f86-1a13-4010-a962-317e9ed50847" ], "worker": "2af6bbc594a3" }, "detailed-status": " VIM: (progress 0/1)", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/a50d46bf-64e8-43a0-88ff-979b8bf0d493", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/08b176df-5456-4bae-962d-d8cf92ebaa4c" }, "vnfInstanceId": "08b176df-5456-4bae-962d-d8cf92ebaa4c" } ${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.108: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 U3umsaTqXWLVAfRElIfKIwLqJ5K9pl9w } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.249.108:9999/osm/vnflcm/v1/vnf_lcm_op_occs/a50d46bf-64e8-43a0-88ff-979b8bf0d493 path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/a50d46bf-64e8-43a0-88ff-979b8bf0d493 headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer U3umsaTqXWLVAfRElIfKIwLqJ5K9pl9w'} body=None GET Response : url=https://172.21.249.108:9999/osm/vnflcm/v1/vnf_lcm_op_occs/a50d46bf-64e8-43a0-88ff-979b8bf0d493 status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 21 Apr 2024 04:03:24 GMT', 'Content-Length': '1036', 'Set-Cookie': 'session_id=06ecc6973269e296f1cc4a21152f89fac3bb4fbd; expires=Sun, 21 Apr 2024 05:03:24 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "a50d46bf-64e8-43a0-88ff-979b8bf0d493", "id": "a50d46bf-64e8-43a0-88ff-979b8bf0d493", "operationState": "PROCESSING", "queuePosition": 0, "stage": "", "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1713672183.706727, "lcmOperationType": "scale", "startTime": 1713672183.706727, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1713672183.7067838, "modified": 1713672183.94744, "projects_read": [ "d6f47f86-1a13-4010-a962-317e9ed50847" ], "projects_write": [ "d6f47f86-1a13-4010-a962-317e9ed50847" ], "worker": "2af6bbc594a3" }, "detailed-status": " VIM: (progress 0/1)", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/a50d46bf-64e8-43a0-88ff-979b8bf0d493", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/08b176df-5456-4bae-962d-d8cf92ebaa4c" }, "vnfInstanceId": "08b176df-5456-4bae-962d-d8cf92ebaa4c" } ${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.108: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 U3umsaTqXWLVAfRElIfKIwLqJ5K9pl9w } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.249.108:9999/osm/vnflcm/v1/vnf_lcm_op_occs/a50d46bf-64e8-43a0-88ff-979b8bf0d493 path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/a50d46bf-64e8-43a0-88ff-979b8bf0d493 headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer U3umsaTqXWLVAfRElIfKIwLqJ5K9pl9w'} body=None GET Response : url=https://172.21.249.108:9999/osm/vnflcm/v1/vnf_lcm_op_occs/a50d46bf-64e8-43a0-88ff-979b8bf0d493 status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 21 Apr 2024 04:03:34 GMT', 'Content-Length': '1021', 'Set-Cookie': 'session_id=46e58ed36ff080d7cbfc6fa8bd18e07be0fda3d5; expires=Sun, 21 Apr 2024 05:03:34 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "a50d46bf-64e8-43a0-88ff-979b8bf0d493", "id": "a50d46bf-64e8-43a0-88ff-979b8bf0d493", "operationState": "COMPLETED", "queuePosition": 0, "stage": "", "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1713672214.0529819, "lcmOperationType": "scale", "startTime": 1713672183.706727, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1713672183.7067838, "modified": 1713672214.0529833, "projects_read": [ "d6f47f86-1a13-4010-a962-317e9ed50847" ], "projects_write": [ "d6f47f86-1a13-4010-a962-317e9ed50847" ], "worker": "2af6bbc594a3" }, "detailed-status": "Done", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/a50d46bf-64e8-43a0-88ff-979b8bf0d493", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/08b176df-5456-4bae-962d-d8cf92ebaa4c" }, "vnfInstanceId": "08b176df-5456-4bae-962d-d8cf92ebaa4c" } ${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.108 ${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.108' 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.108: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.108: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.108: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.108:9999/osm/admin/v1/tokens status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 21 Apr 2024 04:03:34 GMT', 'Www-Authenticate': 'Bearer realm="Needed a token or Authorization http header"', 'Location': '/osm/admin/v1/tokens/6X276RLD6hdMaJlH6M0GPmfaxEnbc8K4', 'Content-Length': '655', 'Set-Cookie': 'session_id=7818771d8f08e8e6243b30726c05b06ed33c2f79; expires=Sun, 21 Apr 2024 05:03:34 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "issued_at": 1713672214.3094666, "expires": 1713675814.3094666, "_id": "6X276RLD6hdMaJlH6M0GPmfaxEnbc8K4", "id": "6X276RLD6hdMaJlH6M0GPmfaxEnbc8K4", "project_id": "d6f47f86-1a13-4010-a962-317e9ed50847", "project_name": "admin", "username": "admin", "user_id": "98d14968-9052-4834-885d-c00bfd751c12", "admin": true, "roles": [ { "name": "system_admin", "id": "f8a56f25-9ccc-45bb-aff8-16ccd2e59297" } ], "login_count": 0, "last_login": 1713672181.556937, "admin_show": true, "user_show": false, "remote_port": 62134, "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} = ['6X276RLD6hdMaJlH6M0GPmfaxEnbc8K4', 'f8a56f25-9ccc-45bb-aff8-16ccd2e59297'] ${ACCESS_TOKEN} ${access_token[0]} Makes a variable available everywhere within the scope of the current test. ${ACCESS_TOKEN} = 6X276RLD6hdMaJlH6M0GPmfaxEnbc8K4 ${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.108: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 6X276RLD6hdMaJlH6M0GPmfaxEnbc8K4 } ${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.108:9999/osm/vnflcm/v1/vnf_instances/08b176df-5456-4bae-962d-d8cf92ebaa4c/terminate path_url=/osm/vnflcm/v1/vnf_instances/08b176df-5456-4bae-962d-d8cf92ebaa4c/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 6X276RLD6hdMaJlH6M0GPmfaxEnbc8K4', 'Content-Length': '66'} body=b'{"terminationType": "GRACEFUL", "gracefulTerminationTimeout": "5"}' POST Response : url=https://172.21.249.108:9999/osm/vnflcm/v1/vnf_instances/08b176df-5456-4bae-962d-d8cf92ebaa4c/terminate status=202, reason=Accepted headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 21 Apr 2024 04:03:36 GMT', 'Location': '/osm/vnflcm/v1/vnf_lcm_op_occs/c2178119-048b-4a8e-98a8-794abea5534d', 'Content-Length': '53', 'Set-Cookie': 'session_id=d7989758ff593c581f5fb9cb1cc89a730fb69ce5; expires=Sun, 21 Apr 2024 05:03:36 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "id": "c2178119-048b-4a8e-98a8-794abea5534d" } ${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} = ['c2178119-048b-4a8e-98a8-794abea5534d'] ${TERMINATEID} ${id[0]} Makes a variable available everywhere within the scope of the current suite. ${TERMINATEID} = c2178119-048b-4a8e-98a8-794abea5534d ${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.108: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 6X276RLD6hdMaJlH6M0GPmfaxEnbc8K4 } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.249.108:9999/osm/vnflcm/v1/vnf_lcm_op_occs/c2178119-048b-4a8e-98a8-794abea5534d path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/c2178119-048b-4a8e-98a8-794abea5534d headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer 6X276RLD6hdMaJlH6M0GPmfaxEnbc8K4'} body=None GET Response : url=https://172.21.249.108:9999/osm/vnflcm/v1/vnf_lcm_op_occs/c2178119-048b-4a8e-98a8-794abea5534d status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 21 Apr 2024 04:03:36 GMT', 'Content-Length': '1071', 'Set-Cookie': 'session_id=4ddfa142a1a14871436d78591e4c0fae59dd8aa3; expires=Sun, 21 Apr 2024 05:03:36 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "c2178119-048b-4a8e-98a8-794abea5534d", "id": "c2178119-048b-4a8e-98a8-794abea5534d", "operationState": "PROCESSING", "queuePosition": 0, "stage": "Stage 3/3 delete all.", "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1713672216.4400024, "lcmOperationType": "terminate", "startTime": 1713672216.4400024, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1713672216.4400513, "modified": 1713672216.5488036, "projects_read": [ "d6f47f86-1a13-4010-a962-317e9ed50847" ], "projects_write": [ "d6f47f86-1a13-4010-a962-317e9ed50847" ], "worker": "2af6bbc594a3" }, "detailed-status": "Stage 3/3 delete all. 0/1. ", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/c2178119-048b-4a8e-98a8-794abea5534d", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/08b176df-5456-4bae-962d-d8cf92ebaa4c" }, "vnfInstanceId": "08b176df-5456-4bae-962d-d8cf92ebaa4c" } ${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} = ['c2178119-048b-4a8e-98a8-794abea5534d'] ${LCMOPSSCALEID} ${LcmopsTerminate[0]} Makes a variable available everywhere within the scope of the current suite. ${LCMOPSSCALEID} = c2178119-048b-4a8e-98a8-794abea5534d ${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.108: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 6X276RLD6hdMaJlH6M0GPmfaxEnbc8K4 } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.249.108:9999/osm/vnflcm/v1/vnf_lcm_op_occs/c2178119-048b-4a8e-98a8-794abea5534d path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/c2178119-048b-4a8e-98a8-794abea5534d headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer 6X276RLD6hdMaJlH6M0GPmfaxEnbc8K4'} body=None GET Response : url=https://172.21.249.108:9999/osm/vnflcm/v1/vnf_lcm_op_occs/c2178119-048b-4a8e-98a8-794abea5534d status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 21 Apr 2024 04:03:36 GMT', 'Content-Length': '1071', 'Set-Cookie': 'session_id=5ebd12a62924baccf584c9b156f0457dd430914b; expires=Sun, 21 Apr 2024 05:03:36 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "c2178119-048b-4a8e-98a8-794abea5534d", "id": "c2178119-048b-4a8e-98a8-794abea5534d", "operationState": "PROCESSING", "queuePosition": 0, "stage": "Stage 3/3 delete all.", "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1713672216.4400024, "lcmOperationType": "terminate", "startTime": 1713672216.4400024, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1713672216.4400513, "modified": 1713672216.5488036, "projects_read": [ "d6f47f86-1a13-4010-a962-317e9ed50847" ], "projects_write": [ "d6f47f86-1a13-4010-a962-317e9ed50847" ], "worker": "2af6bbc594a3" }, "detailed-status": "Stage 3/3 delete all. 0/1. ", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/c2178119-048b-4a8e-98a8-794abea5534d", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/08b176df-5456-4bae-962d-d8cf92ebaa4c" }, "vnfInstanceId": "08b176df-5456-4bae-962d-d8cf92ebaa4c" } ${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.108: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 6X276RLD6hdMaJlH6M0GPmfaxEnbc8K4 } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.249.108:9999/osm/vnflcm/v1/vnf_lcm_op_occs/c2178119-048b-4a8e-98a8-794abea5534d path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/c2178119-048b-4a8e-98a8-794abea5534d headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer 6X276RLD6hdMaJlH6M0GPmfaxEnbc8K4'} body=None GET Response : url=https://172.21.249.108:9999/osm/vnflcm/v1/vnf_lcm_op_occs/c2178119-048b-4a8e-98a8-794abea5534d status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 21 Apr 2024 04:03:46 GMT', 'Content-Length': '1089', 'Set-Cookie': 'session_id=4c8b2605de70f6711fa2e0208fd673b0736282e5; expires=Sun, 21 Apr 2024 05:03:46 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "c2178119-048b-4a8e-98a8-794abea5534d", "id": "c2178119-048b-4a8e-98a8-794abea5534d", "operationState": "PROCESSING", "queuePosition": 0, "stage": "Stage 3/3 delete all.", "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1713672216.4400024, "lcmOperationType": "terminate", "startTime": 1713672216.4400024, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1713672216.4400513, "modified": 1713672216.677587, "projects_read": [ "d6f47f86-1a13-4010-a962-317e9ed50847" ], "projects_write": [ "d6f47f86-1a13-4010-a962-317e9ed50847" ], "worker": "2af6bbc594a3" }, "detailed-status": "Stage 3/3 delete all. 0/1. VIM: (progress 0/5)", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/c2178119-048b-4a8e-98a8-794abea5534d", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/08b176df-5456-4bae-962d-d8cf92ebaa4c" }, "vnfInstanceId": "08b176df-5456-4bae-962d-d8cf92ebaa4c" } ${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.108: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 6X276RLD6hdMaJlH6M0GPmfaxEnbc8K4 } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.249.108:9999/osm/vnflcm/v1/vnf_lcm_op_occs/c2178119-048b-4a8e-98a8-794abea5534d path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/c2178119-048b-4a8e-98a8-794abea5534d headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer 6X276RLD6hdMaJlH6M0GPmfaxEnbc8K4'} body=None GET Response : url=https://172.21.249.108:9999/osm/vnflcm/v1/vnf_lcm_op_occs/c2178119-048b-4a8e-98a8-794abea5534d status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 21 Apr 2024 04:03:56 GMT', 'Content-Length': '1025', 'Set-Cookie': 'session_id=a9543285f0f997db088b10daf37f36e7379229f5; expires=Sun, 21 Apr 2024 05:03:56 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "c2178119-048b-4a8e-98a8-794abea5534d", "id": "c2178119-048b-4a8e-98a8-794abea5534d", "operationState": "COMPLETED", "queuePosition": 0, "stage": "", "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1713672231.779246, "lcmOperationType": "terminate", "startTime": 1713672216.4400024, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1713672216.4400513, "modified": 1713672231.7792473, "projects_read": [ "d6f47f86-1a13-4010-a962-317e9ed50847" ], "projects_write": [ "d6f47f86-1a13-4010-a962-317e9ed50847" ], "worker": "2af6bbc594a3" }, "detailed-status": "Done", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/c2178119-048b-4a8e-98a8-794abea5534d", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/08b176df-5456-4bae-962d-d8cf92ebaa4c" }, "vnfInstanceId": "08b176df-5456-4bae-962d-d8cf92ebaa4c" } ${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.108 ${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.108' 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.108: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.108: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.108: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.108:9999/osm/admin/v1/tokens status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 21 Apr 2024 04:03:56 GMT', 'Www-Authenticate': 'Bearer realm="Needed a token or Authorization http header"', 'Location': '/osm/admin/v1/tokens/ftknbY2aX7R0miOfcNMT5tMF0q8pjPUn', 'Content-Length': '656', 'Set-Cookie': 'session_id=6144b14a04d519acbe6654461d793d6890b44eb1; expires=Sun, 21 Apr 2024 05:03:56 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "issued_at": 1713672236.9563332, "expires": 1713675836.9563332, "_id": "ftknbY2aX7R0miOfcNMT5tMF0q8pjPUn", "id": "ftknbY2aX7R0miOfcNMT5tMF0q8pjPUn", "project_id": "d6f47f86-1a13-4010-a962-317e9ed50847", "project_name": "admin", "username": "admin", "user_id": "98d14968-9052-4834-885d-c00bfd751c12", "admin": true, "roles": [ { "name": "system_admin", "id": "f8a56f25-9ccc-45bb-aff8-16ccd2e59297" } ], "login_count": 0, "last_login": 1713672214.3094666, "admin_show": true, "user_show": false, "remote_port": 24679, "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} = ['ftknbY2aX7R0miOfcNMT5tMF0q8pjPUn', 'f8a56f25-9ccc-45bb-aff8-16ccd2e59297'] ${ACCESS_TOKEN} ${access_token[0]} Makes a variable available everywhere within the scope of the current test. ${ACCESS_TOKEN} = ftknbY2aX7R0miOfcNMT5tMF0q8pjPUn ${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.108: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 ftknbY2aX7R0miOfcNMT5tMF0q8pjPUn } ${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.108:9999/osm/vnflcm/v1/vnf_instances/08b176df-5456-4bae-962d-d8cf92ebaa4c path_url=/osm/vnflcm/v1/vnf_instances/08b176df-5456-4bae-962d-d8cf92ebaa4c headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer ftknbY2aX7R0miOfcNMT5tMF0q8pjPUn', 'Content-Length': '0'} body=None DELETE Response : url=https://172.21.249.108:9999/osm/vnflcm/v1/vnf_instances/08b176df-5456-4bae-962d-d8cf92ebaa4c status=204, reason=No Content headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 21 Apr 2024 04:03:59 GMT', 'Set-Cookie': 'session_id=61e9fc9eb0b50003a3269e7b57ee1659f6af2852; expires=Sun, 21 Apr 2024 05:03:59 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 3c1d196c-dc9e-4f47-bcc4-a1bcb475e7b2 ${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} = 3c1d196c-dc9e-4f47-bcc4-a1bcb475e7b2 ${id} ${VNFD_ID} = 3c1d196c-dc9e-4f47-bcc4-a1bcb475e7b2 ${VNFD_ID} Makes a variable available everywhere within the scope of the current suite. ${VNFD_ID} = 3c1d196c-dc9e-4f47-bcc4-a1bcb475e7b2 ${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} = 050dc050-ab65-4e5b-8c08-3a8b5050bda5 ${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} = 050dc050-ab65-4e5b-8c08-3a8b5050bda5 ${CREATED_VIM_ACCOUNT_ID} Makes a variable available everywhere within the scope of the current suite. ${CREATED_VIM_ACCOUNT_ID} = 050dc050-ab65-4e5b-8c08-3a8b5050bda5 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.108 ${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.108' 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.108: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.108: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.108: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.108:9999/osm/admin/v1/tokens status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 21 Apr 2024 04:04:04 GMT', 'Www-Authenticate': 'Bearer realm="Needed a token or Authorization http header"', 'Location': '/osm/admin/v1/tokens/GXkTzOIGeKDfUZRrsZI2gwyhzZ9kA3SR', 'Content-Length': '655', 'Set-Cookie': 'session_id=229be1911dd3464bc05fbd7030ab5a3794a124d4; expires=Sun, 21 Apr 2024 05:04:04 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "issued_at": 1713672244.7315269, "expires": 1713675844.7315269, "_id": "GXkTzOIGeKDfUZRrsZI2gwyhzZ9kA3SR", "id": "GXkTzOIGeKDfUZRrsZI2gwyhzZ9kA3SR", "project_id": "d6f47f86-1a13-4010-a962-317e9ed50847", "project_name": "admin", "username": "admin", "user_id": "98d14968-9052-4834-885d-c00bfd751c12", "admin": true, "roles": [ { "name": "system_admin", "id": "f8a56f25-9ccc-45bb-aff8-16ccd2e59297" } ], "login_count": 0, "last_login": 1713672244.552139, "admin_show": true, "user_show": false, "remote_port": 11461, "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} = ['GXkTzOIGeKDfUZRrsZI2gwyhzZ9kA3SR', 'f8a56f25-9ccc-45bb-aff8-16ccd2e59297'] ${ACCESS_TOKEN} ${access_token[0]} Makes a variable available everywhere within the scope of the current test. ${ACCESS_TOKEN} = GXkTzOIGeKDfUZRrsZI2gwyhzZ9kA3SR ${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': '050dc050-ab65-4e5b-8c08-3a8b5050bda5', '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': '050dc050-ab65-4e5b-8c08-3a8b5050bda5', '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': '050dc050-ab65-4e5b-8c08-3a8b5050bda5', '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': '050dc050-ab65-4e5b-8c08-3a8b5050bda5', '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': '050dc050-ab65-4e5b-8c08-3a8b5050bda5', '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': '050dc050-ab65-4e5b-8c08-3a8b5050bda5', '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': '050dc050-ab65-4e5b-8c08-3a8b5050bda5', '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.108: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 GXkTzOIGeKDfUZRrsZI2gwyhzZ9kA3SR } ${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.108: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 GXkTzOIGeKDfUZRrsZI2gwyhzZ9kA3SR', 'Content-Length': '423'} body=b'{"vnfdId": "hackfest_basic-vnf", "vnfInstanceName": "sol003-instance", "vnfInstanceDescription": "Test vnfm instance description", "vimAccountId": "050dc050-ab65-4e5b-8c08-3a8b5050bda5", "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.108:9999/osm/vnflcm/v1/vnf_instances status=201, reason=Created headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 21 Apr 2024 04:04:07 GMT', 'Location': '/osm/vnflcm/v1/vnf_instances/ec7f36b0-f327-4236-b1e0-685ab839301c', 'Content-Length': '53', 'Set-Cookie': 'session_id=304c1e0c3cbb711fabdc78240884d341311131be; expires=Sun, 21 Apr 2024 05:04:07 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "id": "ec7f36b0-f327-4236-b1e0-685ab839301c" } ${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} = ['ec7f36b0-f327-4236-b1e0-685ab839301c'] ${CREATEID} ${id[0]} Makes a variable available everywhere within the scope of the current suite. ${CREATEID} = ec7f36b0-f327-4236-b1e0-685ab839301c 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 | 3c1d196c-dc9e-4f47-bcc4-a1bcb475e7b2 | 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 | 186803b8-0957-43ca-a79a-09f5be8660c4 | 2024-04-21T04:04:08 | 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 | +--------------------------------------+------+--------------------------------------+------------------+--------------------+----------------+------------+ | ec7f36b0-f327-4236-b1e0-685ab839301c | - | 186803b8-0957-43ca-a79a-09f5be8660c4 | 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.108 ${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.108' 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.108: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.108: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.108: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.108:9999/osm/admin/v1/tokens status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 21 Apr 2024 04:04:12 GMT', 'Www-Authenticate': 'Bearer realm="Needed a token or Authorization http header"', 'Location': '/osm/admin/v1/tokens/IJAa9adUg2tZ71Qd57wf4fdGFEloIYgN', 'Content-Length': '655', 'Set-Cookie': 'session_id=b2193bddffae7376d06857863c835c266d1c8716; expires=Sun, 21 Apr 2024 05:04:12 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "issued_at": 1713672252.1367514, "expires": 1713675852.1367514, "_id": "IJAa9adUg2tZ71Qd57wf4fdGFEloIYgN", "id": "IJAa9adUg2tZ71Qd57wf4fdGFEloIYgN", "project_id": "d6f47f86-1a13-4010-a962-317e9ed50847", "project_name": "admin", "username": "admin", "user_id": "98d14968-9052-4834-885d-c00bfd751c12", "admin": true, "roles": [ { "name": "system_admin", "id": "f8a56f25-9ccc-45bb-aff8-16ccd2e59297" } ], "login_count": 0, "last_login": 1713672250.9375641, "admin_show": true, "user_show": false, "remote_port": 8913, "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} = ['IJAa9adUg2tZ71Qd57wf4fdGFEloIYgN', 'f8a56f25-9ccc-45bb-aff8-16ccd2e59297'] ${ACCESS_TOKEN} ${access_token[0]} Makes a variable available everywhere within the scope of the current test. ${ACCESS_TOKEN} = IJAa9adUg2tZ71Qd57wf4fdGFEloIYgN ${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': '050dc050-ab65-4e5b-8c08-3a8b5050bda5'} ${UPDATED_JSON_OBJ} ${UPDATED_JSON_OBJ} $..vnfId ${CREATEID} Update value to JSON using JSONPath ${UPDATED_JSON_OBJ} = {'vnfName': 'sol003-instance', 'vnfDescription': 'vnf package', 'vnfId': 'ec7f36b0-f327-4236-b1e0-685ab839301c', 'vimAccountId': '050dc050-ab65-4e5b-8c08-3a8b5050bda5'} ${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': 'ec7f36b0-f327-4236-b1e0-685ab839301c', 'vimAccountId': '050dc050-ab65-4e5b-8c08-3a8b5050bda5'} ${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.108: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 IJAa9adUg2tZ71Qd57wf4fdGFEloIYgN } ${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.108:9999/osm/vnflcm/v1/vnf_instances/ec7f36b0-f327-4236-b1e0-685ab839301c/instantiate path_url=/osm/vnflcm/v1/vnf_instances/ec7f36b0-f327-4236-b1e0-685ab839301c/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 IJAa9adUg2tZ71Qd57wf4fdGFEloIYgN', 'Content-Length': '168'} body=b'{"vnfName": "sol003-instance", "vnfDescription": "vnf package", "vnfId": "ec7f36b0-f327-4236-b1e0-685ab839301c", "vimAccountId": "050dc050-ab65-4e5b-8c08-3a8b5050bda5"}' POST Response : url=https://172.21.249.108:9999/osm/vnflcm/v1/vnf_instances/ec7f36b0-f327-4236-b1e0-685ab839301c/instantiate status=202, reason=Accepted headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 21 Apr 2024 04:04:15 GMT', 'Location': '/osm/vnflcm/v1/vnf_lcm_op_occs/4ffb8fd3-a564-4c47-a69a-c4ed7aa29b7f', 'Content-Length': '53', 'Set-Cookie': 'session_id=f4f3e791587cc23027920c157bf46c2af25cd137; expires=Sun, 21 Apr 2024 05:04:15 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "id": "4ffb8fd3-a564-4c47-a69a-c4ed7aa29b7f" } ${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} = ['4ffb8fd3-a564-4c47-a69a-c4ed7aa29b7f'] ${VNF_INSTANCE_ID} ${id[0]} Makes a variable available everywhere within the scope of the current suite. ${VNF_INSTANCE_ID} = 4ffb8fd3-a564-4c47-a69a-c4ed7aa29b7f 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} = +--------------------------------------+-----------------------------------------------+--------+------------------------------------------------------------------------------------------+------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+------------------------------------------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+------------------------------------------------------------------------------------------+-------------+-------------------------+ | 0d7a78fd-19e5-403f-8c28-521e37b5df1e | sliceshared.slic-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.248.151; slicebasic.slice-nsd_vnfd_vld_dat=192.168.87.46 | ubuntu18.04 | simple_requires-1-1-flv | | 6cd99264-36f1-4c80-afe1-6e053b9f79db | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.213; slicebasic.slice-nsd_vnfd_vld_dat=192.168.25.102 | ubuntu18.04 | simple_requires-1-1-flv | | 0c2d8254-6726-49bc-9d11-08801eb513b7 | slicebasic.slice-middle-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.248.200; slicebasic.slice-nsd_vnfd_vld_dat=192.168.25.19, 192.168.255.175 | ubuntu18.04 | simple_requires-1-1-flv | | 37b14959-c030-4753-bfda-2a4cc82d9973 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.248.219; slicebasic.slice-nsd_vnfd_vld_dat=192.168.255.79 | ubuntu18.04 | simple_requires-1-1-flv | | 1a1d4ded-a637-4e10-94a7-8e33a2b90e74 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.157; slicebasic.slice-nsd_vnfd_vld_dat=192.168.87.133 | ubuntu18.04 | simple_requires-1-1-flv | | 2f14fcc8-a177-42a5-a1c5-9d37521ec8a7 | slicebasic.slice-middle-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.72; slicebasic.slice-nsd_vnfd_vld_dat=192.168.190.248, 192.168.87.184 | ubuntu18.04 | simple_requires-1-1-flv | | 8adb45ba-c703-49d3-8d56-a0abfddc9860 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.248.66; slicebasic.slice-nsd_vnfd_vld_dat=192.168.190.217 | ubuntu18.04 | simple_requires-1-1-flv | | daa38b9e-a338-49b8-9284-1f77db681206 | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.4.237; osm-ext=172.21.248.85 | ubuntu18.04 | simple_requires-1-1-flv | | 19273e09-8f59-47df-8cd0-67308ba95783 | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.4.113; osm-ext=172.21.249.134 | ubuntu18.04 | simple_requires-1-1-flv | | c83f8cea-08dd-4dcd-b30d-f9ad3b8c57db | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.245 | ubuntu20.04 | several_volumes-VM-flv | | 17bec5c5-9f8c-4404-96c2-188655d8320d | osm-v150-merge-120 | ACTIVE | osm-ext=172.21.249.38 | ubuntu22.04 | osm.sanity | | 1587a488-2dc5-40e8-9d02-f179940f2e16 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.104 | ubuntu22.04 | osm.sanity | | 905c0aed-7436-4e63-b1b8-1b462189492f | osm-master-merge-2961 | ACTIVE | osm-ext=172.21.249.108 | ubuntu22.04 | osm.sanity | | 2ba59295-c3d5-459d-bde7-d4e1be5403d4 | osm-v120-merge-715 | ACTIVE | osm-ext=172.21.248.118 | 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 | 186803b8-0957-43ca-a79a-09f5be8660c4 | 2024-04-21T04:04:08 | BROKEN | IDLE (None) | Operation: INSTANTIATING.4ffb8fd3-a564- | | | | | | | 4c47-a69a-c4ed7aa29b7f, 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-d3b94255-8dcc-48fc-b9f9-06d660874941'] | +--------------------+--------------------------------------+---------------------+----------+-------------------+------------------------------------------+ To get the history of all operations 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 | +--------------------------------------+------+--------------------------------------+------------------+--------------------+--------------------------------------+------------+ | ec7f36b0-f327-4236-b1e0-685ab839301c | - | 186803b8-0957-43ca-a79a-09f5be8660c4 | 1 | hackfest_basic-vnf | 050dc050-ab65-4e5b-8c08-3a8b5050bda5 | 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} = 186803b8-0957-43ca-a79a-09f5be8660c4 ${stdout} Logs the given message with the given level. 186803b8-0957-43ca-a79a-09f5be8660c4 ${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} = 186803b8-0957-43ca-a79a-09f5be8660c4 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 186803b8-0957-43ca-a79a-09f5be8660c4 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 186803b8-0957-43ca-a79a-09f5be8660c4 --literal | grep nsd-id | awk '{print $2}' 2>&1'. ${stdout} = eb5e9871-7555-44bf-9b61-f0910f902a54 ${stdout} Logs the given message with the given level. eb5e9871-7555-44bf-9b61-f0910f902a54 ${stdout} ${id} = eb5e9871-7555-44bf-9b61-f0910f902a54 ${NSD_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NSD_ID} = eb5e9871-7555-44bf-9b61-f0910f902a54 ${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 eb5e9871-7555-44bf-9b61-f0910f902a54 --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 186803b8-0957-43ca-a79a-09f5be8660c4 --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.108 ${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.108' 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.108: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.108: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.108: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.108:9999/osm/admin/v1/tokens status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 21 Apr 2024 04:04:40 GMT', 'Www-Authenticate': 'Bearer realm="Needed a token or Authorization http header"', 'Location': '/osm/admin/v1/tokens/mv7tSNXtlohbuqJU9xhB0XFipsqPj7X7', 'Content-Length': '654', 'Set-Cookie': 'session_id=ed0efd623b85e16a4f51fb240d23d372733ca153; expires=Sun, 21 Apr 2024 05:04:40 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "issued_at": 1713672280.140098, "expires": 1713675880.140098, "_id": "mv7tSNXtlohbuqJU9xhB0XFipsqPj7X7", "id": "mv7tSNXtlohbuqJU9xhB0XFipsqPj7X7", "project_id": "d6f47f86-1a13-4010-a962-317e9ed50847", "project_name": "admin", "username": "admin", "user_id": "98d14968-9052-4834-885d-c00bfd751c12", "admin": true, "roles": [ { "name": "system_admin", "id": "f8a56f25-9ccc-45bb-aff8-16ccd2e59297" } ], "login_count": 0, "last_login": 1713672278.9230707, "admin_show": true, "user_show": false, "remote_port": 13253, "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} = ['mv7tSNXtlohbuqJU9xhB0XFipsqPj7X7', 'f8a56f25-9ccc-45bb-aff8-16ccd2e59297'] ${ACCESS_TOKEN} ${access_token[0]} Makes a variable available everywhere within the scope of the current test. ${ACCESS_TOKEN} = mv7tSNXtlohbuqJU9xhB0XFipsqPj7X7 ${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.108: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 mv7tSNXtlohbuqJU9xhB0XFipsqPj7X7 } ${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.108:9999/osm/vnflcm/v1/vnf_instances/ec7f36b0-f327-4236-b1e0-685ab839301c/terminate path_url=/osm/vnflcm/v1/vnf_instances/ec7f36b0-f327-4236-b1e0-685ab839301c/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 mv7tSNXtlohbuqJU9xhB0XFipsqPj7X7', 'Content-Length': '66'} body=b'{"terminationType": "GRACEFUL", "gracefulTerminationTimeout": "5"}' POST Response : url=https://172.21.249.108:9999/osm/vnflcm/v1/vnf_instances/ec7f36b0-f327-4236-b1e0-685ab839301c/terminate status=202, reason=Accepted headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 21 Apr 2024 04:04:43 GMT', 'Location': '/osm/vnflcm/v1/vnf_lcm_op_occs/5da53d6c-ec0e-41a7-81ba-1d7e198e56b0', 'Content-Length': '53', 'Set-Cookie': 'session_id=e03af4087df69c864736057f2674f2fcec9b94f1; expires=Sun, 21 Apr 2024 05:04:43 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "id": "5da53d6c-ec0e-41a7-81ba-1d7e198e56b0" } ${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} = ['5da53d6c-ec0e-41a7-81ba-1d7e198e56b0'] ${terminateid} ${id[0]} Returns the given values which can then be assigned to a variables. ${terminateid} = 5da53d6c-ec0e-41a7-81ba-1d7e198e56b0 ${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.108: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 mv7tSNXtlohbuqJU9xhB0XFipsqPj7X7 } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.249.108:9999/osm/vnflcm/v1/vnf_lcm_op_occs/5da53d6c-ec0e-41a7-81ba-1d7e198e56b0 path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/5da53d6c-ec0e-41a7-81ba-1d7e198e56b0 headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer mv7tSNXtlohbuqJU9xhB0XFipsqPj7X7'} body=None GET Response : url=https://172.21.249.108:9999/osm/vnflcm/v1/vnf_lcm_op_occs/5da53d6c-ec0e-41a7-81ba-1d7e198e56b0 status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 21 Apr 2024 04:04:43 GMT', 'Content-Length': '1070', 'Set-Cookie': 'session_id=785a3c766f25e79195d3310256f1d11b35da744a; expires=Sun, 21 Apr 2024 05:04:43 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "5da53d6c-ec0e-41a7-81ba-1d7e198e56b0", "id": "5da53d6c-ec0e-41a7-81ba-1d7e198e56b0", "operationState": "PROCESSING", "queuePosition": 0, "stage": "Stage 3/3 delete all.", "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1713672283.3139307, "lcmOperationType": "terminate", "startTime": 1713672283.3139307, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1713672283.313964, "modified": 1713672283.4101276, "projects_read": [ "d6f47f86-1a13-4010-a962-317e9ed50847" ], "projects_write": [ "d6f47f86-1a13-4010-a962-317e9ed50847" ], "worker": "2af6bbc594a3" }, "detailed-status": "Stage 3/3 delete all. 0/1. ", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/5da53d6c-ec0e-41a7-81ba-1d7e198e56b0", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/ec7f36b0-f327-4236-b1e0-685ab839301c" }, "vnfInstanceId": "ec7f36b0-f327-4236-b1e0-685ab839301c" } ${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} = ['5da53d6c-ec0e-41a7-81ba-1d7e198e56b0'] ${LcmopsTerminate[0]} Logs the given message with the given level. 5da53d6c-ec0e-41a7-81ba-1d7e198e56b0 ${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.108: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 mv7tSNXtlohbuqJU9xhB0XFipsqPj7X7 } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.249.108:9999/osm/vnflcm/v1/vnf_lcm_op_occs/5da53d6c-ec0e-41a7-81ba-1d7e198e56b0 path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/5da53d6c-ec0e-41a7-81ba-1d7e198e56b0 headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer mv7tSNXtlohbuqJU9xhB0XFipsqPj7X7'} body=None GET Response : url=https://172.21.249.108:9999/osm/vnflcm/v1/vnf_lcm_op_occs/5da53d6c-ec0e-41a7-81ba-1d7e198e56b0 status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 21 Apr 2024 04:04:43 GMT', 'Content-Length': '1089', 'Set-Cookie': 'session_id=f4bc5aa4e2bd4dbae0ded20b418fea4aa5bddd07; expires=Sun, 21 Apr 2024 05:04:43 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "5da53d6c-ec0e-41a7-81ba-1d7e198e56b0", "id": "5da53d6c-ec0e-41a7-81ba-1d7e198e56b0", "operationState": "PROCESSING", "queuePosition": 0, "stage": "Stage 3/3 delete all.", "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1713672283.3139307, "lcmOperationType": "terminate", "startTime": 1713672283.3139307, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1713672283.313964, "modified": 1713672283.4999418, "projects_read": [ "d6f47f86-1a13-4010-a962-317e9ed50847" ], "projects_write": [ "d6f47f86-1a13-4010-a962-317e9ed50847" ], "worker": "2af6bbc594a3" }, "detailed-status": "Stage 3/3 delete all. 0/1. VIM: (progress 0/4)", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/5da53d6c-ec0e-41a7-81ba-1d7e198e56b0", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/ec7f36b0-f327-4236-b1e0-685ab839301c" }, "vnfInstanceId": "ec7f36b0-f327-4236-b1e0-685ab839301c" } ${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.108: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 mv7tSNXtlohbuqJU9xhB0XFipsqPj7X7 } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.249.108:9999/osm/vnflcm/v1/vnf_lcm_op_occs/5da53d6c-ec0e-41a7-81ba-1d7e198e56b0 path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/5da53d6c-ec0e-41a7-81ba-1d7e198e56b0 headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer mv7tSNXtlohbuqJU9xhB0XFipsqPj7X7'} body=None GET Response : url=https://172.21.249.108:9999/osm/vnflcm/v1/vnf_lcm_op_occs/5da53d6c-ec0e-41a7-81ba-1d7e198e56b0 status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 21 Apr 2024 04:04:53 GMT', 'Content-Length': '1089', 'Set-Cookie': 'session_id=4ba7e41115d7f12225f0fd81648eb3ac4a4d7f32; expires=Sun, 21 Apr 2024 05:04:53 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "5da53d6c-ec0e-41a7-81ba-1d7e198e56b0", "id": "5da53d6c-ec0e-41a7-81ba-1d7e198e56b0", "operationState": "PROCESSING", "queuePosition": 0, "stage": "Stage 3/3 delete all.", "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1713672283.3139307, "lcmOperationType": "terminate", "startTime": 1713672283.3139307, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1713672283.313964, "modified": 1713672283.4999418, "projects_read": [ "d6f47f86-1a13-4010-a962-317e9ed50847" ], "projects_write": [ "d6f47f86-1a13-4010-a962-317e9ed50847" ], "worker": "2af6bbc594a3" }, "detailed-status": "Stage 3/3 delete all. 0/1. VIM: (progress 0/4)", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/5da53d6c-ec0e-41a7-81ba-1d7e198e56b0", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/ec7f36b0-f327-4236-b1e0-685ab839301c" }, "vnfInstanceId": "ec7f36b0-f327-4236-b1e0-685ab839301c" } ${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.108: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 mv7tSNXtlohbuqJU9xhB0XFipsqPj7X7 } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.249.108:9999/osm/vnflcm/v1/vnf_lcm_op_occs/5da53d6c-ec0e-41a7-81ba-1d7e198e56b0 path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/5da53d6c-ec0e-41a7-81ba-1d7e198e56b0 headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer mv7tSNXtlohbuqJU9xhB0XFipsqPj7X7'} body=None GET Response : url=https://172.21.249.108:9999/osm/vnflcm/v1/vnf_lcm_op_occs/5da53d6c-ec0e-41a7-81ba-1d7e198e56b0 status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 21 Apr 2024 04:05:03 GMT', 'Content-Length': '1025', 'Set-Cookie': 'session_id=e935c5849401384f868f3a932d4421637bd06b50; expires=Sun, 21 Apr 2024 05:05:03 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "5da53d6c-ec0e-41a7-81ba-1d7e198e56b0", "id": "5da53d6c-ec0e-41a7-81ba-1d7e198e56b0", "operationState": "COMPLETED", "queuePosition": 0, "stage": "", "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1713672298.6026254, "lcmOperationType": "terminate", "startTime": 1713672283.3139307, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1713672283.313964, "modified": 1713672298.6026266, "projects_read": [ "d6f47f86-1a13-4010-a962-317e9ed50847" ], "projects_write": [ "d6f47f86-1a13-4010-a962-317e9ed50847" ], "worker": "2af6bbc594a3" }, "detailed-status": "Done", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/5da53d6c-ec0e-41a7-81ba-1d7e198e56b0", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/ec7f36b0-f327-4236-b1e0-685ab839301c" }, "vnfInstanceId": "ec7f36b0-f327-4236-b1e0-685ab839301c" } ${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.108 ${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.108' 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.108: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.108: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.108: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.108:9999/osm/admin/v1/tokens status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 21 Apr 2024 04:05:03 GMT', 'Www-Authenticate': 'Bearer realm="Needed a token or Authorization http header"', 'Location': '/osm/admin/v1/tokens/QrduUoeKysk071XBnSMGv3eN3L9yB2Fz', 'Content-Length': '655', 'Set-Cookie': 'session_id=e0e7e8d89629889e038dabca71ab7bcc5a4c557c; expires=Sun, 21 Apr 2024 05:05:03 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "issued_at": 1713672303.8321462, "expires": 1713675903.8321462, "_id": "QrduUoeKysk071XBnSMGv3eN3L9yB2Fz", "id": "QrduUoeKysk071XBnSMGv3eN3L9yB2Fz", "project_id": "d6f47f86-1a13-4010-a962-317e9ed50847", "project_name": "admin", "username": "admin", "user_id": "98d14968-9052-4834-885d-c00bfd751c12", "admin": true, "roles": [ { "name": "system_admin", "id": "f8a56f25-9ccc-45bb-aff8-16ccd2e59297" } ], "login_count": 0, "last_login": 1713672280.140098, "admin_show": true, "user_show": false, "remote_port": 32883, "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} = ['QrduUoeKysk071XBnSMGv3eN3L9yB2Fz', 'f8a56f25-9ccc-45bb-aff8-16ccd2e59297'] ${ACCESS_TOKEN} ${access_token[0]} Makes a variable available everywhere within the scope of the current test. ${ACCESS_TOKEN} = QrduUoeKysk071XBnSMGv3eN3L9yB2Fz ${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.108: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 QrduUoeKysk071XBnSMGv3eN3L9yB2Fz } ${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.108:9999/osm/vnflcm/v1/vnf_instances/ec7f36b0-f327-4236-b1e0-685ab839301c path_url=/osm/vnflcm/v1/vnf_instances/ec7f36b0-f327-4236-b1e0-685ab839301c headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer QrduUoeKysk071XBnSMGv3eN3L9yB2Fz', 'Content-Length': '0'} body=None DELETE Response : url=https://172.21.249.108:9999/osm/vnflcm/v1/vnf_instances/ec7f36b0-f327-4236-b1e0-685ab839301c status=204, reason=No Content headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 21 Apr 2024 04:05:05 GMT', 'Set-Cookie': 'session_id=e5d91253419496e9d0ef58212a9a65e0f7db79a7; expires=Sun, 21 Apr 2024 05:05:05 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